71 references to FromKeyword
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_QueryErrors.cs (1)
201
clauseKind = SyntaxFacts.GetText(SyntaxKind.
FromKeyword
);
Parser\LanguageParser.cs (10)
7561
if (this.CurrentToken.ContextualKind is SyntaxKind.AsyncKeyword or SyntaxKind.AwaitKeyword or SyntaxKind.
FromKeyword
)
8627
((IdentifierNameSyntax)parameter.Type).Identifier.ContextualKind == SyntaxKind.
FromKeyword
)
10826
return this.IsTrueIdentifier() || this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
;
11187
if (this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
&& IsInQuery)
13716
case SyntaxKind.
FromKeyword
:
13732
return this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
&&
13795
fc = this.AddError(fc, ErrorCode.WRN_PrecedenceInversion, SyntaxFacts.GetText(SyntaxKind.
FromKeyword
));
13812
case SyntaxKind.
FromKeyword
:
13853
Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.
FromKeyword
);
13854
var @from = this.EatContextualToken(SyntaxKind.
FromKeyword
);
Syntax.xml.Internal.Generated.cs (2)
29843
if (fromKeyword.Kind != SyntaxKind.
FromKeyword
) throw new ArgumentException(nameof(fromKeyword));
35210
if (fromKeyword.Kind != SyntaxKind.
FromKeyword
) throw new ArgumentException(nameof(fromKeyword));
Syntax.xml.Main.Generated.cs (4)
3461
if (fromKeyword.Kind() != SyntaxKind.
FromKeyword
) throw new ArgumentException(nameof(fromKeyword));
3470
=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.
FromKeyword
), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression);
3474
=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.
FromKeyword
), default, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression);
3478
=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.
FromKeyword
), default, SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.InKeyword), expression);
Syntax\SyntaxKindFacts.cs (4)
1254
case SyntaxKind.
FromKeyword
:
1310
case SyntaxKind.
FromKeyword
:
1338
return SyntaxKind.
FromKeyword
;
1780
case SyntaxKind.
FromKeyword
:
Syntax\SyntaxNormalizer.cs (1)
295
if ((nextToken.IsKind(SyntaxKind.
FromKeyword
) && nextToken.Parent.IsKind(SyntaxKind.FromClause)) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
43
public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.
FromKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
378
return token.Kind() == SyntaxKind.
FromKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373
if ((currentToken.Kind() == SyntaxKind.
FromKeyword
&& currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
150
case SyntaxKind.
FromKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
278
case SyntaxKind.
FromKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1847
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.Syntax.UnitTests (25)
Generated\Syntax.Test.xml.Generated.cs (4)
233
=> InternalSyntaxFactory.FromClause(InternalSyntaxFactory.Token(SyntaxKind.
FromKeyword
), null, InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName());
1622
Assert.Equal(SyntaxKind.
FromKeyword
, node.FromKeyword.Kind);
10583
=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.
FromKeyword
), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName());
11972
Assert.Equal(SyntaxKind.
FromKeyword
, node.FromKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (5)
2168
N(SyntaxKind.
FromKeyword
);
2230
N(SyntaxKind.
FromKeyword
);
2276
N(SyntaxKind.
FromKeyword
);
2304
N(SyntaxKind.
FromKeyword
);
5771
N(SyntaxKind.
FromKeyword
);
Parsing\ExpressionParsingTests.cs (5)
2305
Assert.Equal(SyntaxKind.
FromKeyword
, fs.FromKeyword.Kind());
4783
N(SyntaxKind.
FromKeyword
);
6895
N(SyntaxKind.
FromKeyword
);
6957
N(SyntaxKind.
FromKeyword
);
7038
N(SyntaxKind.
FromKeyword
);
Parsing\NullableParsingTests.cs (1)
1219
N(SyntaxKind.
FromKeyword
);
Parsing\PatternParsingTests.cs (1)
350
N(SyntaxKind.
FromKeyword
);
Parsing\ScriptParsingTests.cs (8)
8668
N(SyntaxKind.
FromKeyword
);
8825
N(SyntaxKind.
FromKeyword
);
9350
N(SyntaxKind.
FromKeyword
);
9406
N(SyntaxKind.
FromKeyword
);
9466
N(SyntaxKind.
FromKeyword
);
9526
N(SyntaxKind.
FromKeyword
);
9590
N(SyntaxKind.
FromKeyword
);
9641
N(SyntaxKind.
FromKeyword
);
Parsing\StatementAttributeParsingTests.cs (1)
5686
N(SyntaxKind.
FromKeyword
);
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
43
public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.
FromKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
378
return token.Kind() == SyntaxKind.
FromKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373
if ((currentToken.Kind() == SyntaxKind.
FromKeyword
&& currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
150
case SyntaxKind.
FromKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
278
case SyntaxKind.
FromKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1847
if (token.IsKindOrHasMatchingText(SyntaxKind.
FromKeyword
) &&
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
43
public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.
FromKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
378
return token.Kind() == SyntaxKind.
FromKeyword
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
373
if ((currentToken.Kind() == SyntaxKind.
FromKeyword
&& currentToken.Parent.IsKind(SyntaxKind.FromClause)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
150
case SyntaxKind.
FromKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
278
case SyntaxKind.
FromKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1847
if (token.IsKindOrHasMatchingText(SyntaxKind.
FromKeyword
) &&