internal override ExprSingle CompileCore (XQueryASTCompiler compiler) { Satisfies = Satisfies.Compile (compiler); for (int i = 0; i < BodyList.Count; i++) { BodyList [i].Expression = BodyList [i].Expression.Compile (compiler); if (BodyList [i].Type != null) compiler.CheckType (BodyList [i].Expression, BodyList [i].Type); } return this; }
internal override ExprSingle CompileCore (XQueryASTCompiler compiler) { foreach (ForLetClause flc in ForLetClauses) { foreach (ForLetSingleBody flsb in flc) { flsb.Expression = flsb.Expression.Compile (compiler); if (flsb.ReturnType != null) compiler.CheckType (flsb.Expression, flsb.ReturnType); } } if (WhereClause != null) whereClause = whereClause.Compile (compiler); if (OrderBy != null) foreach (OrderSpec os in OrderBy) os.Expression = os.Expression.Compile (compiler); ReturnExpr = ReturnExpr.Compile (compiler); return this; }