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
3 found in the LICENSE file. */
5 /* Test Enum productions
7 Run with --test to generate an AST and verify that all comments accurately
8 reflect the state of the Nodes.
11 This comment signals that a node of type <Type> is created with the
15 This comment signals that a error of <Error String> is generated. The error
16 is not assigned to a node, but are expected in order.
19 This comment signals that a property has been set on the Node such that
28 This comment signals that a tree of nodes matching the BUILD comment
29 symatics should exist. This is an exact match.
39 /* BUILD EnumItem (rice) */
41 /* BUILD EnumItem (noodles) */
43 /* BUILD EnumItem(other) */
47 /* BUILD Error(Enum missing name.) */
48 /* ERROR Enum missing name. */
62 /* BUILD EnumItem(rice) */
64 /* BUILD EnumItem(noodles) */
66 /* BUILD EnumItem(other) */
70 /* BUILD Error(Unexpected string "noodles" after string "rice".) */
71 /* ERROR Unexpected string "noodles" after string "rice". */
78 /* BUILD Error(Trailing comma in block.) */
79 /* ERROR Trailing comma in block. */
86 /* BUILD Error(Unexpected "," after ",".) */
87 /* ERROR Unexpected "," after ",". */
94 /* BUILD Error(Unexpected keyword "interface" after "{".) */
95 /* ERROR Unexpected keyword "interface" after "{". */
102 /* BUILD Error(Unexpected identifier "somename" after "{".) */
103 /* ERROR Unexpected identifier "somename" after "{". */
110 /* BUILD Enum(MealType3) */
112 /* BUILD EnumItem(rice) */
114 /* BUILD EnumItem(noodles) */
116 /* BUILD EnumItem(other) */