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 {
1766
if (reason.
Kind
== DependencyKind.AlreadyMarked) {
1892
if (!_typeReasons.Contains (reason.
Kind
))
1893
throw new ArgumentOutOfRangeException ($"Internal error: unsupported type dependency {reason.
Kind
}");
1912
switch (reason.
Kind
) {
1922
if (type.HasMethods && ShouldMarkTypeStaticConstructor (type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
1932
reason.
Kind
is not DependencyKind.TypeInAssembly)
2027
if (ShouldMarkTypeStaticConstructor (type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod) {
2904
ProcessAnalysisAnnotationsForMethod (method, originalReason.
Kind
, origin);
2907
switch (reason.
Kind
) {
2917
reason.
Kind
== DependencyKind.DirectCall ||
2918
reason.
Kind
== DependencyKind.VirtualCall ||
2919
reason.
Kind
== DependencyKind.Newobj;
2930
&& reason.
Kind
!= DependencyKind.EventMethod) {
2931
var kind = PropagateDependencyKindToAccessors (reason.
Kind
, DependencyKind.EventOfEventMethod);
3062
if (!_methodReasons.Contains (reason.
Kind
))
3063
throw new InternalErrorException ($"Unsupported method dependency {reason.
Kind
}");
3068
reason.
Kind
== DependencyKind.DirectCall ||
3069
reason.
Kind
== DependencyKind.VirtualCall ||
3070
reason.
Kind
== DependencyKind.Newobj;
3094
MarkProperty (property, new DependencyInfo (PropagateDependencyKindToAccessors (reason.
Kind
, DependencyKind.PropertyOfPropertyMethod), method));
Linker\Annotations.cs (2)
160
Debug.Assert (!(reason.
Kind
== DependencyKind.AlreadyMarked));
174
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)