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

Commit 3280911

Browse files
committed
fixtures: Updates for uast files in fixtures with stable sorting.
Signed-off-by: Alfredo Beaumont <[email protected]>
1 parent eb4dc92 commit 3280911

27 files changed

+1223
-1232
lines changed

fixtures/aritmeticops.py.uast

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ Module {
4343
. . . . . . . . internalRole: left
4444
. . . . . . . }
4545
. . . . . . }
46-
. . . . . . 1: Num {
46+
. . . . . . 1: Add {
47+
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Add,Arithmetic
48+
. . . . . . . TOKEN "+"
49+
. . . . . . . Properties: {
50+
. . . . . . . . internalRole: op
51+
. . . . . . . }
52+
. . . . . . }
53+
. . . . . . 2: Num {
4754
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
4855
. . . . . . . TOKEN "2"
4956
. . . . . . . StartPosition: {
@@ -60,13 +67,6 @@ Module {
6067
. . . . . . . . internalRole: right
6168
. . . . . . . }
6269
. . . . . . }
63-
. . . . . . 2: Add {
64-
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Add,Arithmetic
65-
. . . . . . . TOKEN "+"
66-
. . . . . . . Properties: {
67-
. . . . . . . . internalRole: op
68-
. . . . . . . }
69-
. . . . . . }
7070
. . . . . }
7171
. . . . }
7272
. . . }
@@ -110,7 +110,14 @@ Module {
110110
. . . . . . . . internalRole: left
111111
. . . . . . . }
112112
. . . . . . }
113-
. . . . . . 1: Num {
113+
. . . . . . 1: Sub {
114+
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Substract,Arithmetic
115+
. . . . . . . TOKEN "-"
116+
. . . . . . . Properties: {
117+
. . . . . . . . internalRole: op
118+
. . . . . . . }
119+
. . . . . . }
120+
. . . . . . 2: Num {
114121
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
115122
. . . . . . . TOKEN "2"
116123
. . . . . . . StartPosition: {
@@ -127,13 +134,6 @@ Module {
127134
. . . . . . . . internalRole: right
128135
. . . . . . . }
129136
. . . . . . }
130-
. . . . . . 2: Sub {
131-
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Substract,Arithmetic
132-
. . . . . . . TOKEN "-"
133-
. . . . . . . Properties: {
134-
. . . . . . . . internalRole: op
135-
. . . . . . . }
136-
. . . . . . }
137137
. . . . . }
138138
. . . . }
139139
. . . }
@@ -177,7 +177,14 @@ Module {
177177
. . . . . . . . internalRole: left
178178
. . . . . . . }
179179
. . . . . . }
180-
. . . . . . 1: Num {
180+
. . . . . . 1: Mult {
181+
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Multiply,Arithmetic
182+
. . . . . . . TOKEN "*"
183+
. . . . . . . Properties: {
184+
. . . . . . . . internalRole: op
185+
. . . . . . . }
186+
. . . . . . }
187+
. . . . . . 2: Num {
181188
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
182189
. . . . . . . TOKEN "2"
183190
. . . . . . . StartPosition: {
@@ -194,13 +201,6 @@ Module {
194201
. . . . . . . . internalRole: right
195202
. . . . . . . }
196203
. . . . . . }
197-
. . . . . . 2: Mult {
198-
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Multiply,Arithmetic
199-
. . . . . . . TOKEN "*"
200-
. . . . . . . Properties: {
201-
. . . . . . . . internalRole: op
202-
. . . . . . . }
203-
. . . . . . }
204204
. . . . . }
205205
. . . . }
206206
. . . }
@@ -244,7 +244,14 @@ Module {
244244
. . . . . . . . internalRole: left
245245
. . . . . . . }
246246
. . . . . . }
247-
. . . . . . 1: Num {
247+
. . . . . . 1: Div {
248+
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic
249+
. . . . . . . TOKEN "/"
250+
. . . . . . . Properties: {
251+
. . . . . . . . internalRole: op
252+
. . . . . . . }
253+
. . . . . . }
254+
. . . . . . 2: Num {
248255
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
249256
. . . . . . . TOKEN "2"
250257
. . . . . . . StartPosition: {
@@ -261,13 +268,6 @@ Module {
261268
. . . . . . . . internalRole: right
262269
. . . . . . . }
263270
. . . . . . }
264-
. . . . . . 2: Div {
265-
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic
266-
. . . . . . . TOKEN "/"
267-
. . . . . . . Properties: {
268-
. . . . . . . . internalRole: op
269-
. . . . . . . }
270-
. . . . . . }
271271
. . . . . }
272272
. . . . }
273273
. . . }
@@ -311,7 +311,14 @@ Module {
311311
. . . . . . . . internalRole: left
312312
. . . . . . . }
313313
. . . . . . }
314-
. . . . . . 1: Num {
314+
. . . . . . 1: FloorDiv {
315+
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic,Incomplete
316+
. . . . . . . TOKEN "//"
317+
. . . . . . . Properties: {
318+
. . . . . . . . internalRole: op
319+
. . . . . . . }
320+
. . . . . . }
321+
. . . . . . 2: Num {
315322
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
316323
. . . . . . . TOKEN "2"
317324
. . . . . . . StartPosition: {
@@ -328,13 +335,6 @@ Module {
328335
. . . . . . . . internalRole: right
329336
. . . . . . . }
330337
. . . . . . }
331-
. . . . . . 2: FloorDiv {
332-
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Divide,Arithmetic,Incomplete
333-
. . . . . . . TOKEN "//"
334-
. . . . . . . Properties: {
335-
. . . . . . . . internalRole: op
336-
. . . . . . . }
337-
. . . . . . }
338338
. . . . . }
339339
. . . . }
340340
. . . }
@@ -378,7 +378,14 @@ Module {
378378
. . . . . . . . internalRole: left
379379
. . . . . . . }
380380
. . . . . . }
381-
. . . . . . 1: Num {
381+
. . . . . . 1: Mod {
382+
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Modulo,Arithmetic
383+
. . . . . . . TOKEN "%%"
384+
. . . . . . . Properties: {
385+
. . . . . . . . internalRole: op
386+
. . . . . . . }
387+
. . . . . . }
388+
. . . . . . 2: Num {
382389
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
383390
. . . . . . . TOKEN "2"
384391
. . . . . . . StartPosition: {
@@ -395,13 +402,6 @@ Module {
395402
. . . . . . . . internalRole: right
396403
. . . . . . . }
397404
. . . . . . }
398-
. . . . . . 2: Mod {
399-
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Modulo,Arithmetic
400-
. . . . . . . TOKEN "%%"
401-
. . . . . . . Properties: {
402-
. . . . . . . . internalRole: op
403-
. . . . . . . }
404-
. . . . . . }
405405
. . . . . }
406406
. . . . }
407407
. . . }
@@ -445,7 +445,14 @@ Module {
445445
. . . . . . . . internalRole: left
446446
. . . . . . . }
447447
. . . . . . }
448-
. . . . . . 1: Num {
448+
. . . . . . 1: Pow {
449+
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Arithmetic,Incomplete
450+
. . . . . . . TOKEN "**"
451+
. . . . . . . Properties: {
452+
. . . . . . . . internalRole: op
453+
. . . . . . . }
454+
. . . . . . }
455+
. . . . . . 2: Num {
449456
. . . . . . . Roles: Expression,Binary,Right,Literal,Number,Expression,Primitive
450457
. . . . . . . TOKEN "2"
451458
. . . . . . . StartPosition: {
@@ -462,13 +469,6 @@ Module {
462469
. . . . . . . . internalRole: right
463470
. . . . . . . }
464471
. . . . . . }
465-
. . . . . . 2: Pow {
466-
. . . . . . . Roles: Expression,Binary,Operator,Binary,Operator,Arithmetic,Incomplete
467-
. . . . . . . TOKEN "**"
468-
. . . . . . . Properties: {
469-
. . . . . . . . internalRole: op
470-
. . . . . . . }
471-
. . . . . . }
472472
. . . . . }
473473
. . . . }
474474
. . . }

