trivial change, gets small speed bump

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9514]
This commit is contained in:
parrt 2011-12-02 12:22:35 -08:00
parent beec4ab721
commit cabe808c7f
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ public class RuleContext implements ParseTree.RuleNode {
// System.out.println("comparing "+this+" with "+other);
RuleContext sp = this;
while ( sp!=null && other!=null ) {
if ( sp == other ) return true;
if ( sp.invokingState != other.invokingState) return false;
sp = sp.parent;
other = other.parent;