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

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

Issue 761223002: IDL: Add error handlings to avoid infinite loops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « tools/idl_parser/test_parser/dictionary_web.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Interface productions 5 /* Test Interface 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 /* TREE 44 /* TREE
45 *Interface(MyIFacePartial) 45 *Interface(MyIFacePartial)
46 */ 46 */
47 partial interface MyIFacePartial { }; 47 partial interface MyIFacePartial { };
48 48
49 /* ERROR Unexpected ":" after identifier "MyIFaceInherit". */ 49 /* ERROR Unexpected ":" after identifier "MyIFaceInherit". */
50 partial interface MyIFaceInherit : Foo {}; 50 partial interface MyIFaceInherit : Foo {};
51 51
52 /* TREE 52 /* TREE
53 *Interface(MyIFaceMissingArgument)
54 * Operation(foo)
55 * Arguments()
56 * Argument(arg)
57 * Type()
58 * PrimitiveType(DOMString)
59 * Error(Missing argument.)
60 * Type()
61 * PrimitiveType(void)
62 */
63 interface MyIFaceMissingArgument {
64 void foo(DOMString arg, );
65 };
66
67 /* TREE
53 *Interface(MyIFaceBig) 68 *Interface(MyIFaceBig)
54 * Const(setString) 69 * Const(setString)
55 * PrimitiveType(DOMString) 70 * PrimitiveType(DOMString)
56 * Value(NULL) 71 * Value(NULL)
57 */ 72 */
58 interface MyIFaceBig { 73 interface MyIFaceBig {
59 const DOMString? setString = null; 74 const DOMString? setString = null;
60 }; 75 };
61 76
62 /* TREE 77 /* TREE
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 * Promise(Promise) 223 * Promise(Promise)
209 * Type() 224 * Type()
210 * Any() 225 * Any()
211 */ 226 */
212 interface MyIfacePromise { 227 interface MyIfacePromise {
213 Promise<void> method1(); 228 Promise<void> method1();
214 Promise<long> method2(); 229 Promise<long> method2();
215 Promise<any> method3(); 230 Promise<any> method3();
216 Promise method4(); 231 Promise method4();
217 }; 232 };
OLDNEW
« no previous file with comments | « tools/idl_parser/test_parser/dictionary_web.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698