Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: tools/json_schema_compiler/test/idl_reserved_words.idl

Issue 16876004: Updating JSON Schema Compiler to add description field to schemas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (kalman) rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Tests 'reserved words' in various places in IDL.
6
5 namespace reserved_words { 7 namespace reserved_words {
6 8
7 enum Foo { _float, _DOMString }; 9 enum Foo { _float, _DOMString };
8 10
9 enum _enum { 11 enum _enum {
10 _callback, 12 _callback,
11 _namespace 13 _namespace
12 }; 14 };
13 15
14 dictionary _dictionary { 16 dictionary _dictionary {
15 long _long; 17 long _long;
16 }; 18 };
17 19
18 dictionary MyType { 20 dictionary MyType {
19 DOMString _interface; 21 DOMString _interface;
20 }; 22 };
21 23
22 interface Functions { 24 interface Functions {
23 static void _static(Foo foo, _enum e); 25 static void _static(Foo foo, _enum e);
24 }; 26 };
25 }; 27 };
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/functions_on_types.json ('k') | tools/json_schema_compiler/test/json_schema_test.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698