no ? extends on rule ctx getters.
This commit is contained in:
parent
8c4edb8fba
commit
a9d4aeab71
|
@ -260,7 +260,7 @@ public class ParserRuleContext extends RuleContext {
|
|||
return getChild(ctxType, i);
|
||||
}
|
||||
|
||||
public <T extends ParserRuleContext> List<? extends T> getRuleContexts(Class<? extends T> ctxType) {
|
||||
public <T extends ParserRuleContext> List<T> getRuleContexts(Class<? extends T> ctxType) {
|
||||
if ( children==null ) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
|
|
@ -572,7 +572,7 @@ public <r.ctxName> <r.name>() {
|
|||
}
|
||||
>>
|
||||
ContextRuleListGetterDecl(r) ::= <<
|
||||
public List\<? extends <r.ctxName>\> <r.name>() {
|
||||
public List\<<r.ctxName>\> <r.name>() {
|
||||
return getRuleContexts(<r.ctxName>.class);
|
||||
}
|
||||
>>
|
||||
|
|
Loading…
Reference in New Issue