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)
2209
switch (reason.
Kind
)
2220
if (type.HasMethods && ShouldMarkTypeStaticConstructor(type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
2231
reason.
Kind
is not DependencyKind.TypeInAssembly)
2332
if (ShouldMarkTypeStaticConstructor(type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod)
3251
ProcessAnalysisAnnotationsForMethod(method, originalReason.
Kind
, origin, suppressTrimAnalysisWarnings: suppressTrimAnalysisWarnings);
3254
switch (reason.
Kind
)
3265
reason.
Kind
== DependencyKind.DirectCall ||
3266
reason.
Kind
== DependencyKind.VirtualCall ||
3267
reason.
Kind
== DependencyKind.Newobj;
3279
&& reason.
Kind
!= DependencyKind.EventMethod)
3281
var kind = PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.EventOfEventMethod);
3421
reason.
Kind
== DependencyKind.DirectCall ||
3422
reason.
Kind
== DependencyKind.VirtualCall ||
3423
reason.
Kind
== DependencyKind.Newobj;
3451
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)