24 references to UnionMatchingMode
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Operators.cs (4)
4999node.Right, convertedExpression, constantValueOpt, unionMatchingMode: UnionMatchingMode.Both, inputType: unionMatchingInputType, narrowedType: unionMatchingInputType, hasErrors).MakeCompilerGenerated(); 5007unionMatchingMode: unionMatchingInputType is not null ? UnionMatchingMode.UnionValue : UnionMatchingMode.None, 5015boundConstantPattern.UnionMatchingMode != UnionMatchingMode.None,
Binder\Binder_Patterns.cs (3)
542node, convertedExpression, constantValueOpt, unionMatchingMode: UnionMatchingMode.Both, inputType: unionMatchingInputType, narrowedType: unionMatchingInputType, hasErrors); 553unionMatchingMode: hasUnionMatching ? UnionMatchingMode.UnionValue : UnionMatchingMode.None,
Binder\DecisionDagBuilder_CheckOrReachability.cs (2)
1087return constantPattern.Update(constantPattern.Value, constantPattern.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType, narrowedType); 1169ConstantValue.Null, unionMatchingMode: UnionMatchingMode.None, node.InputType, node.InputType, hasErrors: false);
Binder\UnionMatchingRewriter.cs (6)
75if (node.UnionMatchingMode != UnionMatchingMode.None) 79Debug.Assert((node.UnionMatchingMode & UnionMatchingMode.UnionValue) != 0); 81if ((node.UnionMatchingMode & UnionMatchingMode.UnionInstance) != 0) 90node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType: ObjectType, narrowedType: ObjectType)); 94left: node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, node.InputType, node.InputType).MakeCompilerGenerated(), 103node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType: ObjectType, narrowedType: node.NarrowedType));
BoundTree\BoundConstantPattern.cs (6)
14Debug.Assert(UnionMatchingMode is UnionMatchingMode.None or UnionMatchingMode.UnionValue or (UnionMatchingMode.UnionValue | UnionMatchingMode.UnionInstance)); 16if (UnionMatchingMode != UnionMatchingMode.None) 29public override bool IsUnionMatching => UnionMatchingMode is not UnionMatchingMode.None;
Generated\BoundNodes.xml.Generated.cs (3)
8144public BoundConstantPattern(SyntaxNode syntax, BoundExpression value, ConstantValue constantValue, UnionMatchingMode unionMatchingMode, TypeSymbol inputType, TypeSymbol narrowedType, bool hasErrors = false) 8164public UnionMatchingMode UnionMatchingMode { get; } 8169public BoundConstantPattern Update(BoundExpression value, ConstantValue constantValue, UnionMatchingMode unionMatchingMode, TypeSymbol inputType, TypeSymbol narrowedType)