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)
1859
DependencyKind.FieldAccess => new DependencyInfo(DependencyKind.TriggersCctorThroughFieldAccess, reason.
Source
),
2084
MarkStaticConstructor(type, new DependencyInfo(DependencyKind.TriggersCctorForCalledMethod, reason.
Source
), origin);
2093
if (!(reason.
Source
is IMemberDefinition sourceMemberDefinition && sourceMemberDefinition.DeclaringType == type) &&
3174
MarkType(method.DeclaringType, new DependencyInfo(DependencyKind.DeclaringTypeOfCalledMethod, method), new MessageOrigin(reason.
Source
as IMemberDefinition ?? method));
3181
MarkEvent(@event, new DependencyInfo(kind, originalReason.
Source
), origin);
3727
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)
122
RecordDependency(reason.
Source
, target, reason.Kind);
Linker\SerializationMarker.cs (1)
201
_context.Annotations.Mark(type, typeReason, new MessageOrigin(reason.
Source
as ICustomAttributeProvider));
Linker\XmlDependencyRecorder.cs (1)
106
RecordDependency(reason.
Source
, target, marked);