2 writes to NarrowedType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
7997this.NarrowedType = narrowedType; 8008this.NarrowedType = narrowedType;
68 references to NarrowedType
Microsoft.CodeAnalysis.CSharp (68)
Binder\Binder_Patterns.cs (4)
1856var right = binder.BindPattern(node.Right, preboundLeft.NarrowedType, permitDesignations, hasErrors, diagnostics); 1858narrowedTypeCandidates.Add(right.NarrowedType); 1859return new BoundBinaryPattern(node, disjunction: isDisjunction, preboundLeft, right, inputType: inputType, narrowedType: right.NarrowedType, hasErrors); 1872candidates.Add(pat.NarrowedType);
Binder\DecisionDagBuilder.cs (3)
679if (bin.InputType.Equals(bin.NarrowedType)) 688output = @this.MakeConvertToType(input: input, syntax: bin.Syntax, type: bin.NarrowedType, isExplicitTest: false, tests: builder); 697Debug.Assert(bin.HasErrors || output.Type.Equals(bin.NarrowedType, TypeCompareKind.AllIgnoreOptions));
Binder\DecisionDagBuilder_ListPatterns.cs (2)
17input.Type.StrippedType().Equals(list.NarrowedType, TypeCompareKind.ConsiderEverything) && 24output = input = MakeConvertToType(input, list.Syntax, list.NarrowedType, isExplicitTest: false, tests);
BoundTree\BoundTreeRewriter.cs (1)
233left = binary.Update(binary.Disjunction, left, right, VisitType(binary.InputType), VisitType(binary.NarrowedType));
Compilation\CSharpSemanticModel.cs (2)
2026pattern.InputType, pattern.NarrowedType, nullability: default, convertedNullability: default, 2027Compilation.Conversions.ClassifyBuiltInConversion(pattern.InputType, pattern.NarrowedType, isChecked: false, ref discardedUseSiteInfo));
Generated\BoundNodes.xml.Generated.cs (44)
8038if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8074if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8123if (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)) 8160if (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)) 8204if (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)) 8243if (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)) 8279if (!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)) 8415if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8450if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8480if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8515if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12057TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12063TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12071TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12081TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12093TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12103TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12110TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12134TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12142TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12149TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 12156TypeSymbol? narrowedType = this.VisitType(node.NarrowedType); 14713TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14721TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14729TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14740TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14752TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14765TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14778TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14800TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14808TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14817TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 14825TypeSymbol narrowedType = GetUpdatedSymbol(node, node.NarrowedType); 16912new TreeDumperNode("narrowedType", node.NarrowedType, null), 16919new TreeDumperNode("narrowedType", node.NarrowedType, null), 16930new TreeDumperNode("narrowedType", node.NarrowedType, null), 16944new TreeDumperNode("narrowedType", node.NarrowedType, null), 16959new TreeDumperNode("narrowedType", node.NarrowedType, null), 16970new TreeDumperNode("narrowedType", node.NarrowedType, null), 16980new TreeDumperNode("narrowedType", node.NarrowedType, null), 17012new TreeDumperNode("narrowedType", node.NarrowedType, null), 17022new TreeDumperNode("narrowedType", node.NarrowedType, null), 17030new TreeDumperNode("narrowedType", node.NarrowedType, null), 17040new TreeDumperNode("narrowedType", node.NarrowedType, null),
Operations\CSharpOperationFactory.cs (12)
2521TypeSymbol narrowedType = boundConstantPattern.NarrowedType; 2532TypeSymbol narrowedType = boundRelationalPattern.NarrowedType; 2545ITypeSymbol narrowedType = boundDeclarationPattern.NarrowedType.GetPublicSymbol(); 2569boundRecursivePattern.NarrowedType.GetPublicSymbol(), 2588boundITuplePattern.NarrowedType.GetPublicSymbol(), 2597matchedType: boundTypePattern.NarrowedType.GetPublicSymbol(), 2599narrowedType: boundTypePattern.NarrowedType.GetPublicSymbol(), 2612narrowedType: boundNode.NarrowedType.GetPublicSymbol(), 2626narrowedType: boundNode.NarrowedType.GetPublicSymbol(), 2637boundNegatedPattern.NarrowedType.GetPublicSymbol(), 2677boundBinaryPattern.NarrowedType.GetPublicSymbol(), 2846narrowedType: boundNode.NarrowedType.GetPublicSymbol(),