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
}'.");
1725
Debug.Assert(reason.
Kind
== DependencyKind.FieldAccess || reason.
Kind
== DependencyKind.Ldtoken);
1861
if (!_fieldReasons.Contains(reason.
Kind
))
1862
throw new ArgumentOutOfRangeException($"Internal error: unsupported field dependency {reason.
Kind
}");
1865
if (reason.
Kind
== DependencyKind.AlreadyMarked)
1874
ProcessAnalysisAnnotationsForField(field, reason.
Kind
, in origin);
1911
var cctorReason = reason.
Kind
switch
1972
if (reason.
Kind
== DependencyKind.AlreadyMarked)
2142
if (!_typeReasons.Contains(reason.
Kind
))
2143
throw new ArgumentOutOfRangeException($"Internal error: unsupported type dependency {reason.
Kind
}");
2162
switch (reason.
Kind
)
2173
if (type.HasMethods && ShouldMarkTypeStaticConstructor(type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
2184
reason.
Kind
is not DependencyKind.TypeInAssembly)
2285
if (ShouldMarkTypeStaticConstructor(type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod)
3204
ProcessAnalysisAnnotationsForMethod(method, originalReason.
Kind
, origin);
3207
switch (reason.
Kind
)
3218
reason.
Kind
== DependencyKind.DirectCall ||
3219
reason.
Kind
== DependencyKind.VirtualCall ||
3220
reason.
Kind
== DependencyKind.Newobj;
3232
&& reason.
Kind
!= DependencyKind.EventMethod)
3234
var kind = PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.EventOfEventMethod);
3368
if (!_methodReasons.Contains(reason.
Kind
))
3369
throw new InternalErrorException($"Unsupported method dependency {reason.
Kind
}");
3374
reason.
Kind
== DependencyKind.DirectCall ||
3375
reason.
Kind
== DependencyKind.VirtualCall ||
3376
reason.
Kind
== DependencyKind.Newobj;
3404
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)