getRuleContexts<T extends ParserRuleContext> method
Implementation
List<T> getRuleContexts<T extends ParserRuleContext>() {
if (children == null) {
return [];
}
var contexts = <T>[];
for (var o in children!) {
if (o is T) {
contexts.add(o);
}
}
return contexts;
}