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