Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 }; |
| OLD | NEW |