GetCodeObject() public method

public GetCodeObject ( int index ) : InterCodeObject
index int
return InterCodeObject
Exemplo n.º 1
0
 /// <summary>DaraArray の中の InterCodeGenerator を InterCodeObject に差し替える</summary>
 /// <param name="compiler"></param>
 public virtual void DateReplace(Compiler compiler)
 {
     int count = mInterCodeDataArea.Count;
     for (int i = 0; i < count; i++)
     {
         Variant d = mInterCodeDataArea[i];
         object o = d.ToJavaObject();
         if (o is InterCodeGenerator)
         {
             int idx = compiler.GetCodeIndex((InterCodeGenerator)o);
             if (idx < 0)
             {
                 TJS.OutputToConsole("not found");
             }
             d.Set(compiler.GetCodeObject(idx));
         }
     }
 }