1 type derived from AnalyzedPattern
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
27
internal sealed class Type :
AnalyzedPattern
17 references to AnalyzedPattern
Microsoft.CodeAnalysis.CSharp.Features (17)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (9)
12
using static
AnalyzedPattern
;
16
public static
AnalyzedPattern
? Analyze(IOperation operation)
18
var
pattern = ParsePattern(operation);
40
private static
AnalyzedPattern
? ParsePattern(IOperation operation)
75
private static
AnalyzedPattern
? ParseBinaryPattern(IBinaryOperation op, bool isDisjunctive, SyntaxToken token)
77
var
leftPattern = ParsePattern(op.LeftOperand);
81
var
rightPattern = ParsePattern(op.RightOperand);
98
private static
AnalyzedPattern
? ParseRelationalPattern(IBinaryOperation op)
113
private static
AnalyzedPattern
? ParseConstantPattern(IBinaryOperation op)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (4)
17
using static
AnalyzedPattern
;
82
var
pattern = CSharpUsePatternCombinatorsAnalyzer.Analyze(operation);
109
private static bool HasIllegalPatternVariables(
AnalyzedPattern
pattern, bool permitDesignations = true, bool isTopLevel = false)
141
private static bool IsTrivial(
AnalyzedPattern
pattern)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (4)
25
using static
AnalyzedPattern
;
83
var
pattern = CSharpUsePatternCombinatorsAnalyzer.Analyze(operation);
90
private static PatternSyntax AsPatternSyntax(
AnalyzedPattern
pattern)
109
private static ExpressionSyntax AsExpressionSyntax(ExpressionSyntax expr,
AnalyzedPattern
p)