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 Callback 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 callback VoidFunc
= void();
42 *Callback(VoidFuncLongErr)
46 * Error(Unexpected ).)
48 callback VoidFuncLongErr
= void ( long );
51 *Callback(VoidFuncLong)
59 callback VoidFuncLong
= void ( long L1
);
62 *Callback(VoidFuncLongArray)
71 callback VoidFuncLongArray
= void ( long[] L1
);
74 *Callback(VoidFuncLongArray5)
83 callback VoidFuncLongArray5
= void ( long[5] L1
);
87 *Callback(VoidFuncLongArray54)
97 * PrimitiveType(long long)
100 callback VoidFuncLongArray54
= void ( long[5] L1
, long long [4] L2
);
104 *Callback(VoidFuncLongIdent)
106 * PrimitiveType(void)
110 * PrimitiveType(long)
114 * Typeref(VoidFuncLongArray)
116 callback VoidFuncLongIdent
= void ( long[5] L1
, VoidFuncLongArray L2
);