2 writes to NarrowedType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
7997
this.
NarrowedType
= narrowedType;
8008
this.
NarrowedType
= narrowedType;
68 references to NarrowedType
Microsoft.CodeAnalysis.CSharp (68)
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\BoundTreeRewriter.cs (1)
233
left = binary.Update(binary.Disjunction, left, right, VisitType(binary.InputType), VisitType(binary.
NarrowedType
));
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)
8038
if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8074
if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8123
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))
8160
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))
8204
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))
8243
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))
8279
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))
8415
if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8450
if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8480
if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
8515
if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.
NarrowedType
, TypeCompareKind.ConsiderEverything))
12057
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12063
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12071
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12081
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12093
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12103
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12110
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12134
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12142
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12149
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
12156
TypeSymbol? narrowedType = this.VisitType(node.
NarrowedType
);
14713
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14721
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14729
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14740
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14752
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14765
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14778
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14800
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14808
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14817
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
14825
TypeSymbol narrowedType = GetUpdatedSymbol(node, node.
NarrowedType
);
16912
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16919
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16930
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16944
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16959
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16970
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
16980
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17012
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17022
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17030
new TreeDumperNode("narrowedType", node.
NarrowedType
, null),
17040
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(),