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

Identifiers with empty tokens. #94

Closed
zurk opened this issue Sep 21, 2017 · 3 comments
Closed

Identifiers with empty tokens. #94

zurk opened this issue Sep 21, 2017 · 3 comments
Assignees
Labels

Comments

@zurk
Copy link

zurk commented Sep 21, 2017

I found identifiers with empty tokens.
https://gist.github.com/zurk/8f7dd974347925ae62c31d9441491613

Here you can find my example.
run run_me.py and you get output for example.py
I think that all identifiers cannot be with empty tokens.
Or am I wrong?

This was referenced Sep 21, 2017
@juanjux
Copy link
Contributor

juanjux commented Sep 21, 2017

Almost certainly, they shouldn't have empty tokens.

@juanjux juanjux added the bug label Sep 21, 2017
@juanjux juanjux self-assigned this Sep 21, 2017
@juanjux
Copy link
Contributor

juanjux commented Sep 21, 2017

PS: in this specific case, the error is those nodes having the Identifier role since in the Python AST arguments (the ones in this example) are "virtual" grouping nodes without textual representation (in this case it serves as common parent to all arguments).

Should be easy to fix.

@juanjux
Copy link
Contributor

juanjux commented Oct 4, 2017

Fixed by #112, I checked that all nodes with an IDENTIFIER token in your provided code have a token.

@juanjux juanjux closed this as completed Oct 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants