Bytecode for dotSubstractionNode
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
i22007 2024-06-23 14:54:53 -04:00
parent 99948fef07
commit ef0bc99bbf

View File

@ -148,8 +148,16 @@ public class MethodCodeGen implements bytecode.visitor.MethodVisitor {
@Override
public void visit(DotSubstractionNode dotSubstractionNode) {
if (dotSubstractionNode.value != null) { // local var
if (dotSubstractionNode.value != null) {
dotSubstractionNode.value.accept(this);
} else if(dotSubstractionNode.identifier != null) {
methodVisitor.visitVarInsn(ILOAD, localVaribales.indexOf(dotSubstractionNode.identifier));
} else if(dotSubstractionNode.memberAccess != null) {
dotSubstractionNode.memberAccess.accept(this);
} else if(dotSubstractionNode.methodCall != null) {
dotSubstractionNode.methodCall.accept(this);
} else if(dotSubstractionNode.calculationExpression != null) {
dotSubstractionNode.calculationExpression.accept(this);
}
}