1 implementation of Pattern
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8157public IPatternOperation Pattern { get; }
13 references to Pattern
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
5608var pattern = (IPatternOperation)VisitRequired(patternClause.Pattern); 5610patternClause.Pattern.Syntax, booleanType, isImplicit: true);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
52else if (clause is IPatternCaseClauseOperation { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
39if (PopulateSwitchExpressionHelpers.IsDefault(patternCaseClause.Pattern)) 138if (((IPatternCaseClauseOperation)clause).Pattern is IBinaryPatternOperation pattern) 200case IPatternCaseClauseOperation { Pattern: var pattern, Guard: null }:
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchStatementDiagnosticAnalyzer.cs (1)
52else if (clause is IPatternCaseClauseOperation { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
39if (PopulateSwitchExpressionHelpers.IsDefault(patternCaseClause.Pattern)) 138if (((IPatternCaseClauseOperation)clause).Pattern is IBinaryPatternOperation pattern) 200case IPatternCaseClauseOperation { Pattern: var pattern, Guard: null }:
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
2068Visit(operation.Pattern, "Pattern");
Compilation\TestOperationVisitor.cs (2)
1585AssertEx.Equal(new[] { operation.Pattern, operation.Guard }, operation.ChildOperations); 1589Assert.Same(operation.Pattern, operation.ChildOperations.Single());