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

Side by Side Diff: tools/idl_parser/test_parser/struct_ppapi.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
« no previous file with comments | « tools/idl_parser/test_parser/interface_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 Struct productions 5 /* Test Struct 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 24 matching lines...) Expand all
35 * Type() 35 * Type()
36 * PrimitiveType(uint32_t) 36 * PrimitiveType(uint32_t)
37 * Member(y) 37 * Member(y)
38 * Type() 38 * Type()
39 * PrimitiveType(uint64_t) 39 * PrimitiveType(uint64_t)
40 * Member(string) 40 * Member(string)
41 * ExtAttributes() 41 * ExtAttributes()
42 * ExtAttribute(fake_attribute) 42 * ExtAttribute(fake_attribute)
43 * Type() 43 * Type()
44 * PrimitiveType(str_t) 44 * PrimitiveType(str_t)
45 * Member(z)
46 * Type()
47 * Typeref(Promise)
45 * ExtAttributes() 48 * ExtAttributes()
46 * ExtAttribute(union) 49 * ExtAttribute(union)
47 */ 50 */
48 [union] struct MyStruct { 51 [union] struct MyStruct {
49 uint32_t x; 52 uint32_t x;
50 uint64_t y; 53 uint64_t y;
51 [fake_attribute] str_t string; 54 [fake_attribute] str_t string;
55 Promise z;
noelallen1 2014/10/16 17:03:05 Didn't you remove Promise from PPAPI parser/lexer?
Jens Widell 2014/10/16 17:08:38 Since it's not a keyword it's just another identif
noelallen1 2014/10/16 18:14:02 We should expect a type here. def p_StructMember(
Jens Widell 2014/10/16 18:21:42 But Type references NotAnyType (indirectly) which
noelallen1 2014/10/16 18:36:25 You are correct. Okay, I agree this is legal un
52 }; 56 };
OLDNEW
« no previous file with comments | « tools/idl_parser/test_parser/interface_web.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698