26 references to Type
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Query.cs (3)
391
if (join.
Type
!= null)
397
var castType = BindTypeArgument(join.
Type
, diagnostics);
398
castInvocation = MakeQueryInvocation(join, inExpression, receiverIsCheckedForRValue: false, "Cast", join.
Type
, castType, diagnostics
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);
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);
4607
public JoinClauseSyntax WithInExpression(ExpressionSyntax inExpression) => Update(this.JoinKeyword, this.
Type
, this.Identifier, this.InKeyword, 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);
Syntax\SyntaxFacts.cs (1)
126
return ((JoinClauseSyntax)parent).
Type
== node;
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\KeywordRecommenders\InKeywordRecommender.cs (4)
120
if (token == joinClause.Identifier && joinClause.
Type
!= null)
127
if (joinClause.
Type
!= null &&
128
joinClause.
Type
is IdentifierNameSyntax joinIdentifier &&
130
!joinClause.
Type
.IsPotentialTypeName(context.SemanticModel, cancellationToken))
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
194
joinClause.
Type
?? VarNameIdentifier,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Generated\Syntax.Test.xml.Generated.cs (2)
12000
Assert.Null(node.
Type
);
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 (4)
2845
Assert.Null(js.
Type
);
2901
Assert.NotNull(js.
Type
);
2902
Assert.Equal("Tb", js.
Type
.ToString());
2955
Assert.Null(js.
Type
);