2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
8029this.InputType = inputType; 8040this.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)
8075if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8115if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8168if (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)) 8209if (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)) 8253if (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)) 8292if (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)) 8332if (!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)) 8472if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8511if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8545if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8584if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12264TypeSymbol? inputType = this.VisitType(node.InputType); 12270TypeSymbol? inputType = this.VisitType(node.InputType); 12279TypeSymbol? inputType = this.VisitType(node.InputType); 12291TypeSymbol? inputType = this.VisitType(node.InputType); 12304TypeSymbol? inputType = this.VisitType(node.InputType); 12314TypeSymbol? inputType = this.VisitType(node.InputType); 12323TypeSymbol? inputType = this.VisitType(node.InputType); 12349TypeSymbol? inputType = this.VisitType(node.InputType); 12357TypeSymbol? inputType = this.VisitType(node.InputType); 12364TypeSymbol? inputType = this.VisitType(node.InputType); 12371TypeSymbol? inputType = this.VisitType(node.InputType); 14923TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14931TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14939TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14950TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14962TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14975TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14988TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15010TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15018TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 15026TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 17116new TreeDumperNode("inputType", node.InputType, null), 17123new TreeDumperNode("inputType", node.InputType, null), 17134new TreeDumperNode("inputType", node.InputType, null), 17148new TreeDumperNode("inputType", node.InputType, null), 17163new TreeDumperNode("inputType", node.InputType, null), 17174new TreeDumperNode("inputType", node.InputType, null), 17184new TreeDumperNode("inputType", node.InputType, null), 17216new TreeDumperNode("inputType", node.InputType, null), 17226new TreeDumperNode("inputType", node.InputType, null), 17234new TreeDumperNode("inputType", node.InputType, null), 17244new 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(),