forked from jasder/antlr
trivial change, gets small speed bump
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9514]
This commit is contained in:
parent
beec4ab721
commit
cabe808c7f
|
@ -146,6 +146,7 @@ public class RuleContext implements ParseTree.RuleNode {
|
||||||
// System.out.println("comparing "+this+" with "+other);
|
// System.out.println("comparing "+this+" with "+other);
|
||||||
RuleContext sp = this;
|
RuleContext sp = this;
|
||||||
while ( sp!=null && other!=null ) {
|
while ( sp!=null && other!=null ) {
|
||||||
|
if ( sp == other ) return true;
|
||||||
if ( sp.invokingState != other.invokingState) return false;
|
if ( sp.invokingState != other.invokingState) return false;
|
||||||
sp = sp.parent;
|
sp = sp.parent;
|
||||||
other = other.parent;
|
other = other.parent;
|
||||||
|
|
Loading…
Reference in New Issue