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
}'.");
1705
Debug.Assert(reason.
Kind
== DependencyKind.FieldAccess || reason.
Kind
== DependencyKind.Ldtoken);
1841
if (!_fieldReasons.Contains(reason.
Kind
))
1842
throw new ArgumentOutOfRangeException($"Internal error: unsupported field dependency {reason.
Kind
}");
1845
if (reason.
Kind
== DependencyKind.AlreadyMarked)
1854
ProcessAnalysisAnnotationsForField(field, reason.
Kind
, in origin);
1891
var cctorReason = reason.
Kind
switch
1952
if (reason.
Kind
== DependencyKind.AlreadyMarked)
2110
if (!_typeReasons.Contains(reason.
Kind
))
2111
throw new ArgumentOutOfRangeException($"Internal error: unsupported type dependency {reason.
Kind
}");
2130
switch (reason.
Kind
)
2141
if (type.HasMethods && ShouldMarkTypeStaticConstructor(type) && reason.
Kind
== DependencyKind.DeclaringTypeOfCalledMethod)
2152
reason.
Kind
is not DependencyKind.TypeInAssembly)
2253
if (ShouldMarkTypeStaticConstructor(type) && reason.
Kind
!= DependencyKind.TriggersCctorForCalledMethod)
3172
ProcessAnalysisAnnotationsForMethod(method, originalReason.
Kind
, origin);
3175
switch (reason.
Kind
)
3186
reason.
Kind
== DependencyKind.DirectCall ||
3187
reason.
Kind
== DependencyKind.VirtualCall ||
3188
reason.
Kind
== DependencyKind.Newobj;
3200
&& reason.
Kind
!= DependencyKind.EventMethod)
3202
var kind = PropagateDependencyKindToAccessors(reason.
Kind
, DependencyKind.EventOfEventMethod);
3336
if (!_methodReasons.Contains(reason.
Kind
))
3337
throw new InternalErrorException($"Unsupported method dependency {reason.
Kind
}");
3342
reason.
Kind
== DependencyKind.DirectCall ||
3343
reason.
Kind
== DependencyKind.VirtualCall ||
3344
reason.
Kind
== DependencyKind.Newobj;
3372
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)