55 references to FromKeyword
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_QueryErrors.cs (1)
201clauseKind = SyntaxFacts.GetText(SyntaxKind.FromKeyword);
Parser\LanguageParser.cs (9)
8478((IdentifierNameSyntax)parameter.Type).Identifier.ContextualKind == SyntaxKind.FromKeyword) 10567return this.IsTrueIdentifier() || this.CurrentToken.ContextualKind == SyntaxKind.FromKeyword; 10932else if (this.CurrentToken.ContextualKind == SyntaxKind.FromKeyword && IsInQuery) 13415case SyntaxKind.FromKeyword: 13431return this.CurrentToken.ContextualKind == SyntaxKind.FromKeyword && 13494fc = this.AddError(fc, ErrorCode.WRN_PrecedenceInversion, SyntaxFacts.GetText(SyntaxKind.FromKeyword)); 13511case SyntaxKind.FromKeyword: 13552Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.FromKeyword); 13553var @from = this.EatContextualToken(SyntaxKind.FromKeyword);
Syntax\SyntaxKindFacts.cs (4)
1186case SyntaxKind.FromKeyword: 1241case SyntaxKind.FromKeyword: 1269return SyntaxKind.FromKeyword; 1709case SyntaxKind.FromKeyword:
Syntax\SyntaxNormalizer.cs (1)
279if ((nextToken.IsKind(SyntaxKind.FromKeyword) && nextToken.Parent.IsKind(SyntaxKind.FromClause)) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
35public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.FromKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
382return token.Kind() == SyntaxKind.FromKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373if ((currentToken.Kind() == SyntaxKind.FromKeyword && currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
150case SyntaxKind.FromKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
283case SyntaxKind.FromKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1840if (token.IsKindOrHasMatchingText(SyntaxKind.FromKeyword) &&
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
66else if (token.IsKindOrHasMatchingText(SyntaxKind.FromKeyword) || token.IsKindOrHasMatchingText(SyntaxKind.JoinKeyword))
Completion\KeywordRecommenders\FromKeywordRecommender.cs (1)
13: base(SyntaxKind.FromKeyword)
Completion\KeywordRecommenders\InKeywordRecommender.cs (1)
91if (token.GetPreviousToken(includeSkipped: true).IsKindOrHasMatchingText(SyntaxKind.FromKeyword))
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
53return contextualKind is SyntaxKind.FromKeyword or
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (22)
Generated\Syntax.Test.xml.Generated.cs (4)
230=> InternalSyntaxFactory.FromClause(InternalSyntaxFactory.Token(SyntaxKind.FromKeyword), null, InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName()); 1600Assert.Equal(SyntaxKind.FromKeyword, node.FromKeyword.Kind); 10407=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.FromKeyword), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName()); 11777Assert.Equal(SyntaxKind.FromKeyword, node.FromKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (5)
2168N(SyntaxKind.FromKeyword); 2230N(SyntaxKind.FromKeyword); 2276N(SyntaxKind.FromKeyword); 2304N(SyntaxKind.FromKeyword); 5771N(SyntaxKind.FromKeyword);
Parsing\ExpressionParsingTests.cs (2)
2305Assert.Equal(SyntaxKind.FromKeyword, fs.FromKeyword.Kind()); 4783N(SyntaxKind.FromKeyword);
Parsing\NullableParsingTests.cs (1)
1219N(SyntaxKind.FromKeyword);
Parsing\PatternParsingTests.cs (1)
350N(SyntaxKind.FromKeyword);
Parsing\ScriptParsingTests.cs (8)
8154N(SyntaxKind.FromKeyword); 8311N(SyntaxKind.FromKeyword); 8836N(SyntaxKind.FromKeyword); 8892N(SyntaxKind.FromKeyword); 8952N(SyntaxKind.FromKeyword); 9012N(SyntaxKind.FromKeyword); 9076N(SyntaxKind.FromKeyword); 9127N(SyntaxKind.FromKeyword);
Parsing\StatementAttributeParsingTests.cs (1)
5686N(SyntaxKind.FromKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
288name.Identifier.HasMatchingText(SyntaxKind.FromKeyword) &&
Simplification\Reducers\CSharpEscapingReducer.cs (1)
88case SyntaxKind.FromKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
35public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.FromKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
382return token.Kind() == SyntaxKind.FromKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373if ((currentToken.Kind() == SyntaxKind.FromKeyword && currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
150case SyntaxKind.FromKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
283case SyntaxKind.FromKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1840if (token.IsKindOrHasMatchingText(SyntaxKind.FromKeyword) &&