Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add nodes to the index when they update as well #29

Merged
merged 1 commit into from
Jul 20, 2017

Conversation

erizocosmico
Copy link
Contributor

Before this patch, nodes were not being added once they were
updated, for example, when the AST changed.
This PR introduces changes to keep the UASTViewer working even
when the AST changes.

The good solution would be getting rid of the NodeIndex as it is
right now and implement some more idiomatic way of handling that
as the current approach is very flaky and requires some hacks to
work properly, as can be seen in this PR.

But we'll leave the refactor for another time.

Before this patch, nodes were not being added once they were
updated, for example, when the AST changed.
This PR introduces changes to keep the UASTViewer working even
when the AST changes.

The good solution would be getting rid of the NodeIndex as it is
right now and implement some more idiomatic way of handling that
as the current approach is very flaky and requires some hacks to
work properly, as can be seen in this PR.

But we'll leave the refactor for another time.

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
Copy link
Contributor

@Serabe Serabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #31 to fix this impl.

@Serabe Serabe merged commit 1b0ebfe into bblfsh:master Jul 20, 2017
@erizocosmico erizocosmico deleted the fix/index-after-example-change branch July 20, 2017 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants