63 references to Annotations
illink (63)
Linker.Steps\AddBypassNGenStep.cs (4)
20
if (
Annotations
.GetAction(assembly) == AssemblyAction.AddBypassNGen)
48
if (!
Annotations
.IsMarked(method))
97
if (
Annotations
.GetAction(coreLibAssembly) == AssemblyAction.Copy)
99
Annotations
.SetAction(coreLibAssembly, AssemblyAction.Save);
Linker.Steps\CleanStep.cs (1)
42
if (
Annotations
.GetAction(assembly) == AssemblyAction.Link)
Linker.Steps\CodeRewriterStep.cs (2)
26
if (
Annotations
.GetAction(assembly) != AssemblyAction.Link)
49
switch (
Annotations
.GetAction(method))
Linker.Steps\OutputStep.cs (3)
125
var action =
Annotations
.GetAction(assembly);
183
Annotations
.CloseSymbolReader(assembly);
211
if (!
Annotations
.ProcessSatelliteAssemblies)
Linker.Steps\ProcessReferencesStep.cs (2)
49
if (IsFullyPreservedAction(
Annotations
.GetAction(assembly)))
50
Annotations
.Mark(assembly.MainModule, new DependencyInfo(DependencyKind.AssemblyAction, assembly), new MessageOrigin(assembly));
Linker.Steps\ReflectionBlockedStep.cs (3)
44
if (!
Annotations
.IsIndirectlyCalled(method))
58
if (
Annotations
.IsIndirectlyCalled(method))
83
Annotations
.Mark(ca, new DependencyInfo(DependencyKind.DisablePrivateReflection, ca));
Linker.Steps\RegenerateGuidStep.cs (1)
44
if (
Annotations
.GetAction(assembly) == AssemblyAction.Link)
Linker.Steps\RemoveResourcesStep.cs (2)
24
var action =
Annotations
.GetAction(assembly);
33
Annotations
.AddResourceToRemove(assembly, resource);
Linker.Steps\RootAssemblyInputStep.cs (13)
33
Annotations
.Mark(assembly.MainModule, di, origin);
54
var existingEntryPointAssembly =
Annotations
.GetEntryPointAssembly();
61
Annotations
.Mark(ep.DeclaringType, di, origin);
62
Annotations
.AddPreservedMethod(ep.DeclaringType, ep);
63
Annotations
.SetEntryPointAssembly(assembly);
107
Annotations
.SetRootAssembly(assembly);
108
Annotations
.Mark(assembly.MainModule, di, origin);
145
Annotations
.Mark(type, new DependencyInfo(DependencyKind.RootAssembly, type.Module.Assembly), new MessageOrigin(type.Module.Assembly));
146
Annotations
.SetPreserve(type, TypePreserve.All);
159
Annotations
.SetMembersPreserve(type, preserve);
162
Annotations
.Mark(type, new DependencyInfo(DependencyKind.RootAssembly, type.Module.Assembly), new MessageOrigin(type.Module.Assembly));
163
Annotations
.SetMembersPreserve(type, preserve);
180
Annotations
.SetMembersPreserve(type, preserve);
Linker.Steps\SealerStep.cs (7)
40
if (!
Annotations
.IsMarked(a))
97
Debug.Assert(
Annotations
.IsMarked(method));
98
if (!
Annotations
.IsMarked(method))
101
var overrides =
Annotations
.GetOverrides(method);
116
var bases =
Annotations
.GetBaseMethods(method);
140
if (
Annotations
.IsMarked(m.Override))
153
if (
Annotations
.IsMarked(m.Base))
Linker.Steps\SweepStep.cs (25)
54
var assemblies =
Annotations
.GetAssemblies().ToArray();
70
var action =
Annotations
.GetAction(assembly);
78
Annotations
.SetAction(assembly, AssemblyAction.Save);
88
foreach (var assembly in
Annotations
.GetAssemblies().ToArray())
93
Annotations
.SetAction(assembly, AssemblyAction.Delete);
102
switch (
Annotations
.GetAction(assembly))
116
var action =
Annotations
.GetAction(assembly);
136
if (
Annotations
.GetAction(ad) != AssemblyAction.Delete)
160
Annotations
.SetAction(assembly, AssemblyAction.Save);
164
Annotations
.SetAction(assembly, AssemblyAction.AddBypassNGen);
179
switch (
Annotations
.GetAction(assembly))
182
Annotations
.SetAction(assembly, AssemblyAction.AddBypassNGen);
194
Annotations
.SetAction(assembly, assemblyAction);
256
if (main.EntryPoint != null && !
Annotations
.IsMarked(main.EntryPoint))
267
return
Annotations
.IsMarked(assembly) ||
Annotations
.IsMarked(assembly.MainModule);
272
return (Context.MetadataTrimming & metadataTrimming) != 0 && !
Annotations
.IsReflectionUsed(member);
277
Annotations
.SetAction(assembly, AssemblyAction.Delete);
282
var resourcesToRemove =
Annotations
.GetResourcesToRemove(assembly);
323
if (type.HasFields && !type.IsBeforeFieldInit && !
Annotations
.HasPreservedStaticCtor(type) && !type.IsEnum)
435
if (!
Annotations
.IsMarked(attribute))
520
return assembly != null &&
Annotations
.GetAction(assembly) == AssemblyAction.Link;
551
if (!
Annotations
.IsMarked(constants[i].ConstantType))
565
if (ttype != null && !
Annotations
.IsMarked(ttype))
610
return !
Annotations
.IsMarked(element);