58 references to None
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Operators.cs (3)
4860if (typePattern.UnionMatchingMode != UnionMatchingMode.None) 5010unionMatchingMode: unionMatchingInputType is not null ? UnionMatchingMode.UnionValue : UnionMatchingMode.None, 5018boundConstantPattern.UnionMatchingMode != UnionMatchingMode.None,
Binder\Binder_Patterns.cs (13)
1039unionMatchingMode: hasUnionMatching ? UnionMatchingMode.UnionValue : UnionMatchingMode.None, 1522hasUnionMatching = unionMatchingMode != UnionMatchingMode.None; 1666unionMatchingMode = UnionMatchingMode.None; 1669hasUnionMatching = unionMatchingMode != UnionMatchingMode.None; 1707Debug.Assert(unionMatchingMode == UnionMatchingMode.None); 2088boundOperandType, isVar: true, unionMatchingMode: UnionMatchingMode.None, variableSymbol, variableAccess, 2166isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, inputType: inputType, narrowedType: strippedInputType, hasErrors: hasErrors); 2444unionMatchingMode = UnionMatchingMode.None; 2484unionMatchingMode = UnionMatchingMode.None; 2518hasUnionMatching = unionMatchingMode != UnionMatchingMode.None; 2521Debug.Assert(!isExplicitNotNullTest || unionMatchingMode == UnionMatchingMode.None); 2597unionMatchingMode: hasUnionMatching ? UnionMatchingMode.UnionValue : UnionMatchingMode.None, 2862if (pat is { UnionMatchingMode: not UnionMatchingMode.None })
Binder\DecisionDagBuilder_CheckOrReachability.cs (13)
798Debug.Assert(node is not BoundPattern { UnionMatchingMode: not UnionMatchingMode.None }); 988return typePattern1.Update(typePattern1.DeclaredType, typePattern1.IsExplicitNotNullTest, unionMatchingMode: UnionMatchingMode.None, inputType, typePattern1.NarrowedType); 998unionMatchingMode: UnionMatchingMode.None, recursivePattern.Variable, recursivePattern.VariableAccess, 1017return constantPattern.Update(constantPattern.Value, constantPattern.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType, narrowedType); 1022return relationalPattern.Update(relationalPattern.Relation, relationalPattern.Value, relationalPattern.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType, relationalPattern.NarrowedType); 1028return declarationPattern.Update(declarationPattern.DeclaredType, declarationPattern.IsVar, unionMatchingMode: UnionMatchingMode.None, 1038isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, inputType, narrowedType: pattern.InputType).MakeCompilerGenerated(); 1052var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, unionMatchingMode: UnionMatchingMode.None, node.Variable, node.VariableAccess, node.InputType, node.NarrowedType) 1092initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, unionMatchingMode: UnionMatchingMode.None, node.InputType, node.NarrowedType, node.HasErrors); 1099ConstantValue.Null, unionMatchingMode: UnionMatchingMode.None, node.InputType, node.InputType, hasErrors: false); 1106ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, variable: null, variableAccess: null, node.InputType, node.InputType); 1131properties: default, isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, variable: null, variableAccess: null, 1166isExplicitNotNullTest: false, unionMatchingMode: UnionMatchingMode.None, variable: null, variableAccess: null,
Binder\DecisionDagBuilder.cs (1)
364Debug.Assert(pattern.UnionMatchingMode == UnionMatchingMode.None);
Binder\UnionMatchingRewriter.cs (19)
82if (node.UnionMatchingMode != UnionMatchingMode.None) 96node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType: ObjectType, narrowedType: ObjectType)); 100left: node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, node.InputType, node.InputType).MakeCompilerGenerated(), 109node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType: ObjectType, narrowedType: node.NarrowedType)); 118if (node.UnionMatchingMode != UnionMatchingMode.None) 124unionMatchingMode: UnionMatchingMode.None, node.Variable, node.VariableAccess, inputType: node.InputType, narrowedType: node.NarrowedType), 126node.DeclaredType, node.DeconstructMethod, node.Deconstruction, node.Properties, node.IsExplicitNotNullTest, unionMatchingMode: UnionMatchingMode.None, node.Variable, node.VariableAccess, 145Debug.Assert(node.UnionMatchingMode == UnionMatchingMode.None); 152if (node.UnionMatchingMode != UnionMatchingMode.None) 157node.Update(node.DeclaredType, node.IsVar, unionMatchingMode: UnionMatchingMode.None, node.Variable, node.VariableAccess, 159exclusiveValuePattern: node.Update(node.DeclaredType, node.IsVar, unionMatchingMode: UnionMatchingMode.None, node.Variable, node.VariableAccess, 169if (node.UnionMatchingMode != UnionMatchingMode.None) 176node.Update(node.DeclaredType, node.IsExplicitNotNullTest, unionMatchingMode: UnionMatchingMode.None, inputType: node.InputType, narrowedType: node.NarrowedType), 177exclusiveValuePattern: node.Update(node.DeclaredType, node.IsExplicitNotNullTest, unionMatchingMode: UnionMatchingMode.None, inputType: ObjectType, narrowedType: node.NarrowedType)); 186if (node.UnionMatchingMode != UnionMatchingMode.None) 191node.Update(node.Relation, node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, inputType: ObjectType, narrowedType: node.NarrowedType)); 199Debug.Assert(node.UnionMatchingMode == UnionMatchingMode.None); 471unionMatchingMode: UnionMatchingMode.None, 543unionMatchingMode: UnionMatchingMode.None,
BoundTree\BoundConstantPattern.cs (1)
14if (UnionMatchingMode != UnionMatchingMode.None)
BoundTree\BoundITuplePattern.cs (1)
14Debug.Assert(UnionMatchingMode == UnionMatchingMode.None);
BoundTree\BoundListPattern.cs (1)
25Debug.Assert(UnionMatchingMode == UnionMatchingMode.None);
BoundTree\BoundNegatedPattern.cs (1)
17Debug.Assert(UnionMatchingMode == UnionMatchingMode.None);
BoundTree\BoundPattern.cs (3)
24Debug.Assert(negatedPattern.UnionMatchingMode == UnionMatchingMode.None); 31public virtual UnionMatchingMode UnionMatchingMode => UnionMatchingMode.None; 36Debug.Assert(UnionMatchingMode == UnionMatchingMode.None || InputType is { IsSubjectForUnionMatching: true });
BoundTree\BoundRecursivePattern.cs (1)
17Debug.Assert(UnionMatchingMode == UnionMatchingMode.None);
BoundTree\BoundRelationalPattern.cs (1)
14if (UnionMatchingMode != UnionMatchingMode.None)