Removed the use of EmitCall thru out the project. It was originally used out of ignor...
authorMichael Welch <michaelgwelch@gmail.com>
Thu, 28 Dec 2006 22:33:08 +0000 (22:33 +0000)
committerMichael Welch <michaelgwelch@gmail.com>
Thu, 28 Dec 2006 22:33:08 +0000 (22:33 +0000)
mbasic/SyntaxTree/Concatenate.cs
mbasic/SyntaxTree/Input.cs
mbasic/SyntaxTree/Power.cs

index 66e1ed9..c49df8f 100644 (file)
@@ -56,7 +56,7 @@ namespace mbasic.SyntaxTree
         {
             s1.Emit(gen);
             s2.Emit(gen);
-            gen.EmitCall(OpCodes.Call, concatMethod, new Type[0]);
+            gen.Emit(OpCodes.Call, concatMethod);
         }
     }
 }
index ad56422..06b90ce 100644 (file)
@@ -53,12 +53,12 @@ namespace mbasic.SyntaxTree
             Label readLine = gen.DefineLabel();
             MarkSequencePoint(gen);
             gen.MarkLabel(readLine);
-            gen.EmitCall(OpCodes.Call, readLineMethod, new Type[0]);
+            gen.Emit(OpCodes.Call, readLineMethod);
             if (varType == BasicType.Number)
             {
                 // Try to parse it into a double, if not possible give a warning and read again.
                 gen.Emit(OpCodes.Ldloca, (short) index);
-                gen.EmitCall(OpCodes.Call, tryParseMethod, new Type[0]);
+                gen.Emit(OpCodes.Call, tryParseMethod);
                 // if return value is false, the parse failed. go back to read line
                 gen.Emit(OpCodes.Brfalse_S, readLine);
 
index 4ee84f6..42b087a 100644 (file)
@@ -45,7 +45,7 @@ namespace mbasic.SyntaxTree
             
             op1.Emit(gen);
             op2.Emit(gen);
-            gen.EmitCall(OpCodes.Call, powerMethod, new Type[0]);
+            gen.Emit(OpCodes.Call, powerMethod);
         }