2 writes to NarrowedType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
7998
this.
NarrowedType
= narrowedType;
8009
this.
NarrowedType
= narrowedType;
86 references to NarrowedType
Microsoft.CodeAnalysis.CSharp (86)
Binder\Binder_Patterns.cs (4)
1856
var right = binder.BindPattern(node.Right, preboundLeft.
NarrowedType
, permitDesignations, hasErrors, diagnostics);
1858
narrowedTypeCandidates.Add(right.
NarrowedType
);
1859
return new BoundBinaryPattern(node, disjunction: isDisjunction, preboundLeft, right, inputType: inputType, narrowedType: right.
NarrowedType
, hasErrors);
1872
candidates.Add(pat.
NarrowedType
);
Binder\DecisionDagBuilder.cs (3)
679
if (bin.InputType.Equals(bin.
NarrowedType
))
688
output = @this.MakeConvertToType(input: input, syntax: bin.Syntax, type: bin.
NarrowedType
, isExplicitTest: false, tests: builder);
697
Debug.Assert(bin.HasErrors || output.Type.Equals(bin.
NarrowedType
, TypeCompareKind.AllIgnoreOptions));
Binder\DecisionDagBuilder_ListPatterns.cs (2)
17
input.Type.StrippedType().Equals(list.
NarrowedType
, TypeCompareKind.ConsiderEverything) &&
24
output = input = MakeConvertToType(input, list.Syntax, list.
NarrowedType
, isExplicitTest: false, tests);
BoundTree\BoundBinaryPattern.cs (3)
23
Debug.Assert(Right.InputType.Equals(Left.
NarrowedType
, TypeCompareKind.AllIgnoreOptions));
24
Debug.Assert(
NarrowedType
.Equals(Right.
NarrowedType
, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundConstantPattern.cs (2)
13
Debug.Assert(
NarrowedType
.Equals(InputType, TypeCompareKind.AllIgnoreOptions) ||
14
NarrowedType
.Equals(Value.Type, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundDeclarationPattern.cs (2)
14
NarrowedType
.Equals(InputType, TypeCompareKind.AllIgnoreOptions) :
15
NarrowedType
.Equals(DeclaredType.Type, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundDiscardPattern.cs (1)
13
Debug.Assert(
NarrowedType
.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundITuplePattern.cs (2)
14
Debug.Assert(
NarrowedType
.IsCompilerServicesTopLevelType() &&
NarrowedType
.Name == "ITuple");
BoundTree\BoundListPattern.cs (1)
17
Debug.Assert(
NarrowedType
.Equals(InputType.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundNegatedPattern.cs (1)
13
Debug.Assert(
NarrowedType
.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundRecursivePattern.cs (2)
15
NarrowedType
.Equals(InputType.StrippedType(), TypeCompareKind.AllIgnoreOptions) :
16
NarrowedType
.Equals(DeclaredType.Type, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundRelationalPattern.cs (2)
13
Debug.Assert(
NarrowedType
.Equals(InputType, TypeCompareKind.AllIgnoreOptions) ||
14
NarrowedType
.Equals(Value.Type, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundSlicePattern.cs (1)
15
Debug.Assert(
NarrowedType
.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundTreeRewriter.cs (1)
233
left = binary.Update(binary.Disjunction, left, right, VisitType(binary.InputType), VisitType(binary.
NarrowedType
));
BoundTree\BoundTypePattern.cs (1)
13
Debug.Assert(
NarrowedType
.Equals(DeclaredType.Type, TypeCompareKind.AllIgnoreOptions));
Compilation\CSharpSemanticModel.cs (2)
2026
pattern.InputType, pattern.
NarrowedType
, nullability: default, convertedNullability: default,
2027
Compilation.Conversions.ClassifyBuiltInConversion(pattern.InputType, pattern.
NarrowedType
, isChecked: false, ref discardedUseSiteInfo));
Generated\BoundNodes.xml.Generated.cs (44)
8043
if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8083
if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8136
if (declaredType != this.DeclaredType || isVar != this.IsVar || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8177
if (declaredType != this.DeclaredType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || deconstruction != this.Deconstruction || properties != this.Properties || isExplicitNotNullTest != this.IsExplicitNotNullTest || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8221
if (subpatterns != this.Subpatterns || hasSlice != this.HasSlice || lengthAccess != this.LengthAccess || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8260
if (pattern != this.Pattern || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8300
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getLengthMethod, this.GetLengthMethod) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getItemMethod, this.GetItemMethod) || subpatterns != this.Subpatterns || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8440
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8479
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8513
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8552
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
12094
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12100
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12108
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12118
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12130
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12140
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12147
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12171
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12179
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12186
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12193
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
14750
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14758
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14766
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14777
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14789
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14802
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14815
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14837
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14845
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14854
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14862
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
16949
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16956
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16967
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16981
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16996
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17007
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17017
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17049
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17059
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17067
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17077
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
Operations\CSharpOperationFactory.cs (12)
2521
TypeSymbol narrowedType = boundConstantPattern.
NarrowedType
;
2532
TypeSymbol narrowedType = boundRelationalPattern.
NarrowedType
;
2545
ITypeSymbol narrowedType = boundDeclarationPattern.
NarrowedType
.GetPublicSymbol();
2569
boundRecursivePattern.
NarrowedType
.GetPublicSymbol(),
2588
boundITuplePattern.
NarrowedType
.GetPublicSymbol(),
2597
matchedType: boundTypePattern.
NarrowedType
.GetPublicSymbol(),
2599
narrowedType: boundTypePattern.
NarrowedType
.GetPublicSymbol(),
2612
narrowedType: boundNode.
NarrowedType
.GetPublicSymbol(),
2626
narrowedType: boundNode.
NarrowedType
.GetPublicSymbol(),
2637
boundNegatedPattern.
NarrowedType
.GetPublicSymbol(),
2677
boundBinaryPattern.
NarrowedType
.GetPublicSymbol(),
2846
narrowedType: boundNode.
NarrowedType
.GetPublicSymbol(),