aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-01-18 15:19:37 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-01-18 15:19:37 +0100
commit6872058571fff26386ab7fcf9ac497e1b651a42a (patch)
treef5b5076648cebfaa7628abca6a43a869bc08dd23 /src
parentf5122870d6e6535937b8026e47fd2efa87e02bc0 (diff)
'this' keyword in compiled handler
Diffstat (limited to 'src')
-rw-r--r--src/CompilerServices/CompilerServices.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs
index e0d6c1e0..e2c657ce 100644
--- a/src/CompilerServices/CompilerServices.cs
+++ b/src/CompilerServices/CompilerServices.cs
@@ -667,6 +667,8 @@ namespace Crow
il.Emit (OpCodes.Ldstr, strcst);
+ }else if (string.Equals(rop,"this",StringComparison.OrdinalIgnoreCase)){
+ il.Emit (OpCodes.Ldarg_0); //load sender ref onto the stack
} else {
if (lopT.IsEnum)
throw new NotImplementedException ();