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

Commit a397997

Browse files
author
Juanjo Alvarez
committed
Fix endpositions offset
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 86a0e01 commit a397997

File tree

295 files changed

+13008
-13008
lines changed

Some content is hidden

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

295 files changed

+13008
-13008
lines changed

fixtures/_integration.py.native

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
{
1010
'ast_type': "Pass",
1111
'col_offset': 5,
12-
'end_col_offset': 8,
12+
'end_col_offset': 9,
1313
'end_lineno': 2,
1414
lineno: 2,
1515
},
1616
],
1717
'col_offset': 7,
1818
'decorator_list': [],
19-
'end_col_offset': 14,
19+
'end_col_offset': 15,
2020
'end_lineno': 1,
2121
keywords: [],
2222
lineno: 1,

fixtures/_integration.py.sem.uast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
col: 7,
1414
},
1515
end: { '@type': "uast:Position",
16-
offset: 13,
16+
offset: 14,
1717
line: 1,
18-
col: 14,
18+
col: 15,
1919
},
2020
},
2121
bases: { '@type': "ClassDef.bases",
@@ -35,9 +35,9 @@
3535
col: 5,
3636
},
3737
end: { '@type': "uast:Position",
38-
offset: 23,
38+
offset: 24,
3939
line: 2,
40-
col: 8,
40+
col: 9,
4141
},
4242
},
4343
},

fixtures/_integration.py.uast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
col: 7,
1414
},
1515
end: { '@type': "uast:Position",
16-
offset: 13,
16+
offset: 14,
1717
line: 1,
18-
col: 14,
18+
col: 15,
1919
},
2020
},
2121
bases: { '@type': "ClassDef.bases",
@@ -35,9 +35,9 @@
3535
col: 5,
3636
},
3737
end: { '@type': "uast:Position",
38-
offset: 23,
38+
offset: 24,
3939
line: 2,
40-
col: 8,
40+
col: 9,
4141
},
4242
},
4343
},

