Exemple #1
0
 internal override void CompileBy(FunctionCompiler compiler, bool isLastOperator)
 {
     Constructor.CompileBy(compiler, false);
     foreach (var argument in ArgumentList)
     {
         argument.CompileBy(compiler, false);
     }
     compiler.Emitter.Emit(OpCode.LdInteger, ArgumentList.Count);
     compiler.Emitter.Emit(OpCode.NewObj);
     if (isLastOperator)
     {
         compiler.Emitter.Emit(OpCode.Pop);
     }
 }