fixtures/augassign.py.uast

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ Module {
2121
. . . . internalRole: body
2222
. . . }
2323
. . . Children: {
24-
. . . . 0: Name {
24+
. . . . 0: Add {
25+
. . . . . Roles: Binary,Operator,Add,Arithmetic,Operator,Binary
26+
. . . . . TOKEN "+"
27+
. . . . . Properties: {
28+
. . . . . . internalRole: op
29+
. . . . . }
30+
. . . . }
31+
. . . . 1: Name {
2532
. . . . . Roles: Left,Identifier,Expression
2633
. . . . . TOKEN "a"
2734
. . . . . StartPosition: {
@@ -39,7 +46,7 @@ Module {
3946
. . . . . . internalRole: target
4047
. . . . . }
4148
. . . . }
42-
. . . . 1: Num {
49+
. . . . 2: Num {
4350
. . . . . Roles: Literal,Number,Expression,Primitive,Right
4451
. . . . . TOKEN "1"
4552
. . . . . StartPosition: {
@@ -56,13 +63,6 @@ Module {
5663
. . . . . . internalRole: value
5764
. . . . . }
5865
. . . . }
59-
. . . . 2: Add {
60-
. . . . . Roles: Binary,Operator,Add,Arithmetic,Operator,Binary
61-
. . . . . TOKEN "+"
62-
. . . . . Properties: {
63-
. . . . . . internalRole: op
64-
. . . . . }
65-
. . . . }
6666
. . . }
6767
. . }
6868
. . 1: AugAssign {
@@ -77,7 +77,14 @@ Module {
7777
. . . . internalRole: body
7878
. . . }
7979
. . . Children: {
80-
. . . . 0: Name {
80+
. . . . 0: Sub {
81+
. . . . . Roles: Binary,Operator,Substract,Arithmetic,Operator,Binary
82+
. . . . . TOKEN "-"
83+
. . . . . Properties: {
84+
. . . . . . internalRole: op
85+
. . . . . }
86+
. . . . }
87+
. . . . 1: Name {
8188
. . . . . Roles: Left,Identifier,Expression
8289
. . . . . TOKEN "a"
8390
. . . . . StartPosition: {
@@ -95,7 +102,7 @@ Module {
95102
. . . . . . internalRole: target
96103
. . . . . }
97104
. . . . }
98-
. . . . 1: Num {
105+
. . . . 2: Num {
99106
. . . . . Roles: Literal,Number,Expression,Primitive,Right
100107
. . . . . TOKEN "1"
101108
. . . . . StartPosition: {
@@ -112,13 +119,6 @@ Module {
112119
. . . . . . internalRole: value
113120
. . . . . }
114121
. . . . }
115-
. . . . 2: Sub {
116-
. . . . . Roles: Binary,Operator,Substract,Arithmetic,Operator,Binary
117-
. . . . . TOKEN "-"
118-
. . . . . Properties: {
119-
. . . . . . internalRole: op
120-
. . . . . }
121-
. . . . }
122122
. . . }
123123
. . }
124124
. . 2: AugAssign {
@@ -133,7 +133,14 @@ Module {
133133
. . . . internalRole: body
134134
. . . }
135135
. . . Children: {
136-
. . . . 0: Name {
136+
. . . . 0: Mult {
137+
. . . . . Roles: Binary,Operator,Multiply,Arithmetic,Operator,Binary
138+
. . . . . TOKEN "*"
139+
. . . . . Properties: {
140+
. . . . . . internalRole: op
141+
. . . . . }
142+
. . . . }
143+
. . . . 1: Name {
137144
. . . . . Roles: Left,Identifier,Expression
138145
. . . . . TOKEN "a"
139146
. . . . . StartPosition: {
@@ -151,7 +158,7 @@ Module {
151158
. . . . . . internalRole: target
152159
. . . . . }
153160
. . . . }
154-
. . . . 1: Num {
161+
. . . . 2: Num {
155162
. . . . . Roles: Literal,Number,Expression,Primitive,Right
156163
. . . . . TOKEN "1"
157164
. . . . . StartPosition: {
@@ -168,13 +175,6 @@ Module {
168175
. . . . . . internalRole: value
169176
. . . . . }
170177
. . . . }
171-
. . . . 2: Mult {
172-
. . . . . Roles: Binary,Operator,Multiply,Arithmetic,Operator,Binary
173-
. . . . . TOKEN "*"
174-
. . . . . Properties: {
175-
. . . . . . internalRole: op
176-
. . . . . }
177-
. . . . }
178178
. . . }
179179
. . }
180180
. . 3: AugAssign {
@@ -189,7 +189,14 @@ Module {
189189
. . . . internalRole: body
190190
. . . }
191191
. . . Children: {
192-
. . . . 0: Name {
192+
. . . . 0: Div {
193+
. . . . . Roles: Binary,Operator,Divide,Arithmetic,Operator,Binary
194+
. . . . . TOKEN "/"
195+
. . . . . Properties: {
196+
. . . . . . internalRole: op
197+
. . . . . }
198+
. . . . }
199+
. . . . 1: Name {
193200
. . . . . Roles: Left,Identifier,Expression
194201
. . . . . TOKEN "a"
195202
. . . . . StartPosition: {
@@ -207,7 +214,7 @@ Module {
207214
. . . . . . internalRole: target
208215
. . . . . }
209216
. . . . }
210-
. . . . 1: Num {
217+
. . . . 2: Num {
211218
. . . . . Roles: Literal,Number,Expression,Primitive,Right
212219
. . . . . TOKEN "1"
213220
. . . . . StartPosition: {
@@ -224,13 +231,6 @@ Module {
224231
. . . . . . internalRole: value
225232
. . . . . }
226233
. . . . }
227-
. . . . 2: Div {
228-
. . . . . Roles: Binary,Operator,Divide,Arithmetic,Operator,Binary
229-
. . . . . TOKEN "/"
230-
. . . . . Properties: {
231-
. . . . . . internalRole: op
232-
. . . . . }
233-
. . . . }
234234
. . . }
235235
. . }
236236
. }

0 commit comments

Comments
 (0)