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

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

Issue 653343002: Support Promise<T> syntax in the IDL parser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 * ExtAttribute(MethodIdentList) 174 * ExtAttribute(MethodIdentList)
175 * ExtAttributes() 175 * ExtAttributes()
176 * ExtAttribute(MyExtendedAttribute) 176 * ExtAttribute(MyExtendedAttribute)
177 * ExtAttribute(MyExtendedIdentListAttribute) 177 * ExtAttribute(MyExtendedIdentListAttribute)
178 */ 178 */
179 [MyExtendedAttribute, 179 [MyExtendedAttribute,
180 MyExtendedIdentListAttribute=(Foo, Bar, Baz)] 180 MyExtendedIdentListAttribute=(Foo, Bar, Baz)]
181 interface MyExtendedAttributeInterface { 181 interface MyExtendedAttributeInterface {
182 [Attr, MethodIdentList=(Foo, Bar)] void method(); 182 [Attr, MethodIdentList=(Foo, Bar)] void method();
183 }; 183 };
184
185 /* TREE
186 *Interface(MyIfacePromise)
187 * Operation(method1)
188 * Arguments()
189 * Type()
190 * Promise(Promise)
noelallen1 2014/10/15 18:12:32 Shouldn't this be Promise(void) or Promise()
yhirano 2014/10/16 05:25:47 Done.
191 * Operation(method2)
192 * Arguments()
193 * Type()
194 * Promise(Promise)
195 * Operation(method3)
196 * Arguments()
197 * Type()
198 * Promise(Promise)
199 */
200 interface MyIfacePromise {
201 Promise<void> method1();
202 Promise<long> method2();
203 Promise method3();
204 };
OLDNEW
« tools/idl_parser/idl_parser.py ('K') | « tools/idl_parser/idl_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698