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

sem: drop 'leadingComments' inside import 'specifiers' #60

Merged
merged 1 commit into from
Feb 22, 2019

Conversation

bzz
Copy link
Contributor

@bzz bzz commented Feb 22, 2019

Fixed #59 WITHOUT update to the latest SDK.

It is related to how comments are treated in case of import specifiers. Sometimes specifier may have a 'leadingComments' field - this change knocks it off by the preprocessor.

This is my first annotation attempt, and the approach will most probably change after SDK update.

@bzz bzz requested a review from dennwc February 22, 2019 17:18
@bzz bzz self-assigned this Feb 22, 2019
@bzz bzz merged commit 3f397ff into bblfsh:master Feb 22, 2019
@bzz bzz deleted the fix-59-old-sdk branch February 22, 2019 17:43
bzz added a commit to bzz/javascript-driver that referenced this pull request Mar 3, 2019
Instead of dropping comments of ImportNamespaceSpecifier
as implemented in bblfsh#60, we just skip both, leading and
trailing comments now.

This avoids loosing a Comment node in UAST.

Signed-off-by: Alexander Bezzubov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants