diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/MMRScriptMyILGen.cs (renamed from OpenSim/Region/ScriptEngine/XMREngine/MMRScriptMyILGen.cs) | 53 |
1 files changed, 29 insertions, 24 deletions
diff --git a/OpenSim/Region/ScriptEngine/XMREngine/MMRScriptMyILGen.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptMyILGen.cs index ecc217e..bf0db11 100644 --- a/OpenSim/Region/ScriptEngine/XMREngine/MMRScriptMyILGen.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptMyILGen.cs | |||
@@ -29,37 +29,41 @@ using System; | |||
29 | using System.Reflection; | 29 | using System.Reflection; |
30 | using System.Reflection.Emit; | 30 | using System.Reflection.Emit; |
31 | 31 | ||
32 | namespace OpenSim.Region.ScriptEngine.XMREngine | 32 | namespace OpenSim.Region.ScriptEngine.Yengine |
33 | { | 33 | { |
34 | public interface ScriptMyILGen | 34 | public interface ScriptMyILGen |
35 | { | 35 | { |
36 | string methName { get; } | 36 | string methName |
37 | ScriptMyLocal DeclareLocal (Type type, string name); | 37 | { |
38 | ScriptMyLabel DefineLabel (string name); | 38 | get; |
39 | void BeginExceptionBlock (); | 39 | } |
40 | void BeginCatchBlock (Type excType); | 40 | ScriptMyLocal DeclareLocal(Type type, string name); |
41 | void BeginFinallyBlock (); | 41 | ScriptMyLabel DefineLabel(string name); |
42 | void EndExceptionBlock (); | 42 | void BeginExceptionBlock(); |
43 | void Emit (Token errorAt, OpCode opcode); | 43 | void BeginCatchBlock(Type excType); |
44 | void Emit (Token errorAt, OpCode opcode, FieldInfo field); | 44 | void BeginFinallyBlock(); |
45 | void Emit (Token errorAt, OpCode opcode, ScriptMyLocal myLocal); | 45 | void EndExceptionBlock(); |
46 | void Emit (Token errorAt, OpCode opcode, Type type); | 46 | void Emit(Token errorAt, OpCode opcode); |
47 | void Emit (Token errorAt, OpCode opcode, ScriptMyLabel myLabel); | 47 | void Emit(Token errorAt, OpCode opcode, FieldInfo field); |
48 | void Emit (Token errorAt, OpCode opcode, ScriptMyLabel[] myLabels); | 48 | void Emit(Token errorAt, OpCode opcode, ScriptMyLocal myLocal); |
49 | void Emit (Token errorAt, OpCode opcode, ScriptObjWriter method); | 49 | void Emit(Token errorAt, OpCode opcode, Type type); |
50 | void Emit (Token errorAt, OpCode opcode, MethodInfo method); | 50 | void Emit(Token errorAt, OpCode opcode, ScriptMyLabel myLabel); |
51 | void Emit (Token errorAt, OpCode opcode, ConstructorInfo ctor); | 51 | void Emit(Token errorAt, OpCode opcode, ScriptMyLabel[] myLabels); |
52 | void Emit (Token errorAt, OpCode opcode, double value); | 52 | void Emit(Token errorAt, OpCode opcode, ScriptObjWriter method); |
53 | void Emit (Token errorAt, OpCode opcode, float value); | 53 | void Emit(Token errorAt, OpCode opcode, MethodInfo method); |
54 | void Emit (Token errorAt, OpCode opcode, int value); | 54 | void Emit(Token errorAt, OpCode opcode, ConstructorInfo ctor); |
55 | void Emit (Token errorAt, OpCode opcode, string value); | 55 | void Emit(Token errorAt, OpCode opcode, double value); |
56 | void MarkLabel (ScriptMyLabel myLabel); | 56 | void Emit(Token errorAt, OpCode opcode, float value); |
57 | void Emit(Token errorAt, OpCode opcode, int value); | ||
58 | void Emit(Token errorAt, OpCode opcode, string value); | ||
59 | void MarkLabel(ScriptMyLabel myLabel); | ||
57 | } | 60 | } |
58 | 61 | ||
59 | /** | 62 | /** |
60 | * @brief One of these per label defined in the function. | 63 | * @brief One of these per label defined in the function. |
61 | */ | 64 | */ |
62 | public class ScriptMyLabel { | 65 | public class ScriptMyLabel |
66 | { | ||
63 | public string name; | 67 | public string name; |
64 | public int number; | 68 | public int number; |
65 | 69 | ||
@@ -71,7 +75,8 @@ namespace OpenSim.Region.ScriptEngine.XMREngine | |||
71 | /** | 75 | /** |
72 | * @brief One of these per local variable defined in the function. | 76 | * @brief One of these per local variable defined in the function. |
73 | */ | 77 | */ |
74 | public class ScriptMyLocal { | 78 | public class ScriptMyLocal |
79 | { | ||
75 | public string name; | 80 | public string name; |
76 | public Type type; | 81 | public Type type; |
77 | public int number; | 82 | public int number; |