1 write to Source
illink (1)
Linker\DependencyInfo.cs (1)
156
public DependencyInfo(DependencyKind kind, object? source) => (Kind,
Source
) = (kind, source);
12 references to Source
illink (12)
Linker.Steps\MarkStep.cs (6)
1883
DependencyKind.FieldAccess => new DependencyInfo(DependencyKind.TriggersCctorThroughFieldAccess, reason.
Source
),
2114
MarkStaticConstructor(type, new DependencyInfo(DependencyKind.TriggersCctorForCalledMethod, reason.
Source
), origin);
2123
if (!(reason.
Source
is IMemberDefinition sourceMemberDefinition && sourceMemberDefinition.DeclaringType == type) &&
3197
MarkType(method.DeclaringType, new DependencyInfo(DependencyKind.DeclaringTypeOfCalledMethod, method), new MessageOrigin(reason.
Source
as IMemberDefinition ?? method));
3204
MarkEvent(@event, new DependencyInfo(kind, originalReason.
Source
), origin);
3754
origin = reason.
Source
is IMemberDefinition member ? new MessageOrigin(member) : origin;
Linker\DependencyInfo.cs (3)
160
public bool Equals(DependencyInfo other) => (Kind,
Source
) == (other.Kind, other.
Source
);
162
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);