39 references to AndPattern
Microsoft.CodeAnalysis.CSharp (1)
Parser\LanguageParser_Patterns.cs (1)
110SyntaxKind.AndPattern,
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (1)
26SyntaxKind.AndPattern,
CSharpSyntaxKinds.cs (1)
110public int? AndPattern => (int)SyntaxKind.AndPattern;
ParenthesizedExpressionSyntaxExtensions.cs (1)
766if (binaryPattern.IsKind(SyntaxKind.AndPattern))
SpacingFormattingRule.cs (2)
331currentToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.RelationalPattern || 332previousToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.RelationalPattern)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpSyntaxGeneratorInternal.cs (1)
160=> SyntaxFactory.BinaryPattern(SyntaxKind.AndPattern, (PatternSyntax)Parenthesize(left), (PatternSyntax)Parenthesize(right));
CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
101p.IsDisjunctive ? SyntaxKind.OrPattern : SyntaxKind.AndPattern,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Semantics\PatternMatchingTests3.cs (6)
4213Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4239Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4271Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4447Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4473Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4505Assert.Equal(SyntaxKind.AndPattern, pattern.Kind());
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
220_ => BinaryPattern(AndPattern, containingPattern.Parenthesize(), generatedPattern.Parenthesize()),
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
98AnalyzedPattern.And p => BinaryPattern(SyntaxKind.AndPattern, AsPatternSyntax(p.LeftPattern, feature).Parenthesize(), AsPatternSyntax(p.RightPattern, feature).Parenthesize()),
CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs (1)
26SyntaxKind.AndPattern,
CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
101p.IsDisjunctive ? SyntaxKind.OrPattern : SyntaxKind.AndPattern,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Parsing\PatternParsingTests.cs (16)
8386N(SyntaxKind.AndPattern); 8602N(SyntaxKind.AndPattern); 9890N(SyntaxKind.AndPattern); 9911N(SyntaxKind.AndPattern); 10001N(SyntaxKind.AndPattern); 10097N(SyntaxKind.AndPattern); 10152N(SyntaxKind.AndPattern); 10913N(opKind == SyntaxKind.AndKeyword ? SyntaxKind.AndPattern : SyntaxKind.OrPattern); 11031N(opKind == SyntaxKind.AndKeyword ? SyntaxKind.AndPattern : SyntaxKind.OrPattern); 11082N(opKind == SyntaxKind.AndKeyword ? SyntaxKind.AndPattern : SyntaxKind.OrPattern); 11307N(SyntaxKind.AndPattern); 11361N(SyntaxKind.AndPattern); 11532N(SyntaxKind.AndPattern); 11558N(SyntaxKind.AndPattern); 11671N(SyntaxKind.AndPattern); 11673N(SyntaxKind.AndPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CSharpSyntaxGeneratorInternal.cs (1)
160=> SyntaxFactory.BinaryPattern(SyntaxKind.AndPattern, (PatternSyntax)Parenthesize(left), (PatternSyntax)Parenthesize(right));
CSharpSyntaxKinds.cs (1)
110public int? AndPattern => (int)SyntaxKind.AndPattern;
ParenthesizedExpressionSyntaxExtensions.cs (1)
766if (binaryPattern.IsKind(SyntaxKind.AndPattern))
SpacingFormattingRule.cs (2)
331currentToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.RelationalPattern || 332previousToken.Parent.Kind() is SyntaxKind.AndPattern or SyntaxKind.OrPattern or SyntaxKind.RelationalPattern)