fixtures/annotations.py.native

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'ast_type': "Name",
88
'col_offset': 4,
99
ctx: "Load",
10-
'end_col_offset': 6,
10+
'end_col_offset': 7,
1111
'end_lineno': 1,
1212
id: "int",
1313
lineno: 1,
@@ -20,15 +20,15 @@
2020
'ast_type': "Name",
2121
'col_offset': 1,
2222
ctx: "Store",
23-
'end_col_offset': 1,
23+
'end_col_offset': 2,
2424
'end_lineno': 1,
2525
id: "a",
2626
lineno: 1,
2727
},
2828
value: {
2929
'ast_type': "Num",
3030
'col_offset': 10,
31-
'end_col_offset': 10,
31+
'end_col_offset': 11,
3232
'end_lineno': 1,
3333
lineno: 1,
3434
'n': 1,
@@ -39,7 +39,7 @@
3939
'ast_type': "Name",
4040
'col_offset': 4,
4141
ctx: "Load",
42-
'end_col_offset': 8,
42+
'end_col_offset': 9,
4343
'end_lineno': 2,
4444
id: "float",
4545
lineno: 2,
@@ -52,7 +52,7 @@
5252
'ast_type': "Name",
5353
'col_offset': 1,
5454
ctx: "Store",
55-
'end_col_offset': 1,
55+
'end_col_offset': 2,
5656
'end_lineno': 2,
5757
id: "b",
5858
lineno: 2,
@@ -68,14 +68,14 @@
6868
'ast_type': "Name",
6969
'col_offset': 17,
7070
ctx: "Load",
71-
'end_col_offset': 19,
71+
'end_col_offset': 20,
7272
'end_lineno': 3,
7373
id: "int",
7474
lineno: 3,
7575
},
7676
'ast_type': "arg",
7777
'col_offset': 14,
78-
'end_col_offset': 14,
78+
'end_col_offset': 15,
7979
'end_lineno': 3,
8080
lineno: 3,
8181
},
@@ -85,14 +85,14 @@
8585
'ast_type': "Name",
8686
'col_offset': 25,
8787
ctx: "Load",
88-
'end_col_offset': 27,
88+
'end_col_offset': 28,
8989
'end_lineno': 3,
9090
id: "str",
9191
lineno: 3,
9292
},
9393
'ast_type': "arg",
9494
'col_offset': 22,
95-
'end_col_offset': 22,
95+
'end_col_offset': 23,
9696
'end_lineno': 3,
9797
lineno: 3,
9898
},
@@ -104,13 +104,13 @@
104104
{
105105
'ast_type': "Return",
106106
'col_offset': 5,
107-
'end_col_offset': 10,
107+
'end_col_offset': 11,
108108
'end_lineno': 4,
109109
lineno: 4,
110110
value: {
111111
'ast_type': "Num",
112112
'col_offset': 12,
113-
'end_col_offset': 14,
113+
'end_col_offset': 15,
114114
'end_lineno': 4,
115115
lineno: 4,
116116
'n': 0,
@@ -119,15 +119,15 @@
119119
],
120120
'col_offset': 5,
121121
'decorator_list': [],
122-
'end_col_offset': 12,
122+
'end_col_offset': 13,
123123
'end_lineno': 3,
124124
lineno: 3,
125125
name: "somefunc",
126126
returns: {
127127
'ast_type': "Name",
128128
'col_offset': 33,
129129
ctx: "Load",
130-
'end_col_offset': 37,
130+
'end_col_offset': 38,
131131
'end_lineno': 3,
132132
id: "float",
133133
lineno: 3,

fixtures/annotations.py.sem.uast

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
col: 4,
2121
},
2222
end: { '@type': "uast:Position",
23-
offset: 5,
23+
offset: 6,
2424
line: 1,
25-
col: 6,
25+
col: 7,
2626
},
2727
},
2828
Name: "int",
@@ -36,9 +36,9 @@
3636
col: 1,
3737
},
3838
end: { '@type': "uast:Position",
39-
offset: 0,
39+
offset: 1,
4040
line: 1,
41-
col: 1,
41+
col: 2,
4242
},
4343
},
4444
Name: "a",
@@ -53,9 +53,9 @@
5353
col: 10,
5454
},
5555
end: { '@type': "uast:Position",
56-
offset: 9,
56+
offset: 10,
5757
line: 1,
58-
col: 10,
58+
col: 11,
5959
},
6060
},
6161
},
@@ -77,9 +77,9 @@
7777
col: 4,
7878
},
7979
end: { '@type': "uast:Position",
80-
offset: 18,
80+
offset: 19,
8181
line: 2,
82-
col: 8,
82+
col: 9,
8383
},
8484
},
8585
Name: "float",
@@ -93,9 +93,9 @@
9393
col: 1,
9494
},
9595
end: { '@type': "uast:Position",
96-
offset: 11,
96+
offset: 12,
9797
line: 2,
98-
col: 1,
98+
col: 2,
9999
},
100100
},
101101
Name: "b",
@@ -110,9 +110,9 @@
110110
col: 5,
111111
},
112112
end: { '@type': "uast:Position",
113-
offset: 31,
113+
offset: 32,
114114
line: 3,
115-
col: 12,
115+
col: 13,
116116
},
117117
},
118118
Nodes: [
@@ -136,9 +136,9 @@
136136
col: 5,
137137
},
138138
end: { '@type': "uast:Position",
139-
offset: 68,
139+
offset: 69,
140140
line: 4,
141-
col: 10,
141+
col: 11,
142142
},
143143
},
144144
value: { '@type': "Num",
@@ -151,9 +151,9 @@
151151
col: 12,
152152
},
153153
end: { '@type': "uast:Position",
154-
offset: 72,
154+
offset: 73,
155155
line: 4,
156-
col: 14,
156+
col: 15,
157157
},
158158
},
159159
},
@@ -170,9 +170,9 @@
170170
col: 14,
171171
},
172172
end: { '@type': "uast:Position",
173-
offset: 33,
173+
offset: 34,
174174
line: 3,
175-
col: 14,
175+
col: 15,
176176
},
177177
},
178178
Init: ~,
@@ -185,9 +185,9 @@
185185
col: 14,
186186
},
187187
end: { '@type': "uast:Position",
188-
offset: 33,
188+
offset: 34,
189189
line: 3,
190-
col: 14,
190+
col: 15,
191191
},
192192
},
193193
Name: "a",
@@ -204,9 +204,9 @@
204204
col: 22,
205205
},
206206
end: { '@type': "uast:Position",
207-
offset: 41,
207+
offset: 42,
208208
line: 3,
209-
col: 22,
209+
col: 23,
210210
},
211211
},
212212
Init: ~,
@@ -219,9 +219,9 @@
219219
col: 22,
220220
},
221221
end: { '@type': "uast:Position",
222-
offset: 41,
222+
offset: 42,
223223
line: 3,
224-
col: 22,
224+
col: 23,
225225
},
226226
},
227227
Name: "b",

0 commit comments

Comments
 (0)