42 references to Type
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Query.cs (9)
54
if (fromClause.
Type
!= null)
56
var typeRestriction = BindTypeArgument(fromClause.
Type
, diagnostics);
57
cast = MakeQueryInvocation(fromClause, state.fromExpression, receiverIsCheckedForRValue: false, "Cast", fromClause.
Type
, typeRestriction, diagnostics
123
if (query.FromClause.
Type
!= null)
592
if (from.
Type
== null)
598
collectionSelectorLambda = MakeQueryUnboundLambdaWithCast(state.RangeVariableMap(), x1, from.Expression, from.
Type
, BindTypeArgument(from.
Type
, diagnostics), diagnostics.AccumulatesDependencies);
631
BoundExpression? castInvocation = (from.
Type
!= null) ? ExtractCastInvocation(invocation) : null;
678
BoundExpression? castInvocation = (from.
Type
!= null) ? ExtractCastInvocation(invocation) : null;
Binder\Binder_QueryErrors.cs (1)
60
else if (fromClause != null && fromClause.
Type
== null && HasCastToQueryProvider(instanceArgument.Type, ref useSiteInfo))
Syntax.xml.Main.Generated.cs (1)
1726
=> node.Update(VisitToken(node.FromKeyword), (TypeSyntax?)Visit(node.
Type
), VisitToken(node.Identifier), VisitToken(node.InKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
Syntax.xml.Syntax.Generated.cs (5)
4460
if (fromKeyword != this.FromKeyword || type != this.
Type
|| identifier != this.Identifier || inKeyword != this.InKeyword || expression != this.Expression)
4470
public FromClauseSyntax WithFromKeyword(SyntaxToken fromKeyword) => Update(fromKeyword, this.
Type
, this.Identifier, this.InKeyword, this.Expression);
4472
public FromClauseSyntax WithIdentifier(SyntaxToken identifier) => Update(this.FromKeyword, this.
Type
, identifier, this.InKeyword, this.Expression);
4473
public FromClauseSyntax WithInKeyword(SyntaxToken inKeyword) => Update(this.FromKeyword, this.
Type
, this.Identifier, inKeyword, this.Expression);
4474
public FromClauseSyntax WithExpression(ExpressionSyntax expression) => Update(this.FromKeyword, this.
Type
, this.Identifier, this.InKeyword, expression);
Syntax\SyntaxFacts.cs (1)
123
return ((FromClauseSyntax)parent).
Type
== node;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
614
fromClause.
Type
== topExpression)
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\InKeywordRecommender.cs (1)
99
if (token == fromClause.Identifier && fromClause.
Type
!= null)
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
144
fromClause.
Type
?? VarNameIdentifier,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (20)
Generated\Syntax.Test.xml.Generated.cs (2)
11973
Assert.Null(node.
Type
);
11977
var newNode = node.WithFromKeyword(node.FromKeyword).WithType(node.
Type
).WithIdentifier(node.Identifier).WithInKeyword(node.InKeyword).WithExpression(node.Expression);
Parsing\ExpressionParsingTests.cs (18)
2307
Assert.Null(fs.
Type
);
2340
Assert.NotNull(fs.
Type
);
2341
Assert.Equal("T", fs.
Type
.ToString());
2374
Assert.Null(fs.
Type
);
2424
Assert.Null(fs.
Type
);
2464
Assert.Null(fs.
Type
);
2475
Assert.Null(fs.
Type
);
2507
Assert.Null(fs.
Type
);
2552
Assert.Null(fs.
Type
);
2597
Assert.Null(fs.
Type
);
2646
Assert.Null(fs.
Type
);
2694
Assert.Null(fs.
Type
);
2741
Assert.Null(fs.
Type
);
2780
Assert.Null(fs.
Type
);
2834
Assert.Null(fs.
Type
);
2890
Assert.NotNull(fs.
Type
);
2891
Assert.Equal("Ta", fs.
Type
.ToString());
2945
Assert.Null(fs.
Type
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
614
fromClause.
Type
== topExpression)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
614
fromClause.
Type
== topExpression)