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 Typedef 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.
47 typedef [foo] long MyLong;
55 typedef long[] MyLongArray;
58 *Typedef(MyLongSizedArray)
63 typedef long[4] MyLongSizedArray;
66 *Typedef(MyLongSizedArrayArray)
72 typedef long[4][5] MyLongSizedArrayArray;
75 *Typedef(MyLongArraySizedArray)
81 typedef long[][5] MyLongArraySizedArray;
89 typedef MyType[5] MyTypeFive;
92 *Typedef(MyTypeUnsizedFive)
98 typedef MyType[][5] MyTypeUnsizedFive;
103 * PrimitiveType(long long)
105 typedef long long MyLongLong;
110 * PrimitiveType(unsigned long)
112 typedef unsigned long MyULong;
115 *Typedef(MyULongLong)
117 * PrimitiveType(unsigned long long)
119 typedef unsigned long long MyULongLong;
124 * PrimitiveType(DOMString)
126 typedef DOMString MyString;
131 * PrimitiveType(object)
133 typedef object MyObject;
138 * PrimitiveType(Date)
145 * PrimitiveType(float)
147 typedef float MyFloat;
152 * PrimitiveType(float)
154 typedef unrestricted float MyUFloat;
159 * PrimitiveType(double)
161 typedef double MyDouble;
166 * PrimitiveType(double)
168 typedef unrestricted double MyUDouble;
173 * PrimitiveType(boolean)
175 typedef boolean MyBool;
180 * PrimitiveType(byte)
187 * PrimitiveType(octet)
189 typedef octet MyOctet;