[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9416]
This commit is contained in:
parrt 2011-11-20 14:46:47 -08:00
parent e71440b9cb
commit 4cc8a8e501
1 changed files with 10 additions and 10 deletions

View File

@ -79,16 +79,16 @@ public class ParserRuleContext<Symbol> extends RuleContext {
super(parent, stateNumber);
}
@Override
public int hashCode() {
return super.hashCode() + s;
}
@Override
public boolean equals(Object o) {
if ( !super.equals(o) ) return false;
return s != ((RuleContext)o).s; // must be parsing the same location in the ATN
}
// @Override
// public int hashCode() {
// return super.hashCode() + s;
// }
//
// @Override
// public boolean equals(Object o) {
// if ( !super.equals(o) ) return false;
// return s != ((RuleContext)o).s; // must be parsing the same location in the ATN
// }
public void enterRule(ParseTreeListener<Symbol> listener) { }
public void exitRule(ParseTreeListener<Symbol> listener) { }