bblfsh / python-driver

GNU General Public License v3.0
10 stars 16 forks source link

Empty position node in imports #215

Open r0mainK opened 4 years ago

r0mainK commented 4 years ago

So basically when we parse:

import foo
from foo import bar

In both cases, only the uast:RuntimeImport nodes have a position attribute that holds information. The uast:Identifier nodes have a position attribute, but they contains no information. Also, there is only starting information, and nothing about the ending.

I don't know if this is a bug or not, but it would be good if we had positional information propagated through each node, and ending information.