46 references to FromKeyword
Microsoft.CodeAnalysis.CSharp (22)
_generated\0\Syntax.xml.Main.Generated.cs (4)
3499
if (fromKeyword.Kind() != SyntaxKind.
FromKeyword
) throw new ArgumentException(nameof(fromKeyword));
3508
=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.
FromKeyword
), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression);
3512
=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.
FromKeyword
), default, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression);
3516
=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.
FromKeyword
), default, SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.InKeyword), expression);
_generated\1\Syntax.xml.Internal.Generated.cs (2)
30209
if (fromKeyword.Kind != SyntaxKind.
FromKeyword
) throw new ArgumentException(nameof(fromKeyword));
35636
if (fromKeyword.Kind != SyntaxKind.
FromKeyword
) throw new ArgumentException(nameof(fromKeyword));
Binder\Binder_QueryErrors.cs (1)
201
clauseKind = SyntaxFacts.GetText(SyntaxKind.
FromKeyword
);
Parser\LanguageParser.cs (10)
7830
if (this.CurrentToken.ContextualKind is SyntaxKind.AsyncKeyword or SyntaxKind.AwaitKeyword or SyntaxKind.
FromKeyword
)
8889
((IdentifierNameSyntax)parameter.Type).Identifier.ContextualKind == SyntaxKind.
FromKeyword
)
11176
return this.IsTrueIdentifier() || this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
;
11537
if (this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
&& IsInQuery)
14092
case SyntaxKind.
FromKeyword
:
14108
return this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
&&
14172
: this.AddError(fromClause, ErrorCode.WRN_PrecedenceInversion, SyntaxFacts.GetText(SyntaxKind.
FromKeyword
)),
14185
case SyntaxKind.
FromKeyword
:
14225
Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
);
14226
var @from = this.EatContextualToken(SyntaxKind.
FromKeyword
);
Syntax\SyntaxKindFacts.cs (4)
1257
case SyntaxKind.
FromKeyword
:
1316
case SyntaxKind.
FromKeyword
:
1344
return SyntaxKind.
FromKeyword
;
1792
case SyntaxKind.
FromKeyword
:
Syntax\SyntaxNormalizer.cs (1)
295
if ((nextToken.IsKind(SyntaxKind.
FromKeyword
) && nextToken.Parent.IsKind(SyntaxKind.FromClause)) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
47
public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.
FromKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
381
return token.Kind() == SyntaxKind.
FromKeyword
&&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373
if ((currentToken.Kind() == SyntaxKind.
FromKeyword
&& currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
169
case SyntaxKind.
FromKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
282
case SyntaxKind.
FromKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1854
if (token.IsKindOrHasMatchingText(SyntaxKind.
FromKeyword
) &&
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
62
else if (token.IsKindOrHasMatchingText(SyntaxKind.
FromKeyword
) || token.IsKindOrHasMatchingText(SyntaxKind.JoinKeyword))
Completion\KeywordRecommenders\FromKeywordRecommender.cs (1)
10
internal sealed class FromKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
FromKeyword
)
Completion\KeywordRecommenders\InKeywordRecommender.cs (1)
86
if (token.GetPreviousToken(includeSkipped: true).IsKindOrHasMatchingText(SyntaxKind.
FromKeyword
))
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
53
return contextualKind is SyntaxKind.
FromKeyword
or
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
291
name.Identifier.HasMatchingText(SyntaxKind.
FromKeyword
) &&
Simplification\Reducers\CSharpEscapingReducer.cs (1)
69
case SyntaxKind.
FromKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
47
public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.
FromKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
381
return token.Kind() == SyntaxKind.
FromKeyword
&&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373
if ((currentToken.Kind() == SyntaxKind.
FromKeyword
&& currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
169
case SyntaxKind.
FromKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
282
case SyntaxKind.
FromKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1854
if (token.IsKindOrHasMatchingText(SyntaxKind.
FromKeyword
) &&
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
47
public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.
FromKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
381
return token.Kind() == SyntaxKind.
FromKeyword
&&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373
if ((currentToken.Kind() == SyntaxKind.
FromKeyword
&& currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
169
case SyntaxKind.
FromKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
282
case SyntaxKind.
FromKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1854
if (token.IsKindOrHasMatchingText(SyntaxKind.
FromKeyword
) &&