2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8027this.InputType = inputType; 8038this.InputType = inputType;
125 references to InputType
Microsoft.CodeAnalysis.CSharp (125)
Binder\DecisionDagBuilder.cs (5)
333Debug.Assert(pattern.HasErrors || pattern.InputType.Equals(input.Type, TypeCompareKind.AllIgnoreOptions) || pattern.InputType.IsErrorType()); 568RoslynDebug.Assert(input.Type.IsErrorType() || recursive.HasErrors || recursive.InputType.IsErrorType() || input.Type.Equals(recursive.InputType, TypeCompareKind.AllIgnoreOptions)); 725if (bin.InputType.Equals(bin.NarrowedType))
Binder\DecisionDagBuilder_CheckOrReachability.cs (37)
362var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType); 480var wrappedPattern = new BoundBinaryPattern(newPattern.Syntax, disjunction: false, current.Left, newPattern, current.InputType, newPattern.NarrowedType); 735stack.Push(new BoundBinaryPattern(operationSyntax, disjunction, left, right, left.InputType, narrowedType)); 750inputType = stack.Peek().InputType; 777return resultLeft.InputType; 931var result = new BoundNegatedPattern(node.Syntax, node, node.InputType, narrowedType: node.InputType); 972if (pattern.InputType.Equals(inputType, TypeCompareKind.AllIgnoreOptions)) 986new BoundTypeExpression(recursivePattern.Syntax, aliasOpt: null, recursivePattern.InputType.StrippedType()), 1028new BoundTypeExpression(pattern.Syntax, aliasOpt: null, pattern.InputType), 1029isExplicitNotNullTest: false, inputType, narrowedType: pattern.InputType).MakeCompilerGenerated(); 1043var result = new BoundDeclarationPattern(node.Syntax, node.DeclaredType, node.IsVar, node.Variable, node.VariableAccess, node.InputType, node.NarrowedType) 1083initialCheck = new BoundTypePattern(node.Syntax, node.DeclaredType, node.IsExplicitNotNullTest, node.InputType, node.NarrowedType, node.HasErrors); 1085else if (node.InputType.CanContainNull()) 1089new BoundLiteral(node.Syntax, constantValueOpt: ConstantValue.Null, type: node.InputType, hasErrors: false), 1090ConstantValue.Null, node.InputType, node.InputType, hasErrors: false); 1091initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, node.InputType, narrowedType: node.InputType); 1097ImmutableArray<BoundPropertySubpattern>.Empty, isExplicitNotNullTest: false, variable: null, variableAccess: null, node.InputType, node.InputType); 1106var discards = deconstruction.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1116newPattern = WithInputTypeCheckIfNeeded(newPattern, deconstruction[i].Pattern.InputType); 1123node.InputType, node.NarrowedType, node.HasErrors); 1151newPattern = WithInputTypeCheckIfNeeded(newPattern, property!.Pattern.InputType); 1158node.InputType, node.NarrowedType, node.HasErrors); 1219var discards = subpatterns.SelectAsArray(d => d.WithPattern(MakeDiscardPattern(d.Syntax, d.Pattern.InputType))); 1226ituplePattern.InputType, ituplePattern.NarrowedType); 1239newPattern = WithInputTypeCheckIfNeeded(newPattern, subpatterns[i].Pattern.InputType); 1243ituplePattern.GetItemMethod, newSubpatterns, ituplePattern.InputType, ituplePattern.NarrowedType); 1302newPattern = WithInputTypeCheckIfNeeded(newPattern, equivalentDefaultPatterns[i].InputType); 1308listPattern.InputType, listPattern.NarrowedType); 1329newPattern = WithInputTypeCheckIfNeeded(newPattern, slice.Pattern.InputType); 1332slice.ReceiverPlaceholder, slice.ArgumentPlaceholder, slice.InputType, slice.NarrowedType); 1339listPattern.InputType, listPattern.NarrowedType); 1388return MakeDiscardPattern(pattern.Syntax, pattern.InputType);
Binder\DecisionDagBuilder_ListPatterns.cs (6)
16Debug.Assert(input.Type.IsErrorType() || list.HasErrors || list.InputType.IsErrorType() || 17input.Type.Equals(list.InputType, TypeCompareKind.AllIgnoreOptions) && 64var sliceEvaluation = new BoundDagSliceEvaluation(slicePattern.Syntax, slicePattern.InputType, lengthTemp, startIndex: startIndex, endIndex: index, 68var sliceTemp = new BoundDagTemp(slicePattern.Syntax, slicePattern.InputType, sliceEvaluation); 79var indexEvaluation = new BoundDagIndexerEvaluation(subpattern.Syntax, subpattern.InputType, lengthTemp, index++, 83var indexTemp = new BoundDagTemp(subpattern.Syntax, subpattern.InputType, indexEvaluation);
BoundTree\BoundBinaryPattern.cs (5)
13Debug.Assert(Left.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions)); 17Debug.Assert(Right.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions)); 23Debug.Assert(Right.InputType.Equals(Left.NarrowedType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundConstantPattern.cs (1)
13Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions) ||
BoundTree\BoundDiscardPattern.cs (1)
13Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundListPattern.cs (2)
15return Update(subpatterns, this.HasSlice, this.LengthAccess, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.Variable, this.VariableAccess, this.InputType, this.NarrowedType); 23Debug.Assert(NarrowedType.Equals(InputType.StrippedType(), TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundNegatedPattern.cs (3)
13Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions)); 14Debug.Assert(Negated.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
BoundTree\BoundRecursivePattern.cs (1)
15NarrowedType.Equals(InputType.StrippedType(), TypeCompareKind.AllIgnoreOptions) :
BoundTree\BoundRelationalPattern.cs (1)
13Debug.Assert(NarrowedType.Equals(InputType, TypeCompareKind.AllIgnoreOptions) ||
BoundTree\BoundSlicePattern.cs (2)
13return Update(pattern, this.IndexerAccess, this.ReceiverPlaceholder, this.ArgumentPlaceholder, this.InputType, this.NarrowedType); 20Debug.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)
2027pattern.InputType, pattern.NarrowedType, nullability: default, convertedNullability: default, 2028Compilation.Conversions.ClassifyBuiltInConversion(pattern.InputType, pattern.NarrowedType, isChecked: false, ref discardedUseSiteInfo));
Generated\BoundNodes.xml.Generated.cs (43)
8073if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8113if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8166if (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)) 8207if (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)) 8251if (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)) 8290if (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)) 8330if (!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)) 8470if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8509if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8543if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8582if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12262TypeSymbol? inputType = this.VisitType(node.InputType); 12268TypeSymbol? inputType = this.VisitType(node.InputType); 12277TypeSymbol? inputType = this.VisitType(node.InputType); 12289TypeSymbol? inputType = this.VisitType(node.InputType); 12302TypeSymbol? inputType = this.VisitType(node.InputType); 12312TypeSymbol? inputType = this.VisitType(node.InputType); 12321TypeSymbol? inputType = this.VisitType(node.InputType); 12347TypeSymbol? inputType = this.VisitType(node.InputType); 12355TypeSymbol? inputType = this.VisitType(node.InputType); 12362TypeSymbol? inputType = this.VisitType(node.InputType); 12369TypeSymbol? inputType = this.VisitType(node.InputType); 14921TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14929TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14937TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14948TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14960TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14973TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14986TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15008TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15016TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15024TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 17113new TreeDumperNode("inputType", node.InputType, null), 17120new TreeDumperNode("inputType", node.InputType, null), 17131new TreeDumperNode("inputType", node.InputType, null), 17145new TreeDumperNode("inputType", node.InputType, null), 17160new TreeDumperNode("inputType", node.InputType, null), 17171new TreeDumperNode("inputType", node.InputType, null), 17181new TreeDumperNode("inputType", node.InputType, null), 17213new TreeDumperNode("inputType", node.InputType, null), 17223new TreeDumperNode("inputType", node.InputType, null), 17231new TreeDumperNode("inputType", node.InputType, null), 17241new TreeDumperNode("inputType", node.InputType, null),
Operations\CSharpOperationFactory.cs (14)
2511TypeSymbol inputType = boundConstantPattern.InputType; 2522TypeSymbol inputType = boundRelationalPattern.InputType; 2535ITypeSymbol inputType = boundDeclarationPattern.InputType.GetPublicSymbol(); 2546ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.InputType.StrippedType()).GetPublicSymbol(); 2559boundRecursivePattern.InputType.GetPublicSymbol(), 2573boundITuplePattern.InputType.StrippedType().GetPublicSymbol(), 2578boundITuplePattern.InputType.GetPublicSymbol(), 2589inputType: boundTypePattern.InputType.GetPublicSymbol(), 2602inputType: boundNode.InputType.GetPublicSymbol(), 2616inputType: boundNode.InputType.GetPublicSymbol(), 2627boundNegatedPattern.InputType.GetPublicSymbol(), 2667boundBinaryPattern.InputType.GetPublicSymbol(), 2750cp.InputType.IsValidV6SwitchGoverningType()) 2836inputType: boundNode.InputType.GetPublicSymbol(),