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

Commit 250f13a

Browse files
authored
Merge pull request #47 from juanjux/fix/tonoder_endposition
Add the EndLineKey and EndColumnKey to the driver ToNoder
2 parents 9d1871a + f5474e1 commit 250f13a

File tree

76 files changed

+4037
-2041
lines changed

Some content is hidden

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

76 files changed

+4037
-2041
lines changed

Dockerfile.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAINTAINER source{d}
33

44
ARG DEVDEPS=native/dev_deps
55
ARG CONTAINER_DEVDEPS=/tmp/dev_deps
6-
ARG PYDETECTOR_VER=0.11.0
6+
ARG PYDETECTOR_VER=0.11.1
77

88
RUN apk add --no-cache --update python python3 py-pip py2-pip git
99

driver/normalizer/parser.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import (
88
var ToNoder = &native.ObjectToNoder{
99
InternalTypeKey: "ast_type",
1010
LineKey: "lineno",
11+
EndLineKey: "end_lineno",
1112
ColumnKey: "col_offset",
13+
EndColumnKey: "end_col_offset",
1214

1315
TokenKeys: map[string]bool{
1416
"module": true, // Module on ImportFrom
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pydetector-bblfsh==0.11.0
1+
pydetector-bblfsh==0.11.1
22
-e git+git://github.com/python/mypy.git@0bb2d1680e8b9522108b38d203cb73021a617e64#egg=mypy-lang
33
typed-ast==1.0.1

native/python_package/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
]
3232
},
3333
install_requires=[
34-
"pydetector-bblfsh==0.11.0"
34+
"pydetector-bblfsh==0.11.1"
3535
],
3636
classifiers=[
3737
"Development Status :: 4 - Beta",

tests/aritmeticops.py.native

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@
224224
"op": {
225225
"ast_type": "Mod",
226226
"col_offset": 1,
227-
"end_col_offset": 1,
228-
"end_lineno": 6,
229227
"lineno": 6
230228
},
231229
"right": {
@@ -280,8 +278,8 @@
280278
}
281279
],
282280
"col_offset": 1,
283-
"end_col_offset": 4,
284-
"end_lineno": 7,
281+
"end_col_offset": 1,
282+
"end_lineno": 8,
285283
"lineno": 1,
286284
"noops_remainder": {
287285
"ast_type": "RemainderNoops",

0 commit comments

Comments
 (0)