9 types derived from BoundPattern
Microsoft.CodeAnalysis.CSharp (9)
Generated\BoundNodes.xml.Generated.cs (9)
8007internal sealed partial class BoundConstantPattern : BoundPattern 8044internal sealed partial class BoundDiscardPattern : BoundPattern 8084internal abstract partial class BoundObjectPattern : BoundPattern 8222internal sealed partial class BoundSlicePattern : BoundPattern 8261internal sealed partial class BoundITuplePattern : BoundPattern 8405internal sealed partial class BoundTypePattern : BoundPattern 8441internal sealed partial class BoundBinaryPattern : BoundPattern 8480internal sealed partial class BoundNegatedPattern : BoundPattern 8514internal sealed partial class BoundRelationalPattern : BoundPattern
144 references to BoundPattern
Microsoft.CodeAnalysis.CSharp (144)
Binder\Binder_Patterns.cs (33)
39BoundPattern pattern = BindPattern(node.Pattern, expression.Type, permitDesignations: true, hasErrors, diagnostics, underIsPattern: true); 49BoundPattern pattern, 58bool negated = pattern.IsNegated(out var innerPattern); 164internal BoundPattern BindPattern( 190private BoundPattern BindParenthesizedPattern( 202private BoundPattern BindSlicePattern( 217BoundPattern? pattern = null; 259private ImmutableArray<BoundPattern> BindListPatternSubpatterns( 269var builder = ArrayBuilder<BoundPattern>.GetInstance(subpatterns.Count); 272BoundPattern boundPattern; 327ImmutableArray<BoundPattern> subpatterns = BindListPatternSubpatterns( 402private static BoundPattern BindDiscardPattern(DiscardPatternSyntax node, TypeSymbol inputType, BindingDiagnosticBag diagnostics) 408private BoundPattern BindConstantPatternWithFallbackToTypePattern( 417internal BoundPattern BindConstantPatternWithFallbackToTypePattern( 837private BoundPattern BindDeclarationPattern( 957private BoundPattern BindRecursivePattern( 1145BoundPattern pattern = BindVarDesignation(variable, objectType, permitDesignations, hasErrors: false, diagnostics); 1317private BoundPattern BindVarPattern( 1343private BoundPattern BindVarDesignation( 1424BoundPattern pattern = BindVarDesignation(variable, elementType, permitDesignations, isError, diagnostics); 1447BoundPattern pattern = BindVarDesignation(variable, elementType, permitDesignations, isError, diagnostics); 1503BoundPattern boundPattern = BindPattern(pattern, memberType, permitDesignations, hasErrors, diagnostics); 1611private BoundPattern BindTypePattern( 1624private BoundPattern BindRelationalPattern( 1717private BoundPattern BindUnaryPattern( 1727var subPattern = BindPattern(node.Pattern, inputType, permitDesignations, hasErrors, diagnostics, underIsPattern); 1731private BoundPattern BindBinaryPattern( 1753BoundPattern result = BindPattern(binaryPatternAndPermitDesignations.pat.Left, inputType, binaryPatternAndPermitDesignations.permitDesignations, hasErrors, diagnostics); 1774static BoundPattern bindBinaryPattern( 1775BoundPattern preboundLeft, 1790var right = binder.BindPattern(node.Right, inputType, permitDesignations, hasErrors, diagnostics); 1857var right = binder.BindPattern(node.Right, preboundLeft.NarrowedType, permitDesignations, hasErrors, diagnostics); 1864static void collectCandidates(BoundPattern pat, ArrayBuilder<TypeSymbol> candidates)
Binder\DecisionDagBuilder.cs (9)
117BoundPattern pattern, 130BoundPattern pattern, 187BoundPattern pattern, 197BoundPattern pattern, 270BoundPattern pattern, 283BoundPattern pattern, 539BoundPattern pattern = recursive.Deconstruction[i].Pattern; 560BoundPattern pattern = recursive.Deconstruction[i].Pattern; 583BoundPattern pattern = subpattern.Pattern;
Binder\DecisionDagBuilder_ListPatterns.cs (2)
50foreach (BoundPattern subpattern in subpatterns) 57if (slice.Pattern is BoundPattern slicePattern)
Binder\SwitchBinder_Patterns.cs (3)
240BoundPattern pattern = sectionBinder.BindConstantPatternWithFallbackToTypePattern( 272BoundPattern pattern = sectionBinder.BindPattern( 286void reportIfConstantNamedUnderscore(BoundPattern pattern, ExpressionSyntax expression)
Binder\SwitchExpressionArmBinder.cs (1)
42BoundPattern pattern = armBinder.BindPattern(node.Pattern, switchGoverningType, permitDesignations: true, hasErrors, diagnostics);
BoundTree\BoundIsPatternExpression.cs (1)
16bool negated = this.Pattern.IsNegated(out var innerPattern);
BoundTree\BoundPattern.cs (1)
14internal bool IsNegated(out BoundPattern innerPattern)
BoundTree\BoundTreeRewriter.cs (6)
218if (node is BoundExpression or BoundPattern) 342BoundPattern child = node.Left; 367var left = (BoundPattern?)this.Visit(child); 373var right = (BoundPattern?)this.Visit(binary.Right);
BoundTree\BoundTreeVisitors.cs (1)
202Debug.Assert(node is BoundExpression or BoundPattern);
BoundTree\BoundTreeWalker.cs (4)
73if (node is BoundExpression or BoundPattern) 88Debug.Assert(node is BoundExpression or BoundPattern); 152var rightOperands = ArrayBuilder<BoundPattern>.GetInstance(); 157BoundPattern? current = binary.Left;
Compilation\CSharpSemanticModel.cs (3)
2031BoundPattern pattern = lowestBoundNode as BoundPattern ?? highestBoundNode as BoundPattern ?? (highestBoundNode is BoundSubpattern sp ? sp.Pattern : null);
Compilation\MemberSemanticModel.NodeMapBuilder.cs (2)
225var stack = ArrayBuilder<BoundPattern>.GetInstance(); 228BoundPattern currentPattern = binaryPattern.Left;
FlowAnalysis\AbstractFlowPass.cs (5)
363if (node is BoundExpression or BoundPattern) 930bool negated = node.Pattern.IsNegated(out var pattern); 979static bool patternMatchesNull(BoundPattern pattern) 1029static bool? isBoolTest(BoundPattern pattern) 1102public virtual void VisitPattern(BoundPattern pattern)
FlowAnalysis\DefiniteAssignment.cs (3)
1992public override void VisitPattern(BoundPattern pattern) 2002void assignPatternVariablesAndMarkReadFields(BoundPattern pattern, bool definitely = true) 2077foreach (BoundPattern p in pat.Subpatterns)
FlowAnalysis\NullableWalker.cs (1)
3686Debug.Assert(node is BoundExpression or BoundPattern);
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
98if (node is BoundExpression or BoundPattern)
FlowAnalysis\NullableWalker_Patterns.cs (2)
26BoundPattern pattern) 155BoundPattern pattern)
FlowAnalysis\VariablesDeclaredWalker.cs (2)
51public override void VisitPattern(BoundPattern pattern) 70private void NoteDeclaredPatternVariables(BoundPattern pattern)
Generated\BoundNodes.xml.Generated.cs (64)
4895public BoundSwitchExpressionArm(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundPattern pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label, bool hasErrors = false) 4912public BoundPattern Pattern { get; } 4920public BoundSwitchExpressionArm Update(ImmutableArray<LocalSymbol> locals, BoundPattern pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label) 5682public BoundSwitchLabel(SyntaxNode syntax, LabelSymbol label, BoundPattern pattern, BoundExpression? whenClause, bool hasErrors = false) 5695public BoundPattern Pattern { get; } 5701public BoundSwitchLabel Update(LabelSymbol label, BoundPattern pattern, BoundExpression? whenClause) 7939public BoundIsPatternExpression(SyntaxNode syntax, BoundExpression expression, BoundPattern pattern, bool isNegated, BoundDecisionDag reachabilityDecisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol? type, bool hasErrors = false) 7958public BoundPattern Pattern { get; } 7967public BoundIsPatternExpression Update(BoundExpression expression, BoundPattern pattern, bool isNegated, BoundDecisionDag reachabilityDecisionDag, LabelSymbol whenTrueLabel, LabelSymbol whenFalseLabel, TypeSymbol? type) 8180public 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) 8200public ImmutableArray<BoundPattern> Subpatterns { get; } 8210public BoundListPattern Update(ImmutableArray<BoundPattern> subpatterns, bool hasSlice, BoundExpression? lengthAccess, BoundExpression? indexerAccess, BoundListPatternReceiverPlaceholder? receiverPlaceholder, BoundListPatternIndexPlaceholder? argumentPlaceholder, Symbol? variable, BoundExpression? variableAccess, TypeSymbol inputType, TypeSymbol narrowedType) 8224public BoundSlicePattern(SyntaxNode syntax, BoundPattern? pattern, BoundExpression? indexerAccess, BoundSlicePatternReceiverPlaceholder? receiverPlaceholder, BoundSlicePatternRangePlaceholder? argumentPlaceholder, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8241public BoundPattern? Pattern { get; } 8249public BoundSlicePattern Update(BoundPattern? pattern, BoundExpression? indexerAccess, BoundSlicePatternReceiverPlaceholder? receiverPlaceholder, BoundSlicePatternRangePlaceholder? argumentPlaceholder, TypeSymbol inputType, TypeSymbol narrowedType) 8303protected BoundSubpattern(BoundKind kind, SyntaxNode syntax, BoundPattern pattern, bool hasErrors = false) 8312public BoundPattern Pattern { get; } 8317public BoundPositionalSubpattern(SyntaxNode syntax, Symbol? symbol, BoundPattern pattern, bool hasErrors = false) 8331public BoundPositionalSubpattern Update(Symbol? symbol, BoundPattern pattern) 8345public BoundPropertySubpattern(SyntaxNode syntax, BoundPropertySubpatternMember? member, bool isLengthOrCount, BoundPattern pattern, bool hasErrors = false) 8361public BoundPropertySubpattern Update(BoundPropertySubpatternMember? member, bool isLengthOrCount, BoundPattern pattern) 8443public BoundBinaryPattern(SyntaxNode syntax, bool disjunction, BoundPattern left, BoundPattern right, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8462public BoundPattern Left { get; } 8463public BoundPattern Right { get; } 8468public BoundBinaryPattern Update(bool disjunction, BoundPattern left, BoundPattern right, TypeSymbol inputType, TypeSymbol narrowedType) 8482public BoundNegatedPattern(SyntaxNode syntax, BoundPattern negated, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8497public BoundPattern Negated { get; } 8502public BoundNegatedPattern Update(BoundPattern negated, TypeSymbol inputType, TypeSymbol narrowedType) 11638BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 11790BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 12211BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 12253ImmutableArray<BoundPattern> subpatterns = this.VisitList(node.Subpatterns); 12265BoundPattern? pattern = (BoundPattern?)this.Visit(node.Pattern); 12285BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 12291BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 12310BoundPattern left = (BoundPattern)this.Visit(node.Left); 12311BoundPattern right = (BoundPattern)this.Visit(node.Right); 12318BoundPattern negated = (BoundPattern)this.Visit(node.Negated); 13780BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 14846BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 14905ImmutableArray<BoundPattern> subpatterns = this.VisitList(node.Subpatterns); 14918BoundPattern? pattern = (BoundPattern?)this.Visit(node.Pattern); 14938BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 14961BoundPattern left = (BoundPattern)this.Visit(node.Left); 14962BoundPattern right = (BoundPattern)this.Visit(node.Right); 14970BoundPattern negated = (BoundPattern)this.Visit(node.Negated);