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

Refactor to move scope management to ScopeManager class #265

Merged
merged 11 commits into from
Jul 25, 2022

Conversation

sirbrillig
Copy link
Owner

There are three ways that scope is tracked in the sniff:

  1. The scopeEndIndexCache property.
  2. The scopes property.
  3. The scopeStartEndPairs property.

Each of these properties was added to serve a different, but related, purpose. In this PR we modify the sniff to unify the three arrays and move them to a stand-alone class called ScopeManager.

@sirbrillig sirbrillig marked this pull request as ready for review July 24, 2022 03:11
@sirbrillig sirbrillig merged commit 2747116 into 2.x Jul 25, 2022
@sirbrillig sirbrillig deleted the add/scope-manager branch July 25, 2022 17:19
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.

1 participant