Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set VisitorState.getTreePath() correctly for Matchers that look at en…
…closing elements: The existing code left the path to the original element in place. The new code updates the path to point to the enclosing element being matched against. This brings the enclosing-element Matchers in line with the parentNode Matcher, which I believe is the desirable behavior. There is one subtlety to this around Enclosing.BlockOrCase. See the comments I've inserted into DeadException. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=80496579
- Loading branch information
Showing
5 changed files
with
296 additions
and
35 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.