public void Run(AstExpressionStatement statement) { #if DEBUG //Log($"statement = {statement}"); #endif var node = new ExpressionNode(_context); node.Run(statement.Expression); AddCommands(node.Result); AddCommand(new IntermediateScriptCommand() { OperationCode = OperationCode.ClearStack }); }
public override void VisitExpressionStatement(AstExpressionStatement node) { Visit(node.Expression); }
/// <inheritdoc/> protected override void OnEnter() { Result = new AstExpressionStatement(); }