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

Commit 6b6294f

Browse files
authored
Merge pull request #54 from juanjux/fix/qualified_identifiers
Several fixesFixed double CallCallee, switched Call, CallCallee roles and Qualifie…
2 parents f8cf967 + d3cdfe0 commit 6b6294f

19 files changed

+74
-72
lines changed

ANNOTATION.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@
7373
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Lambda'\]/\*\[@InternalType='arguments'\]/\*\[@internalRole\]\[@internalRole='vararg'\] | FunctionDeclarationArgument, FunctionDeclarationVarArgsList, FunctionDeclarationArgumentName |
7474
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Lambda'\]/\*\[@InternalType='arguments'\]/\*\[@internalRole\]\[@internalRole='kwarg'\] | FunctionDeclarationArgument, FunctionDeclarationVarArgsList, FunctionDeclarationArgumentName, Incomplete |
7575
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Lambda'\]/\*\[@InternalType='arguments'\]/\*\[@InternalType='arguments\.defaults'\] | FunctionDeclarationArgumentDefaultValue |
76+
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Attribute'\] | SimpleIdentifier, Expression |
77+
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Attribute'\]/\*\[@InternalType='Name'\] | QualifiedIdentifier |
7678
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\] | Call, Expression |
7779
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='args'\] | CallPositionalArgument |
7880
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='keywords'\] | CallNamedArgument |
7981
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='keywords'\]/\*\[@internalRole\]\[@internalRole='value'\] | CallNamedArgumentValue |
80-
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='func'\] | CallCallee |
81-
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='func'\] | CallCallee |
82-
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='func'\]/\*\[@internalRole\]\[@internalRole='id'\] | CallReceiver, SimpleIdentifier |
82+
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='func'\]/self::\*\[@InternalType='Name'\] | Call |
83+
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='func'\]/self::\*\[@InternalType='Attribute'\] | CallCallee |
84+
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Call'\]/\*\[@internalRole\]\[@internalRole='func'\]/self::\*\[@InternalType='Attribute'\]/\*\[@internalRole\]\[@internalRole='value'\] | CallReceiver |
8385
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Assign'\] | Assignment, Expression |
8486
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Assign'\]/\*\[@internalRole\]\[@internalRole='targets'\] | AssignmentVariable |
8587
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Assign'\]/\*\[@internalRole\]\[@internalRole='value'\] | AssignmentValue |
@@ -90,7 +92,6 @@
9092
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Expression'\] | Expression |
9193
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Expr'\] | Expression |
9294
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Name'\] | SimpleIdentifier, Expression |
93-
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='Attribute'\] | QualifiedIdentifier, Expression |
9495
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='SameLineNoops'\] | Comment |
9596
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='PreviousNoops'\] | Whitespace |
9697
| /self::\*\[@InternalType='Module'\]//\*\[@InternalType='PreviousNoops'\]/\*\[@internalRole\]\[@internalRole='lines'\] | Comment |

driver/normalizer/annotation.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,19 @@ var AnnotationRules = On(Any).Self(
189189
),
190190
),
191191

192+
On(HasInternalType(pyast.Attribute)).Roles(SimpleIdentifier, Expression).Children(
193+
On(HasInternalType(pyast.Name)).Roles(QualifiedIdentifier)),
194+
192195
On(HasInternalType(pyast.Call)).Roles(Call, Expression).Children(
193196
On(HasInternalRole("args")).Roles(CallPositionalArgument),
194197
On(HasInternalRole("keywords")).Roles(CallNamedArgument).Children(
195198
On(HasInternalRole("value")).Roles(CallNamedArgumentValue),
196199
),
197-
On(HasInternalRole("func")).Self(On(HasInternalRole("id"))).Roles(CallCallee),
198-
On(HasInternalRole("func")).Self(On(HasInternalRole("attr"))).Roles(CallCallee),
199-
On(HasInternalRole("func")).Self(On(HasInternalType(pyast.Attribute))).Children(
200-
On(HasInternalRole("id")).Roles(CallReceiver, SimpleIdentifier),
201-
),
200+
On(HasInternalRole("func")).Self(
201+
On(HasInternalType(pyast.Name)).Roles(Call),
202+
On(HasInternalType(pyast.Attribute)).Roles(CallCallee).Children(
203+
On(HasInternalRole("value")).Roles(CallReceiver),
204+
)),
202205
),
203206

