2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8119this.InputType = inputType; 8134this.InputType = inputType;
161 references to InputType
Microsoft.CodeAnalysis.CSharp (161)
Binder\Binder_Patterns.cs (1)
2272candidate = pat.InputType;
Binder\DecisionDagBuilder_CheckOrReachability.cs (37)
440var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType); 558var wrappedPattern = new BoundBinaryPattern(newPattern.Syntax, disjunction: false, current.Left, newPattern, current.InputType, newPattern.NarrowedType); 813stack.Push(new BoundBinaryPattern(operationSyntax, disjunction, left, right, left.InputType, narrowedType)); 828inputType = stack.Peek().InputType; 855return resultLeft.InputType; 1010var result = new BoundNegatedPattern(node.Syntax, node, node.InputType, narrowedType: node.InputType); 1051if (pattern.InputType.Equals(inputType, TypeCompareKind.AllIgnoreOptions)) 1065new BoundTypeExpression(recursivePattern.Syntax, aliasOpt: null, recursivePattern.InputType.StrippedType()), 1107new BoundTypeExpression(pattern.Syntax, aliasOpt: null, pattern.InputType), 1108isExplicitNotNullTest: false, isUnionMatching: false, inputType, narrowedType: pattern.InputType).MakeCompilerGenerated(); 1122var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, isUnionMatching: false, node.Variable, node.VariableAccess, node.InputType, node.NarrowedType) 1162initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, isUnionMatching: false, node.InputType, node.NarrowedType, node.HasErrors); 1164else if (node.InputType.CanContainNull()) 1168new BoundLiteral(node.Syntax, constantValueOpt: ConstantValue.Null, type: node.InputType, hasErrors: false), 1169ConstantValue.Null, unionMatchingMode: UnionMatchingMode.None, node.InputType, node.InputType, hasErrors: false); 1170initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, node.InputType, narrowedType: node.InputType); 1176ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, isUnionMatching: false, variable: null, variableAccess: null, node.InputType, node.InputType); 1185var discards = deconstruction.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1195newPattern = WithInputTypeCheckIfNeeded(newPattern, deconstruction[i].Pattern.InputType); 1202node.InputType, node.NarrowedType, node.HasErrors); 1230newPattern = WithInputTypeCheckIfNeeded(newPattern, property!.Pattern.InputType); 1237node.InputType, node.NarrowedType, node.HasErrors); 1298var discards = subpatterns.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1305ituplePattern.InputType, ituplePattern.NarrowedType); 1318newPattern = WithInputTypeCheckIfNeeded(newPattern, subpatterns[i].Pattern.InputType); 1322ituplePattern.GetItemMethod, newSubpatterns, ituplePattern.InputType, ituplePattern.NarrowedType); 1381newPattern = WithInputTypeCheckIfNeeded(newPattern, equivalentDefaultPatterns[i].InputType); 1387listPattern.InputType, listPattern.NarrowedType); 1408newPattern = WithInputTypeCheckIfNeeded(newPattern, slice.Pattern.InputType); 1411slice.ReceiverPlaceholder, slice.ArgumentPlaceholder, slice.InputType, slice.NarrowedType); 1418listPattern.InputType, listPattern.NarrowedType); 1467return 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\DecisionDagBuilder.cs (6)
374(pattern.HasErrors || pattern.InputType.Equals(input.DagTemp.Type, TypeCompareKind.AllIgnoreOptions) || pattern.InputType.IsErrorType()) : 375(pattern.InputType.SpecialType == SpecialType.System_Object)); 939RoslynDebug.Assert(inputTempType.IsErrorType() || recursive.HasErrors || recursive.InputType.IsErrorType() || inputTempType.Equals(recursive.InputType, TypeCompareKind.AllIgnoreOptions)); 1148if (bin.InputType.Equals(bin.NarrowedType))
Binder\UnionMatchingRewriter.cs (25)
58Debug.Assert(innerPattern.InputType.IsObjectType()); 62var member = new BoundPropertySubpatternMember(innerPattern.Syntax, receiver: null, valueProperty, type: innerPattern.InputType, hasErrors: valueProperty is null).MakeCompilerGenerated(); 78Debug.Assert(node.InputType.IsSubjectForUnionMatching); 83Debug.Assert(Binder.IsClassOrNullableValueTypeUnionNullPatternMatching((NamedTypeSymbol)node.InputType, node.ConstantValue)); 84Debug.Assert(node.NarrowedType.Equals(node.InputType, TypeCompareKind.AllIgnoreOptions)); 89(NamedTypeSymbol)node.InputType, 94left: node.Update(node.Value, node.ConstantValue, unionMatchingMode: UnionMatchingMode.None, node.InputType, node.InputType).MakeCompilerGenerated(), 96inputType: node.InputType, 97narrowedType: node.InputType) 102(NamedTypeSymbol)node.InputType, 115(NamedTypeSymbol)node.InputType, 133TypeSymbol? inputType = node.InputType; 146(NamedTypeSymbol)node.InputType, 160(NamedTypeSymbol)node.InputType, 173(NamedTypeSymbol)node.InputType, 184return node.Update(negated, node.InputType, node.NarrowedType); 193TypeSymbol? inputType = node.InputType; 283Debug.Assert(node.NarrowedType.Equals(leastSpecific ?? node.InputType, TypeCompareKind.ConsiderEverything)); 286return node.Update(disjunction: true, preboundLeft, right, inputType: node.InputType, narrowedType: node.NarrowedType); 345inputType: left.InputType).MakeCompilerGenerated(); 366inputType: leftUnionPattern.InputType).MakeCompilerGenerated(); 399return new BoundBinaryPattern(node, disjunction: false, left, right, inputType: left.InputType, narrowedType: right.NarrowedType) { WasCompilerGenerated = makeCompilerGenerated }; 451Debug.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)
20(ConstantValue == ConstantValue.Null && (InputType.IsNullableType() || !InputType.IsValueType) && NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions))); 24Debug.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.InputType, this.NarrowedType); 26Debug.Assert(NarrowedType.Equals(InputType.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundNegatedPattern.cs (3)
14Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions)); 15Debug.Assert(Negated.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundPattern.cs (1)
35Debug.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)
18Debug.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)
159TypeSymbol 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));
Generated\BoundNodes.xml.Generated.cs (47)
8171if (value != this.Value || constantValue != this.ConstantValue || unionMatchingMode != this.UnionMatchingMode || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8213if (!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)) 8253if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8308if (declaredType != this.DeclaredType || isVar != this.IsVar || isUnionMatching != this.IsUnionMatching || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8351if (declaredType != this.DeclaredType || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || deconstruction != this.Deconstruction || properties != this.Properties || isExplicitNotNullTest != this.IsExplicitNotNullTest || isUnionMatching != this.IsUnionMatching || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(variable, this.Variable) || variableAccess != this.VariableAccess || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8395if (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)) 8434if (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)) 8474if (!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)) 8620if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8659if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8693if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8734if (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)) 12514TypeSymbol? inputType = this.VisitType(node.InputType); 12524TypeSymbol? inputType = this.VisitType(node.InputType); 12530TypeSymbol? inputType = this.VisitType(node.InputType); 12539TypeSymbol? inputType = this.VisitType(node.InputType); 12551TypeSymbol? inputType = this.VisitType(node.InputType); 12564TypeSymbol? inputType = this.VisitType(node.InputType); 12574TypeSymbol? inputType = this.VisitType(node.InputType); 12583TypeSymbol? inputType = this.VisitType(node.InputType); 12609TypeSymbol? inputType = this.VisitType(node.InputType); 12617TypeSymbol? inputType = this.VisitType(node.InputType); 12624TypeSymbol? inputType = this.VisitType(node.InputType); 12631TypeSymbol? inputType = this.VisitType(node.InputType); 15206TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15215TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15225TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15233TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15244TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15256TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15269TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15282TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15304TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15312TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15320TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 17457new TreeDumperNode("inputType", node.InputType, null), 17468new TreeDumperNode("inputType", node.InputType, null), 17475new TreeDumperNode("inputType", node.InputType, null), 17487new TreeDumperNode("inputType", node.InputType, null), 17502new TreeDumperNode("inputType", node.InputType, null), 17517new TreeDumperNode("inputType", node.InputType, null), 17528new TreeDumperNode("inputType", node.InputType, null), 17538new TreeDumperNode("inputType", node.InputType, null), 17571new TreeDumperNode("inputType", node.InputType, null), 17581new TreeDumperNode("inputType", node.InputType, null), 17589new TreeDumperNode("inputType", node.InputType, null), 17600new 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(),