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

ForEach item completions #284

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Conversation

TwitchBronBron
Copy link
Member

The loop item in for each statements is not currently showing up in completions. this pr attempted to fix that, but it quickly morphed into an entirely different type of PR.

This PR fixes the original issue. I did use the walk function, but only for WalkMode.VisitStatements. The local benchmarks show that the walk doesn't have any significant impact on performance (and remember these numbers are ops/sec for parsing the Roku-GooglePhotos project) :
image

Once #258 lands, the code in this PR will be obsolete, but this helps bridge the gap in the short-term.

@TwitchBronBron TwitchBronBron merged commit a7e124d into master Jan 22, 2021
@TwitchBronBron TwitchBronBron deleted the for-each-var-completions-simple branch January 22, 2021 20:43
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