23 references to Expression
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
525if (MakeQueryUnboundLambda(enclosingBinder, state.RangeVariableMap(), x, let.Expression))
Binder\Binder_Query.cs (5)
735lambdaBodyBinder = lambdaBodyBinder.GetRequiredBinder(let.Expression); 737var yExpression = lambdaBodyBinder.BindRValueWithoutTargetType(let.Expression, d); 738SourceLocation errorLocation = new SourceLocation(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart)); 755return lambdaBodyBinder.CreateLambdaBlockForQueryClause(let.Expression, construction, d); 758var lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies);
Syntax.xml.Main.Generated.cs (1)
1729=> node.Update(VisitToken(node.LetKeyword), VisitToken(node.Identifier), VisitToken(node.EqualsToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
Syntax.xml.Syntax.Generated.cs (4)
4510if (letKeyword != this.LetKeyword || identifier != this.Identifier || equalsToken != this.EqualsToken || expression != this.Expression) 4520public LetClauseSyntax WithLetKeyword(SyntaxToken letKeyword) => Update(letKeyword, this.Identifier, this.EqualsToken, this.Expression); 4521public LetClauseSyntax WithIdentifier(SyntaxToken identifier) => Update(this.LetKeyword, identifier, this.EqualsToken, this.Expression); 4522public LetClauseSyntax WithEqualsToken(SyntaxToken equalsToken) => Update(this.LetKeyword, this.Identifier, equalsToken, this.Expression);
Syntax\LambdaUtilities.cs (3)
88return ((LetClauseSyntax)newLambda).Expression; 175return letClause.Expression == node; 315lambdaBody1 = ((LetClauseSyntax)node).Expression;
Microsoft.CodeAnalysis.CSharp.Features (5)
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
150return AddToBlockTop(CreateLocalDeclarationStatement(letClause.Identifier, letClause.Expression, generateTypeFromExpression: false), statement);
EditAndContinue\BreakpointSpans.cs (1)
399return TryCreateSpanForNode(letClause.Expression, position);
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (3)
88return ((LetClauseSyntax)newLambda).Expression; 175return letClause.Expression == node; 315lambdaBody1 = ((LetClauseSyntax)node).Expression;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
11989Assert.NotNull(node.Expression); 11990var newNode = node.WithLetKeyword(node.LetKeyword).WithIdentifier(node.Identifier).WithEqualsToken(node.EqualsToken).WithExpression(node.Expression);
Parsing\ExpressionParsingTests.cs (2)
2523Assert.NotNull(ls.Expression); 2524Assert.Equal("B", ls.Expression.ToString());