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