Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor AST change tracking to correct inaccuracies introduced when …
…SCRIPT became a change scope root. SCRIPT nodes were not being set as the "change scope" when a function scope was pop'd from the scope stack if there was not a block scope between the script and the function. Script nodes are only on the scope stack during some unit tests, when the traversal is started from a SCRIPT rather than a ROOT, during normal operation SCRIPT are not semantic scope roots. Disable a few tests that no longer pass with these changes. Also introduce an alternate version that doesn't depend on compiler state in "NodeTraversal#reportCodeChange" that can be used by passes that can be run in multiple threads at the same time. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153762957
- Loading branch information
1 parent
9665985
commit 499c4ee
Showing
8 changed files
with
231 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.