29 references to LetKeyword
Microsoft.CodeAnalysis.CSharp (15)
_generated\0\Syntax.xml.Main.Generated.cs (3)
3521
if (letKeyword.Kind() != SyntaxKind.
LetKeyword
) throw new ArgumentException(nameof(letKeyword));
3530
=> SyntaxFactory.LetClause(SyntaxFactory.Token(SyntaxKind.
LetKeyword
), identifier, SyntaxFactory.Token(SyntaxKind.EqualsToken), expression);
3534
=> SyntaxFactory.LetClause(SyntaxFactory.Token(SyntaxKind.
LetKeyword
), SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.EqualsToken), expression);
_generated\1\Syntax.xml.Internal.Generated.cs (2)
30224
if (letKeyword.Kind != SyntaxKind.
LetKeyword
) throw new ArgumentException(nameof(letKeyword));
35651
if (letKeyword.Kind != SyntaxKind.
LetKeyword
) throw new ArgumentException(nameof(letKeyword));
Binder\Binder_QueryErrors.cs (1)
175
clauseKind = SyntaxFacts.GetText(SyntaxKind.
LetKeyword
);
Parser\LanguageParser.cs (4)
14099
case SyntaxKind.
LetKeyword
:
14191
case SyntaxKind.
LetKeyword
:
14278
Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.
LetKeyword
);
14280
this.EatContextualToken(SyntaxKind.
LetKeyword
),
Syntax\SyntaxKindFacts.cs (4)
1261
case SyntaxKind.
LetKeyword
:
1323
case SyntaxKind.
LetKeyword
:
1352
return SyntaxKind.
LetKeyword
;
1800
case SyntaxKind.
LetKeyword
:
Syntax\SyntaxNormalizer.cs (1)
296
(nextToken.IsKind(SyntaxKind.
LetKeyword
) && nextToken.Parent.IsKind(SyntaxKind.LetClause)) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
62
public static readonly SyntaxToken LetKeyword = Token(SyntaxKind.
LetKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
374
(currentToken.Kind() == SyntaxKind.
LetKeyword
&& currentToken.Parent.IsKind(SyntaxKind.LetClause)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
171
case SyntaxKind.
LetKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
284
case SyntaxKind.
LetKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\LetKeywordRecommender.cs (1)
11
internal sealed class LetKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
LetKeyword
)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Simplification\Reducers\CSharpEscapingReducer.cs (1)
76
case SyntaxKind.
LetKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
62
public static readonly SyntaxToken LetKeyword = Token(SyntaxKind.
LetKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
374
(currentToken.Kind() == SyntaxKind.
LetKeyword
&& currentToken.Parent.IsKind(SyntaxKind.LetClause)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
171
case SyntaxKind.
LetKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
284
case SyntaxKind.
LetKeyword
:
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
62
public static readonly SyntaxToken LetKeyword = Token(SyntaxKind.
LetKeyword
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
374
(currentToken.Kind() == SyntaxKind.
LetKeyword
&& currentToken.Parent.IsKind(SyntaxKind.LetClause)) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
171
case SyntaxKind.
LetKeyword
:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
284
case SyntaxKind.
LetKeyword
: