forked from jasder/antlr
oops; need method: add getChildren() method to Tree.
This commit is contained in:
parent
00fa2c7617
commit
cbd6e17925
|
@ -193,6 +193,11 @@ public class ParserRuleContext extends RuleContext {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<? extends ParseTree> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public TerminalNode getToken(int ttype, int i) {
|
||||
if ( children==null || i < 0 || i >= children.size() ) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue