BadScript 2
Loading...
Searching...
No Matches
BadNamedExportExpressionCompiler.cs
Go to the documentation of this file.
2
4
8public class BadNamedExportExpressionCompiler : BadExpressionCompiler<BadNamedExportExpression>
9{
11 public override void Compile(BadExpressionCompileContext context, BadNamedExportExpression expression)
12 {
13 context.Compile(expression.Expression);
14 context.Emit(BadOpCode.Export, expression.Position, expression.Name!);
15 }
16}
BadSourcePosition Position
The source Position of the Expression.
override void Compile(BadExpressionCompileContext context, BadNamedExportExpression expression)
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7