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