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