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

Duplication of IDENTIFIER role #96

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

Duplication of IDENTIFIER role #96

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

Comments

@zurk
Copy link

zurk commented Sep 21, 2017

I found it in the output of this example https://gist.github.com/zurk/8f7dd974347925ae62c31d9441491613 for issue #94.

for self token we have role duplication:

<self>: ['IDENTIFIER', 'QUALIFIED', 'IDENTIFIER', 'EXPRESSION']

or for class1:
<class1>: ['IDENTIFIER', 'QUALIFIED', 'IDENTIFIER', 'EXPRESSION']

@juanjux
Copy link
Contributor

juanjux commented Sep 21, 2017

Yes, I think that with the current UAST it will be unavoidable to have some duplicated roles, trough I'm pretty sure most of the current ones can be eliminated. There is a feature request in the SDK to automatically eliminate duplicates (bblfsh/sdk#174) but I don't want to implement it yet precisely to detect these easily avoidable cases.

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

zurk commented Sep 22, 2017

Ok, got it!
It is not a big problem, so fix it when you are ready.

@juanjux
Copy link
Contributor

juanjux commented Oct 4, 2017

Fixed by #112, thanks for reporting.

@juanjux juanjux closed this as completed Oct 4, 2017
@juanjux
Copy link
Contributor

juanjux commented Oct 4, 2017

Reopening, I checked that there are still some duplicated IDENTIFIER roles.

@juanjux
Copy link
Contributor

juanjux commented Oct 5, 2017

Fixed by #122.

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