1 write to Source
illink (1)
Linker\DependencyInfo.cs (1)
154
public DependencyInfo (DependencyKind kind, object? source) => (Kind,
Source
) = (kind, source);
12 references to Source
illink (12)
Linker.Steps\MarkStep.cs (6)
1710
DependencyKind.FieldAccess => new DependencyInfo (DependencyKind.TriggersCctorThroughFieldAccess, reason.
Source
),
1928
MarkStaticConstructor (type, new DependencyInfo (DependencyKind.TriggersCctorForCalledMethod, reason.
Source
), origin);
1936
if (!(reason.
Source
is IMemberDefinition sourceMemberDefinition && sourceMemberDefinition.DeclaringType == type) &&
2931
MarkType (method.DeclaringType, new DependencyInfo (DependencyKind.DeclaringTypeOfCalledMethod, method), new MessageOrigin (reason.
Source
as IMemberDefinition ?? method));
2937
MarkEvent (@event, new DependencyInfo (kind, originalReason.
Source
), origin);
3447
origin = reason.
Source
is IMemberDefinition member ? new MessageOrigin (member) : origin;
Linker\DependencyInfo.cs (3)
158
public bool Equals (DependencyInfo other) => (Kind,
Source
) == (other.Kind, other.
Source
);
160
public override int GetHashCode () => (Kind,
Source
).GetHashCode ();
Linker\DgmlDependencyRecorder.cs (1)
118
RecordDependency (reason.
Source
, target, reason.Kind);
Linker\SerializationMarker.cs (1)
191
_context.Annotations.Mark (type, typeReason, new MessageOrigin (reason.
Source
as ICustomAttributeProvider));
Linker\XmlDependencyRecorder.cs (1)
104
RecordDependency (reason.
Source
, target, marked);