Пример #1
0
 private static void ToFlatIndex(AbcCode code, int n, bool getter)
 {
     code.LoadThis();
     if (getter)
     {
         code.LoadArguments(n);
         code.Add(InstructionCode.Newarray, n);
     }
     else
     {
         //Last argument is a value
         code.GetLocals(1, n - 1);
         code.Add(InstructionCode.Newarray, n - 1);
     }
     code.Call(ArrayMethodId.ToFlatIndex);
 }