2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8138this.InputType = inputType; 8153this.InputType = inputType;
167 references to InputType
Microsoft.CodeAnalysis.CSharp (167)
Binder\Binder_Patterns.cs (1)
2365candidate = pat.InputType;
Binder\DecisionDagBuilder.cs (6)
366(pattern.HasErrors || pattern.InputType.Equals(input.DagTemp.Type, TypeCompareKind.AllIgnoreOptions) || pattern.InputType.IsErrorType()) : 367(pattern.InputType.SpecialType == SpecialType.System_Object)); 928RoslynDebug.Assert(inputTempType.IsErrorType() || recursive.HasErrors || recursive.InputType.IsErrorType() || inputTempType.Equals(recursive.InputType, TypeCompareKind.AllIgnoreOptions)); 1114if (bin.InputType.Equals(bin.NarrowedType))
Binder\DecisionDagBuilder_CheckOrReachability.cs (37)
370var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, isUnionMatching: false, pattern.InputType, narrowedType: pattern.InputType); 488var wrappedPattern = new BoundBinaryPattern(newPattern.Syntax, disjunction: false, current.Left, newPattern, current.InputType, newPattern.NarrowedType); 743stack.Push(new BoundBinaryPattern(operationSyntax, disjunction, left, right, left.InputType, narrowedType)); 758inputType = stack.Peek().InputType; 785return resultLeft.InputType; 940var result = new BoundNegatedPattern(node.Syntax, node, isUnionMatching: false, node.InputType, narrowedType: node.InputType); 981if (pattern.InputType.Equals(inputType, TypeCompareKind.AllIgnoreOptions)) 995new BoundTypeExpression(recursivePattern.Syntax, aliasOpt: null, recursivePattern.InputType.StrippedType()), 1037new BoundTypeExpression(pattern.Syntax, aliasOpt: null, pattern.InputType), 1038isExplicitNotNullTest: false, isUnionMatching: false, inputType, narrowedType: pattern.InputType).MakeCompilerGenerated(); 1052var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, node.Variable, node.VariableAccess, isUnionMatching: false, node.InputType, node.NarrowedType) 1092initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, isUnionMatching: false, node.InputType, node.NarrowedType, node.HasErrors); 1094else if (node.InputType.CanContainNull()) 1098new BoundLiteral(node.Syntax, constantValueOpt: ConstantValue.Null, type: node.InputType, hasErrors: false), 1099ConstantValue.Null, isUnionMatching: false, node.InputType, node.InputType, hasErrors: false); 1100initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, isUnionMatching: false, node.InputType, narrowedType: node.InputType); 1106ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, variable: null, variableAccess: null, isUnionMatching: false, node.InputType, node.InputType); 1115var discards = deconstruction.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1125newPattern = WithInputTypeCheckIfNeeded(newPattern, deconstruction[i].Pattern.InputType); 1132isUnionMatching: false, node.InputType, node.NarrowedType, node.HasErrors); 1160newPattern = WithInputTypeCheckIfNeeded(newPattern, property!.Pattern.InputType); 1167isUnionMatching: false, node.InputType, node.NarrowedType, node.HasErrors); 1228var discards = subpatterns.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1235isUnionMatching: false, ituplePattern.InputType, ituplePattern.NarrowedType); 1248newPattern = WithInputTypeCheckIfNeeded(newPattern, subpatterns[i].Pattern.InputType); 1252ituplePattern.GetItemMethod, newSubpatterns, isUnionMatching: false, ituplePattern.InputType, ituplePattern.NarrowedType); 1311newPattern = WithInputTypeCheckIfNeeded(newPattern, equivalentDefaultPatterns[i].InputType); 1317isUnionMatching: false, listPattern.InputType, listPattern.NarrowedType); 1338newPattern = WithInputTypeCheckIfNeeded(newPattern, slice.Pattern.InputType); 1341slice.ReceiverPlaceholder, slice.ArgumentPlaceholder, slice.InputType, slice.NarrowedType); 1348isUnionMatching: false, listPattern.InputType, listPattern.NarrowedType); 1397return MakeDiscardPattern(pattern.Syntax, pattern.InputType);
Binder\DecisionDagBuilder_ListPatterns.cs (4)
18Debug.Assert(inputType.IsErrorType() || list.HasErrors || list.InputType.IsErrorType() || 19inputType.Equals(list.InputType, TypeCompareKind.AllIgnoreOptions) && 68var sliceEvaluation = new BoundDagSliceEvaluation(slicePattern.Syntax, slicePattern.InputType, lengthTemp, startIndex: startIndex, endIndex: index, 83var indexEvaluation = new BoundDagIndexerEvaluation(subpattern.Syntax, subpattern.InputType, lengthTemp, index++,
Binder\UnionMatchingRewriter.cs (28)
60Debug.Assert(innerPattern.InputType.IsObjectType()); 64var member = new BoundPropertySubpatternMember(innerPattern.Syntax, receiver: null, valueProperty, type: innerPattern.InputType, hasErrors: valueProperty is null).MakeCompilerGenerated(); 79Debug.Assert(node.InputType.IsSubjectForUnionMatching); 81if (Binder.IsClassOrNullableValueTypeUnionNullPatternMatching((NamedTypeSymbol)node.InputType, node.ConstantValue) && node.NarrowedType.Equals(node.InputType, TypeCompareKind.AllIgnoreOptions)) 86(NamedTypeSymbol)node.InputType, 91left: node.Update(node.Value, node.ConstantValue, isUnionMatching: false, node.InputType, node.InputType), 93inputType: node.InputType, 94narrowedType: node.InputType) 99(NamedTypeSymbol)node.InputType, 112(NamedTypeSymbol)node.InputType, 130TypeSymbol? inputType = node.InputType; 136(NamedTypeSymbol)node.InputType, 150(NamedTypeSymbol)node.InputType, 164(NamedTypeSymbol)node.InputType, 178(NamedTypeSymbol)node.InputType, 191(NamedTypeSymbol)node.InputType, 201TypeSymbol? inputType = node.InputType; 207(NamedTypeSymbol)node.InputType, 220TypeSymbol? inputType = node.InputType; 310Debug.Assert(node.NarrowedType.Equals(leastSpecific ?? node.InputType, TypeCompareKind.ConsiderEverything)); 313return node.Update(disjunction: true, preboundLeft, right, inputType: node.InputType, narrowedType: node.NarrowedType); 372inputType: left.InputType).MakeCompilerGenerated(); 393inputType: leftUnionPattern.InputType).MakeCompilerGenerated(); 426return new BoundBinaryPattern(node, disjunction: false, left, right, inputType: left.InputType, narrowedType: right.NarrowedType) { WasCompilerGenerated = makeCompilerGenerated }; 495Debug.Assert(result.InputType.Equals(pattern.InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundBinaryPattern.cs (5)
13Debug.Assert(Left.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions)); 19Debug.Assert(Right.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions)); 25Debug.Assert(Right.InputType.Equals(Left.NarrowedType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundConstantPattern.cs (4)
18(ConstantValue == ConstantValue.Null && (InputType.IsNullableType() || !InputType.IsValueType) && NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions))); 22Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions) ||
BoundTree\BoundDiscardPattern.cs (1)
13Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundListPattern.cs (2)
16return Update(subpatterns, this.HasSlice, this.LengthAccess, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.Variable, this.VariableAccess, this.IsUnionMatching, this.InputType, this.NarrowedType); 32Debug.Assert(NarrowedType.Equals(InputType.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundNegatedPattern.cs (4)
17Debug.Assert(Negated.InputType.IsObjectType()); 21Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions)); 22Debug.Assert(Negated.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundPattern.cs (1)
46Debug.Assert(!IsUnionMatching || InputType is { IsSubjectForUnionMatching: true });
BoundTree\BoundPatternWithUnionMatching.cs (3)
15Debug.Assert(InputType.Equals(LeftOfPendingConjunction?.InputType ?? UnionMatchingInputType, TypeCompareKind.AllIgnoreOptions)); 16Debug.Assert(UnionMatchingInputType == (object)(LeftOfPendingConjunction?.NarrowedType ?? InputType));
BoundTree\BoundRecursivePattern.cs (1)
23Debug.Assert(NarrowedType.Equals(InputType.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundRelationalPattern.cs (1)
21Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions) ||
BoundTree\BoundSlicePattern.cs (2)
13return Update(pattern, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.InputType, this.NarrowedType); 21Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundTreeRewriter.cs (1)
375left = binary.Update(binary.Disjunction, left, right, VisitType(binary.InputType), VisitType(binary.NarrowedType));
BoundTree\NullabilityRewriter.cs (1)
158TypeSymbol inputType = GetUpdatedSymbol(currentBinary, currentBinary.InputType);
Compilation\CSharpSemanticModel.cs (2)
2040pattern.InputType, pattern.NarrowedType, nullability: default, convertedNullability: default, 2041Compilation.Conversions.ClassifyBuiltInConversion(pattern.InputType, pattern.NarrowedType, isChecked: false, ref discardedUseSiteInfo));
FlowAnalysis\AbstractFlowPass.cs (2)
949InputType: NamedTypeSymbol { TypeKind: TypeKind.Struct, IsUnionType: true } inputType, 978rewritten.InputType, rewritten.NarrowedType);
Generated\BoundNodes.xml.Generated.cs (47)
8190if (value != this.Value || constantValue != this.ConstantValue || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8232if (!TypeSymbol.Equals(unionMatchingInputType, this.UnionMatchingInputType, TypeCompareKind.ConsiderEverything) || leftOfPendingConjunction != this.LeftOfPendingConjunction || valueProperty != this.ValueProperty || valuePattern != this.ValuePattern || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8272if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8327if (declaredType != this.DeclaredType || isVar != this.IsVar || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8368if (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 || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8412if (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 || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8451if (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)) 8493if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getLengthMethod, this.GetLengthMethod) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getItemMethod, this.GetItemMethod) || subpatterns != this.Subpatterns || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8639if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8678if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8714if (negated != this.Negated || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8755if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12520TypeSymbol? inputType = this.VisitType(node.InputType); 12530TypeSymbol? inputType = this.VisitType(node.InputType); 12536TypeSymbol? inputType = this.VisitType(node.InputType); 12545TypeSymbol? inputType = this.VisitType(node.InputType); 12557TypeSymbol? inputType = this.VisitType(node.InputType); 12570TypeSymbol? inputType = this.VisitType(node.InputType); 12580TypeSymbol? inputType = this.VisitType(node.InputType); 12589TypeSymbol? inputType = this.VisitType(node.InputType); 12615TypeSymbol? inputType = this.VisitType(node.InputType); 12623TypeSymbol? inputType = this.VisitType(node.InputType); 12630TypeSymbol? inputType = this.VisitType(node.InputType); 12637TypeSymbol? inputType = this.VisitType(node.InputType); 15207TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15216TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15226TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15234TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15245TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15257TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15270TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15283TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15305TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15313TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15321TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 17455new TreeDumperNode("inputType", node.InputType, null), 17466new TreeDumperNode("inputType", node.InputType, null), 17473new TreeDumperNode("inputType", node.InputType, null), 17485new TreeDumperNode("inputType", node.InputType, null), 17500new TreeDumperNode("inputType", node.InputType, null), 17516new TreeDumperNode("inputType", node.InputType, null), 17527new TreeDumperNode("inputType", node.InputType, null), 17538new TreeDumperNode("inputType", node.InputType, null), 17571new TreeDumperNode("inputType", node.InputType, null), 17581new TreeDumperNode("inputType", node.InputType, null), 17590new TreeDumperNode("inputType", node.InputType, null), 17601new TreeDumperNode("inputType", node.InputType, null),
Operations\CSharpOperationFactory.cs (14)
2586TypeSymbol inputType = boundConstantPattern.InputType; 2597TypeSymbol inputType = boundRelationalPattern.InputType; 2610ITypeSymbol inputType = boundDeclarationPattern.InputType.GetPublicSymbol(); 2621ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.InputType.StrippedType()).GetPublicSymbol(); 2634boundRecursivePattern.InputType.GetPublicSymbol(), 2648boundITuplePattern.InputType.StrippedType().GetPublicSymbol(), 2653boundITuplePattern.InputType.GetPublicSymbol(), 2664inputType: boundTypePattern.InputType.GetPublicSymbol(), 2677inputType: boundNode.InputType.GetPublicSymbol(), 2691inputType: boundNode.InputType.GetPublicSymbol(), 2702boundNegatedPattern.InputType.GetPublicSymbol(), 2742boundBinaryPattern.InputType.GetPublicSymbol(), 2825cp.InputType.IsValidV6SwitchGoverningType()) 2911inputType: boundNode.InputType.GetPublicSymbol(),