Fixed Generation
This commit is contained in:
parent
e0286e0840
commit
3114064038
@ -723,10 +723,6 @@ public class MethodCodeGen implements bytecode.visitor.MethodVisitor {
|
|||||||
@Override
|
@Override
|
||||||
public void visit(MethodCallNode methodCallNode) {
|
public void visit(MethodCallNode methodCallNode) {
|
||||||
List<ParameterNode> parameterNodes = new ArrayList<>();
|
List<ParameterNode> parameterNodes = new ArrayList<>();
|
||||||
for (IExpressionNode expressionNode : methodCallNode.parameters) {
|
|
||||||
expressionNode.accept(this);
|
|
||||||
parameterNodes.add(new ParameterNode(expressionNode.getType(), ""));
|
|
||||||
}
|
|
||||||
int localVarIndex = -1;
|
int localVarIndex = -1;
|
||||||
if (methodCallNode.target.memberAccess.identifiers.size() > 1) {
|
if (methodCallNode.target.memberAccess.identifiers.size() > 1) {
|
||||||
localVarIndex = localVariables.indexOf(methodCallNode.target.memberAccess.identifiers.get(1));
|
localVarIndex = localVariables.indexOf(methodCallNode.target.memberAccess.identifiers.get(1));
|
||||||
|
@ -105,11 +105,6 @@ public class E2EReflectionsTest {
|
|||||||
runTest("MultipleClasses");
|
runTest("MultipleClasses");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void SelfReferenceTest() {
|
|
||||||
runTest("SelfReference");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void ThisDotTest() {
|
public void ThisDotTest() {
|
||||||
runTest("ThisDot");
|
runTest("ThisDot");
|
||||||
|
Loading…
Reference in New Issue
Block a user