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.

Identifiers with empty tokens.  #94

Closed

Description

@zurk

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?

Activity

  1. juanjux commented on Sep 21, 2017

    @juanjux
    Contributor

    Almost certainly, they shouldn't have empty tokens.

  2. self-assigned this
    on Sep 21, 2017
  3. juanjux commented on Sep 21, 2017

    @juanjux
    Contributor

    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.

  4. juanjux commented on Oct 4, 2017

    @juanjux
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions