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)
337
if (!_entireTypeReasons.Contains(reason.
Kind
))
338
throw new InternalErrorException($"Unsupported type dependency '{reason.
Kind
}'.");
1698
Debug.Assert(reason.
Kind
== DependencyKind.FieldAccess || reason.
Kind
== DependencyKind.Ldtoken);
1834
if (!_fieldReasons.Contains(reason.
Kind
))
1835
throw new ArgumentOutOfRangeException($"Internal error: unsupported field dependency {reason.
Kind
}");
1838
if (reason.
Kind
== DependencyKind.AlreadyMarked)
1847
ProcessAnalysisAnnotationsForField(field, reason.
Kind
, in origin);
1884
var cctorReason = reason.
Kind
switch
1945
if (reason.
Kind
== DependencyKind.AlreadyMarked)
2103
if (!_typeReasons.Contains(reason.
Kind
))
2104
throw new ArgumentOutOfRangeException($"Internal error: unsupported type dependency {reason.
Kind
}");
2123
switch (reason.
Kind
)
2134
if (type.HasMethods && ShouldMarkTypeStaticConstructor(type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
2145
reason.
Kind
is not DependencyKind.TypeInAssembly)
2247
if (ShouldMarkTypeStaticConstructor(type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod)
3184
ProcessAnalysisAnnotationsForMethod(method, originalReason.
Kind
, origin);
3187
switch (reason.
Kind
)
3198
reason.
Kind
== DependencyKind.DirectCall ||
3199
reason.
Kind
== DependencyKind.VirtualCall ||
3200
reason.
Kind
== DependencyKind.Newobj;
3212
&& reason.
Kind
!= DependencyKind.EventMethod)
3214
var kind = PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.EventOfEventMethod);
3348
if (!_methodReasons.Contains(reason.
Kind
))
3349
throw new InternalErrorException($"Unsupported method dependency {reason.
Kind
}");
3354
reason.
Kind
== DependencyKind.DirectCall ||
3355
reason.
Kind
== DependencyKind.VirtualCall ||
3356
reason.
Kind
== DependencyKind.Newobj;
3384
MarkProperty(property, new DependencyInfo(PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.PropertyOfPropertyMethod), method));
Linker\Annotations.cs (2)
163
Debug.Assert(!(reason.
Kind
== DependencyKind.AlreadyMarked));
177
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)