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

Node positions not being according with specs #30

@dpordomingo

Description

@dpordomingo

It is not retrieved start_position.offset field nor end_position as documented by https://doc.bblf.sh/uast/specification.html
All token positions on the same line has the same start_position

[...] it is guaranteed that nodes in a UAST either have no position attached or they have a position with valid offset, line and col. [...]
End position, if present in a token node, is the position of the last character of the token in the original source code.

pasted image at 2017_06_27 08_58 am

example:

import sys
sys.stdout.write("Hello world!\n")

client: client-python
It is retrieved the same positions for second line sys and stdout Nodes

start_position {
    line: 2
    col: 1
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions