BadScript 2
Loading...
Searching...
No Matches
BadUsingStatementExpressionCompiler.cs
Go to the documentation of this file.
2
4
9public class BadUsingStatementExpressionCompiler : BadExpressionCompiler<BadUsingStatementExpression>
10{
12 public override void Compile(BadExpressionCompileContext context, BadUsingStatementExpression expression)
13 {
14 context.Compile(expression.Expression);
15 context.Emit(BadOpCode.AddDisposeFinalizer, expression.Position, expression.Name);
16 }
17}
BadSourcePosition Position
The source Position of the Expression.
readonly string Name
The name of the variable that holds the object.
override void Compile(BadExpressionCompileContext context, BadUsingStatementExpression expression)
Contains the Block Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7