54 references to ElseKeyword
Microsoft.CodeAnalysis.CSharp (14)
Parser\DirectiveParser.cs (1)
63
case SyntaxKind.
ElseKeyword
:
Parser\LanguageParser.cs (6)
7405
case SyntaxKind.
ElseKeyword
:
8218
case SyntaxKind.
ElseKeyword
:
8984
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
ElseKeyword
);
8998
return this.CurrentToken.Kind != SyntaxKind.
ElseKeyword
9001
this.EatToken(SyntaxKind.
ElseKeyword
),
10005
case SyntaxKind.
ElseKeyword
:
Syntax\SyntaxKindFacts.cs (4)
76
case SyntaxKind.
ElseKeyword
:
869
return SyntaxKind.
ElseKeyword
;
1093
return SyntaxKind.
ElseKeyword
;
1509
case SyntaxKind.
ElseKeyword
:
Syntax\SyntaxNormalizer.cs (3)
267
case SyntaxKind.
ElseKeyword
:
297
case SyntaxKind.
ElseKeyword
:
396
case SyntaxKind.
ElseKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
68
SyntaxKind.
ElseKeyword
or
ElasticTriviaFormattingRule.cs (3)
348
case SyntaxKind.
ElseKeyword
:
376
case SyntaxKind.
ElseKeyword
:
424
SyntaxKind.
ElseKeyword
)
NewLineUserSettingFormattingRule.cs (2)
84
&& currentToken.IsKind(SyntaxKind.
ElseKeyword
)
254
if (previousToken.IsKind(SyntaxKind.CloseBraceToken) && currentToken.IsKind(SyntaxKind.
ElseKeyword
))
TokenBasedFormattingRule.cs (2)
149
if (previousToken.Kind() == SyntaxKind.
ElseKeyword
&& currentToken.Kind() != SyntaxKind.IfKeyword)
186
(currentToken.Kind() == SyntaxKind.CaseKeyword || currentToken.Kind() == SyntaxKind.DefaultKeyword || currentToken.Kind() == SyntaxKind.
ElseKeyword
))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
172
case SyntaxKind.
ElseKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
115
SyntaxKind.
ElseKeyword
or
Completion\KeywordRecommenders\ElseKeywordRecommender.cs (1)
15
: base(SyntaxKind.
ElseKeyword
, isValidInPreprocessorContext: true)
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
68
SyntaxKind.
ElseKeyword
or
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
49
case SyntaxKind.
ElseKeyword
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
Generated\Syntax.Test.xml.Generated.cs (8)
413
=> InternalSyntaxFactory.ElseClause(InternalSyntaxFactory.Token(SyntaxKind.
ElseKeyword
), GenerateBlock());
674
=> InternalSyntaxFactory.ElseDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.
ElseKeyword
), InternalSyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool(), new bool());
2365
Assert.Equal(SyntaxKind.
ElseKeyword
, node.ElseKeyword.Kind);
3544
Assert.Equal(SyntaxKind.
ElseKeyword
, node.ElseKeyword.Kind);
10389
=> SyntaxFactory.ElseClause(SyntaxFactory.Token(SyntaxKind.
ElseKeyword
), GenerateBlock());
10650
=> SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.
ElseKeyword
), SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool(), new bool());
12341
Assert.Equal(SyntaxKind.
ElseKeyword
, node.ElseKeyword.Kind());
13520
Assert.Equal(SyntaxKind.
ElseKeyword
, node.ElseKeyword.Kind());
Parsing\StatementParsingTests.cs (8)
2056
Assert.Equal(SyntaxKind.
ElseKeyword
, ss.Else.ElseKeyword.Kind());
2082
Assert.Equal(SyntaxKind.
ElseKeyword
, ss.Else.ElseKeyword.Kind());
3632
N(SyntaxKind.
ElseKeyword
);
3707
N(SyntaxKind.
ElseKeyword
);
3734
N(SyntaxKind.
ElseKeyword
);
3790
N(SyntaxKind.
ElseKeyword
);
3817
N(SyntaxKind.
ElseKeyword
);
3882
N(SyntaxKind.
ElseKeyword
);
Syntax\SyntaxNodeTests.cs (2)
1909
var zeroWidth = SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.MissingToken(SyntaxKind.HashToken), SyntaxFactory.MissingToken(SyntaxKind.
ElseKeyword
), SyntaxFactory.MissingToken(SyntaxKind.EndOfDirectiveToken), false, false);
1946
var zeroWidth = SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.MissingToken(SyntaxKind.HashToken), SyntaxFactory.MissingToken(SyntaxKind.
ElseKeyword
), SyntaxFactory.MissingToken(SyntaxKind.EndOfDirectiveToken), false, false);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Classification\ClassificationHelpers.cs (1)
76
case SyntaxKind.
ElseKeyword
:
ElasticTriviaFormattingRule.cs (3)
348
case SyntaxKind.
ElseKeyword
:
376
case SyntaxKind.
ElseKeyword
:
424
SyntaxKind.
ElseKeyword
)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
172
case SyntaxKind.
ElseKeyword
:
NewLineUserSettingFormattingRule.cs (2)
84
&& currentToken.IsKind(SyntaxKind.
ElseKeyword
)
254
if (previousToken.IsKind(SyntaxKind.CloseBraceToken) && currentToken.IsKind(SyntaxKind.
ElseKeyword
))
TokenBasedFormattingRule.cs (2)
149
if (previousToken.Kind() == SyntaxKind.
ElseKeyword
&& currentToken.Kind() != SyntaxKind.IfKeyword)
186
(currentToken.Kind() == SyntaxKind.CaseKeyword || currentToken.Kind() == SyntaxKind.DefaultKeyword || currentToken.Kind() == SyntaxKind.
ElseKeyword
))