204207
//
@@ -220,8 +223,6 @@ var AnnotationRules = On(Any).Self(
220223
On(HasInternalType(pyast.Expression)).Roles(Expression),
221224
On(HasInternalType(pyast.Expr)).Roles(Expression),
222225
On(HasInternalType(pyast.Name)).Roles(SimpleIdentifier, Expression),
223-
On(HasInternalType(pyast.Attribute)).Roles(QualifiedIdentifier, Expression),
224-
225226
// Comments and non significative whitespace
226227
On(HasInternalType(pyast.SameLineNoops)).Roles(Comment),
227228
On(HasInternalType(pyast.PreviousNoops)).Roles(Whitespace).Children(

tests/classdef.py.uast

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Module {
113113
. . . . . . . . . . . }
114114
. . . . . . . . . . . Children: {
115115
. . . . . . . . . . . . 0: Attribute {
116-
. . . . . . . . . . . . . Roles: AssignmentVariable,QualifiedIdentifier,Expression
116+
. . . . . . . . . . . . . Roles: SimpleIdentifier,Expression,AssignmentVariable
117117
. . . . . . . . . . . . . TOKEN "_a"
118118
. . . . . . . . . . . . . StartPosition: {
119119
. . . . . . . . . . . . . . Offset: 51
@@ -131,7 +131,7 @@ Module {
131131
. . . . . . . . . . . . . }
132132
. . . . . . . . . . . . . Children: {
133133
. . . . . . . . . . . . . . 0: Name {
134-
. . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
134+
. . . . . . . . . . . . . . . Roles: QualifiedIdentifier,SimpleIdentifier,Expression
135135
. . . . . . . . . . . . . . . TOKEN "self"
136136
. . . . . . . . . . . . . . . StartPosition: {
137137
. . . . . . . . . . . . . . . . Offset: 46
@@ -399,7 +399,7 @@ Module {
399399
. . . . . . . . . . . }
400400
. . . . . . . . . . . Children: {
401401
. . . . . . . . . . . . 0: Attribute {
402-
. . . . . . . . . . . . . Roles: QualifiedIdentifier,Expression
402+
. . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
403403
. . . . . . . . . . . . . TOKEN "_a"
404404
. . . . . . . . . . . . . StartPosition: {
405405
. . . . . . . . . . . . . . Offset: 0
@@ -417,7 +417,7 @@ Module {
417417
. . . . . . . . . . . . . }
418418
. . . . . . . . . . . . . Children: {
419419
. . . . . . . . . . . . . . 0: Name {
420-
. . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
420+
. . . . . . . . . . . . . . . Roles: QualifiedIdentifier,SimpleIdentifier,Expression
421421
. . . . . . . . . . . . . . . TOKEN "self"
422422
. . . . . . . . . . . . . . . StartPosition: {
423423
. . . . . . . . . . . . . . . . Offset: 0
@@ -608,7 +608,7 @@ Module {
608608
. . . . . . . . . . . }
609609
. . . . . . . . . . . Children: {
610610
. . . . . . . . . . . . 0: Attribute {
611-
. . . . . . . . . . . . . Roles: AssignmentVariable,QualifiedIdentifier,Expression
611+
. . . . . . . . . . . . . Roles: SimpleIdentifier,Expression,AssignmentVariable
612612
. . . . . . . . . . . . . TOKEN "_a"
613613
. . . . . . . . . . . . . StartPosition: {
614614
. . . . . . . . . . . . . . Offset: 0
@@ -626,7 +626,7 @@ Module {
626626
. . . . . . . . . . . . . }
627627
. . . . . . . . . . . . . Children: {
628628
. . . . . . . . . . . . . . 0: Name {
629-
. . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
629+
. . . . . . . . . . . . . . . Roles: QualifiedIdentifier,SimpleIdentifier,Expression
630630
. . . . . . . . . . . . . . . TOKEN "self"
631631
. . . . . . . . . . . . . . . StartPosition: {
632632
. . . . . . . . . . . . . . . . Offset: 0
@@ -674,7 +674,7 @@ Module {
674674
. . . . . . . . . }
675675
. . . . . . . . . Children: {
676676
. . . . . . . . . . 0: Attribute {
677-
. . . . . . . . . . . Roles: QualifiedIdentifier,Expression
677+
. . . . . . . . . . . Roles: SimpleIdentifier,Expression
678678
. . . . . . . . . . . TOKEN "setter"
679679
. . . . . . . . . . . StartPosition: {
680680
. . . . . . . . . . . . Offset: 0
@@ -691,7 +691,7 @@ Module {
691691
. . . . . . . . . . . }
692692
. . . . . . . . . . . Children: {
693693
. . . . . . . . . . . . 0: Name {
694-
. . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
694+
. . . . . . . . . . . . . Roles: QualifiedIdentifier,SimpleIdentifier,Expression
695695
. . . . . . . . . . . . . TOKEN "a"
696696
. . . . . . . . . . . . . StartPosition: {
697697
. . . . . . . . . . . . . . Offset: 0
@@ -802,7 +802,7 @@ Module {
802802
. . . . . }
803803
. . . . . Children: {
804804
. . . . . . 0: Name {
805-
. . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
805+
. . . . . . . Roles: Call,SimpleIdentifier,Expression
806806
. . . . . . . TOKEN "Animal"
807807
. . . . . . . StartPosition: {
808808
. . . . . . . . Offset: 0
@@ -840,7 +840,7 @@ Module {
840840
. . . }
841841
. . . Children: {
842842
. . . . 0: Attribute {
843-
. . . . . Roles: AssignmentVariable,QualifiedIdentifier,Expression
843+
. . . . . Roles: SimpleIdentifier,Expression,AssignmentVariable
844844
. . . . . TOKEN "b"
845845
. . . . . StartPosition: {
846846
. . . . . . Offset: 0
@@ -858,7 +858,7 @@ Module {
858858
. . . . . }
859859
. . . . . Children: {
860860
. . . . . . 0: Name {
861-
. . . . . . . Roles: SimpleIdentifier,Expression
861+
. . . . . . . Roles: QualifiedIdentifier,SimpleIdentifier,Expression
862862
. . . . . . . TOKEN "a"
863863
. . . . . . . StartPosition: {
864864
. . . . . . . . Offset: 0
@@ -914,7 +914,7 @@ Module {
914914
. . . }
915915
. . . Children: {
916916
. . . . 0: Attribute {
917-
. . . . . Roles: AssignmentVariable,QualifiedIdentifier,Expression
917+
. . . . . Roles: SimpleIdentifier,Expression,AssignmentVariable
918918
. . . . . TOKEN "g"
919919
. . . . . StartPosition: {
920920
. . . . . . Offset: 0
@@ -932,7 +932,7 @@ Module {
932932
. . . . . }
933933
. . . . . Children: {
934934
. . . . . . 0: Attribute {
935-
. . . . . . . Roles: QualifiedIdentifier,Expression
935+
. . . . . . . Roles: SimpleIdentifier,Expression
936936
. . . . . . . TOKEN "f"
937937
. . . . . . . StartPosition: {
938938
. . . . . . . . Offset: 0
@@ -950,7 +950,7 @@ Module {
950950
. . . . . . . }
951951
. . . . . . . Children: {
952952
. . . . . . . . 0: Attribute {
953-
. . . . . . . . . Roles: QualifiedIdentifier,Expression
953+
. . . . . . . . . Roles: SimpleIdentifier,Expression
954954
. . . . . . . . . TOKEN "e"
955955
. . . . . . . . . StartPosition: {
956956
. . . . . . . . . . Offset: 0
@@ -968,7 +968,7 @@ Module {
968968
. . . . . . . . . }
969969
. . . . . . . . . Children: {
970970
. . . . . . . . . . 0: Attribute {
971-
. . . . . . . . . . . Roles: QualifiedIdentifier,Expression
971+
. . . . . . . . . . . Roles: SimpleIdentifier,Expression
972972
. . . . . . . . . . . TOKEN "d"
973973
. . . . . . . . . . . StartPosition: {
974974
. . . . . . . . . . . . Offset: 0
@@ -986,7 +986,7 @@ Module {
986986
. . . . . . . . . . . }
987987
. . . . . . . . . . . Children: {
988988
. . . . . . . . . . . . 0: Attribute {
989-
. . . . . . . . . . . . . Roles: QualifiedIdentifier,Expression
989+
. . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
990990
. . . . . . . . . . . . . TOKEN "c"
991991
. . . . . . . . . . . . . StartPosition: {
992992
. . . . . . . . . . . . . . Offset: 0
@@ -1004,7 +1004,7 @@ Module {
10041004
. . . . . . . . . . . . . }
10051005
. . . . . . . . . . . . . Children: {
10061006
. . . . . . . . . . . . . . 0: Attribute {
1007-
. . . . . . . . . . . . . . . Roles: QualifiedIdentifier,Expression
1007+
. . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
10081008
. . . . . . . . . . . . . . . TOKEN "b"
10091009
. . . . . . . . . . . . . . . StartPosition: {
10101010
. . . . . . . . . . . . . . . . Offset: 0
@@ -1022,7 +1022,7 @@ Module {
10221022
. . . . . . . . . . . . . . . }
10231023
. . . . . . . . . . . . . . . Children: {
10241024
. . . . . . . . . . . . . . . . 0: Name {
1025-
. . . . . . . . . . . . . . . . . Roles: SimpleIdentifier,Expression
1025+
. . . . . . . . . . . . . . . . . Roles: QualifiedIdentifier,SimpleIdentifier,Expression
10261026
. . . . . . . . . . . . . . . . . TOKEN "a"
10271027
. . . . . . . . . . . . . . . . . StartPosition: {
10281028
. . . . . . . . . . . . . . . . . . Offset: 0
@@ -1122,7 +1122,7 @@ Module {
11221122
. . . . . . . }
11231123
. . . . . . }
11241124
. . . . . . 1: Attribute {
1125-
. . . . . . . Roles: CallCallee,CallCallee,QualifiedIdentifier,Expression
1125+
. . . . . . . Roles: SimpleIdentifier,Expression,CallCallee
11261126
. . . . . . . TOKEN "method"
11271127
. . . . . . . StartPosition: {
11281128
. . . . . . . . Offset: 0
@@ -1140,7 +1140,7 @@ Module {
11401140
. . . . . . . }
11411141
. . . . . . . Children: {
11421142
. . . . . . . . 0: Name {
1143-
. . . . . . . . . Roles: SimpleIdentifier,Expression
1143+
. . . . . . . . . Roles: QualifiedIdentifier,CallReceiver,SimpleIdentifier,Expression
11441144
. . . . . . . . . TOKEN "a"
11451145
. . . . . . . . . StartPosition: {
11461146
. . . . . . . . . . Offset: 0

tests/except.py.uast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Module {
137137
. . . . . . . . . . . }
138138
. . . . . . . . . . }
139139
. . . . . . . . . . 1: Name {
140-
. . . . . . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
140+
. . . . . . . . . . . Roles: Call,SimpleIdentifier,Expression
141141
. . . . . . . . . . . TOKEN "Exception"
142142
. . . . . . . . . . . StartPosition: {
143143
. . . . . . . . . . . . Offset: 25
@@ -213,7 +213,7 @@ Module {
213213
. . . . . . . . . . . }
214214
. . . . . . . . . . }
215215
. . . . . . . . . . 1: Name {
216-
. . . . . . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
216+
. . . . . . . . . . . Roles: Call,SimpleIdentifier,Expression
217217
. . . . . . . . . . . TOKEN "print"
218218
. . . . . . . . . . . StartPosition: {
219219
. . . . . . . . . . . . Offset: 147
@@ -306,7 +306,7 @@ Module {
306306
. . . . . . . . . . . . . }
307307
. . . . . . . . . . . . }
308308
. . . . . . . . . . . . 1: Name {
309-
. . . . . . . . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
309+
. . . . . . . . . . . . . Roles: Call,SimpleIdentifier,Expression
310310
. . . . . . . . . . . . . TOKEN "print"
311311
. . . . . . . . . . . . . StartPosition: {
312312
. . . . . . . . . . . . . . Offset: 76
@@ -414,7 +414,7 @@ Module {
414414
. . . . . . . . . . . . . }
415415
. . . . . . . . . . . . }
416416
. . . . . . . . . . . . 1: Name {
417-
. . . . . . . . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
417+
. . . . . . . . . . . . . Roles: Call,SimpleIdentifier,Expression
418418
. . . . . . . . . . . . . TOKEN "print"
419419
. . . . . . . . . . . . . StartPosition: {
420420
. . . . . . . . . . . . . . Offset: 119

tests/exec.py.uast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Module {
6464
. . . . . . . }
6565
. . . . . . }
6666
. . . . . . 1: Name {
67-
. . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
67+
. . . . . . . Roles: Call,SimpleIdentifier,Expression
6868
. . . . . . . TOKEN "exec"
6969
. . . . . . . StartPosition: {
7070
. . . . . . . . Offset: 0

tests/for.py.uast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Module {
148148
. . . . . . . . . . . }
149149
. . . . . . . . . . }
150150
. . . . . . . . . . 1: Name {
151-
. . . . . . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
151+
. . . . . . . . . . . Roles: Call,SimpleIdentifier,Expression
152152
. . . . . . . . . . . TOKEN "print"
153153
. . . . . . . . . . . StartPosition: {
154154
. . . . . . . . . . . . Offset: 33

tests/functioncalls.py.uast

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Module {
100100
. . . . . . . }
101101
. . . . . . }
102102
. . . . . . 3: Name {
103-
. . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
103+
. . . . . . . Roles: Call,SimpleIdentifier,Expression
104104
. . . . . . . TOKEN "normalCall"
105105
. . . . . . . StartPosition: {
106106
. . . . . . . . Offset: 0
@@ -207,7 +207,7 @@ Module {
207207
. . . . . . . }
208208
. . . . . . }
209209
. . . . . . 3: Attribute {
210-
. . . . . . . Roles: CallCallee,CallCallee,QualifiedIdentifier,Expression
210+
. . . . . . . Roles: SimpleIdentifier,Expression,CallCallee
211211
. . . . . . . TOKEN "qualifiedCall"
212212
. . . . . . . StartPosition: {
213213
. . . . . . . . Offset: 44
@@ -225,7 +225,7 @@ Module {
225225
. . . . . . . }
226226
. . . . . . . Children: {
227227
. . . . . . . . 0: Name {
228-
. . . . . . . . . Roles: SimpleIdentifier,Expression
228+
. . . . . . . . . Roles: QualifiedIdentifier,CallReceiver,SimpleIdentifier,Expression
229229
. . . . . . . . . TOKEN "a"
230230
. . . . . . . . . StartPosition: {
231231
. . . . . . . . . . Offset: 42
@@ -299,7 +299,7 @@ Module {
299299
. . . . . . . }
300300
. . . . . . }
301301
. . . . . . 1: Name {
302-
. . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
302+
. . . . . . . Roles: Call,SimpleIdentifier,Expression
303303
. . . . . . . TOKEN "keyCall"
304304
. . . . . . . StartPosition: {
305305
. . . . . . . . Offset: 87
@@ -482,7 +482,7 @@ Module {
482482
. . . . . . . }
483483
. . . . . . }
484484
. . . . . . 2: Name {
485-
. . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
485+
. . . . . . . Roles: Call,SimpleIdentifier,Expression
486486
. . . . . . . TOKEN "expandListCall"
487487
. . . . . . . StartPosition: {
488488
. . . . . . . . Offset: 108
@@ -554,7 +554,7 @@ Module {
554554
. . . . . . . }
555555
. . . . . . }
556556
. . . . . . 1: Name {
557-
. . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
557+
. . . . . . . Roles: Call,SimpleIdentifier,Expression
558558
. . . . . . . TOKEN "expandMapCall"
559559
. . . . . . . StartPosition: {
560560
. . . . . . . . Offset: 141

tests/functiondef_decorated.py.uast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Module {
254254
. . . . . . . . . }
255255
. . . . . . . . }
256256
. . . . . . . . 3: Name {
257-
. . . . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
257+
. . . . . . . . . Roles: Call,SimpleIdentifier,Expression
258258
. . . . . . . . . TOKEN "somedecoratorparams"
259259
. . . . . . . . . StartPosition: {
260260
. . . . . . . . . . Offset: 0

tests/hello.py.uast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Module {
6464
. . . . . . . }
6565
. . . . . . }
6666
. . . . . . 1: Name {
67-
. . . . . . . Roles: CallCallee,CallCallee,SimpleIdentifier,Expression
67+
. . . . . . . Roles: Call,SimpleIdentifier,Expression
6868
. . . . . . . TOKEN "print"
6969
. . . . . . . StartPosition: {
7070
. . . . . . . . Offset: 0

0 commit comments

Comments
 (0)