Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit f094269

Browse files
committed
tests: Update fixture's UASTs
1 parent 36a5f80 commit f094269

57 files changed

Lines changed: 1236 additions & 1236 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/annotation_type_declaration.uast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ CompilationUnit {
55
. Roles: File
66
. Children: {
77
. . 0: AnnotationTypeDeclaration {
8-
. . . Roles: TypeDeclaration,Incomplete
8+
. . . Roles: Declaration,Type,Incomplete
99
. . . Properties: {
1010
. . . . internalRole: types
1111
. . . }
1212
. . . Children: {
1313
. . . . 0: SimpleName {
14-
. . . . . Roles: SimpleIdentifier,Expression
14+
. . . . . Roles: Expression,Identifier
1515
. . . . . TOKEN "A"
1616
. . . . . StartPosition: {
1717
. . . . . . Offset: 11

tests/annotation_type_member_declaration.uast

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ CompilationUnit {
55
. Roles: File
66
. Children: {
77
. . 0: AnnotationTypeDeclaration {
8-
. . . Roles: TypeDeclaration,Incomplete
8+
. . . Roles: Declaration,Type,Incomplete
99
. . . Properties: {
1010
. . . . internalRole: types
1111
. . . }
1212
. . . Children: {
1313
. . . . 0: SimpleName {
14-
. . . . . Roles: SimpleIdentifier,Expression
14+
. . . . . Roles: Expression,Identifier
1515
. . . . . TOKEN "A"
1616
. . . . . StartPosition: {
1717
. . . . . . Offset: 11
@@ -28,13 +28,13 @@ CompilationUnit {
2828
. . . . . }
2929
. . . . }
3030
. . . . 1: AnnotationTypeMemberDeclaration {
31-
. . . . . Roles: TypeDeclarationBody,Incomplete
31+
. . . . . Roles: Body,Declaration,Type,Incomplete
3232
. . . . . Properties: {
3333
. . . . . . internalRole: bodyDeclarations
3434
. . . . . }
3535
. . . . . Children: {
3636
. . . . . . 0: PrimitiveType {
37-
. . . . . . . Roles: Incomplete
37+
. . . . . . . Roles: Type,Primitive
3838
. . . . . . . TOKEN "int"
3939
. . . . . . . StartPosition: {
4040
. . . . . . . . Offset: 17
@@ -51,7 +51,7 @@ CompilationUnit {
5151
. . . . . . . }
5252
. . . . . . }
5353
. . . . . . 1: SimpleName {
54-
. . . . . . . Roles: SimpleIdentifier,Expression
54+
. . . . . . . Roles: Expression,Identifier
5555
. . . . . . . TOKEN "a"
5656
. . . . . . . StartPosition: {
5757
. . . . . . . . Offset: 21
@@ -68,7 +68,7 @@ CompilationUnit {
6868
. . . . . . . }
6969
. . . . . . }
7070
. . . . . . 2: NumberLiteral {
71-
. . . . . . . Roles: NumberLiteral,Expression
71+
. . . . . . . Roles: Expression,Literal,Number
7272
. . . . . . . StartPosition: {
7373
. . . . . . . . Offset: 33
7474
. . . . . . . . Line: 2

tests/anonymous_class_declaration.uast

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CompilationUnit {
55
. Roles: File
66
. Children: {
77
. . 0: TypeDeclaration {
8-
. . . Roles: VisibleFromPackage,TypeDeclaration
8+
. . . Roles: Visibility,Package,Declaration,Type
99
. . . StartPosition: {
1010
. . . . Offset: 0
1111
. . . . Line: 1
@@ -22,7 +22,7 @@ CompilationUnit {
2222
. . . }
2323
. . . Children: {
2424
. . . . 0: SimpleName {
25-
. . . . . Roles: SimpleIdentifier,Expression
25+
. . . . . Roles: Expression,Identifier
2626
. . . . . TOKEN "A"
2727
. . . . . StartPosition: {
2828
. . . . . . Offset: 10
@@ -41,7 +41,7 @@ CompilationUnit {
4141
. . . }
4242
. . }
4343
. . 1: TypeDeclaration {
44-
. . . Roles: VisibleFromPackage,TypeDeclaration
44+
. . . Roles: Visibility,Package,Declaration,Type
4545
. . . StartPosition: {
4646
. . . . Offset: 14
4747
. . . . Line: 2
@@ -58,7 +58,7 @@ CompilationUnit {
5858
. . . }
5959
. . . Children: {
6060
. . . . 0: SimpleName {
61-
. . . . . Roles: SimpleIdentifier,Expression
61+
. . . . . Roles: Expression,Identifier
6262
. . . . . TOKEN "Code"
6363
. . . . . StartPosition: {
6464
. . . . . . Offset: 20
@@ -75,7 +75,7 @@ CompilationUnit {
7575
. . . . . }
7676
. . . . }
7777
. . . . 1: MethodDeclaration {
78-
. . . . . Roles: VisibleFromPackage,FunctionDeclaration
78+
. . . . . Roles: Visibility,Package,Declaration,Function
7979
. . . . . StartPosition: {
8080
. . . . . . Offset: 29
8181
. . . . . . Line: 3
@@ -92,7 +92,7 @@ CompilationUnit {
9292
. . . . . }
9393
. . . . . Children: {
9494
. . . . . . 0: PrimitiveType {
95-
. . . . . . . Roles: Incomplete
95+
. . . . . . . Roles: Type,Primitive
9696
. . . . . . . TOKEN "void"
9797
. . . . . . . StartPosition: {
9898
. . . . . . . . Offset: 29
@@ -109,7 +109,7 @@ CompilationUnit {
109109
. . . . . . . }
110110
. . . . . . }
111111
. . . . . . 1: SimpleName {
112-
. . . . . . . Roles: SimpleIdentifier,Expression,FunctionDeclarationName
112+
. . . . . . . Roles: Expression,Identifier,Function,Name
113113
. . . . . . . TOKEN "code"
114114
. . . . . . . StartPosition: {
115115
. . . . . . . . Offset: 34
@@ -126,7 +126,7 @@ CompilationUnit {
126126
. . . . . . . }
127127
. . . . . . }
128128
. . . . . . 2: Block {
129-
. . . . . . . Roles: FunctionDeclarationBody,BlockScope,Block,Statement
129+
. . . . . . . Roles: Function,Body,Statement,Block,Scope
130130
. . . . . . . Properties: {
131131
. . . . . . . . internalRole: body
132132
. . . . . . . }
@@ -138,19 +138,19 @@ CompilationUnit {
138138
. . . . . . . . . }
139139
. . . . . . . . . Children: {
140140
. . . . . . . . . . 0: ClassInstanceCreation {
141-
. . . . . . . . . . . Roles: Call,Expression,Incomplete
141+
. . . . . . . . . . . Roles: Expression,Call,Instance
142142
. . . . . . . . . . . Properties: {
143143
. . . . . . . . . . . . internalRole: expression
144144
. . . . . . . . . . . }
145145
. . . . . . . . . . . Children: {
146146
. . . . . . . . . . . . 0: SimpleType {
147-
. . . . . . . . . . . . . Roles: CallCallee,Incomplete
147+
. . . . . . . . . . . . . Roles: Call,Callee,Type
148148
. . . . . . . . . . . . . Properties: {
149149
. . . . . . . . . . . . . . internalRole: type
150150
. . . . . . . . . . . . . }
151151
. . . . . . . . . . . . . Children: {
152152
. . . . . . . . . . . . . . 0: SimpleName {
153-
. . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
153+
. . . . . . . . . . . . . . . Roles: Expression,Identifier
154154
. . . . . . . . . . . . . . . TOKEN "A"
155155
. . . . . . . . . . . . . . . StartPosition: {
156156
. . . . . . . . . . . . . . . . Offset: 51
@@ -169,13 +169,13 @@ CompilationUnit {
169169
. . . . . . . . . . . . . }
170170
. . . . . . . . . . . . }
171171
. . . . . . . . . . . . 1: AnonymousClassDeclaration {
172-
. . . . . . . . . . . . . Roles: TypeDeclaration,Expression,Incomplete
172+
. . . . . . . . . . . . . Roles: Expression,Declaration,Type,Incomplete
173173
. . . . . . . . . . . . . Properties: {
174174
. . . . . . . . . . . . . . internalRole: anonymousClassDeclaration
175175
. . . . . . . . . . . . . }
176176
. . . . . . . . . . . . . Children: {
177177
. . . . . . . . . . . . . . 0: MethodDeclaration {
178-
. . . . . . . . . . . . . . . Roles: VisibleFromWorld,TypeDeclarationBody,FunctionDeclaration
178+
. . . . . . . . . . . . . . . Roles: Visibility,World,Body,Declaration,Function
179179
. . . . . . . . . . . . . . . StartPosition: {
180180
. . . . . . . . . . . . . . . . Offset: 57
181181
. . . . . . . . . . . . . . . . Line: 4
@@ -192,7 +192,7 @@ CompilationUnit {
192192
. . . . . . . . . . . . . . . }
193193
. . . . . . . . . . . . . . . Children: {
194194
. . . . . . . . . . . . . . . . 0: Modifier {
195-
. . . . . . . . . . . . . . . . . Roles: VisibleFromWorld
195+
. . . . . . . . . . . . . . . . . Roles: Visibility,World
196196
. . . . . . . . . . . . . . . . . TOKEN "public"
197197
. . . . . . . . . . . . . . . . . StartPosition: {
198198
. . . . . . . . . . . . . . . . . . Offset: 57
@@ -209,7 +209,7 @@ CompilationUnit {
209209
. . . . . . . . . . . . . . . . . }
210210
. . . . . . . . . . . . . . . . }
211211
. . . . . . . . . . . . . . . . 1: PrimitiveType {
212-
. . . . . . . . . . . . . . . . . Roles: Incomplete
212+
. . . . . . . . . . . . . . . . . Roles: Type,Primitive
213213
. . . . . . . . . . . . . . . . . TOKEN "void"
214214
. . . . . . . . . . . . . . . . . StartPosition: {
215215
. . . . . . . . . . . . . . . . . . Offset: 64
@@ -226,7 +226,7 @@ CompilationUnit {
226226
. . . . . . . . . . . . . . . . . }
227227
. . . . . . . . . . . . . . . . }
228228
. . . . . . . . . . . . . . . . 2: SimpleName {
229-
. . . . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression,FunctionDeclarationName
229+
. . . . . . . . . . . . . . . . . Roles: Expression,Identifier,Function,Name
230230
. . . . . . . . . . . . . . . . . TOKEN "a"
231231
. . . . . . . . . . . . . . . . . StartPosition: {
232232
. . . . . . . . . . . . . . . . . . Offset: 69
@@ -243,7 +243,7 @@ CompilationUnit {
243243
. . . . . . . . . . . . . . . . . }
244244
. . . . . . . . . . . . . . . . }
245245
. . . . . . . . . . . . . . . . 3: Block {
246-
. . . . . . . . . . . . . . . . . Roles: FunctionDeclarationBody,BlockScope,Block,Statement
246+
. . . . . . . . . . . . . . . . . Roles: Function,Body,Statement,Block,Scope
247247
. . . . . . . . . . . . . . . . . Properties: {
248248
. . . . . . . . . . . . . . . . . . internalRole: body
249249
. . . . . . . . . . . . . . . . . }

tests/array.uast

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CompilationUnit {
55
. Roles: File
66
. Children: {
77
. . 0: TypeDeclaration {
8-
. . . Roles: VisibleFromPackage,TypeDeclaration
8+
. . . Roles: Visibility,Package,Declaration,Type
99
. . . StartPosition: {
1010
. . . . Offset: 0
1111
. . . . Line: 1
@@ -22,7 +22,7 @@ CompilationUnit {
2222
. . . }
2323
. . . Children: {
2424
. . . . 0: SimpleName {
25-
. . . . . Roles: SimpleIdentifier,Expression
25+
. . . . . Roles: Expression,Identifier
2626
. . . . . TOKEN "Code"
2727
. . . . . StartPosition: {
2828
. . . . . . Offset: 6
@@ -39,7 +39,7 @@ CompilationUnit {
3939
. . . . . }
4040
. . . . }
4141
. . . . 1: MethodDeclaration {
42-
. . . . . Roles: VisibleFromPackage,FunctionDeclaration
42+
. . . . . Roles: Visibility,Package,Declaration,Function
4343
. . . . . StartPosition: {
4444
. . . . . . Offset: 14
4545
. . . . . . Line: 2
@@ -56,7 +56,7 @@ CompilationUnit {
5656
. . . . . }
5757
. . . . . Children: {
5858
. . . . . . 0: PrimitiveType {
59-
. . . . . . . Roles: Incomplete
59+
. . . . . . . Roles: Type,Primitive
6060
. . . . . . . TOKEN "void"
6161
. . . . . . . StartPosition: {
6262
. . . . . . . . Offset: 14
@@ -73,7 +73,7 @@ CompilationUnit {
7373
. . . . . . . }
7474
. . . . . . }
7575
. . . . . . 1: SimpleName {
76-
. . . . . . . Roles: SimpleIdentifier,Expression,FunctionDeclarationName
76+
. . . . . . . Roles: Expression,Identifier,Function,Name
7777
. . . . . . . TOKEN "code"
7878
. . . . . . . StartPosition: {
7979
. . . . . . . . Offset: 19
@@ -90,25 +90,25 @@ CompilationUnit {
9090
. . . . . . . }
9191
. . . . . . }
9292
. . . . . . 2: Block {
93-
. . . . . . . Roles: FunctionDeclarationBody,BlockScope,Block,Statement
93+
. . . . . . . Roles: Function,Body,Statement,Block,Scope
9494
. . . . . . . Properties: {
9595
. . . . . . . . internalRole: body
9696
. . . . . . . }
9797
. . . . . . . Children: {
9898
. . . . . . . . 0: VariableDeclarationStatement {
99-
. . . . . . . . . Roles: Statement,Incomplete
99+
. . . . . . . . . Roles: Statement,Declaration,Incomplete
100100
. . . . . . . . . Properties: {
101101
. . . . . . . . . . internalRole: statements
102102
. . . . . . . . . }
103103
. . . . . . . . . Children: {
104104
. . . . . . . . . . 0: ArrayType {
105-
. . . . . . . . . . . Roles: Incomplete
105+
. . . . . . . . . . . Roles: Type,Primitive,List
106106
. . . . . . . . . . . Properties: {
107107
. . . . . . . . . . . . internalRole: type
108108
. . . . . . . . . . . }
109109
. . . . . . . . . . . Children: {
110110
. . . . . . . . . . . . 0: PrimitiveType {
111-
. . . . . . . . . . . . . Roles: Incomplete
111+
. . . . . . . . . . . . . Roles: Type,Primitive
112112
. . . . . . . . . . . . . TOKEN "int"
113113
. . . . . . . . . . . . . StartPosition: {
114114
. . . . . . . . . . . . . . Offset: 32
@@ -125,21 +125,21 @@ CompilationUnit {
125125
. . . . . . . . . . . . . }
126126
. . . . . . . . . . . . }
127127
. . . . . . . . . . . . 1: Dimension {
128-
. . . . . . . . . . . . . Roles: Incomplete
128+
. . . . . . . . . . . . . Roles: Type,Incomplete
129129
. . . . . . . . . . . . . Properties: {
130130
. . . . . . . . . . . . . . internalRole: dimensions
131131
. . . . . . . . . . . . . }
132132
. . . . . . . . . . . . }
133133
. . . . . . . . . . . }
134134
. . . . . . . . . . }
135135
. . . . . . . . . . 1: VariableDeclarationFragment {
136-
. . . . . . . . . . . Roles: Incomplete
136+
. . . . . . . . . . . Roles: Declaration,Incomplete
137137
. . . . . . . . . . . Properties: {
138138
. . . . . . . . . . . . internalRole: fragments
139139
. . . . . . . . . . . }
140140
. . . . . . . . . . . Children: {
141141
. . . . . . . . . . . . 0: SimpleName {
142-
. . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
142+
. . . . . . . . . . . . . Roles: Expression,Identifier
143143
. . . . . . . . . . . . . TOKEN "a"
144144
. . . . . . . . . . . . . StartPosition: {
145145
. . . . . . . . . . . . . . Offset: 38
@@ -162,13 +162,13 @@ CompilationUnit {
162162
. . . . . . . . . . . . . }
163163
. . . . . . . . . . . . . Children: {
164164
. . . . . . . . . . . . . . 0: ArrayType {
165-
. . . . . . . . . . . . . . . Roles: Incomplete
165+
. . . . . . . . . . . . . . . Roles: Type,Primitive,List
166166
. . . . . . . . . . . . . . . Properties: {
167167
. . . . . . . . . . . . . . . . internalRole: type
168168
. . . . . . . . . . . . . . . }
169169
. . . . . . . . . . . . . . . Children: {
170170
. . . . . . . . . . . . . . . . 0: PrimitiveType {
171-
. . . . . . . . . . . . . . . . . Roles: Incomplete
171+
. . . . . . . . . . . . . . . . . Roles: Type,Primitive
172172
. . . . . . . . . . . . . . . . . TOKEN "int"
173173
. . . . . . . . . . . . . . . . . StartPosition: {
174174
. . . . . . . . . . . . . . . . . . Offset: 46
@@ -185,15 +185,15 @@ CompilationUnit {
185185
. . . . . . . . . . . . . . . . . }
186186
. . . . . . . . . . . . . . . . }
187187
. . . . . . . . . . . . . . . . 1: Dimension {
188-
. . . . . . . . . . . . . . . . . Roles: Incomplete
188+
. . . . . . . . . . . . . . . . . Roles: Type,Incomplete
189189
. . . . . . . . . . . . . . . . . Properties: {
190190
. . . . . . . . . . . . . . . . . . internalRole: dimensions
191191
. . . . . . . . . . . . . . . . . }
192192
. . . . . . . . . . . . . . . . }
193193
. . . . . . . . . . . . . . . }
194194
. . . . . . . . . . . . . . }
195195
. . . . . . . . . . . . . . 1: NumberLiteral {
196-
. . . . . . . . . . . . . . . Roles: NumberLiteral,Expression
196+
. . . . . . . . . . . . . . . Roles: Expression,Literal,Number
197197
. . . . . . . . . . . . . . . StartPosition: {
198198
. . . . . . . . . . . . . . . . Offset: 50
199199
. . . . . . . . . . . . . . . . Line: 3
@@ -216,13 +216,13 @@ CompilationUnit {
216216
. . . . . . . . . }
217217
. . . . . . . . }
218218
. . . . . . . . 1: VariableDeclarationStatement {
219-
. . . . . . . . . Roles: Statement,Incomplete
219+
. . . . . . . . . Roles: Statement,Declaration,Incomplete
220220
. . . . . . . . . Properties: {
221221
. . . . . . . . . . internalRole: statements
222222
. . . . . . . . . }
223223
. . . . . . . . . Children: {
224224
. . . . . . . . . . 0: PrimitiveType {
225-
. . . . . . . . . . . Roles: Incomplete
225+
. . . . . . . . . . . Roles: Type,Primitive
226226
. . . . . . . . . . . TOKEN "int"
227227
. . . . . . . . . . . StartPosition: {
228228
. . . . . . . . . . . . Offset: 58
@@ -239,13 +239,13 @@ CompilationUnit {
239239
. . . . . . . . . . . }
240240
. . . . . . . . . . }
241241
. . . . . . . . . . 1: VariableDeclarationFragment {
242-
. . . . . . . . . . . Roles: Incomplete
242+
. . . . . . . . . . . Roles: Declaration,Incomplete
243243
. . . . . . . . . . . Properties: {
244244
. . . . . . . . . . . . internalRole: fragments
245245
. . . . . . . . . . . }
246246
. . . . . . . . . . . Children: {
247247
. . . . . . . . . . . . 0: SimpleName {
248-
. . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
248+
. . . . . . . . . . . . . Roles: Expression,Identifier
249249
. . . . . . . . . . . . . TOKEN "b"
250250
. . . . . . . . . . . . . StartPosition: {
251251
. . . . . . . . . . . . . . Offset: 62
@@ -268,7 +268,7 @@ CompilationUnit {
268268
. . . . . . . . . . . . . }
269269
. . . . . . . . . . . . . Children: {
270270
. . . . . . . . . . . . . . 0: SimpleName {
271-
. . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
271+
. . . . . . . . . . . . . . . Roles: Expression,Identifier
272272
. . . . . . . . . . . . . . . TOKEN "a"
273273
. . . . . . . . . . . . . . . StartPosition: {
274274
. . . . . . . . . . . . . . . . Offset: 66
@@ -285,7 +285,7 @@ CompilationUnit {
285285
. . . . . . . . . . . . . . . }
286286
. . . . . . . . . . . . . . }
287287
. . . . . . . . . . . . . . 1: NumberLiteral {
288-
. . . . . . . . . . . . . . . Roles: NumberLiteral,Expression
288+
. . . . . . . . . . . . . . . Roles: Expression,Literal,Number
289289
. . . . . . . . . . . . . . . StartPosition: {
290290
. . . . . . . . . . . . . . . . Offset: 68
291291
. . . . . . . . . . . . . . . . Line: 4

0 commit comments

Comments
 (0)