31 references to InExpression
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
445if (CheckIdentifiersInNode(join.InExpression, enclosingBinder) &&
Binder\Binder_Query.cs (3)
380var inExpression = BindRValueWithoutTargetType(join.InExpression, diagnostics); 386diagnostics.Add(ErrorCode.ERR_BadDynamicQuery, join.InExpression.Location); 387inExpression = BadExpression(join.InExpression, inExpression);
Binder\ExpressionVariableFinder.cs (1)
309VisitNodeToBind(((JoinClauseSyntax)clause).InExpression);
Binder\LocalBinderFactory.cs (1)
1107Visit(((JoinClauseSyntax)clause).InExpression);
Syntax.xml.Main.Generated.cs (1)
1732=> node.Update(VisitToken(node.JoinKeyword), (TypeSyntax?)Visit(node.Type), VisitToken(node.Identifier), VisitToken(node.InKeyword), (ExpressionSyntax?)Visit(node.InExpression) ?? throw new ArgumentNullException("inExpression"), VisitToken(node.OnKeyword), (ExpressionSyntax?)Visit(node.LeftExpression) ?? throw new ArgumentNullException("leftExpression"), VisitToken(node.EqualsKeyword), (ExpressionSyntax?)Visit(node.RightExpression) ?? throw new ArgumentNullException("rightExpression"), (JoinIntoClauseSyntax?)Visit(node.Into));
Syntax.xml.Syntax.Generated.cs (10)
4593if (joinKeyword != this.JoinKeyword || type != this.Type || identifier != this.Identifier || inKeyword != this.InKeyword || inExpression != this.InExpression || onKeyword != this.OnKeyword || leftExpression != this.LeftExpression || equalsKeyword != this.EqualsKeyword || rightExpression != this.RightExpression || into != this.Into) 4603public JoinClauseSyntax WithJoinKeyword(SyntaxToken joinKeyword) => Update(joinKeyword, this.Type, this.Identifier, this.InKeyword, this.InExpression, this.OnKeyword, this.LeftExpression, this.EqualsKeyword, this.RightExpression, this.Into); 4604public JoinClauseSyntax WithType(TypeSyntax? type) => Update(this.JoinKeyword, type, this.Identifier, this.InKeyword, this.InExpression, this.OnKeyword, this.LeftExpression, this.EqualsKeyword, this.RightExpression, this.Into); 4605public JoinClauseSyntax WithIdentifier(SyntaxToken identifier) => Update(this.JoinKeyword, this.Type, identifier, this.InKeyword, this.InExpression, this.OnKeyword, this.LeftExpression, this.EqualsKeyword, this.RightExpression, this.Into); 4606public JoinClauseSyntax WithInKeyword(SyntaxToken inKeyword) => Update(this.JoinKeyword, this.Type, this.Identifier, inKeyword, this.InExpression, this.OnKeyword, this.LeftExpression, this.EqualsKeyword, this.RightExpression, this.Into); 4608public JoinClauseSyntax WithOnKeyword(SyntaxToken onKeyword) => Update(this.JoinKeyword, this.Type, this.Identifier, this.InKeyword, this.InExpression, onKeyword, this.LeftExpression, this.EqualsKeyword, this.RightExpression, this.Into); 4609public JoinClauseSyntax WithLeftExpression(ExpressionSyntax leftExpression) => Update(this.JoinKeyword, this.Type, this.Identifier, this.InKeyword, this.InExpression, this.OnKeyword, leftExpression, this.EqualsKeyword, this.RightExpression, this.Into); 4610public JoinClauseSyntax WithEqualsKeyword(SyntaxToken equalsKeyword) => Update(this.JoinKeyword, this.Type, this.Identifier, this.InKeyword, this.InExpression, this.OnKeyword, this.LeftExpression, equalsKeyword, this.RightExpression, this.Into); 4611public JoinClauseSyntax WithRightExpression(ExpressionSyntax rightExpression) => Update(this.JoinKeyword, this.Type, this.Identifier, this.InKeyword, this.InExpression, this.OnKeyword, this.LeftExpression, this.EqualsKeyword, rightExpression, this.Into); 4612public JoinClauseSyntax WithInto(JoinIntoClauseSyntax? into) => Update(this.JoinKeyword, this.Type, this.Identifier, this.InKeyword, this.InExpression, this.OnKeyword, this.LeftExpression, this.EqualsKeyword, this.RightExpression, into);
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\KeywordRecommenders\OnKeywordRecommender.cs (2)
33var lastToken = join.InExpression.GetLastToken(includeSkipped: true); 35if (join.InExpression.Width() > 0 &&
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (4)
161if (IsLocalOrParameterSymbol(joinClause.InExpression)) 163expression2 = joinClause.InExpression; 174joinClause.InExpression, 178extraStatementToAddAbove = CreateLocalDeclarationStatement(variable, joinClause.InExpression, generateTypeFromExpression: false);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Generated\Syntax.Test.xml.Generated.cs (2)
12003Assert.NotNull(node.InExpression); 12009var newNode = node.WithJoinKeyword(node.JoinKeyword).WithType(node.Type).WithIdentifier(node.Identifier).WithInKeyword(node.InKeyword).WithInExpression(node.InExpression).WithOnKeyword(node.OnKeyword).WithLeftExpression(node.LeftExpression).WithEqualsKeyword(node.EqualsKeyword).WithRightExpression(node.RightExpression).WithInto(node.Into);
Parsing\ExpressionParsingTests.cs (6)
2850Assert.NotNull(js.InExpression); 2851Assert.Equal("B", js.InExpression.ToString()); 2907Assert.NotNull(js.InExpression); 2908Assert.Equal("B", js.InExpression.ToString()); 2960Assert.NotNull(js.InExpression); 2961Assert.Equal("B", js.InExpression.ToString());