1 write to Input
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5234
this.
Input
= input;
196 references to Input
Microsoft.CodeAnalysis.CSharp (196)
Binder\DecisionDagBuilder.cs (85)
259
if (e.
Input
.Source is { })
260
usedValues.Add(e.
Input
.Source);
270
if (d.
Input
.Source is { })
271
usedValues.Add(d.
Input
.Source);
486
Input
: { } propertyInput
543
while (input.Source is BoundDagTypeEvaluation source && isDerivedType(source.
Input
.Type, symbol.ContainingType))
545
if (IsAnyUnionValue(source.
Input
, out _))
553
input = source.
Input
;
572
if (IsAnyUnionValue(source.
Input
, out _))
580
input = source.
Input
;
678
Input
: { } tryGetValueInput
737
Input
: { } propertyInput
1424
state.SelectedTest = new BoundDagNonNullTest(t.Syntax, isExplicitTest: true, t.
Input
, t.HasErrors);
1516
markUsedTemp(tempToIndex, ref nextTempIndex, ref usedTemps, eval.
Input
);
1737
whenTrueValues.TryGetValue(test.
Input
, out IValueSet? whenTrueValuesOpt);
1738
whenFalseValues.TryGetValue(test.
Input
, out IValueSet? whenFalseValuesOpt);
1793
var input = test.
Input
;
1830
if (!_forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(_compilation, typeTest.
Input
) is { } factory)
1836
(var whenTrueValues, var whenFalseValues, fromTestPassing, var fromTestFailing) = splitValues(values, typeTest.
Input
, fromTestPassing);
1856
if (!_forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(_compilation, nonNullTest.
Input
) is { } factory)
1860
(var whenTrueValues, var whenFalseValues, fromTestPassing, var fromTestFailing) = splitValues(values, nonNullTest.
Input
, fromTestPassing);
1877
if (!_forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(_compilation, nullTest.
Input
) is { } factory)
1881
(var whenTrueValues, var whenFalseValues, fromTestPassing, var fromTestFailing) = splitValues(values, nullTest.
Input
, fromTestPassing);
1896
BoundDagTemp input = e.
Input
;
1903
input = slice.
Input
;
1911
BoundDagTemp input = e.
Input
;
1918
input = slice.
Input
;
2352
return test is BoundDagExplicitNullTest && IsAnyUnionValue(NotTypeEvaluationInput(test.
Input
), out testUnionInstance);
2358
return test is BoundDagNonNullTest && IsAnyUnionValue(NotTypeEvaluationInput(test.
Input
), out testUnionInstance);
2363
if (test is BoundDagTypeTest typeTest && IsAnyUnionValue(NotTypeEvaluationInput(test.
Input
), out testUnionInstance))
2376
if (test is BoundDagValueTest hasValueTest && IsUnionHasValue(test.
Input
, out testUnionInstance))
2394
if (test is BoundDagValueTest tryGetValueTest && IsUnionTryGetValueReturn(test.
Input
, out targetType, out testUnionInstance, out tryGetValueEvaluation))
2414
if (test.
Input
== other.
Input
)
2424
!test.
Input
.Type.Equals(other.
Input
.Type, TypeCompareKind.AllIgnoreOptions))
2429
return IsSameEntity(test.
Input
, other.
Input
);
2441
s1Input = s1.
Input
;
2445
s2Input = s2.
Input
;
2453
if (IsAnyUnionValue(s1.
Input
, out BoundDagTemp? s1UnionInstance) &&
2454
IsAnyUnionValue(s2.
Input
, out BoundDagTemp? s2UnionInstance))
2472
if (IsUnionValue(s1.
Input
, out _))
2474
s1Input = s1.
Input
;
2478
if (IsUnionTryGetValueValue(s1.
Input
, out _))
2489
if (IsUnionValue(s2.
Input
, out _))
2491
s2Input = s2.
Input
;
2495
if (IsUnionTryGetValueValue(s2.
Input
, out _))
2532
s1Input = OriginalInput(s1.
Input
);
2533
s2Input = OriginalInput(s2.
Input
);
2590
Debug.Assert(s1.
Input
.Source is BoundDagTypeEvaluation);
2591
Debug.Assert(s2.
Input
.Source is BoundDagTypeEvaluation);
2593
BoundDagTemp s1Input = NotTypeEvaluationInput(s1.
Input
.Source);
2594
BoundDagTemp s2Input = NotTypeEvaluationInput(s2.
Input
.Source);
2595
return s1.
Input
.Type.Equals(s2.
Input
.Type, TypeCompareKind.AllIgnoreOptions) && s1Input.Equals(s2Input);
2651
return s1.
Input
.Equals(s2.
Input
);
2678
input = source.
Input
;
2686
return NotTypeEvaluationInput(test.
Input
);
3516
if (test.
Input
.Source is BoundDagPropertyEvaluation { IsLengthOrCount: true } e)
3712
IsSameEntity(eval.
Input
, e1.
Input
))
3714
Debug.Assert(!eval.
Input
.Equals(e1.
Input
));
3803
else if (typeEval.
Input
is { Source: not BoundDagTypeEvaluation } typeEvalInput)
3844
var newTypeEval = typeEval.Update(e1.
Input
);
3936
Debug.Assert(passThrough.
Input
.Source is BoundDagTypeEvaluation);
3937
return new BoundDagPassThroughEvaluation(passThrough.Syntax, ((BoundDagTypeEvaluation)UpdateDagTempReferences((BoundDagTypeEvaluation)passThrough.
Input
.Source, ref tempMap)).MakeResultTemp());
3944
if (!TryGetTempReplacement(tempMap, eval.
Input
, out BoundDagTemp? replacement))
3956
if (!TryGetTempReplacement(tempMap, indexer.
Input
, out BoundDagTemp? inputReplacement))
3972
if (!TryGetTempReplacement(tempMap, slice.
Input
, out BoundDagTemp? inputReplacement))
3988
if (!TryGetTempReplacement(tempMap, assignment.
Input
, out BoundDagTemp? inputReplacement))
3998
if (!TryGetTempReplacement(tempMap, deconstruct.
Input
, out BoundDagTemp? replacement))
4020
if (!TryGetTempReplacement(tempMap, test.
Input
, out BoundDagTemp? replacement))
4112
if (test.
Input
== valueSetInput)
4119
!test.
Input
.Type.Equals(valueSetInput.Type, TypeCompareKind.AllIgnoreOptions))
4124
return IsSameEntity(test.
Input
, valueSetInput);
4832
if (easyOutForLowering != (object)planA && !builder._forLowering && ValueSetFactory.TypeUnionValueSetFactoryForInput(builder._compilation, planA.
Input
) is not null)
4858
return planA.
Input
.Equals(planB1.
Input
) ? planB1 : planA;
4865
return planA.
Input
.Equals(planB2.
Input
) ? planB2 : planA;
4974
input = firstValueTest.
Input
;
5003
case One { Test: BoundDagValueTest vt } when vt.
Input
== input && !vt.Value.IsBad:
Binder\PatternExplainer.cs (4)
326
BoundDagTemp temp = test.
Input
;
327
if (test is BoundDagTypeTest && sense == false && ValueSetFactory.TypeUnionValueSetFactoryForInput(binder.Compilation, test.
Input
) is null)
344
BoundDagTemp temp = e.Evaluation.
Input
;
733
e.
Input
.Type is NamedTypeSymbol { IsUnionType: true } unionType &&
BoundTree\BoundDagEvaluation.cs (9)
25
other.
Input
.Equals(this.
Input
));
246
return new OneOrMany<BoundDagTemp>([
Input
, LengthTemp]);
283
return new OneOrMany<BoundDagTemp>([
Input
, LengthTemp]);
301
this.
Input
.Equals(assignment.
Input
);
382
Debug.Assert(
Input
.Source is BoundDagTypeEvaluation);
383
return DecisionDagBuilder.NotTypeEvaluationInput(
Input
.Source).GetHashCode();
388
return
Input
;
BoundTree\BoundDagTest.cs (4)
26
if (!this.
Input
.Equals(other.
Input
))
48
return Hash.Combine(((int)Kind).GetHashCode(),
Input
.GetHashCode());
56
return new OneOrMany<BoundDagTemp>(
Input
);
BoundTree\BoundDecisionDag.cs (1)
176
if (!choice.
Input
.IsOriginalInput)
FlowAnalysis\NullableWalker_Patterns.cs (8)
442
(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.
Input
, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable();
542
bool foundTemp = tempMap.TryGetValue(test.
Input
, out var slotAndType);
589
&& t.
Input
.Source is BoundDagTypeEvaluation {
Input
: { IsOriginalInput: true } })
689
getOrMakeAndRegisterDagTempSlot(evaluation.
Input
);
690
(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.
Input
, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable();
712
switch (_conversions.WithNullability(false).ClassifyConversionFromType(e.
Input
.Type, e.Type, isChecked: false, ref discardedUseSiteInfo).Kind)
737
var originalTupleElement = e.
Input
.IsOriginalInput && !originalInputElementSlots.IsDefault
Generated\BoundNodes.xml.Generated.cs (62)
5291
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || input != this.
Input
)
5319
if (isExplicitTest != this.IsExplicitTest || input != this.
Input
)
5345
if (input != this.
Input
)
5374
if (value != this.Value || input != this.
Input
)
5405
if (operatorKind != this.OperatorKind || value != this.Value || input != this.
Input
)
5446
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(deconstructMethod, this.DeconstructMethod) || input != this.
Input
)
5475
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || input != this.
Input
)
5504
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(field, this.Field) || input != this.
Input
)
5535
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || isLengthOrCount != this.IsLengthOrCount || input != this.
Input
)
5566
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(property, this.Property) || index != this.Index || input != this.
Input
)
5613
if (!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
)
5662
if (!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
)
5691
if (target != this.Target || input != this.
Input
)
5717
if (input != this.
Input
)
10596
this.Visit(node.
Input
);
10601
this.Visit(node.
Input
);
10606
this.Visit(node.
Input
);
10611
this.Visit(node.
Input
);
10616
this.Visit(node.
Input
);
10621
this.Visit(node.
Input
);
10626
this.Visit(node.
Input
);
10631
this.Visit(node.
Input
);
10636
this.Visit(node.
Input
);
10641
this.Visit(node.
Input
);
10650
this.Visit(node.
Input
);
10659
this.Visit(node.
Input
);
10665
this.Visit(node.
Input
);
10670
this.Visit(node.
Input
);
11987
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
11993
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
11998
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12003
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12008
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12014
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12019
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12026
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12032
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12038
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12047
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12057
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12064
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
12069
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
14172
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
14179
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
14186
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
14193
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
14204
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
14215
BoundDagTemp input = (BoundDagTemp)this.Visit(node.
Input
);
16680
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16687
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16693
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16700
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16708
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16715
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16722
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16729
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16737
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16745
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16757
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16770
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16777
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
16783
new TreeDumperNode("input", null, new TreeDumperNode[] { Visit(node.
Input
, null) }),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (6)
504
var input = ((BoundTestDecisionDagNode)node).Test.
Input
;
535
if (!t1.
Input
.Equals(t2.
Input
))
538
if (t1.
Input
.Type.SpecialType is SpecialType.System_Double or SpecialType.System_Single)
570
if (!(node is BoundTestDecisionDagNode testNode && testNode.Test.
Input
.Equals(input)))
594
vd.
Input
.Equals(input) &&
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (17)
137
BoundExpression input = _tempAllocator.GetTemp(evaluation.
Input
);
322
Debug.Assert(!e.Target.Equals(e.
Input
));
324
BoundExpression right = _tempAllocator.GetTemp(e.
Input
);
368
BoundExpression input = _tempAllocator.GetTemp(test.
Input
);
506
typeEvaluation1.
Input
.Equals(typeDecision.
Input
))
508
BoundExpression input = _tempAllocator.GetTemp(test.
Input
);
519
_factory.Compilation.Conversions.ClassifyBuiltInConversion(test.
Input
.Type, typeEvaluation2.Type, isChecked: false, ref useSiteInfo) is Conversion conv &&
521
typeEvaluation2.
Input
== nonNullTest.
Input
)
523
BoundExpression input = _tempAllocator.GetTemp(test.
Input
);
620
return t.Test.
Input
.IsOriginalInput;
625
return f.
Input
.IsOriginalInput && !f.Field.IsTupleElement();
627
return e.Evaluation.
Input
.IsOriginalInput;
696
eval.
Input
.IsOriginalInput &&
708
Debug.Assert(!evalNode.Evaluation.
Input
.IsOriginalInput);
712
Debug.Assert(!testNode.Test.
Input
.IsOriginalInput);