1 write to Kind
illink (1)
Linker\DependencyInfo.cs (1)
156
public DependencyInfo(DependencyKind kind, object? source) => (
Kind
, Source) = (kind, source);
37 references to Kind
illink (37)
Linker.Steps\MarkStep.cs (29)
333
if (!_entireTypeReasons.Contains(reason.
Kind
))
334
throw new InternalErrorException($"Unsupported type dependency '{reason.
Kind
}'.");
1694
Debug.Assert(reason.
Kind
== DependencyKind.FieldAccess || reason.
Kind
== DependencyKind.Ldtoken);
1830
if (!_fieldReasons.Contains(reason.
Kind
))
1831
throw new ArgumentOutOfRangeException($"Internal error: unsupported field dependency {reason.
Kind
}");
1834
if (reason.
Kind
== DependencyKind.AlreadyMarked)
1843
ProcessAnalysisAnnotationsForField(field, reason.
Kind
, in origin);
1880
var cctorReason = reason.
Kind
switch
1941
if (reason.
Kind
== DependencyKind.AlreadyMarked)
2082
if (!_typeReasons.Contains(reason.
Kind
))
2083
throw new ArgumentOutOfRangeException($"Internal error: unsupported type dependency {reason.
Kind
}");
2102
switch (reason.
Kind
)
2113
if (type.HasMethods && ShouldMarkTypeStaticConstructor(type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
2124
reason.
Kind
is not DependencyKind.TypeInAssembly)
2225
if (ShouldMarkTypeStaticConstructor(type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod)
3173
ProcessAnalysisAnnotationsForMethod(method, originalReason.
Kind
, origin);
3176
switch (reason.
Kind
)
3187
reason.
Kind
== DependencyKind.DirectCall ||
3188
reason.
Kind
== DependencyKind.VirtualCall ||
3189
reason.
Kind
== DependencyKind.Newobj;
3201
&& reason.
Kind
!= DependencyKind.EventMethod)
3203
var kind = PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.EventOfEventMethod);
3337
if (!_methodReasons.Contains(reason.
Kind
))
3338
throw new InternalErrorException($"Unsupported method dependency {reason.
Kind
}");
3343
reason.
Kind
== DependencyKind.DirectCall ||
3344
reason.
Kind
== DependencyKind.VirtualCall ||
3345
reason.
Kind
== DependencyKind.Newobj;
3373
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)
160
public bool Equals(DependencyInfo other) => (
Kind
, Source) == (other.
Kind
, other.Source);
162
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)