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