public void VisitNegateUnaryOp(NegateUnaryOpNode node) { node.RHS.AcceptExpressionVisitor(_expressionVisitor); int startAddr = _builder.AddInstruction(OpCode.PUSHWORD, 0); _builder.AddInstruction(OpCode.SUB); _builder.AddDebugSymbol(startAddr, node); }
public void VisitBinaryOperation(IBinaryOperationNode node) { BinaryOperationCodeGenVisitor binOpVisitor = new BinaryOperationCodeGenVisitor(this, _functionBuilder); node.AcceptBinaryOperationVisitor(binOpVisitor); _functionBuilder.AddDebugSymbol(binOpVisitor.ComparisonOperationAddress, node); }