1 write to Kind
illink (1)
Linker\DependencyInfo.cs (1)
157
public DependencyInfo(DependencyKind kind, object? source) => (
Kind
, Source) = (kind, source);
29 references to Kind
illink (29)
Linker.Steps\MarkStep.cs (21)
1732
Debug.Assert(reason.
Kind
== DependencyKind.FieldAccess || reason.
Kind
== DependencyKind.Ldtoken);
1875
if (reason.
Kind
== DependencyKind.AlreadyMarked)
1884
ProcessAnalysisAnnotationsForField(field, reason.
Kind
, in origin, suppressTrimAnalysisWarnings: suppressTrimAnalysisWarnings);
1921
var cctorReason = reason.
Kind
switch
1985
if (reason.
Kind
== DependencyKind.AlreadyMarked)
2212
switch (reason.
Kind
)
2223
if (type.HasMethods && ShouldMarkTypeStaticConstructor(type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
2234
reason.
Kind
is not DependencyKind.TypeInAssembly)
2335
if (ShouldMarkTypeStaticConstructor(type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod)
3254
ProcessAnalysisAnnotationsForMethod(method, originalReason.
Kind
, origin, suppressTrimAnalysisWarnings: suppressTrimAnalysisWarnings);
3257
switch (reason.
Kind
)
3268
reason.
Kind
== DependencyKind.DirectCall ||
3269
reason.
Kind
== DependencyKind.VirtualCall ||
3270
reason.
Kind
== DependencyKind.Newobj;
3282
&& reason.
Kind
!= DependencyKind.EventMethod)
3284
var kind = PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.EventOfEventMethod);
3424
reason.
Kind
== DependencyKind.DirectCall ||
3425
reason.
Kind
== DependencyKind.VirtualCall ||
3426
reason.
Kind
== DependencyKind.Newobj;
3454
MarkProperty(property, new DependencyInfo(PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.PropertyOfPropertyMethod), method));
Linker\Annotations.cs (2)
166
Debug.Assert(!(reason.
Kind
== DependencyKind.AlreadyMarked));
180
Debug.Assert(!(reason.
Kind
== DependencyKind.AlreadyMarked));
Linker\DependencyInfo.cs (3)
161
public bool Equals(DependencyInfo other) => (
Kind
, Source) == (other.
Kind
, other.Source);
163
public override int GetHashCode() => (
Kind
, Source).GetHashCode();
Linker\DgmlDependencyRecorder.cs (2)
118
if (reason.
Kind
== DependencyKind.Unspecified)
122
RecordDependency(reason.Source, target, reason.
Kind
);
Linker\XmlDependencyRecorder.cs (1)
102
if (reason.
Kind
== DependencyKind.Unspecified)