BadScript 2
Loading...
Searching...
No Matches
BadNewExpressionCompiler.cs
Go to the documentation of this file.
2
4
8public class BadNewExpressionCompiler : BadExpressionCompiler<BadNewExpression>
9{
11 public override void Compile(BadExpressionCompileContext context, BadNewExpression expression)
12 {
13 context.Compile(expression.Right.Arguments, false);
14 context.Compile(expression.Right.Left);
15 context.Emit(BadOpCode.New, expression.Position, expression.Right.ArgumentCount);
16 }
17}
BadSourcePosition Position
The source Position of the Expression.
BadInvocationExpression Right
The Constructor Invocation.
override void Compile(BadExpressionCompileContext context, BadNewExpression expression)
Contains the Type Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7