3 instantiations of OverrideInformation
illink (3)
Linker\TypeMapInfo.cs (3)
105
base_methods.AddToList (method, new
OverrideInformation
(@base, method, interfaceImplementor));
110
override_methods.AddToList (@base, new
OverrideInformation
(@base, @override, interfaceImplementor));
116
default_interface_implementations.AddToList (@base, new
OverrideInformation
(@base, defaultImplementationMethod, interfaceImplementor));
41 references to OverrideInformation
illink (41)
Linker.Dataflow\FlowAnnotations.cs (4)
486
internal void ValidateMethodAnnotationsAreSame (
OverrideInformation
ov)
536
void ValidateMethodParametersHaveNoAnnotations (DynamicallyAccessedMemberTypes[] parameterAnnotations,
OverrideInformation
ov)
548
void ValidateMethodGenericParametersHaveNoAnnotations (DynamicallyAccessedMemberTypes[] genericParameterAnnotations,
OverrideInformation
ov)
560
void LogValidationWarning (IMetadataTokenProvider provider, IMetadataTokenProvider baseProvider,
OverrideInformation
ov)
Linker.Steps\MarkStep.cs (15)
538
foreach (
var
ov in baseMethods) {
635
foreach (
var
dimInfo in defaultImplementations) {
642
List<
OverrideInformation
>? overridingMethods = (List<
OverrideInformation
>?) Annotations.GetOverrides (method);
645
OverrideInformation
ov = overridingMethods[i];
658
bool ShouldMarkOverrideForBase (
OverrideInformation
overrideInformation)
684
/// Marks the Override of <paramref name="overrideInformation"/> with the correct reason. Should be called when <see cref="ShouldMarkOverrideForBase(
OverrideInformation
, bool)"/> returns true.
687
void MarkOverrideForBaseMethod (
OverrideInformation
overrideInformation, MessageOrigin origin)
708
foreach (
var
ov in markedBaseMethods) {
745
void ProcessDefaultImplementation (
OverrideInformation
ov, MessageOrigin origin)
2404
foreach (
OverrideInformation
ov in base_list) {
2428
bool IsInterfaceImplementationMethodNeededByTypeDueToInterface (
OverrideInformation
overrideInformation)
3138
if (Annotations.GetOverrides (method) is IEnumerable<
OverrideInformation
> overrides) {
3139
foreach (
var
@override in overrides.Where (ov => Annotations.IsMarked (ov.Base) || IgnoreScope (ov.Base.DeclaringType.Scope))) {
3332
foreach (
OverrideInformation
ov in base_methods) {
Linker.Steps\SealerStep.cs (4)
126
bool IsAnyOverrideMarked (IEnumerable<
OverrideInformation
>? list)
131
foreach (
var
m in list) {
138
bool IsAnyBaseMarked (IEnumerable<
OverrideInformation
>? list)
143
foreach (
var
m in list) {
Linker.Steps\ValidateVirtualMethodAnnotationsStep.cs (3)
18
foreach (
var
baseOv in baseOverrideInformations) {
26
foreach (
var
overrideInformation in overrides) {
40
void ValidateMethodRequiresUnreferencedCodeAreSame (
OverrideInformation
ov)
Linker\Annotations.cs (4)
440
public IEnumerable<
OverrideInformation
>? GetOverrides (MethodDefinition method)
452
public IEnumerable<
OverrideInformation
>? GetDefaultInterfaceImplementations (MethodDefinition method)
464
public List<
OverrideInformation
>? GetBaseMethods (MethodDefinition method)
697
foreach (
var
@override in overrides) {
Linker\TypeMapInfo.cs (11)
46
protected readonly Dictionary<MethodDefinition, List<
OverrideInformation
>> base_methods = new Dictionary<MethodDefinition, List<
OverrideInformation
>> ();
47
protected readonly Dictionary<MethodDefinition, List<
OverrideInformation
>> override_methods = new Dictionary<MethodDefinition, List<
OverrideInformation
>> ();
48
protected readonly Dictionary<MethodDefinition, List<
OverrideInformation
>> default_interface_implementations = new Dictionary<MethodDefinition, List<
OverrideInformation
>> ();
69
public List<
OverrideInformation
>? GetOverrides (MethodDefinition method)
72
override_methods.TryGetValue (method, out List<
OverrideInformation
>? overrides);
83
public List<
OverrideInformation
>? GetBaseMethods (MethodDefinition method)
86
base_methods.TryGetValue (method, out List<
OverrideInformation
>? bases);
97
public IEnumerable<
OverrideInformation
>? GetDefaultInterfaceImplementations (MethodDefinition baseMethod)