1 write to Kind
illink (1)
Linker\DependencyInfo.cs (1)
154
public DependencyInfo (DependencyKind kind, object? source) => (
Kind
, Source) = (kind, source);
37 references to Kind
illink (37)
Linker.Steps\MarkStep.cs (29)
312
if (!_entireTypeReasons.Contains (reason.
Kind
))
313
throw new InternalErrorException ($"Unsupported type dependency '{reason.
Kind
}'.");
1547
Debug.Assert (reason.
Kind
== DependencyKind.FieldAccess || reason.
Kind
== DependencyKind.Ldtoken);
1664
if (!_fieldReasons.Contains (reason.
Kind
))
1665
throw new ArgumentOutOfRangeException ($"Internal error: unsupported field dependency {reason.
Kind
}");
1668
if (reason.
Kind
== DependencyKind.AlreadyMarked) {
1674
ProcessAnalysisAnnotationsForField (field, reason.
Kind
, in origin);
1708
var cctorReason = reason.
Kind
switch {
1771
if (reason.
Kind
== DependencyKind.AlreadyMarked) {
1897
if (!_typeReasons.Contains (reason.
Kind
))
1898
throw new ArgumentOutOfRangeException ($"Internal error: unsupported type dependency {reason.
Kind
}");
1917
switch (reason.
Kind
) {
1927
if (type.HasMethods && ShouldMarkTypeStaticConstructor (type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
1937
reason.
Kind
is not DependencyKind.TypeInAssembly)
2032
if (ShouldMarkTypeStaticConstructor (type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod) {
2909
ProcessAnalysisAnnotationsForMethod (method, originalReason.
Kind
, origin);
2912
switch (reason.
Kind
) {
2922
reason.
Kind
== DependencyKind.DirectCall ||
2923
reason.
Kind
== DependencyKind.VirtualCall ||
2924
reason.
Kind
== DependencyKind.Newobj;
2935
&& reason.
Kind
!= DependencyKind.EventMethod) {
2936
var kind = PropagateDependencyKindToAccessors (reason.
Kind
, DependencyKind.EventOfEventMethod);
3067
if (!_methodReasons.Contains (reason.
Kind
))
3068
throw new InternalErrorException ($"Unsupported method dependency {reason.
Kind
}");
3073
reason.
Kind
== DependencyKind.DirectCall ||
3074
reason.
Kind
== DependencyKind.VirtualCall ||
3075
reason.
Kind
== DependencyKind.Newobj;
3099
MarkProperty (property, new DependencyInfo (PropagateDependencyKindToAccessors (reason.
Kind
, DependencyKind.PropertyOfPropertyMethod), method));
Linker\Annotations.cs (2)
175
Debug.Assert (!(reason.
Kind
== DependencyKind.AlreadyMarked));
189
Debug.Assert (!(reason.
Kind
== DependencyKind.AlreadyMarked));
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 (2)
114
if (reason.
Kind
== DependencyKind.Unspecified)
118
RecordDependency (reason.Source, target, reason.
Kind
);
Linker\XmlDependencyRecorder.cs (1)
100
if (reason.
Kind
== DependencyKind.Unspecified)