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

Side by Side Diff: tools/idl_parser/test_parser/exception_web.idl

Issue 2708173002: idl_parser: Add support for the record<K, V> WebIDL type. (Closed)
Patch Set: Created 3 years, 10 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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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 /* Test Exception productions 5 /* Test Exception productions
6 6
7 Run with --test to generate an AST and verify that all comments accurately 7 Run with --test to generate an AST and verify that all comments accurately
8 reflect the state of the Nodes. 8 reflect the state of the Nodes.
9 9
10 BUILD Type(Name) 10 BUILD Type(Name)
(...skipping 30 matching lines...) Expand all
41 */ 41 */
42 exception MyExcInherit : Foo {}; 42 exception MyExcInherit : Foo {};
43 43
44 /* ERROR Unexpected keyword "exception" after keyword "partial". */ 44 /* ERROR Unexpected keyword "exception" after keyword "partial". */
45 partial exception MyExcPartial { }; 45 partial exception MyExcPartial { };
46 46
47 /* TREE 47 /* TREE
48 *Exception(MyExcBig) 48 *Exception(MyExcBig)
49 * ExceptionField(MyString) 49 * ExceptionField(MyString)
50 * Type() 50 * Type()
51 * PrimitiveType(DOMString) 51 * StringType(DOMString)
52 * Error(Unexpected "=" after identifier "ErrorSetLong".) 52 * Error(Unexpected "=" after identifier "ErrorSetLong".)
53 * ExceptionField(MyLong) 53 * ExceptionField(MyLong)
54 * Type() 54 * Type()
55 * PrimitiveType(long) 55 * PrimitiveType(long)
56 */ 56 */
57 exception MyExcBig { 57 exception MyExcBig {
58 DOMString MyString; 58 DOMString MyString;
59 unsigned long long ErrorSetLong = 123; 59 unsigned long long ErrorSetLong = 123;
60 long MyLong; 60 long MyLong;
61 }; 61 };
62 62
63 63
64 /* ERROR Unexpected "{" after keyword "exception". */ 64 /* ERROR Unexpected "{" after keyword "exception". */
65 exception { 65 exception {
66 DOMString? setString = null; 66 DOMString? setString = null;
67 }; 67 };
68 68
69 69
70 /* ERROR Unexpected identifier "NoColon" after identifier "ForParent". */ 70 /* ERROR Unexpected identifier "NoColon" after identifier "ForParent". */
71 exception ForParent NoColon { 71 exception ForParent NoColon {
72 DOMString? setString = null; 72 DOMString? setString = null;
73 }; 73 };
74 74
75 /* TREE 75 /* TREE
76 *Exception(MyExcConst) 76 *Exception(MyExcConst)
77 * Const(setString) 77 * Const(setString)
78 * PrimitiveType(DOMString) 78 * StringType(DOMString)
79 * Value(NULL) 79 * Value(NULL)
80 */ 80 */
81 exception MyExcConst { 81 exception MyExcConst {
82 const DOMString? setString = null; 82 const DOMString? setString = null;
83 }; 83 };
84 84
85 85
86 86
87 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698