Exemplo n.º 1
0
 public static void GenRestore(Token errorAt, ScriptMyILGen ilGen)
 {
     ilGen.Emit(errorAt, OpCodes.Call, listRestoreMethod);
 }
Exemplo n.º 2
0
 // generate CIL code to pop the value ie store in value
 //  input:
 //   'this' pointer already pushed on CIL stack
 //   new value
 //  output:
 public static void GenPop(Token errorAt, ScriptMyILGen ilGen)
 {
     ilGen.Emit(errorAt, OpCodes.Call, listSaveMethod);
 }
Exemplo n.º 3
0
 // generate CIL code to push the value on the CIL stack
 //  input:
 //   'this' pointer already pushed on CIL stack
 //  output:
 //   'this' pointer popped from stack
 //   value pushed on CIL stack replacing 'this' pointer
 //   returns typeof value pushed on stack
 public static Type GenPush(Token errorAt, ScriptMyILGen ilGen)
 {
     ilGen.Emit(errorAt, OpCodes.Ldfld, listValueField);
     return(typeof(LSL_List));
 }
Exemplo n.º 4
0
 // generate CIL code to push the value on the CIL stack
 //  input:
 //   'this' pointer already pushed on CIL stack
 //  output:
 //   'this' pointer popped from stack
 //   value pushed on CIL stack replacing 'this' pointer
 //   returns typeof value pushed on stack
 public static Type GenPush(Token errorAt, ScriptMyILGen ilGen)
 {
     ilGen.Emit(errorAt, OpCodes.Ldfld, stringValueField);
     return(typeof(string));
 }
Exemplo n.º 5
0
 public static void GenFree(Token errorAt, ScriptMyILGen ilGen)
 {
     ilGen.Emit(errorAt, OpCodes.Call, stringFreeMethod);
 }