[asp.net] Fix for bug #669048. Fix up virtual precompiled app virtual paths with...
[mono.git] / mcs / mcs / linq.cs
index afda9156828f0e93f4aa9863ea55b6c0b402d0fa..8d3f05bfeda1075bd5c824ddb9ddc9b295691598 100644 (file)
@@ -349,8 +349,6 @@ namespace Mono.CSharp.Linq
 
                public Expression CreateReferenceExpression (ResolveContext rc, Location loc)
                {
-                       Expression expr = null;
-
                        // 
                        // We know the variable name is somewhere in the scope. This generates
                        // an access expression from current block
@@ -363,6 +361,7 @@ namespace Mono.CSharp.Linq
                                                if (p.Name == Name)
                                                        return pb.GetParameterReference (i, loc);
 
+                                               Expression expr = null;
                                                var tp = p as QueryBlock.TransparentParameter;
                                                while (tp != null) {
                                                        if (expr == null)
@@ -379,8 +378,6 @@ namespace Mono.CSharp.Linq
                                                        tp = tp.Parent as QueryBlock.TransparentParameter;
                                                }
                                        }
-
-                                       expr = null;
                                }
 
                                if (pb == block)
@@ -644,7 +641,7 @@ namespace Mono.CSharp.Linq
 
        public class Where : AQueryClause
        {
-               public Where (QueryBlock block, BooleanExpression expr, Location loc)
+               public Where (QueryBlock block, Expression expr, Location loc)
                        : base (block, expr, loc)
                {
                }