9 types derived from BoundPattern
Microsoft.CodeAnalysis.CSharp (9)
Generated\BoundNodes.xml.Generated.cs (9)
8015
internal sealed partial class BoundConstantPattern :
BoundPattern
8048
internal sealed partial class BoundDiscardPattern :
BoundPattern
8084
internal abstract partial class BoundObjectPattern :
BoundPattern
8214
internal sealed partial class BoundSlicePattern :
BoundPattern
8253
internal sealed partial class BoundITuplePattern :
BoundPattern
8393
internal sealed partial class BoundTypePattern :
BoundPattern
8425
internal sealed partial class BoundBinaryPattern :
BoundPattern
8460
internal sealed partial class BoundNegatedPattern :
BoundPattern
8490
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)
3528
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)
4903
public BoundSwitchExpressionArm(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals,
BoundPattern
pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label, bool hasErrors = false)
4920
public
BoundPattern
Pattern { get; }
4928
public BoundSwitchExpressionArm Update(ImmutableArray<LocalSymbol> locals,
BoundPattern
pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label)
5690
public BoundSwitchLabel(SyntaxNode syntax, LabelSymbol label,
BoundPattern
pattern, BoundExpression? whenClause, bool hasErrors = false)
5703
public
BoundPattern
Pattern { get; }
5709
public BoundSwitchLabel Update(LabelSymbol label,
BoundPattern
pattern, BoundExpression? whenClause)
7947
public BoundIsPatternExpression(SyntaxNode syntax, BoundExpression expression,
BoundPattern
pattern, bool isNegated, BoundDecisionDag reachabilityDecisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol? type, bool hasErrors = false)
7966
public
BoundPattern
Pattern { get; }
7975
public BoundIsPatternExpression Update(BoundExpression expression,
BoundPattern
pattern, bool isNegated, BoundDecisionDag reachabilityDecisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol? type)
8172
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)
8192
public ImmutableArray<
BoundPattern
> Subpatterns { get; }
8202
public BoundListPattern Update(ImmutableArray<
BoundPattern
> subpatterns, bool hasSlice, BoundExpression? lengthAccess, BoundExpression? indexerAccess, BoundListPatternReceiverPlaceholder? receiverPlaceholder, BoundListPatternIndexPlaceholder? argumentPlaceholder, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType)
8216
public BoundSlicePattern(SyntaxNode syntax,
BoundPattern
? pattern, BoundExpression? indexerAccess, BoundSlicePatternReceiverPlaceholder? receiverPlaceholder, BoundSlicePatternRangePlaceholder? argumentPlaceholder, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false)
8233
public
BoundPattern
? Pattern { get; }
8241
public BoundSlicePattern Update(
BoundPattern
? pattern, BoundExpression? indexerAccess, BoundSlicePatternReceiverPlaceholder? receiverPlaceholder, BoundSlicePatternRangePlaceholder? argumentPlaceholder, TypeSymbol inputType, TypeSymbol narrowedType)
8291
protected BoundSubpattern(BoundKind kind, SyntaxNode syntax,
BoundPattern
pattern, bool hasErrors = false)
8300
public
BoundPattern
Pattern { get; }
8305
public BoundPositionalSubpattern(SyntaxNode syntax, Symbol? symbol,
BoundPattern
pattern, bool hasErrors = false)
8319
public BoundPositionalSubpattern Update(Symbol? symbol,
BoundPattern
pattern)
8333
public BoundPropertySubpattern(SyntaxNode syntax, BoundPropertySubpatternMember? member, bool isLengthOrCount,
BoundPattern
pattern, bool hasErrors = false)
8349
public BoundPropertySubpattern Update(BoundPropertySubpatternMember? member, bool isLengthOrCount,
BoundPattern
pattern)
8427
public BoundBinaryPattern(SyntaxNode syntax, bool disjunction,
BoundPattern
left,
BoundPattern
right, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false)
8442
public
BoundPattern
Left { get; }
8443
public
BoundPattern
Right { get; }
8448
public BoundBinaryPattern Update(bool disjunction,
BoundPattern
left,
BoundPattern
right, TypeSymbol inputType, TypeSymbol narrowedType)
8462
public BoundNegatedPattern(SyntaxNode syntax,
BoundPattern
negated, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false)
8473
public
BoundPattern
Negated { get; }
8478
public BoundNegatedPattern Update(
BoundPattern
negated, TypeSymbol inputType, TypeSymbol narrowedType)
11521
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
11661
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12048
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12086
ImmutableArray<
BoundPattern
> subpatterns = this.VisitList(node.Subpatterns);
12098
BoundPattern
? pattern = (
BoundPattern
?)this.Visit(node.Pattern);
12115
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12121
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
12139
BoundPattern
left = (
BoundPattern
)this.Visit(node.Left);
12140
BoundPattern
right = (
BoundPattern
)this.Visit(node.Right);
12147
BoundPattern
negated = (
BoundPattern
)this.Visit(node.Negated);
13628
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
14694
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
14753
ImmutableArray<
BoundPattern
> subpatterns = this.VisitList(node.Subpatterns);
14766
BoundPattern
? pattern = (
BoundPattern
?)this.Visit(node.Pattern);
14786
BoundPattern
pattern = (
BoundPattern
)this.Visit(node.Pattern);
14809
BoundPattern
left = (
BoundPattern
)this.Visit(node.Left);
14810
BoundPattern
right = (
BoundPattern
)this.Visit(node.Right);
14818
BoundPattern
negated = (
BoundPattern
)this.Visit(node.Negated);