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

Side by Side Diff: tools/idl_parser/test_parser/callback.idl

Issue 13498002: Add WebIDL compliant parser plus tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up IDLNode, make members private Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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. */
4
5 /* Test Callback productions
6
7 Run with --test to generate an AST and verify that all comments accurately
8 reflect the state of the Nodes.
9
10 BUILD Type(Name)
11 This comment signals that a node of type <Type> is created with the
12 name <Name>.
13
14 ERROR Error String
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.
17
18 PROP Key=Value
19 This comment signals that a property has been set on the Node such that
20 <Key> = <Value>.
21
22 TREE
23 Type(Name)
24 Type(Name)
25 Type(Name)
26 Type(Name)
27 ...
28 This comment signals that a tree of nodes matching the BUILD comment
29 symatics should exist. This is an exact match.
30 */
31
32
33 /* TREE
34 *Callback(VoidFunc)
35 * Type()
36 * PrimitiveType(void)
37 * Arguments()
38 */
39 callback VoidFunc = void();
40
41 /* ERROR Unexpected ). */
42 /* TREE
43 *Callback(VoidFuncLongErr)
44 * Type()
45 * PrimitiveType(void)
46 * Arguments()
47 * Error(Unexpected ).)
48 */
49 callback VoidFuncLongErr = void ( long );
50
51 /* TREE
52 *Callback(VoidFuncLong)
53 * Type()
54 * PrimitiveType(void)
55 * Arguments()
56 * Argument(L1)
57 * Type()
58 * PrimitiveType(long)
59 */
60 callback VoidFuncLong = void ( long L1 );
61
62 /* TREE
63 *Callback(VoidFuncLongArray)
64 * Type()
65 * PrimitiveType(void)
66 * Arguments()
67 * Argument(L1)
68 * Type()
69 * PrimitiveType(long)
70 * Array()
71 */
72 callback VoidFuncLongArray = void ( long[] L1 );
73
74 /* TREE
75 *Callback(VoidFuncLongArray5)
76 * Type()
77 * PrimitiveType(void)
78 * Arguments()
79 * Argument(L1)
80 * Type()
81 * PrimitiveType(long)
82 * Array(5)
83 */
84 callback VoidFuncLongArray5 = void ( long[5] L1 );
85
86
87 /* TREE
88 *Callback(VoidFuncLongArray54)
89 * Type()
90 * PrimitiveType(void)
91 * Arguments()
92 * Argument(L1)
93 * Type()
94 * PrimitiveType(long)
95 * Array(5)
96 * Argument(L2)
97 * Type()
98 * PrimitiveType(long long)
99 * Array(4)
100 */
101 callback VoidFuncLongArray54 = void ( long[5] L1, long long [4] L2 );
102
103
104 /* TREE
105 *Callback(VoidFuncLongIdent)
106 * Type()
107 * PrimitiveType(void)
108 * Arguments()
109 * Argument(L1)
110 * Type()
111 * PrimitiveType(long)
112 * Array(5)
113 * Argument(L2)
114 * Type()
115 * Typeref(VoidFuncLongArray)
116 */
117 callback VoidFuncLongIdent = void ( long[5] L1, VoidFuncLongArray L2 );
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698