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