1 write to Source
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5247
this.
Source
= source;
52 references to Source
Microsoft.CodeAnalysis.CSharp (52)
Binder\DecisionDagBuilder.cs (37)
228
if (temp.
Source
is { })
230
usedValues.Add(temp.
Source
);
258
if (e.Input.
Source
is { })
259
usedValues.Add(e.Input.
Source
);
269
if (d.Input.
Source
is { })
270
usedValues.Add(d.Input.
Source
);
275
if (v.Input.
Source
is { })
276
usedValues.Add(v.Input.
Source
);
463
IsUnionValueEvaluation(input.
Source
, out unionInstance))
542
while (input.
Source
is BoundDagTypeEvaluation source && isDerivedType(source.Input.Type, symbol.ContainingType))
567
while (input.
Source
is BoundDagTypeEvaluation source)
634
input.
Source
is not BoundDagSliceEvaluation)
653
IsUnionTryGetValueEvaluation(input.
Source
, out targetType, out unionInstance))
655
tryGetValueEvaluation = (BoundDagDeconstructEvaluation)input.
Source
;
705
IsUnionTryGetValueEvaluation(input.
Source
, out _, out unionInstance))
733
Source
: BoundDagPropertyEvaluation
923
Debug.Assert(input.
Source
is BoundDagPropertyEvaluation { IsLengthOrCount: true });
1262
if (evaluation.Input.
Source
is { Id: -1 } source)
1268
if (test.Input.
Source
is { Id: -1 } testSource)
1897
while (input.
Source
is BoundDagSliceEvaluation slice)
1912
while (input.
Source
is BoundDagSliceEvaluation slice)
2437
switch (s1Input.
Source
, s2Input.
Source
)
2589
Debug.Assert(s1.Input.
Source
is BoundDagTypeEvaluation);
2590
Debug.Assert(s2.Input.
Source
is BoundDagTypeEvaluation);
2592
BoundDagTemp s1Input = NotTypeEvaluationInput(s1.Input.
Source
);
2593
BoundDagTemp s2Input = NotTypeEvaluationInput(s2.Input.
Source
);
2669
return NotTypeEvaluationInput(typeEval).
Source
;
2674
while (input.
Source
is BoundDagTypeEvaluation source)
2836
string name = $"t{tempIdentifier(t.
Source
)}";
2838
if (t.
Source
is BoundDagDeconstructEvaluation)
3515
if (test.Input.
Source
is BoundDagPropertyEvaluation { IsLengthOrCount: true } e)
3802
else if (typeEval.Input is {
Source
: not BoundDagTypeEvaluation } typeEvalInput)
3935
Debug.Assert(passThrough.Input.
Source
is BoundDagTypeEvaluation);
3936
return new BoundDagPassThroughEvaluation(passThrough.Syntax, ((BoundDagTypeEvaluation)UpdateDagTempReferences((BoundDagTypeEvaluation)passThrough.Input.
Source
, ref tempMap)).MakeResultTemp());
4174
Debug.Assert(Input.
Source
is not BoundDagPropertyEvaluation { IsLengthOrCount: true } e ||
4989
if (input.
Source
is BoundDagPropertyEvaluation { IsLengthOrCount: true } lengthEvaluation &&
BoundTree\BoundDagEvaluation.cs (2)
382
Debug.Assert(Input.
Source
is BoundDagTypeEvaluation);
383
return DecisionDagBuilder.NotTypeEvaluationInput(Input.
Source
).GetHashCode();
BoundTree\BoundDagTemp.cs (6)
19
public bool IsOriginalInput => this.
Source
is null;
28
Equals(other.
Source
, this.
Source
))
49
return Hash.Combine(this.Type.GetHashCode(), Hash.Combine(this.
Source
?.GetHashCode() ?? 0, this.Index));
55
var name =
Source
?.Id switch
68
if (
Source
is BoundDagDeconstructEvaluation)
FlowAnalysis\NullableWalker_Patterns.cs (2)
589
&& t.Input.
Source
is BoundDagTypeEvaluation { Input: { IsOriginalInput: true } })
688
var evaluation = output.
Source
;
Generated\BoundNodes.xml.Generated.cs (4)
5260
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || source != this.
Source
|| index != this.Index)
10593
this.Visit(node.
Source
);
11985
BoundDagEvaluation? source = (BoundDagEvaluation?)this.Visit(node.
Source
);
16679
new TreeDumperNode("source", null, new TreeDumperNode[] { Visit(node.
Source
, null) }),
Utilities\ValueSetFactory.cs (1)
67
if (input.
Source
is BoundDagPropertyEvaluation { IsLengthOrCount: true })