57 references to OrKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (2)
6245case SyntaxKind.OrKeyword: 12455return this.CurrentToken.ContextualKind is SyntaxKind.OrKeyword or SyntaxKind.AndKeyword;
Parser\LanguageParser_Patterns.cs (2)
61while (this.CurrentToken.ContextualKind == SyntaxKind.OrKeyword) 393case SyntaxKind.OrKeyword:
Syntax\SyntaxKindFacts.cs (3)
1219case SyntaxKind.OrKeyword: 1337return SyntaxKind.OrKeyword; 1783case SyntaxKind.OrKeyword:
Syntax\SyntaxNormalizer.cs (2)
930case SyntaxKind.OrKeyword: 937case SyntaxKind.OrKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
342currentKind == SyntaxKind.OrKeyword || 346previousKind == SyntaxKind.OrKeyword)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
97Token(p.Token.LeadingTrivia, p.IsDisjunctive ? SyntaxKind.OrKeyword : SyntaxKind.AndKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1431if (leftToken.IsKindOrHasMatchingText(SyntaxKind.AndKeyword) || leftToken.IsKindOrHasMatchingText(SyntaxKind.OrKeyword)) 1484return leftToken.Kind() is not (SyntaxKind.OrKeyword
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1488if (identifier.HasMatchingText(SyntaxKind.OrKeyword) ||
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\OrKeywordRecommender.cs (1)
13: base(SyntaxKind.OrKeyword)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
97Token(p.Token.LeadingTrivia, p.IsDisjunctive ? SyntaxKind.OrKeyword : SyntaxKind.AndKeyword,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (35)
Generated\Syntax.Test.xml.Generated.cs (4)
311=> InternalSyntaxFactory.BinaryPattern(SyntaxKind.OrPattern, GenerateDiscardPattern(), InternalSyntaxFactory.Token(SyntaxKind.OrKeyword), GenerateDiscardPattern()); 1919Assert.Equal(SyntaxKind.OrKeyword, node.OperatorToken.Kind); 10527=> SyntaxFactory.BinaryPattern(SyntaxKind.OrPattern, GenerateDiscardPattern(), SyntaxFactory.Token(SyntaxKind.OrKeyword), GenerateDiscardPattern()); 12135Assert.Equal(SyntaxKind.OrKeyword, node.OperatorToken.Kind());
Parsing\NullableParsingTests.cs (2)
1884N(SyntaxKind.OrKeyword); 1930N(SyntaxKind.OrKeyword);
Parsing\PatternParsingTests.cs (20)
8294N(SyntaxKind.OrKeyword); 8545N(SyntaxKind.OrKeyword); 9387N(SyntaxKind.OrKeyword); 9434N(SyntaxKind.OrKeyword); 9492N(SyntaxKind.OrKeyword); 9550N(SyntaxKind.OrKeyword); 9744N(SyntaxKind.OrKeyword); 9797N(SyntaxKind.OrKeyword); 9871N(SyntaxKind.OrKeyword); 10852[CombinatorialValues(SyntaxKind.AndKeyword, SyntaxKind.OrKeyword)] SyntaxKind opKind, 10949N(SyntaxKind.OrKeyword); 10969[CombinatorialValues(SyntaxKind.AndKeyword, SyntaxKind.OrKeyword)] SyntaxKind opKind, 11020[CombinatorialValues(SyntaxKind.AndKeyword, SyntaxKind.OrKeyword)] SyntaxKind opKind, 11109N(SyntaxKind.OrKeyword); 11166N(SyntaxKind.OrKeyword); 11221N(SyntaxKind.OrKeyword); 11230N(SyntaxKind.OrKeyword); 11515N(SyntaxKind.OrKeyword); 11701N(SyntaxKind.OrKeyword); 11710N(SyntaxKind.OrKeyword);
Parsing\PatternParsingTests_ListPatterns.cs (2)
647N(SyntaxKind.OrKeyword); 690N(SyntaxKind.OrKeyword);
Parsing\PatternParsingTests2.cs (7)
527N(SyntaxKind.OrKeyword); 1021N(SyntaxKind.OrKeyword); 1215N(SyntaxKind.OrKeyword); 1233N(SyntaxKind.OrKeyword); 1337N(SyntaxKind.OrKeyword); 1659N(SyntaxKind.OrKeyword); 1724N(SyntaxKind.OrKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
342currentKind == SyntaxKind.OrKeyword || 346previousKind == SyntaxKind.OrKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1431if (leftToken.IsKindOrHasMatchingText(SyntaxKind.AndKeyword) || leftToken.IsKindOrHasMatchingText(SyntaxKind.OrKeyword)) 1484return leftToken.Kind() is not (SyntaxKind.OrKeyword
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1488if (identifier.HasMatchingText(SyntaxKind.OrKeyword) ||