forked from JavaTX/JavaCompilerCore
FormalParameter convert änderung
This commit is contained in:
parent
3299f329ea
commit
fb629b417f
@ -249,7 +249,7 @@ public class SyntaxTreeGenerator{
|
|||||||
|
|
||||||
private ParameterList convert(Java8Parser.FormalParameterListContext formalParameterListContext) {
|
private ParameterList convert(Java8Parser.FormalParameterListContext formalParameterListContext) {
|
||||||
List<FormalParameter> ret = new ArrayList<>();
|
List<FormalParameter> ret = new ArrayList<>();
|
||||||
if(formalParameterListContext != null){
|
if(formalParameterListContext != null && formalParameterListContext.formalParameters() != null && formalParameterListContext.formalParameters().formalParameter() != null){
|
||||||
for(Java8Parser.FormalParameterContext fp : formalParameterListContext.formalParameters().formalParameter()){
|
for(Java8Parser.FormalParameterContext fp : formalParameterListContext.formalParameters().formalParameter()){
|
||||||
String paramName = convert(fp.variableDeclaratorId());
|
String paramName = convert(fp.variableDeclaratorId());
|
||||||
RefTypeOrTPH type;
|
RefTypeOrTPH type;
|
||||||
|
Loading…
Reference in New Issue
Block a user