1 write to Input
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5232this.Input = input;
223 references to Input
Microsoft.CodeAnalysis.CSharp (223)
Binder\DecisionDagBuilder.cs (97)
258if (e.Input.Source is { }) 259usedValues.Add(e.Input.Source); 269if (d.Input.Source is { }) 270usedValues.Add(d.Input.Source); 485Input: { } propertyInput 542while (input.Source is BoundDagTypeEvaluation source && isDerivedType(source.Input.Type, symbol.ContainingType)) 544if (IsAnyUnionValue(source.Input, out _)) 552input = source.Input; 571if (IsAnyUnionValue(source.Input, out _)) 579input = source.Input; 677Input: { } tryGetValueInput 736Input: { } propertyInput 1262if (evaluation.Input.Source is { Id: -1 } source) 1268if (test.Input.Source is { Id: -1 } testSource) 1423state.SelectedTest = new BoundDagNonNullTest(t.Syntax, isExplicitTest: true, t.Input, t.HasErrors); 1515markUsedTemp(tempToIndex, ref nextTempIndex, ref usedTemps, eval.Input); 1736whenTrueValues.TryGetValue(test.Input, out IValueSet? whenTrueValuesOpt); 1737whenFalseValues.TryGetValue(test.Input, out IValueSet? whenFalseValuesOpt); 1792var input = test.Input; 1829if (!_forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(_compilation, typeTest.Input) is { } factory) 1835(var whenTrueValues, var whenFalseValues, fromTestPassing, var fromTestFailing) = splitValues(values, typeTest.Input, fromTestPassing); 1855if (!_forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(_compilation, nonNullTest.Input) is { } factory) 1859(var whenTrueValues, var whenFalseValues, fromTestPassing, var fromTestFailing) = splitValues(values, nonNullTest.Input, fromTestPassing); 1876if (!_forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(_compilation, nullTest.Input) is { } factory) 1880(var whenTrueValues, var whenFalseValues, fromTestPassing, var fromTestFailing) = splitValues(values, nullTest.Input, fromTestPassing); 1895BoundDagTemp input = e.Input; 1902input = slice.Input; 1910BoundDagTemp input = e.Input; 1917input = slice.Input; 2351return test is BoundDagExplicitNullTest && IsAnyUnionValue(NotTypeEvaluationInput(test.Input), out testUnionInstance); 2357return test is BoundDagNonNullTest && IsAnyUnionValue(NotTypeEvaluationInput(test.Input), out testUnionInstance); 2362if (test is BoundDagTypeTest typeTest && IsAnyUnionValue(NotTypeEvaluationInput(test.Input), out testUnionInstance)) 2375if (test is BoundDagValueTest hasValueTest && IsUnionHasValue(test.Input, out testUnionInstance)) 2393if (test is BoundDagValueTest tryGetValueTest && IsUnionTryGetValueReturn(test.Input, out targetType, out testUnionInstance, out tryGetValueEvaluation)) 2413if (test.Input == other.Input) 2423!test.Input.Type.Equals(other.Input.Type, TypeCompareKind.AllIgnoreOptions)) 2428return IsSameEntity(test.Input, other.Input); 2440s1Input = s1.Input; 2444s2Input = s2.Input; 2452if (IsAnyUnionValue(s1.Input, out BoundDagTemp? s1UnionInstance) && 2453IsAnyUnionValue(s2.Input, out BoundDagTemp? s2UnionInstance)) 2471if (IsUnionValue(s1.Input, out _)) 2473s1Input = s1.Input; 2477if (IsUnionTryGetValueValue(s1.Input, out _)) 2488if (IsUnionValue(s2.Input, out _)) 2490s2Input = s2.Input; 2494if (IsUnionTryGetValueValue(s2.Input, out _)) 2531s1Input = OriginalInput(s1.Input); 2532s2Input = OriginalInput(s2.Input); 2589Debug.Assert(s1.Input.Source is BoundDagTypeEvaluation); 2590Debug.Assert(s2.Input.Source is BoundDagTypeEvaluation); 2592BoundDagTemp s1Input = NotTypeEvaluationInput(s1.Input.Source); 2593BoundDagTemp s2Input = NotTypeEvaluationInput(s2.Input.Source); 2594return s1.Input.Type.Equals(s2.Input.Type, TypeCompareKind.AllIgnoreOptions) && s1Input.Equals(s2Input); 2650return s1.Input.Equals(s2.Input); 2677input = source.Input; 2685return NotTypeEvaluationInput(test.Input); 2915return $"t{tempIdentifier(a)}={a.Kind}({tempName(a.Input)} as {a.Type})"; 2917return $"t{tempIdentifier(e)}={e.Kind}({tempName(e.Input)}.{e.Field.Name})"; 2919return $"t{tempIdentifier(e)}={e.Kind}({tempName(e.Input)}.{e.Property.Name})"; 2921return $"t{tempIdentifier(e)}={e.Kind}({tempName(e.Input)}[{e.Index}])"; 2923return $"{e.Kind}({tempName(e.Target)}<--{tempName(e.Input)})"; 2925return $"t{tempIdentifier(e)}={e.Kind}({tempName(e.Input)})"; 2927return $"?{d.Kind}({tempName(d.Input)} is {b.Type})"; 2929return $"?{d.Kind}({tempName(d.Input)} == {v.Value})"; 2939return $"?{d.Kind}({tempName(d.Input)} {operatorName} {r.Value})"; 2941return $"?{d.Kind}({tempName(d.Input)})"; 3515if (test.Input.Source is BoundDagPropertyEvaluation { IsLengthOrCount: true } e) 3711IsSameEntity(eval.Input, e1.Input)) 3713Debug.Assert(!eval.Input.Equals(e1.Input)); 3802else if (typeEval.Input is { Source: not BoundDagTypeEvaluation } typeEvalInput) 3843var newTypeEval = typeEval.Update(e1.Input); 3935Debug.Assert(passThrough.Input.Source is BoundDagTypeEvaluation); 3936return new BoundDagPassThroughEvaluation(passThrough.Syntax, ((BoundDagTypeEvaluation)UpdateDagTempReferences((BoundDagTypeEvaluation)passThrough.Input.Source, ref tempMap)).MakeResultTemp()); 3943if (!TryGetTempReplacement(tempMap, eval.Input, out BoundDagTemp? replacement)) 3955if (!TryGetTempReplacement(tempMap, indexer.Input, out BoundDagTemp? inputReplacement)) 3971if (!TryGetTempReplacement(tempMap, slice.Input, out BoundDagTemp? inputReplacement)) 3987if (!TryGetTempReplacement(tempMap, assignment.Input, out BoundDagTemp? inputReplacement)) 3997if (!TryGetTempReplacement(tempMap, deconstruct.Input, out BoundDagTemp? replacement)) 4019if (!TryGetTempReplacement(tempMap, test.Input, out BoundDagTemp? replacement)) 4111if (test.Input == valueSetInput) 4118!test.Input.Type.Equals(valueSetInput.Type, TypeCompareKind.AllIgnoreOptions)) 4123return IsSameEntity(test.Input, valueSetInput); 4831if (easyOutForLowering != (object)planA && !builder._forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(builder._compilation, planA.Input) is not null) 4857return planA.Input.Equals(planB1.Input) ? planB1 : planA; 4864return planA.Input.Equals(planB2.Input) ? planB2 : planA; 4973input = firstValueTest.Input; 5002case One { Test: BoundDagValueTest vt } when vt.Input == input && !vt.Value.IsBad:
Binder\PatternExplainer.cs (4)
326BoundDagTemp temp = test.Input; 327if (test is BoundDagTypeTest && sense == false && ValueSetFactory.TypeUnionValueSetFactoryForInput(binder.Compilation, test.Input) is null) 344BoundDagTemp temp = e.Evaluation.Input; 733e.Input.Type is NamedTypeSymbol { IsUnionType: true } unionType &&
BoundTree\BoundDagEvaluation.cs (9)
25other.Input.Equals(this.Input)); 246return new OneOrMany<BoundDagTemp>([Input, LengthTemp]); 283return new OneOrMany<BoundDagTemp>([Input, LengthTemp]); 301this.Input.Equals(assignment.Input); 382Debug.Assert(Input.Source is BoundDagTypeEvaluation); 383return DecisionDagBuilder.NotTypeEvaluationInput(Input.Source).GetHashCode(); 388return Input;
BoundTree\BoundDagTest.cs (19)
26if (!this.Input.Equals(other.Input)) 48return Hash.Combine(((int)Kind).GetHashCode(), Input.GetHashCode()); 56return new OneOrMany<BoundDagTemp>(Input); 65return $"{a.GetOutputTempDebuggerDisplay()} = ({a.Type}){a.Input.GetDebuggerDisplay()}"; 67return $"{e.GetOutputTempDebuggerDisplay()} = {e.Input.GetDebuggerDisplay()}.{e.Property.Name}"; 69return $"{e.GetOutputTempDebuggerDisplay()} = {e.Input.GetDebuggerDisplay()}.{e.Field.Name}"; 100result += $") {d.GetOutputTempDebuggerDisplay()} = {d.Input.GetDebuggerDisplay()}"; 103return $"{i.GetOutputTempDebuggerDisplay()} = {i.Input.GetDebuggerDisplay()}[{i.Index}]"; 105return $"{i.GetOutputTempDebuggerDisplay()} = {i.Input.GetDebuggerDisplay()}[{i.Index}]"; 107return $"{i.Target.GetDebuggerDisplay()} <-- {i.Input.GetDebuggerDisplay()}"; 109return $"PassThrough {i.Input.GetDebuggerDisplay()}"; 111return $"{e.GetOutputTempDebuggerDisplay()} = {e.Kind}({e.Input.GetDebuggerDisplay()})"; 114return $"{b.Input.GetDebuggerDisplay()} is {typeName}"; 116return $"{v.Input.GetDebuggerDisplay()} == {v.Value.GetValueToDisplay()}"; 118return $"{nn.Input.GetDebuggerDisplay()} != null"; 120return $"{n.Input.GetDebuggerDisplay()} == null"; 130return $"{r.Input.GetDebuggerDisplay()} {operatorName} {r.Value.GetValueToDisplay()}"; 132return $"{this.Kind}({this.Input.GetDebuggerDisplay()})";
BoundTree\BoundDecisionDag.cs (1)
176if (!choice.Input.IsOriginalInput)
FlowAnalysis\NullableWalker_Patterns.cs (8)
442(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable(); 542bool foundTemp = tempMap.TryGetValue(test.Input, out var slotAndType); 589&& t.Input.Source is BoundDagTypeEvaluation { Input: { IsOriginalInput: true } }) 689getOrMakeAndRegisterDagTempSlot(evaluation.Input); 690(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable(); 712switch (_conversions.WithNullability(false).ClassifyConversionFromType(e.Input.Type, e.Type, isChecked: false, ref discardedUseSiteInfo).Kind) 737var originalTupleElement = e.Input.IsOriginalInput && !originalInputElementSlots.IsDefault
Generated\BoundNodes.xml.Generated.cs (62)
5289if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || input != this.Input) 5317if (isExplicitTest != this.IsExplicitTest || input != this.Input) 5343if (input != this.Input) 5372if (value != this.Value || input != this.Input) 5403if (operatorKind != this.OperatorKind || value != this.Value || input != this.Input) 5444if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || input != this.Input) 5473if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || input != this.Input) 5502if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(field, this.Field) || input != this.Input) 5533if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || isLengthOrCount != this.IsLengthOrCount || input != this.Input) 5564if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || index != this.Index || input != this.Input) 5611if (!TypeSymbol.Equals(indexerType, this.IndexerType, TypeCompareKind.ConsiderEverything) || lengthTemp != this.LengthTemp || index != this.Index || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || input != this.Input) 5660if (!TypeSymbol.Equals(sliceType, this.SliceType, TypeCompareKind.ConsiderEverything) || lengthTemp != this.LengthTemp || startIndex != this.StartIndex || endIndex != this.EndIndex || indexerAccess != this.IndexerAccess || receiverPlaceholder != this.ReceiverPlaceholder || argumentPlaceholder != this.ArgumentPlaceholder || input != this.Input) 5689if (target != this.Target || input != this.Input) 5715if (input != this.Input) 10594this.Visit(node.Input); 10599this.Visit(node.Input); 10604this.Visit(node.Input); 10609this.Visit(node.Input); 10614this.Visit(node.Input); 10619this.Visit(node.Input); 10624this.Visit(node.Input); 10629this.Visit(node.Input); 10634this.Visit(node.Input); 10639this.Visit(node.Input); 10648this.Visit(node.Input); 10657this.Visit(node.Input); 10663this.Visit(node.Input); 10668this.Visit(node.Input); 11985BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11991BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 11996BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12001BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12006BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12012BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12017BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12024BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12030BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12036BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12045BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12055BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12062BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 12067BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 14170BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 14177BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 14184BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 14191BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 14202BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 14213BoundDagTemp input = (BoundDagTemp)this.Visit(node.Input); 16677new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16684new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16690new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16697new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16705new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16712new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16719new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16726new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16734new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16742new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16754new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16767new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16774new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }), 16780new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.Input, null) }),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (6)
504var input = ((BoundTestDecisionDagNode)node).Test.Input; 535if (!t1.Input.Equals(t2.Input)) 538if (t1.Input.Type.SpecialType is SpecialType.System_Double or SpecialType.System_Single) 570if (!(node is BoundTestDecisionDagNode testNode && testNode.Test.Input.Equals(input))) 594vd.Input.Equals(input) &&
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (17)
137BoundExpression input = _tempAllocator.GetTemp(evaluation.Input); 322Debug.Assert(!e.Target.Equals(e.Input)); 324BoundExpression right = _tempAllocator.GetTemp(e.Input); 368BoundExpression input = _tempAllocator.GetTemp(test.Input); 506typeEvaluation1.Input.Equals(typeDecision.Input)) 508BoundExpression input = _tempAllocator.GetTemp(test.Input); 519_factory.Compilation.Conversions.ClassifyBuiltInConversion(test.Input.Type, typeEvaluation2.Type, isChecked: false, ref useSiteInfo) is Conversion conv && 521typeEvaluation2.Input == nonNullTest.Input) 523BoundExpression input = _tempAllocator.GetTemp(test.Input); 620return t.Test.Input.IsOriginalInput; 625return f.Input.IsOriginalInput && !f.Field.IsTupleElement(); 627return e.Evaluation.Input.IsOriginalInput; 696eval.Input.IsOriginalInput && 708Debug.Assert(!evalNode.Evaluation.Input.IsOriginalInput); 712Debug.Assert(!testNode.Test.Input.IsOriginalInput);