@@ -143,19 +143,23 @@ int foo = 0;
143143// class
144144// name.class
145145// statement.class
146+ // type.class
146147class Foo {}
147148
148149// class
149150// name.class
150151// statement.class
152+ // type.class
151153@bar
152154class Foo {}
153155
154156// interior.class
155157// statement.iteration.class
158+ // namedFunction.iteration.class
156159// name.iteration.class
157160// value.iteration.class
158161// type.iteration.class
162+ // class.iteration.class
159163class Foo { }
160164
161165// functionCall
@@ -169,6 +173,15 @@ foo();
169173// argumentList.actual.singleLine
170174foo(aaa, bbb);
171175
176+ // namedFunction
177+ // name.function
178+ // statement.function
179+ // argumentList.formal.empty
180+ void bar() {}
181+
182+ // type.return
183+ int bar() {}
184+
172185// argument.formal.singleLine
173186// argument.formal.iteration
174187// argumentList.formal.singleLine
@@ -178,27 +191,79 @@ foo(aaa, bbb);
178191// type.argument.formal.iteration
179192void bar(int aaa, int bbb) {}
180193
181- // argumentList.formal.multiLine
194+ // argument.actual.multiLine
195+ // argumentList.actual.multiLine
196+ foo(
197+ aaa,
198+ bbb
199+ );
200+
182201// argument.formal.multiLine
183202// argument.formal.iteration
203+ // argumentList.formal.multiLine
184204void bar(
185205 int aaa,
186206 int bbb
187207) {}
188208
209+ // namedFunction.method
210+ // statement.method
211+ // name.method
212+ // argumentList.formal.method.empty
213+ class Foo {
214+ void bar () {}
215+ }
216+
217+ // namedFunction.constructor
218+ // statement.constructor
219+ // name.constructor
220+ // argumentList.formal.constructor.empty
221+ class Foo {
222+ Foo () {}
223+ }
224+
189225// statement.field.class
190226// name.field.class
227+ // value.field.class
228+ // type.field.class
191229class Foo {
192230 int bar;
193231 int baz = 0 ;
194232 @An int bongo = 0 ;
195233}
196234
235+ // string.singleLine
236+ // textFragment.string.singleLine
237+ " Hello world"
238+
239+ // string.multiLine
240+ // textFragment.string.multiLine
241+ " " "
242+ Hello
243+ world
244+ " " "
245+
246+ // statement.while
247+ // condition.while
248+ while (true ) {}
249+
197250// interior.while
198251while (true ) { }
199252
253+ // condition.ternary
254+ // branch.ternary
255+ // branch.ternary.iteration
256+ true ? 0 : 1 ;
257+
258+ // branch.if.else
259+ if (true ) {}
260+ else {}
261+
262+ // ifStatement
200263// statement.if
264+ // condition.if
201265// branch.if.elif.else
266+ // branch.if.iteration
202267if (true ) {}
203268else if (false ) {}
204269else {}
0 commit comments