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

Commit cfdcd2c

Browse files
author
Juanjo Alvarez
committed
Renamed functions and imports to the singular
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 7bc1963 commit cfdcd2c

File tree

79 files changed

+1072
-0
lines changed

Some content is hidden

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

79 files changed

+1072
-0
lines changed

fixtures/annotations.py.uast

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Module {
8282
. . . Properties: {
8383
. . . . internalRole: body
8484
. . . . simple: 1
85+
. . . . value: <nil>
8586
. . . }
8687
. . . Children: {
8788
. . . . 0: Name {
@@ -143,6 +144,8 @@ Module {
143144
. . . . . Roles: Function,Declaration,Incomplete,Argument
144145
. . . . . Properties: {
145146
. . . . . . internalRole: args
147+
. . . . . . kwarg: <nil>
148+
. . . . . . vararg: <nil>
146149
. . . . . }
147150
. . . . . Children: {
148151
. . . . . . 0: arg {

fixtures/assert_constant.py.uast

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Module {
2020
. . . }
2121
. . . Properties: {
2222
. . . . internalRole: body
23+
. . . . msg: <nil>
2324
. . . }
2425
. . . Children: {
2526
. . . . 0: BoolLiteral {
@@ -57,6 +58,7 @@ Module {
5758
. . . }
5859
. . . Properties: {
5960
. . . . internalRole: body
61+
. . . . msg: <nil>
6062
. . . }
6163
. . . Children: {
6264
. . . . 0: BoolLiteral {

fixtures/classdef.py.uast

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ Module {
4141
. . . . . . . . Line: 2
4242
. . . . . . . . Col: 16
4343
. . . . . . . }
44+
. . . . . . . Properties: {
45+
. . . . . . . . returns: <nil>
46+
. . . . . . . }
4447
. . . . . . . Children: {
4548
. . . . . . . . 0: arguments {
4649
. . . . . . . . . Roles: Function,Declaration,Incomplete,Argument
4750
. . . . . . . . . Properties: {
4851
. . . . . . . . . . internalRole: args
52+
. . . . . . . . . . kwarg: <nil>
53+
. . . . . . . . . . vararg: <nil>
4954
. . . . . . . . . }
5055
. . . . . . . . . Children: {
5156
. . . . . . . . . . 0: arg {
@@ -62,6 +67,7 @@ Module {
6267
. . . . . . . . . . . . Col: 21
6368
. . . . . . . . . . . }
6469
. . . . . . . . . . . Properties: {
70+
. . . . . . . . . . . . annotation: <nil>
6571
. . . . . . . . . . . . internalRole: args
6672
. . . . . . . . . . . }
6773
. . . . . . . . . . }
@@ -200,11 +206,16 @@ Module {
200206
. . . . . . . . Line: 6
201207
. . . . . . . . Col: 14
202208
. . . . . . . }
209+
. . . . . . . Properties: {
210+
. . . . . . . . returns: <nil>
211+
. . . . . . . }
203212
. . . . . . . Children: {
204213
. . . . . . . . 0: arguments {
205214
. . . . . . . . . Roles: Function,Declaration,Incomplete,Argument
206215
. . . . . . . . . Properties: {
207216
. . . . . . . . . . internalRole: args
217+
. . . . . . . . . . kwarg: <nil>
218+
. . . . . . . . . . vararg: <nil>
208219
. . . . . . . . . }
209220
. . . . . . . . . Children: {
210221
. . . . . . . . . . 0: arg {
@@ -221,6 +232,7 @@ Module {
221232
. . . . . . . . . . . . Col: 19
222233
. . . . . . . . . . . }
223234
. . . . . . . . . . . Properties: {
235+
. . . . . . . . . . . . annotation: <nil>
224236
. . . . . . . . . . . . internalRole: args
225237
. . . . . . . . . . . }
226238
. . . . . . . . . . . Children: {
@@ -256,6 +268,7 @@ Module {
256268
. . . . . . . . . . . . Col: 25
257269
. . . . . . . . . . . }
258270
. . . . . . . . . . . Properties: {
271+
. . . . . . . . . . . . annotation: <nil>
259272
. . . . . . . . . . . . internalRole: args
260273
. . . . . . . . . . . }
261274
. . . . . . . . . . }
@@ -293,11 +306,16 @@ Module {
293306
. . . . . . . . Line: 9
294307
. . . . . . . . Col: 5
295308
. . . . . . . }
309+
. . . . . . . Properties: {
310+
. . . . . . . . returns: <nil>
311+
. . . . . . . }
296312
. . . . . . . Children: {
297313
. . . . . . . . 0: arguments {
298314
. . . . . . . . . Roles: Function,Declaration,Incomplete,Argument
299315
. . . . . . . . . Properties: {
300316
. . . . . . . . . . internalRole: args
317+
. . . . . . . . . . kwarg: <nil>
318+
. . . . . . . . . . vararg: <nil>
301319
. . . . . . . . . }
302320
. . . . . . . . }
303321
. . . . . . . . 1: FunctionDef.body {
@@ -415,11 +433,16 @@ Module {
415433
. . . . . . . . Line: 13
416434
. . . . . . . . Col: 5
417435
. . . . . . . }
436+
. . . . . . . Properties: {
437+
. . . . . . . . returns: <nil>
438+
. . . . . . . }
418439
. . . . . . . Children: {
419440
. . . . . . . . 0: arguments {
420441
. . . . . . . . . Roles: Function,Declaration,Incomplete,Argument
421442
. . . . . . . . . Properties: {
422443
. . . . . . . . . . internalRole: args
444+
. . . . . . . . . . kwarg: <nil>
445+
. . . . . . . . . . vararg: <nil>
423446
. . . . . . . . . }
424447
. . . . . . . . . Children: {
425448
. . . . . . . . . . 0: arg {
@@ -436,6 +459,7 @@ Module {
436459
. . . . . . . . . . . . Col: 14
437460
. . . . . . . . . . . }
438461
. . . . . . . . . . . Properties: {
462+
. . . . . . . . . . . . annotation: <nil>
439463
. . . . . . . . . . . . internalRole: args
440464
. . . . . . . . . . . }
441465
. . . . . . . . . . . Children: {

fixtures/except.py.uast

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ Module {
8585
. . . . . . . . Line: 3
8686
. . . . . . . . Col: 9
8787
. . . . . . . }
88+
. . . . . . . Properties: {
89+
. . . . . . . . cause: <nil>
90+
. . . . . . . }
8891
. . . . . . . Children: {
8992
. . . . . . . . 0: Call {
9093
. . . . . . . . . Roles: Function,Call,Expression
@@ -311,13 +314,15 @@ Module {
311314
. . . . }
312315
. . . . 3: ExceptHandler {
313316
. . . . . Roles: Try,Catch,Statement
317+
. . . . . TOKEN "<nil>"
314318
. . . . . StartPosition: {
315319
. . . . . . Offset: 107
316320
. . . . . . Line: 6
317321
. . . . . . Col: 1
318322
. . . . . }
319323
. . . . . Properties: {
320324
. . . . . . internalRole: handlers
325+
. . . . . . type: <nil>
321326
. . . . . }
322327
. . . . . Children: {
323328
. . . . . . 0: Expr {

fixtures/functioncalls.py.uast

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ Module {
485485
. . . . . . }
486486
. . . . . . 2: keyword {
487487
. . . . . . . Roles: Function,Call,Argument,Name
488+
. . . . . . . TOKEN "<nil>"
488489
. . . . . . . Properties: {
489490
. . . . . . . . internalRole: keywords
490491
. . . . . . . }

fixtures/issue119.py.uast

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ Module {
2020
. . . }
2121
. . . Properties: {
2222
. . . . internalRole: body
23+
. . . . returns: <nil>
2324
. . . }
2425
. . . Children: {
2526
. . . . 0: arguments {
2627
. . . . . Roles: Function,Declaration,Incomplete,Argument
2728
. . . . . Properties: {
2829
. . . . . . internalRole: args
30+
. . . . . . kwarg: <nil>
31+
. . . . . . vararg: <nil>
2932
. . . . . }
3033
. . . . }
3134
. . . . 1: FunctionDef.body {

fixtures/issue30.py.uast

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Module {
2020
. . . . . Roles: Import,Pathname,Identifier
2121
. . . . . TOKEN "sys"
2222
. . . . . Properties: {
23+
. . . . . . asname: <nil>
2324
. . . . . . internalRole: names
2425
. . . . . }
2526
. . . . }

fixtures/issue58.py.uast

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ Module {
110110
. . . . . . . }
111111
. . . . . . . Properties: {
112112
. . . . . . . . internalRole: elts
113+
. . . . . . . . value: <nil>
113114
. . . . . . . }
114115
. . . . . . }
115116
. . . . . }

fixtures/issue62.py.uast

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Module {
3434
. . . . . Roles: Import,Pathname,Identifier
3535
. . . . . TOKEN "path"
3636
. . . . . Properties: {
37+
. . . . . . asname: <nil>
3738
. . . . . . internalRole: names
3839
. . . . . }
3940
. . . . }
@@ -54,6 +55,7 @@ Module {
5455
. . . . . Roles: Import,Pathname,Identifier
5556
. . . . . TOKEN "sys"
5657
. . . . . Properties: {
58+
. . . . . . asname: <nil>
5759
. . . . . . internalRole: names
5860
. . . . . }
5961
. . . . }

fixtures/issue62_b.py.uast

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Module {
3434
. . . . . Roles: Import,Pathname,Identifier
3535
. . . . . TOKEN "Counter"
3636
. . . . . Properties: {
37+
. . . . . . asname: <nil>
3738
. . . . . . internalRole: names
3839
. . . . . }
3940
. . . . }
@@ -63,6 +64,7 @@ Module {
6364
. . . . . Roles: Import,Pathname,Identifier
6465
. . . . . TOKEN "SIMPLE_IDENTIFIER"
6566
. . . . . Properties: {
67+
. . . . . . asname: <nil>
6668
. . . . . . internalRole: names
6769
. . . . . }
6870
. . . . }
@@ -108,6 +110,7 @@ Module {
108110
. . . . . Roles: Import,Pathname,Identifier
109111
. . . . . TOKEN "Repo2Base"
110112
. . . . . Properties: {
113+
. . . . . . asname: <nil>
111114
. . . . . . internalRole: names
112115
. . . . . }
113116
. . . . }
@@ -357,11 +360,16 @@ Module {
357360
. . . . . . . . Line: 17
358361
. . . . . . . . Col: 22
359362
. . . . . . . }
363+
. . . . . . . Properties: {
364+
. . . . . . . . returns: <nil>
365+
. . . . . . . }
360366
. . . . . . . Children: {
361367
. . . . . . . . 0: arguments {
362368
. . . . . . . . . Roles: Function,Declaration,Incomplete,Argument
363369
. . . . . . . . . Properties: {
364370
. . . . . . . . . . internalRole: args
371+
. . . . . . . . . . kwarg: <nil>
372+
. . . . . . . . . . vararg: <nil>
365373
. . . . . . . . . }
366374
. . . . . . . . . Children: {
367375
. . . . . . . . . . 0: arg {
@@ -378,6 +386,7 @@ Module {
378386
. . . . . . . . . . . . Col: 27
379387
. . . . . . . . . . . }
380388
. . . . . . . . . . . Properties: {
389+
. . . . . . . . . . . . annotation: <nil>
381390
. . . . . . . . . . . . internalRole: args
382391
. . . . . . . . . . . }
383392
. . . . . . . . . . . Children: {
@@ -413,6 +422,7 @@ Module {
413422
. . . . . . . . . . . . Col: 33
414423
. . . . . . . . . . . }
415424
. . . . . . . . . . . Properties: {
425+
. . . . . . . . . . . . annotation: <nil>
416426
. . . . . . . . . . . . internalRole: args
417427
. . . . . . . . . . . }
418428
. . . . . . . . . . }
@@ -430,6 +440,7 @@ Module {
430440
. . . . . . . . . . . . Col: 41
431441
. . . . . . . . . . . }
432442
. . . . . . . . . . . Properties: {
443+
. . . . . . . . . . . . annotation: <nil>
433444
. . . . . . . . . . . . internalRole: args
434445
. . . . . . . . . . . }
435446
. . . . . . . . . . }
@@ -865,11 +876,16 @@ Module {
865876
. . . . . . . . Line: 23
866877
. . . . . . . . Col: 21
867878
. . . . . . . }
879+
. . . . . . . Properties: {
880+
. . . . . . . . returns: <nil>
881+
. . . . . . . }
868882
. . . . . . . Children: {
869883
. . . . . . . . 0: arguments {
870884
. . . . . . . . . Roles: Function,Declaration,Incomplete,Argument
871885
. . . . . . . . . Properties: {
872886
. . . . . . . . . . internalRole: args
887+
. . . . . . . . . . kwarg: <nil>
888+
. . . . . . . . . . vararg: <nil>
873889
. . . . . . . . . }
874890
. . . . . . . . . Children: {
875891
. . . . . . . . . . 0: arg {
@@ -886,6 +902,7 @@ Module {
886902
. . . . . . . . . . . . Col: 26
887903
. . . . . . . . . . . }
888904
. . . . . . . . . . . Properties: {
905+
. . . . . . . . . . . . annotation: <nil>
889906
. . . . . . . . . . . . internalRole: args
890907
. . . . . . . . . . . }
891908
. . . . . . . . . . . Children: {
@@ -921,6 +938,7 @@ Module {
921938
. . . . . . . . . . . . Col: 47
922939
. . . . . . . . . . . }
923940
. . . . . . . . . . . Properties: {
941+
. . . . . . . . . . . . annotation: <nil>
924942
. . . . . . . . . . . . internalRole: args
925943
. . . . . . . . . . . }
926944
. . . . . . . . . . }

0 commit comments

Comments
 (0)