[mcs] Adds handling for declared variables from while loop condition
[mono.git] / mcs / mcs / argument.cs
index 702ace629c3f3e4fb23802345b31a97428eca232..00fd56d8a64a23743451fc6b829f07abe77f3cec 100644 (file)
@@ -473,6 +473,13 @@ namespace Mono.CSharp
                        Emit (ec, false, false);
                }
 
+               public void EmitPrepare (EmitContext ec)
+               {
+                       foreach (var a in args) {
+                               a.Expr.EmitPrepare (ec);
+                       }
+               }
+
                //
                // if `dup_args' is true or any of arguments contains await.
                // A copy of all arguments will be returned to the caller