9 types derived from BoundPattern
Microsoft.CodeAnalysis.CSharp (9)
Generated\BoundNodes.xml.Generated.cs (9)
8016
internal sealed partial class BoundConstantPattern :
BoundPattern
8053
internal sealed partial class BoundDiscardPattern :
BoundPattern
8093
internal abstract partial class BoundObjectPattern :
BoundPattern
8231
internal sealed partial class BoundSlicePattern :
BoundPattern
8270
internal sealed partial class BoundITuplePattern :
BoundPattern
8414
internal sealed partial class BoundTypePattern :
BoundPattern
8450
internal sealed partial class BoundBinaryPattern :
BoundPattern
8489
internal sealed partial class BoundNegatedPattern :
BoundPattern
8523
internal sealed partial class BoundRelationalPattern :
BoundPattern
144 references to BoundPattern
Microsoft.CodeAnalysis.CSharp (144)
Binder\Binder_Patterns.cs (33)
38
BoundPattern
pattern = BindPattern(node.Pattern, expression.Type, permitDesignations: true, hasErrors, diagnostics, underIsPattern: true);
48
BoundPattern
pattern,
57
bool negated = pattern.IsNegated(out
var
innerPattern);
163
internal
BoundPattern
BindPattern(
189
private
BoundPattern
BindParenthesizedPattern(
201
private
BoundPattern
BindSlicePattern(
216
BoundPattern
? pattern = null;
258
private ImmutableArray<
BoundPattern
> BindListPatternSubpatterns(
268
var builder = ArrayBuilder<
BoundPattern
>.GetInstance(subpatterns.Count);
271
BoundPattern
boundPattern;
326
ImmutableArray<
BoundPattern
> subpatterns = BindListPatternSubpatterns(
401
private static
BoundPattern
BindDiscardPattern(DiscardPatternSyntax node, TypeSymbol inputType, BindingDiagnosticBag diagnostics)
407
private
BoundPattern
BindConstantPatternWithFallbackToTypePattern(
416
internal
BoundPattern
BindConstantPatternWithFallbackToTypePattern(
836
private
BoundPattern
BindDeclarationPattern(
956
private
BoundPattern
BindRecursivePattern(
1144
BoundPattern
pattern = BindVarDesignation(variable, objectType, permitDesignations, hasErrors: false, diagnostics);
1316
private
BoundPattern
BindVarPattern(
1342
private
BoundPattern
BindVarDesignation(
1423
BoundPattern
pattern = BindVarDesignation(variable, elementType, permitDesignations, isError, diagnostics);
1446
BoundPattern
pattern = BindVarDesignation(variable, elementType, permitDesignations, isError, diagnostics);
1502
BoundPattern
boundPattern = BindPattern(pattern, memberType, permitDesignations, hasErrors, diagnostics);
1610
private
BoundPattern
BindTypePattern(
1623
private
BoundPattern
BindRelationalPattern(
1716
private
BoundPattern
BindUnaryPattern(
1726
var
subPattern = BindPattern(node.Pattern, inputType, permitDesignations, hasErrors, diagnostics, underIsPattern);
1730
private
BoundPattern
BindBinaryPattern(
1752
BoundPattern
result = BindPattern(binaryPatternAndPermitDesignations.pat.Left, inputType, binaryPatternAndPermitDesignations.permitDesignations, hasErrors, diagnostics);
1773
static
BoundPattern
bindBinaryPattern(
1774
BoundPattern
preboundLeft,
1789
var
right = binder.BindPattern(node.Right, inputType, permitDesignations, hasErrors, diagnostics);
1856
var
right = binder.BindPattern(node.Right, preboundLeft.NarrowedType, permitDesignations, hasErrors, diagnostics);
1863
static void collectCandidates(
BoundPattern
pat, ArrayBuilder<TypeSymbol> candidates)
Binder\DecisionDagBuilder.cs (9)
117
BoundPattern
pattern,
130
BoundPattern
pattern,
187
BoundPattern
pattern,
197
BoundPattern
pattern,
270
BoundPattern
pattern,
283
BoundPattern
pattern,
539
BoundPattern
pattern = recursive.Deconstruction[i].Pattern;
560
BoundPattern
pattern = recursive.Deconstruction[i].Pattern;
583
BoundPattern
pattern = subpattern.Pattern;
Binder\DecisionDagBuilder_ListPatterns.cs (2)
49
foreach (
BoundPattern
subpattern in subpatterns)
56
if (slice.Pattern is
BoundPattern
slicePattern)
Binder\SwitchBinder_Patterns.cs (3)
240
BoundPattern
pattern = sectionBinder.BindConstantPatternWithFallbackToTypePattern(
272
BoundPattern
pattern = sectionBinder.BindPattern(
286
void reportIfConstantNamedUnderscore(
BoundPattern
pattern, ExpressionSyntax expression)
Binder\SwitchExpressionArmBinder.cs (1)
42
BoundPattern
pattern = armBinder.BindPattern(node.Pattern, switchGoverningType, permitDesignations: true, hasErrors, diagnostics);
BoundTree\BoundIsPatternExpression.cs (1)
16
bool negated = this.Pattern.IsNegated(out
var
innerPattern);
BoundTree\BoundPattern.cs (1)
14
internal bool IsNegated(out
BoundPattern
innerPattern)
BoundTree\BoundTreeRewriter.cs (6)
81
if (node is BoundExpression or
BoundPattern
)
200
BoundPattern
child = node.Left;
225
var
left = (
BoundPattern
?)this.Visit(child);
231
var
right = (
BoundPattern
?)this.Visit(binary.Right);
BoundTree\BoundTreeVisitors.cs (1)
202
Debug.Assert(node is BoundExpression or
BoundPattern
);
BoundTree\BoundTreeWalker.cs (4)
73
if (node is BoundExpression or
BoundPattern
)
88
Debug.Assert(node is BoundExpression or
BoundPattern
);
152
var rightOperands = ArrayBuilder<
BoundPattern
>.GetInstance();
157
BoundPattern
? current = binary.Left;
Compilation\CSharpSemanticModel.cs (3)
2020
BoundPattern
pattern = lowestBoundNode as
BoundPattern
?? highestBoundNode as
BoundPattern
?? (highestBoundNode is BoundSubpattern sp ? sp.Pattern : null);
Compilation\MemberSemanticModel.NodeMapBuilder.cs (2)
225
var stack = ArrayBuilder<
BoundPattern
>.GetInstance();
228
BoundPattern
currentPattern = binaryPattern.Left;
FlowAnalysis\AbstractFlowPass.cs (5)
364
if (node is BoundExpression or
BoundPattern
)
931
bool negated = node.Pattern.IsNegated(out
var
pattern);
980
static bool patternMatchesNull(
BoundPattern
pattern)
1030
static bool? isBoolTest(
BoundPattern
pattern)
1103
public virtual void VisitPattern(
BoundPattern
pattern)
FlowAnalysis\DefiniteAssignment.cs (3)
1979
public override void VisitPattern(
BoundPattern
pattern)
1989
void assignPatternVariablesAndMarkReadFields(
BoundPattern
pattern, bool definitely = true)
2064
foreach (
BoundPattern
p in pat.Subpatterns)
FlowAnalysis\NullableWalker.cs (1)
3589
Debug.Assert(node is BoundExpression or
BoundPattern
);
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
98
if (node is BoundExpression or
BoundPattern
)
FlowAnalysis\NullableWalker_Patterns.cs (2)
26
BoundPattern
pattern)
155
BoundPattern
pattern)
FlowAnalysis\VariablesDeclaredWalker.cs (2)
50
public override void VisitPattern(
BoundPattern
pattern)
69
private void NoteDeclaredPatternVariables(
BoundPattern
pattern)
Generated\BoundNodes.xml.Generated.cs (64)
4904
public BoundSwitchExpressionArm(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals,
BoundPattern
pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label, bool hasErrors = false)
4921
public
BoundPattern
Pattern { get; }
4929
public BoundSwitchExpressionArm Update(ImmutableArray<LocalSymbol> locals,
BoundPattern
pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label)
5691
public BoundSwitchLabel(SyntaxNode syntax, LabelSymbol label,
BoundPattern
pattern, BoundExpression? whenClause, bool hasErrors = false)
5704
public
BoundPattern
Pattern { get; }
5710
public BoundSwitchLabel Update(LabelSymbol label,
BoundPattern
pattern, BoundExpression? whenClause)
7948
public BoundIsPatternExpression(SyntaxNode syntax, BoundExpression expression,
BoundPattern
pattern, bool isNegated, BoundDecisionDag reachabilityDecisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol? type, bool hasErrors = false)
7967
public
BoundPattern
Pattern { get; }
7976
public BoundIsPatternExpression Update(BoundExpression expression,
BoundPattern
pattern, bool isNegated, BoundDecisionDag reachabilityDecisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol? type)
8189
public BoundListPattern(SyntaxNode syntax, ImmutableArray<
BoundPattern
> subpatterns, bool hasSlice, BoundExpression? lengthAccess, BoundExpression? indexerAccess, BoundListPatternReceiverPlaceholder? receiverPlaceholder, BoundListPatternIndexPlaceholder? argumentPlaceholder, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false)
8209
public ImmutableArray<
BoundPattern
> Subpatterns { get; }
8219
public BoundListPattern Update(ImmutableArray<
BoundPattern
> subpatterns, bool hasSlice, BoundExpression? lengthAccess, BoundExpression? indexerAccess, BoundListPatternReceiverPlaceholder? receiverPlaceholder, BoundListPatternIndexPlaceholder? argumentPlaceholder, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType)
8233
public BoundSlicePattern(SyntaxNode syntax,
BoundPattern
? pattern, BoundExpression? indexerAccess, BoundSlicePatternReceiverPlaceholder? receiverPlaceholder, BoundSlicePatternRangePlaceholder? argumentPlaceholder, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false)
8250
public
BoundPattern
? Pattern { get; }
8258
public BoundSlicePattern Update(
BoundPattern
? pattern, BoundExpression? indexerAccess, BoundSlicePatternReceiverPlaceholder? receiverPlaceholder, BoundSlicePatternRangePlaceholder? argumentPlaceholder, TypeSymbol inputType, TypeSymbol narrowedType)
8312
protected BoundSubpattern(BoundKind kind, SyntaxNode syntax,
BoundPattern
pattern, bool hasErrors = false)
8321
public
BoundPattern
Pattern { get; }
8326
public BoundPositionalSubpattern(SyntaxNode syntax, Symbol? symbol,
BoundPattern
pattern, bool hasErrors = false)
8340
public BoundPositionalSubpattern Update(Symbol? symbol,
BoundPattern
pattern)
8354
public BoundPropertySubpattern(SyntaxNode syntax, BoundPropertySubpatternMember? member, bool isLengthOrCount,
BoundPattern
pattern, bool hasErrors = false)
8370
public BoundPropertySubpattern Update(BoundPropertySubpatternMember? member, bool isLengthOrCount,
BoundPattern
pattern)
8452
public BoundBinaryPattern(SyntaxNode syntax, bool disjunction,
BoundPattern
left,
BoundPattern
right, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false)
8471
public
BoundPattern
Left { get; }
8472
public
BoundPattern
Right { get; }
8477
public BoundBinaryPattern Update(bool disjunction,
BoundPattern
left,
BoundPattern
right, TypeSymbol inputType, TypeSymbol narrowedType)
8491
public BoundNegatedPattern(SyntaxNode syntax,
BoundPattern
negated, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false)
8506
public
BoundPattern
Negated { get; }
8511
public BoundNegatedPattern Update(
BoundPattern
negated, TypeSymbol inputType, TypeSymbol narrowedType)
11558
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
11698
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12085
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12123
ImmutableArray<
BoundPattern
> subpatterns = this.VisitList(node.Subpatterns);
12135
BoundPattern
? pattern = (
BoundPattern
?)this.Visit(node.Pattern);
12152
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12158
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12176
BoundPattern
left = (
BoundPattern
)this.Visit(node.Left);
12177
BoundPattern
right = (
BoundPattern
)this.Visit(node.Right);
12184
BoundPattern
negated = (
BoundPattern
)this.Visit(node.Negated);
13665
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
14731
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
14790
ImmutableArray<
BoundPattern
> subpatterns = this.VisitList(node.Subpatterns);
14803
BoundPattern
? pattern = (
BoundPattern
?)this.Visit(node.Pattern);
14823
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
14846
BoundPattern
left = (
BoundPattern
)this.Visit(node.Left);
14847
BoundPattern
right = (
BoundPattern
)this.Visit(node.Right);
14855
BoundPattern
negated = (
BoundPattern
)this.Visit(node.Negated);