1 write to Kind
illink (1)
Linker\DependencyInfo.cs (1)
157
public DependencyInfo(DependencyKind kind, object? source) => (
Kind
, Source) = (kind, source);
37 references to Kind
illink (37)
Linker.Steps\MarkStep.cs (29)
339
if (!_entireTypeReasons.Contains(reason.
Kind
))
340
throw new InternalErrorException($"Unsupported type dependency '{reason.
Kind
}'.");
1731
Debug.Assert(reason.
Kind
== DependencyKind.FieldAccess || reason.
Kind
== DependencyKind.Ldtoken);
1870
if (!_fieldReasons.Contains(reason.
Kind
))
1871
throw new ArgumentOutOfRangeException($"Internal error: unsupported field dependency {reason.
Kind
}");
1874
if (reason.
Kind
== DependencyKind.AlreadyMarked)
1883
ProcessAnalysisAnnotationsForField(field, reason.
Kind
, in origin, suppressTrimAnalysisWarnings: suppressTrimAnalysisWarnings);
1920
var cctorReason = reason.
Kind
switch
1984
if (reason.
Kind
== DependencyKind.AlreadyMarked)
2154
if (!_typeReasons.Contains(reason.
Kind
))
2155
throw new ArgumentOutOfRangeException($"Internal error: unsupported type dependency {reason.
Kind
}");
2174
switch (reason.
Kind
)
2185
if (type.HasMethods && ShouldMarkTypeStaticConstructor(type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
2196
reason.
Kind
is not DependencyKind.TypeInAssembly)
2297
if (ShouldMarkTypeStaticConstructor(type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod)
3216
ProcessAnalysisAnnotationsForMethod(method, originalReason.
Kind
, origin, suppressTrimAnalysisWarnings: suppressTrimAnalysisWarnings);
3219
switch (reason.
Kind
)
3230
reason.
Kind
== DependencyKind.DirectCall ||
3231
reason.
Kind
== DependencyKind.VirtualCall ||
3232
reason.
Kind
== DependencyKind.Newobj;
3244
&& reason.
Kind
!= DependencyKind.EventMethod)
3246
var kind = PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.EventOfEventMethod);
3380
if (!_methodReasons.Contains(reason.
Kind
))
3381
throw new InternalErrorException($"Unsupported method dependency {reason.
Kind
}");
3386
reason.
Kind
== DependencyKind.DirectCall ||
3387
reason.
Kind
== DependencyKind.VirtualCall ||
3388
reason.
Kind
== DependencyKind.Newobj;
3416
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)