1 write to Source
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5266
this.
Source
= source;
48 references to Source
Microsoft.CodeAnalysis.CSharp (48)
Binder\DecisionDagBuilder.cs (33)
226
if (temp.
Source
is { })
228
usedValues.Add(temp.
Source
);
256
if (e.Input.
Source
is { })
257
usedValues.Add(e.Input.
Source
);
267
if (d.Input.
Source
is { })
268
usedValues.Add(d.Input.
Source
);
455
IsUnionValueEvaluation(input.
Source
, out unionInstance))
534
while (input.
Source
is BoundDagTypeEvaluation source && isDerivedType(source.Input.Type, symbol.ContainingType))
559
while (input.
Source
is BoundDagTypeEvaluation source)
626
input.
Source
is not BoundDagSliceEvaluation)
645
IsUnionTryGetValueEvaluation(input.
Source
, out targetType, out unionInstance))
647
tryGetValueEvaluation = (BoundDagDeconstructEvaluation)input.
Source
;
703
IsUnionTryGetValueEvaluation(input.
Source
, out _, out unionInstance))
731
Source
: BoundDagPropertyEvaluation
912
Debug.Assert(input.
Source
is BoundDagPropertyEvaluation { IsLengthOrCount: true });
1229
if (evaluation.Input.
Source
is { Id: -1 } source)
1235
if (test.Input.
Source
is { Id: -1 } testSource)
1864
while (input.
Source
is BoundDagSliceEvaluation slice)
1879
while (input.
Source
is BoundDagSliceEvaluation slice)
2382
switch (s1Input.
Source
, s2Input.
Source
)
2534
Debug.Assert(s1.Input.
Source
is BoundDagTypeEvaluation);
2535
Debug.Assert(s2.Input.
Source
is BoundDagTypeEvaluation);
2537
BoundDagTemp s1Input = NotTypeEvaluationInput(s1.Input.
Source
);
2538
BoundDagTemp s2Input = NotTypeEvaluationInput(s2.Input.
Source
);
2614
return NotTypeEvaluationInput(typeEval).
Source
;
2619
while (input.
Source
is BoundDagTypeEvaluation source)
2781
string name = $"t{tempIdentifier(t.
Source
)}";
2783
if (t.
Source
is BoundDagDeconstructEvaluation)
3458
if (test.Input.
Source
is BoundDagPropertyEvaluation { IsLengthOrCount: true } e)
3722
else if (typeEval.Input is {
Source
: not BoundDagTypeEvaluation } typeEvalInput)
3855
Debug.Assert(passThrough.Input.
Source
is BoundDagTypeEvaluation);
3856
return new BoundDagPassThroughEvaluation(passThrough.Syntax, ((BoundDagTypeEvaluation)UpdateDagTempReferences((BoundDagTypeEvaluation)passThrough.Input.
Source
, ref tempMap)).MakeResultTemp());
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)
585
&& t.Input.
Source
is BoundDagTypeEvaluation { Input: { IsOriginalInput: true } })
684
var evaluation = output.
Source
;
Generated\BoundNodes.xml.Generated.cs (4)
5279
if (!TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything) || source != this.
Source
|| index != this.Index)
10598
this.Visit(node.
Source
);
11985
BoundDagEvaluation? source = (BoundDagEvaluation?)this.Visit(node.
Source
);
16667
new TreeDumperNode("source", null, new TreeDumperNode[] { Visit(node.
Source
, null) }),
Utilities\ValueSetFactory.cs (1)
67
if (input.
Source
is BoundDagPropertyEvaluation { IsLengthOrCount: true })