2009-08-18 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / mcs / eval.cs
index fe565e54c8424f73395f9956f9cd43bfa3242c6b..bc36a672b3f50a107c47347cd0f4cd8a33909aab 100644 (file)
@@ -406,10 +406,9 @@ namespace Mono.CSharp {
                                                throw new InternalErrorException ("did not find the the Host method");
 
                                        EmitContext ec = method.CreateEmitContext (null);
-                                       bool unreach;
 
                                        try {
-                                               ec.ResolveTopBlock (null, method.Block, method.ParameterInfo, method, out unreach);
+                                               method.Block.Resolve (null, ec, method.ParameterInfo, method);
                                        } catch (CompletionResult cr){
                                                prefix = cr.BaseText;
                                                return cr.Result;