45 references to Expression
Microsoft.CodeAnalysis.CSharp (24)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1738=> node.Update(VisitToken(node.FromKeyword), (TypeSyntax?)Visit(node.Type), VisitToken(node.Identifier), VisitToken(node.InKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
_generated\2\Syntax.xml.Syntax.Generated.cs (5)
4505if (fromKeyword != this.FromKeyword || type != this.Type || identifier != this.Identifier || inKeyword != this.InKeyword || expression != this.Expression) 4515public FromClauseSyntax WithFromKeyword(SyntaxToken fromKeyword) => Update(fromKeyword, this.Type, this.Identifier, this.InKeyword, this.Expression); 4516public FromClauseSyntax WithType(TypeSyntax? type) => Update(this.FromKeyword, type, this.Identifier, this.InKeyword, this.Expression); 4517public FromClauseSyntax WithIdentifier(SyntaxToken identifier) => Update(this.FromKeyword, this.Type, identifier, this.InKeyword, this.Expression); 4518public FromClauseSyntax WithInKeyword(SyntaxToken inKeyword) => Update(this.FromKeyword, this.Type, this.Identifier, inKeyword, this.Expression);
Binder\Binder.IdentifierUsedAsValueFinder.cs (3)
238case FromClauseSyntax { Parent: QueryExpressionSyntax query } fromClause when query.FromClause == fromClause && fromClause.Expression == id: 320if (CheckIdentifiersInNode(query.FromClause.Expression, enclosingBinder)) 503if (MakeQueryUnboundLambda(enclosingBinder, state.RangeVariableMap(), x1, from.Expression))
Binder\Binder_Expressions.cs (1)
7674(left.Parent is FromClauseSyntax { Parent: QueryExpressionSyntax query } fromClause && query.FromClause == fromClause && fromClause.Expression == left));
Binder\Binder_Query.cs (5)
29var boundFromExpression = BindLeftOfPotentialColorColorMemberAccess(fromClause.Expression, diagnostics); 35diagnostics.Add(ErrorCode.ERR_BadDynamicQuery, fromClause.Expression.Location); 36boundFromExpression = BadExpression(fromClause.Expression, boundFromExpression); 590collectionSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), x1, from.Expression, diagnostics.AccumulatesDependencies); 594collectionSelectorLambda = MakeQueryUnboundLambdaWithCast(state.RangeVariableMap(), x1, from.Expression, from.Type, BindTypeArgument(from.Type, diagnostics), diagnostics.AccumulatesDependencies);
Binder\Binder_QueryErrors.cs (4)
58symbols), new SourceLocation(fromClause != null ? fromClause.Expression : queryClause)); 66symbols), new SourceLocation(fromClause.Expression)); 74symbols), new SourceLocation(fromClause != null ? fromClause.Expression : queryClause)); 242symbols), fromClause.Expression.Location);
Binder\ExpressionVariableFinder.cs (1)
297VisitNodeToBind(node.FromClause.Expression);
Binder\LocalBinderFactory.cs (1)
1097Visit(node.FromClause.Expression);
Syntax\LambdaUtilities.cs (3)
85return ((FromClauseSyntax)newLambda).Expression; 167return fromClause.Expression == node && fromClause.Parent is QueryBodySyntax; 305lambdaBody1 = ((FromClauseSyntax)node).Expression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
377=> token.Kind() == SyntaxKind.InKeyword && token.Parent is FromClauseSyntax { Expression: QueryExpressionSyntax };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
76var startToken = fromClause.Expression.GetFirstToken(includeZeroWidth: true); 77var endToken = fromClause.Expression.GetLastToken(includeZeroWidth: true); 112var lastToken = queryExpression.FromClause.Expression.GetLastToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CSharp.Features (9)
AddImport\CSharpAddImportFeatureService.cs (1)
285return semanticModel.GetTypeInfo(fromClause.Expression, cancellationToken).Type;
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (4)
127if (isLastClause && hasExtraDeclarations && !IsLocalOrParameterSymbol(_source.FromClause.Expression)) 131fromClause.Expression, 135extraStatementToAddAbove = CreateLocalDeclarationStatement(variable, fromClause.Expression, generateTypeFromExpression: false); 140expression1 = fromClause.Expression.WithoutTrivia();
EditAndContinue\BreakpointSpans.cs (1)
391return TryCreateSpanForNode(fromClause.Expression, position);
src\roslyn\src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (3)
85return ((FromClauseSyntax)newLambda).Expression; 167return fromClause.Expression == node && fromClause.Parent is QueryBodySyntax; 305lambdaBody1 = ((FromClauseSyntax)node).Expression;
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
377=> token.Kind() == SyntaxKind.InKeyword && token.Parent is FromClauseSyntax { Expression: QueryExpressionSyntax };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
76var startToken = fromClause.Expression.GetFirstToken(includeZeroWidth: true); 77var endToken = fromClause.Expression.GetLastToken(includeZeroWidth: true); 112var lastToken = queryExpression.FromClause.Expression.GetLastToken(includeZeroWidth: true);
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
377=> token.Kind() == SyntaxKind.InKeyword && token.Parent is FromClauseSyntax { Expression: QueryExpressionSyntax };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
76var startToken = fromClause.Expression.GetFirstToken(includeZeroWidth: true); 77var endToken = fromClause.Expression.GetLastToken(includeZeroWidth: true); 112var lastToken = queryExpression.FromClause.Expression.GetLastToken(includeZeroWidth: true);