Fehler beim Parsen von Method behoben
This commit is contained in:
parent
30099f5e50
commit
561f1d1150
@ -229,6 +229,8 @@ public class StatementGenerator {
|
|||||||
receiver = convert(methodInvocationContext.primary());
|
receiver = convert(methodInvocationContext.primary());
|
||||||
}else if(methodInvocationContext.toString().startsWith("super")){
|
}else if(methodInvocationContext.toString().startsWith("super")){
|
||||||
receiver = new Super(methodInvocationContext.getStart());
|
receiver = new Super(methodInvocationContext.getStart());
|
||||||
|
}else if(methodInvocationContext.methodName() != null){
|
||||||
|
receiver = new This(methodInvocationContext.getStart());
|
||||||
}else throw new NotImplementedException();
|
}else throw new NotImplementedException();
|
||||||
|
|
||||||
ArgumentList argumentList = convert(methodInvocationContext.argumentList());
|
ArgumentList argumentList = convert(methodInvocationContext.argumentList());
|
||||||
|
@ -12,6 +12,7 @@ public class CastExpr extends Expression
|
|||||||
public CastExpr(RefTypeOrTPHOrWildcardOrGeneric castType, Expression expr, Token offset)
|
public CastExpr(RefTypeOrTPHOrWildcardOrGeneric castType, Expression expr, Token offset)
|
||||||
{
|
{
|
||||||
super(castType, offset);
|
super(castType, offset);
|
||||||
|
this.expr = expr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Expression expr;
|
public Expression expr;
|
||||||
|
Loading…
Reference in New Issue
Block a user