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

ParseTreePatternMatcher matchImpl #91

Open
BurtHarris opened this issue Oct 13, 2016 · 0 comments
Open

ParseTreePatternMatcher matchImpl #91

BurtHarris opened this issue Oct 13, 2016 · 0 comments
Assignees
Labels

Comments

@BurtHarris
Copy link
Collaborator

Seems to be an odd condition in the Java reference implementation of ParseTreePatternMatcher I noticed while porting. In that file, there are four if statements like this:

                if (mismatchedNode == null) {
                    mismatchedNode = ...;
                }

What's odd is that prior to testing it for null, no code ever assigns it a non-null value. Is this a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants