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

Commit fa8d081

Browse files
author
Juanjo Alvarez
committed
Rebased to SDK v1.1
1 parent d24551d commit fa8d081

File tree

5 files changed

+49
-53
lines changed

5 files changed

+49
-53
lines changed

fixtures/assert_constant.py.uast

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Status: ok
22
Errors:
33
UAST:
44
Module {
5-
. Roles: File
5+
. Roles: File,Module
66
. Children: {
77
. . 0: Assert {
88
. . . Roles: Assert,Statement
@@ -23,8 +23,8 @@ Module {
2323
. . . }
2424
. . . Children: {
2525
. . . . 0: BoolLiteral {
26-
. . . . . Roles: Literal,Boolean,Expression
27-
. . . . . TOKEN "true"
26+
. . . . . Roles: Literal,Boolean,Expression,Primitive
27+
. . . . . TOKEN "True"
2828
. . . . . StartPosition: {
2929
. . . . . . Offset: 7
3030
. . . . . . Line: 1
@@ -61,8 +61,8 @@ Module {
6161
. . . }
6262
. . . Children: {
6363
. . . . 0: BoolLiteral {
64-
. . . . . Roles: Literal,Boolean,Expression
65-
. . . . . TOKEN "true"
64+
. . . . . Roles: Literal,Boolean,Expression,Primitive
65+
. . . . . TOKEN "True"
6666
. . . . . StartPosition: {
6767
. . . . . . Offset: 20
6868
. . . . . . Line: 2
@@ -98,7 +98,7 @@ Module {
9898
. . . }
9999
. . . Children: {
100100
. . . . 0: Str {
101-
. . . . . Roles: Literal,String,Expression
101+
. . . . . Roles: Literal,String,Expression,Primitive
102102
. . . . . TOKEN "assert message"
103103
. . . . . StartPosition: {
104104
. . . . . . Offset: 38
@@ -115,8 +115,8 @@ Module {
115115
. . . . . }
116116
. . . . }
117117
. . . . 1: BoolLiteral {
118-
. . . . . Roles: Literal,Boolean,Expression
119-
. . . . . TOKEN "true"
118+
. . . . . Roles: Literal,Boolean,Expression,Primitive
119+
. . . . . TOKEN "True"
120120
. . . . . StartPosition: {
121121
. . . . . . Offset: 32
122122
. . . . . . Line: 3
@@ -137,4 +137,3 @@ Module {
137137
. }
138138
}
139139

140-

fixtures/functiondef_defaultparams.py.uast

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Status: ok
22
Errors:
33
UAST:
44
Module {
5-
. Roles: File
5+
. Roles: File,Module
66
. Children: {
77
. . 0: FunctionDef {
88
. . . Roles: Function,Declaration,Name,Identifier
@@ -23,7 +23,7 @@ Module {
2323
. . . }
2424
. . . Children: {
2525
. . . . 0: arguments {
26-
. . . . . Roles: Function,Declaration,Argument,Name,Identifier
26+
. . . . . Roles: Function,Declaration,Incomplete,Argument
2727
. . . . . Properties: {
2828
. . . . . . internalRole: args
2929
. . . . . . kwarg: <nil>
@@ -127,7 +127,7 @@ Module {
127127
. . . . . . . }
128128
. . . . . . . Children: {
129129
. . . . . . . . 0: Num {
130-
. . . . . . . . . Roles: Literal,Number,Expression
130+
. . . . . . . . . Roles: Literal,Number,Expression,Primitive
131131
. . . . . . . . . TOKEN "1"
132132
. . . . . . . . . StartPosition: {
133133
. . . . . . . . . . Offset: 30
@@ -141,7 +141,7 @@ Module {
141141
. . . . . . . . . }
142142
. . . . . . . . }
143143
. . . . . . . . 1: Str {
144-
. . . . . . . . . Roles: Literal,String,Expression
144+
. . . . . . . . . Roles: Literal,String,Expression,Primitive
145145
. . . . . . . . . TOKEN "polompos"
146146
. . . . . . . . . StartPosition: {
147147
. . . . . . . . . . Offset: 38
@@ -155,8 +155,8 @@ Module {
155155
. . . . . . . . . }
156156
. . . . . . . . }
157157
. . . . . . . . 2: NoneLiteral {
158-
. . . . . . . . . Roles: Literal,Null,Expression
159-
. . . . . . . . . TOKEN "<nil>"
158+
. . . . . . . . . Roles: Literal,Null,Expression,Primitive
159+
. . . . . . . . . TOKEN "None"
160160
. . . . . . . . . StartPosition: {
161161
. . . . . . . . . . Offset: 55
162162
. . . . . . . . . . Line: 1
@@ -218,14 +218,14 @@ Module {
218218
. . . }
219219
. . . Children: {
220220
. . . . 0: arguments {
221-
. . . . . Roles: Function,Declaration,Argument,Name,Identifier
221+
. . . . . Roles: Function,Declaration,Incomplete,Argument
222222
. . . . . Properties: {
223223
. . . . . . internalRole: args
224224
. . . . . . kwarg: <nil>
225225
. . . . . }
226226
. . . . . Children: {
227227
. . . . . . 0: Num {
228-
. . . . . . . Roles: Literal,Number,Expression
228+
. . . . . . . Roles: Literal,Number,Expression,Primitive
229229
. . . . . . . TOKEN "3"
230230
. . . . . . . StartPosition: {
231231
. . . . . . . . Offset: 92
@@ -306,4 +306,3 @@ Module {
306306
. }
307307
}
308308

309-

fixtures/if.py.uast

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Module {
4848
. . . . . . . . . Children: {
4949
. . . . . . . . . . 0: BoolLiteral {
5050
. . . . . . . . . . . Roles: Literal,Boolean,Expression,Primitive,Function,Call,Positional,Argument,Name
51-
. . . . . . . . . . . TOKEN "true"
51+
. . . . . . . . . . . TOKEN "True"
5252
. . . . . . . . . . . StartPosition: {
5353
. . . . . . . . . . . . Offset: 19
5454
. . . . . . . . . . . . Line: 2
@@ -90,7 +90,7 @@ Module {
9090
. . . . }
9191
. . . . 1: BoolLiteral {
9292
. . . . . Roles: Literal,Boolean,Expression,Primitive,If,Condition
93-
. . . . . TOKEN "true"
93+
. . . . . TOKEN "True"
9494
. . . . . StartPosition: {
9595
. . . . . . Offset: 3
9696
. . . . . . Line: 1
@@ -152,7 +152,7 @@ Module {
152152
. . . . . . . . . Children: {
153153
. . . . . . . . . . 0: BoolLiteral {
154154
. . . . . . . . . . . Roles: Literal,Boolean,Expression,Primitive,Function,Call,Positional,Argument,Name
155-
. . . . . . . . . . . TOKEN "true"
155+
. . . . . . . . . . . TOKEN "True"
156156
. . . . . . . . . . . StartPosition: {
157157
. . . . . . . . . . . . Offset: 55
158158
. . . . . . . . . . . . Line: 5

fixtures/issue58.py.uast

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Status: ok
22
Errors:
33
UAST:
44
Module {
5-
. Roles: File
5+
. Roles: File,Module
66
. Children: {
77
. . 0: Assign {
88
. . . Roles: Binary,Assignment,Expression
@@ -16,7 +16,7 @@ Module {
1616
. . . }
1717
. . . Children: {
1818
. . . . 0: Tuple {
19-
. . . . . Roles: Literal,Tuple,Expression,Left
19+
. . . . . Roles: Literal,Tuple,Expression,Primitive,Left
2020
. . . . . StartPosition: {
2121
. . . . . . Offset: 0
2222
. . . . . . Line: 1
@@ -66,7 +66,7 @@ Module {
6666
. . . . . }
6767
. . . . }
6868
. . . . 1: Tuple {
69-
. . . . . Roles: Literal,Tuple,Expression,Right
69+
. . . . . Roles: Literal,Tuple,Expression,Primitive,Right
7070
. . . . . StartPosition: {
7171
. . . . . . Offset: 7
7272
. . . . . . Line: 1
@@ -78,7 +78,7 @@ Module {
7878
. . . . . }
7979
. . . . . Children: {
8080
. . . . . . 0: Num {
81-
. . . . . . . Roles: Literal,Number,Expression
81+
. . . . . . . Roles: Literal,Number,Expression,Primitive
8282
. . . . . . . TOKEN "0"
8383
. . . . . . . StartPosition: {
8484
. . . . . . . . Offset: 7
@@ -95,8 +95,8 @@ Module {
9595
. . . . . . . }
9696
. . . . . . }
9797
. . . . . . 1: NoneLiteral {
98-
. . . . . . . Roles: Literal,Null,Expression
99-
. . . . . . . TOKEN "<nil>"
98+
. . . . . . . Roles: Literal,Null,Expression,Primitive
99+
. . . . . . . TOKEN "None"
100100
. . . . . . . StartPosition: {
101101
. . . . . . . . Offset: 10
102102
. . . . . . . . Line: 1
@@ -119,4 +119,3 @@ Module {
119119
. }
120120
}
121121

122-

0 commit comments

Comments
 (0)