2 instantiations of SemanticResolver
System.Data.Entity (2)
System\Data\Common\EntitySql\SemanticResolver.cs (2)
122return new SemanticResolver( 134return new SemanticResolver(
125 references to SemanticResolver
System.Data.Entity (125)
System\Data\Common\EntitySql\CqlQuery.cs (1)
286SemanticAnalyzer analyzer = (new SemanticAnalyzer(SemanticResolver.Create(perspective, parserOptions, parameters, variables)));
System\Data\Common\EntitySql\SemanticAnalyzer.cs (117)
32private SemanticResolver _sr; 38internal SemanticAnalyzer(SemanticResolver sr) 131private static void ConvertAndRegisterNamespaceImports(AST.NodeList<AST.NamespaceImport> nsImportList, ErrorContext cmdErrCtx, SemanticResolver sr) 208private static ParseResult ConvertStatement(AST.Statement astStatement, SemanticResolver sr) 229private delegate ParseResult StatementConverter(AST.Statement astExpr, SemanticResolver sr); 235private static ParseResult ConvertQueryStatementToDbCommandTree(AST.Statement astStatement, SemanticResolver sr) 256/// <param name="sr">The <see cref="SemanticResolver"/>instance to use</param> 261private static DbExpression ConvertQueryStatementToDbExpression(AST.Statement astStatement, SemanticResolver sr, out List<FunctionDefinition> functionDefs) 343private static List<FunctionDefinition> ConvertInlineFunctionDefinitions(AST.NodeList<AST.FunctionDefinition> functionDefList, SemanticResolver sr) 392private static List<DbVariableReferenceExpression> ConvertInlineFunctionParameterDefs(AST.NodeList<AST.PropDefinition> parameterDefs, SemanticResolver sr) 438internal override DbLambda GetLambda(SemanticResolver sr) 455SemanticResolver srSandbox = sr.CloneForInlineFunctionConversion(); 465private static DbLambda ConvertInlineFunctionDefinition(InlineFunctionInfo functionInfo, SemanticResolver sr) 496private static ExpressionResolution Convert(AST.Node astExpr, SemanticResolver sr) 512private static DbExpression ConvertValueExpression(AST.Node astExpr, SemanticResolver sr) 528private static DbExpression ConvertValueExpressionAllowUntypedNulls(AST.Node astExpr, SemanticResolver sr) 575SemanticResolver sr) 602private static ExpressionResolution ConvertLiteral(AST.Node expr, SemanticResolver sr) 635private static ExpressionResolution ConvertIdentifier(AST.Node expr, SemanticResolver sr) 640private static ExpressionResolution ConvertIdentifier(AST.Identifier identifier, bool leftHandSideOfMemberAccess, SemanticResolver sr) 648private static ExpressionResolution ConvertDotExpr(AST.Node expr, SemanticResolver sr) 693private static ExpressionResolution ConvertParenExpr(AST.Node astExpr, SemanticResolver sr) 709private static ExpressionResolution ConvertGroupPartitionExpr(AST.Node astExpr, SemanticResolver sr) 781private static ExpressionResolution ConvertMethodExpr(AST.Node expr, SemanticResolver sr) 786private static ExpressionResolution ConvertMethodExpr(AST.MethodExpr methodExpr, bool includeInlineFunctions, SemanticResolver sr) 867private static IDisposable ConvertMethodExpr_TryEnterIgnoreEntityContainerNameResolution(AST.DotExpr leftExpr, SemanticResolver sr) 882private static IDisposable ConvertMethodExpr_TryEnterV1ViewGenBackwardCompatibilityResolution(AST.DotExpr leftExpr, SemanticResolver sr) 910SemanticResolver sr, 933InlineFunctionInfo overload = SemanticResolver.ResolveFunctionOverloads( 967private static ValueExpression ConvertTypeConstructorCall(MetadataType metadataType, AST.MethodExpr methodExpr, SemanticResolver sr) 1041private static ValueExpression ConvertModelFunctionCall(MetadataFunctionGroup metadataFunctionGroup, AST.MethodExpr methodExpr, SemanticResolver sr) 1077private static DbExpression ConvertAggregateFunctionInGroupScope(AST.MethodExpr methodExpr, MetadataFunctionGroup metadataFunctionGroup, SemanticResolver sr) 1142private static bool TryConvertAsResolvedGroupAggregate(AST.GroupAggregateExpr groupAggregateExpr, SemanticResolver sr, out DbExpression converted) 1182SemanticResolver sr, 1195EdmFunction functionType = SemanticResolver.ResolveFunctionOverloads( 1231SemanticResolver sr, 1242EdmFunction functionType = SemanticResolver.ResolveFunctionOverloads( 1328SemanticResolver sr) 1437SemanticResolver sr) 1459EdmFunction functionType = SemanticResolver.ResolveFunctionOverloads( 1500private static List<DbExpression> ConvertFunctionArguments(AST.NodeList<AST.Node> astExprList, SemanticResolver sr, out List<TypeUsage> argTypes) 1534private static ExpressionResolution ConvertParameter(AST.Node expr, SemanticResolver sr) 1554private static DbRelatedEntityRef ConvertRelatedEntityRef(AST.RelshipNavigationExpr relshipExpr, EntityType driverEntityType, SemanticResolver sr) 1669private static ExpressionResolution ConvertRelshipNavigationExpr(AST.Node astExpr, SemanticResolver sr) 1796private static ExpressionResolution ConvertRefExpr(AST.Node astExpr, SemanticResolver sr) 1822private static ExpressionResolution ConvertDeRefExpr(AST.Node astExpr, SemanticResolver sr) 1850private static ExpressionResolution ConvertCreateRefExpr(AST.Node astExpr, SemanticResolver sr) 1939private static ExpressionResolution ConvertKeyExpr(AST.Node astExpr, SemanticResolver sr) 1963private static ExpressionResolution ConvertBuiltIn(AST.Node astExpr, SemanticResolver sr) 1982private static Pair<DbExpression, DbExpression> ConvertArithmeticArgs(AST.BuiltInExpr astBuiltInExpr, SemanticResolver sr) 2019private static Pair<DbExpression, DbExpression> ConvertPlusOperands(AST.BuiltInExpr astBuiltInExpr, SemanticResolver sr) 2053private static Pair<DbExpression, DbExpression> ConvertLogicalArgs(AST.BuiltInExpr astBuiltInExpr, SemanticResolver sr) 2096private static Pair<DbExpression, DbExpression> ConvertEqualCompArgs(AST.BuiltInExpr astBuiltInExpr, SemanticResolver sr) 2126private static Pair<DbExpression, DbExpression> ConvertOrderCompArgs(AST.BuiltInExpr astBuiltInExpr, SemanticResolver sr) 2153private static Pair<DbExpression, DbExpression> ConvertSetArgs(AST.BuiltInExpr astBuiltInExpr, SemanticResolver sr) 2271private static Pair<DbExpression, DbExpression> ConvertInExprArgs(AST.BuiltInExpr astBuiltInExpr, SemanticResolver sr) 2322private static TypeUsage ConvertTypeName(AST.Node typeName, SemanticResolver sr) 2392private static TypeUsage ConvertTypeSpecArgs(TypeUsage parameterizedType, AST.NodeList<AST.Node> typeSpecArgs, ErrorContext errCtx, SemanticResolver sr) 2476private static TypeUsage ConvertTypeDefinition(AST.Node typeDefinitionExpr, SemanticResolver sr) 2530private static ExpressionResolution ConvertRowConstructor(AST.Node expr, SemanticResolver sr) 2572private static ExpressionResolution ConvertMultisetConstructor(AST.Node expr, SemanticResolver sr) 2623private static ExpressionResolution ConvertCaseExpr(AST.Node expr, SemanticResolver sr) 2712private static ExpressionResolution ConvertQueryExpr(AST.Node expr, SemanticResolver sr) 2791private static DbExpression ProcessSelectClause(DbExpressionBinding source, AST.QueryExpr queryExpr, bool queryProjectionProcessed, SemanticResolver sr) 2852private static List<KeyValuePair<string, DbExpression>> ConvertSelectClauseItems(AST.QueryExpr queryExpr, SemanticResolver sr) 2981private static void ValidateExpressionIsCommandParamOrNonNegativeIntegerConstant(DbExpression expr, ErrorContext errCtx, string exprName, SemanticResolver sr) 3004private static DbExpressionBinding ProcessFromClause(AST.FromClause fromClause, SemanticResolver sr) 3046private static DbExpressionBinding ProcessFromClauseItem(AST.FromClauseItem fromClauseItem, SemanticResolver sr, out List<SourceScopeEntry> scopeEntries) 3075private static DbExpressionBinding ProcessAliasedFromClauseItem(AST.AliasedExpr aliasedExpr, SemanticResolver sr, out List<SourceScopeEntry> scopeEntries) 3134private static DbExpressionBinding ProcessJoinClauseItem(AST.JoinClauseItem joinClause, SemanticResolver sr, out List<SourceScopeEntry> scopeEntries) 3250private static DbExpressionBinding ProcessApplyClauseItem(AST.ApplyClauseItem applyClause, SemanticResolver sr, out List<SourceScopeEntry> scopeEntries) 3299private static DbExpressionBinding ProcessWhereClause(DbExpressionBinding source, AST.Node whereClause, SemanticResolver sr) 3311private static DbExpressionBinding ProcessHavingClause(DbExpressionBinding source, AST.HavingClause havingClause, SemanticResolver sr) 3323private static DbExpressionBinding ProcessWhereHavingClausePredicate(DbExpressionBinding source, AST.Node predicate, ErrorContext errCtx, string bindingNameTemplate, SemanticResolver sr) 3369private static DbExpressionBinding ProcessGroupByClause(DbExpressionBinding source, AST.QueryExpr queryExpr, SemanticResolver sr) 4049private static DbExpressionBinding ProcessOrderByClause(DbExpressionBinding source, AST.QueryExpr queryExpr, out bool queryProjectionProcessed, SemanticResolver sr) 4306private static DbExpression ConvertSimpleInExpression(SemanticResolver sr, DbExpression left, DbExpression right) 4341private delegate ExpressionResolution AstExprConverter(AST.Node astExpr, SemanticResolver sr); 4343private delegate DbExpression BuiltInExprConverter(AST.BuiltInExpr astBltInExpr, SemanticResolver sr); 4383builtInExprConverter.Add(AST.BuiltInKind.Plus, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4407EdmFunction concatFunction = SemanticResolver.ResolveFunctionOverloads( 4428builtInExprConverter.Add(AST.BuiltInKind.Minus, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4440builtInExprConverter.Add(AST.BuiltInKind.Multiply, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4452builtInExprConverter.Add(AST.BuiltInKind.Divide, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4464builtInExprConverter.Add(AST.BuiltInKind.Modulus, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4476builtInExprConverter.Add(AST.BuiltInKind.UnaryMinus, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4497builtInExprConverter.Add(AST.BuiltInKind.UnaryPlus, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4512builtInExprConverter.Add(AST.BuiltInKind.And, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4525builtInExprConverter.Add(AST.BuiltInKind.Or, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4538builtInExprConverter.Add(AST.BuiltInKind.Not, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4552builtInExprConverter.Add(AST.BuiltInKind.Equal, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4564builtInExprConverter.Add(AST.BuiltInKind.NotEqual, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4578builtInExprConverter.Add(AST.BuiltInKind.GreaterEqual, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4590builtInExprConverter.Add(AST.BuiltInKind.GreaterThan, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4602builtInExprConverter.Add(AST.BuiltInKind.LessEqual, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4614builtInExprConverter.Add(AST.BuiltInKind.LessThan, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4632builtInExprConverter.Add(AST.BuiltInKind.Union, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4644builtInExprConverter.Add(AST.BuiltInKind.UnionAll, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4656builtInExprConverter.Add(AST.BuiltInKind.Intersect, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4668builtInExprConverter.Add(AST.BuiltInKind.Overlaps, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4680builtInExprConverter.Add(AST.BuiltInKind.AnyElement, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4690builtInExprConverter.Add(AST.BuiltInKind.Element, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4700builtInExprConverter.Add(AST.BuiltInKind.Except, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4712builtInExprConverter.Add(AST.BuiltInKind.Exists, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4722builtInExprConverter.Add(AST.BuiltInKind.Flatten, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4750builtInExprConverter.Add(AST.BuiltInKind.In, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4788builtInExprConverter.Add(AST.BuiltInKind.NotIn, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4823builtInExprConverter.Add(AST.BuiltInKind.Distinct, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4840builtInExprConverter.Add(AST.BuiltInKind.IsNull, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4860builtInExprConverter.Add(AST.BuiltInKind.IsNotNull, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4884builtInExprConverter.Add(AST.BuiltInKind.IsOf, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 4962builtInExprConverter.Add(AST.BuiltInKind.Treat, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 5027builtInExprConverter.Add(AST.BuiltInKind.Cast, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 5066builtInExprConverter.Add(AST.BuiltInKind.OfType, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 5131builtInExprConverter.Add(AST.BuiltInKind.Like, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 5189builtInExprConverter.Add(AST.BuiltInKind.NotBetween, delegate(AST.BuiltInExpr bltInExpr, SemanticResolver sr) 5198private static DbExpression ConvertBetweenExpr(AST.BuiltInExpr bltInExpr, SemanticResolver sr)
System\Data\Common\EntitySql\SemanticResolver.cs (7)
112/// Creates new instance of <see cref="SemanticResolver"/>. 114internal static SemanticResolver Create(Perspective perspective, 130/// Creates a copy of <see cref="SemanticResolver"/> with clean scopes and shared inline function definitions inside of the type resolver. 132internal SemanticResolver CloneForInlineFunctionConversion() 1156internal void UpdateScopeIndex(int referencedScopeIndex, SemanticResolver sr) 1190internal void ValidateAndComputeEvaluatingScopeRegion(SemanticResolver sr) 1508internal abstract DbLambda GetLambda(SemanticResolver sr);