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

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)
191 * Type()
192 * PrimitiveType(void)
193 * Operation(method2)
194 * Arguments()
195 * Type()
196 * Promise(Promise)
197 * Type()
198 * PrimitiveType(long)
199 * Operation(method3)
200 * Arguments()
201 * Type()
202 * Promise(Promise)
203 * Type()
204 * Any()
205 * Operation(method4)
206 * Arguments()
207 * Type()
208 * Promise(Promise)
209 * Type()
210 * Any()
211 */
212 interface MyIfacePromise {
213 Promise<void> method1();
214 Promise<long> method2();
215 Promise<any> method3();
216 Promise method4();
217 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698