2 writes to InputType
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
7998this.InputType = inputType; 8009this.InputType = inputType;
125 references to InputType
Microsoft.CodeAnalysis.CSharp (125)
Binder\DecisionDagBuilder.cs (5)
287Debug.Assert(pattern.HasErrors || pattern.InputType.Equals(input.Type, TypeCompareKind.AllIgnoreOptions) || pattern.InputType.IsErrorType()); 522RoslynDebug.Assert(input.Type.IsErrorType() || recursive.HasErrors || recursive.InputType.IsErrorType() || input.Type.Equals(recursive.InputType, TypeCompareKind.AllIgnoreOptions)); 679if (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)
2040pattern.InputType, pattern.NarrowedType, nullability: default, convertedNullability: default, 2041Compilation.Conversions.ClassifyBuiltInConversion(pattern.InputType, pattern.NarrowedType, isChecked: false, ref discardedUseSiteInfo));
Generated\BoundNodes.xml.Generated.cs (43)
8044if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8084if (!TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8137if (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)) 8178if (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)) 8222if (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)) 8261if (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)) 8301if (!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)) 8441if (declaredType != this.DeclaredType || isExplicitNotNullTest != this.IsExplicitNotNullTest || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8480if (disjunction != this.Disjunction || left != this.Left || right != this.Right || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8514if (negated != this.Negated || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 8553if (relation != this.Relation || value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12232TypeSymbol? inputType = this.VisitType(node.InputType); 12238TypeSymbol? inputType = this.VisitType(node.InputType); 12247TypeSymbol? inputType = this.VisitType(node.InputType); 12259TypeSymbol? inputType = this.VisitType(node.InputType); 12272TypeSymbol? inputType = this.VisitType(node.InputType); 12282TypeSymbol? inputType = this.VisitType(node.InputType); 12291TypeSymbol? inputType = this.VisitType(node.InputType); 12317TypeSymbol? inputType = this.VisitType(node.InputType); 12325TypeSymbol? inputType = this.VisitType(node.InputType); 12332TypeSymbol? inputType = this.VisitType(node.InputType); 12339TypeSymbol? inputType = this.VisitType(node.InputType); 14886TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14894TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14902TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14913TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14925TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14938TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14951TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14973TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14981TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 14989TypeSymbol inputType = GetUpdatedSymbol(node, node.InputType); 17078new TreeDumperNode("inputType", node.InputType, null), 17085new TreeDumperNode("inputType", node.InputType, null), 17096new TreeDumperNode("inputType", node.InputType, null), 17110new TreeDumperNode("inputType", node.InputType, null), 17125new TreeDumperNode("inputType", node.InputType, null), 17136new TreeDumperNode("inputType", node.InputType, null), 17146new TreeDumperNode("inputType", node.InputType, null), 17178new TreeDumperNode("inputType", node.InputType, null), 17188new TreeDumperNode("inputType", node.InputType, null), 17196new TreeDumperNode("inputType", node.InputType, null), 17206new TreeDumperNode("inputType", node.InputType, null),
Operations\CSharpOperationFactory.cs (14)
2520TypeSymbol inputType = boundConstantPattern.InputType; 2531TypeSymbol inputType = boundRelationalPattern.InputType; 2544ITypeSymbol inputType = boundDeclarationPattern.InputType.GetPublicSymbol(); 2555ITypeSymbol matchedType = (boundRecursivePattern.DeclaredType?.Type ?? boundRecursivePattern.InputType.StrippedType()).GetPublicSymbol(); 2568boundRecursivePattern.InputType.GetPublicSymbol(), 2582boundITuplePattern.InputType.StrippedType().GetPublicSymbol(), 2587boundITuplePattern.InputType.GetPublicSymbol(), 2598inputType: boundTypePattern.InputType.GetPublicSymbol(), 2611inputType: boundNode.InputType.GetPublicSymbol(), 2625inputType: boundNode.InputType.GetPublicSymbol(), 2636boundNegatedPattern.InputType.GetPublicSymbol(), 2676boundBinaryPattern.InputType.GetPublicSymbol(), 2759cp.InputType.IsValidV6SwitchGoverningType()) 2845inputType: boundNode.InputType.GetPublicSymbol(),