Fehler beim Parsen von Method behoben

This commit is contained in:
JanUlrich 2017-04-06 12:12:06 +02:00
parent 30099f5e50
commit 561f1d1150
2 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,8 @@ public class StatementGenerator {
receiver = convert(methodInvocationContext.primary());
}else if(methodInvocationContext.toString().startsWith("super")){
receiver = new Super(methodInvocationContext.getStart());
}else if(methodInvocationContext.methodName() != null){
receiver = new This(methodInvocationContext.getStart());
}else throw new NotImplementedException();
ArgumentList argumentList = convert(methodInvocationContext.argumentList());

View File

@ -12,6 +12,7 @@ public class CastExpr extends Expression
public CastExpr(RefTypeOrTPHOrWildcardOrGeneric castType, Expression expr, Token offset)
{
super(castType, offset);
this.expr = expr;
}
public Expression expr;