136 references to AssemblyAction
illink (136)
Linker.Steps\AddBypassNGenStep.cs (3)
20
if (Annotations.GetAction (assembly) ==
AssemblyAction
.AddBypassNGen) {
91
if (Annotations.GetAction (coreLibAssembly) ==
AssemblyAction
.Copy) {
92
Annotations.SetAction (coreLibAssembly,
AssemblyAction
.Save);
Linker.Steps\CheckSuppressionsStep.cs (3)
25
var
assemblyAction = Annotations.GetAction (assembly);
26
return assemblyAction ==
AssemblyAction
.Link || assemblyAction ==
AssemblyAction
.Copy;
Linker.Steps\CleanStep.cs (1)
42
if (Annotations.GetAction (assembly) ==
AssemblyAction
.Link)
Linker.Steps\CodeRewriterStep.cs (1)
24
if (Annotations.GetAction (assembly) !=
AssemblyAction
.Link)
Linker.Steps\MarkStep.cs (27)
298
case
AssemblyAction
.Save:
299
case
AssemblyAction
.Copy:
300
case
AssemblyAction
.CopyUsed:
301
case
AssemblyAction
.AddBypassNGen:
302
case
AssemblyAction
.AddBypassNGenUsed:
364
static bool IsFullyPreservedAction (
AssemblyAction
action) => action ==
AssemblyAction
.Copy || action ==
AssemblyAction
.Save;
401
var
action = Annotations.GetAction (assembly);
554
case
AssemblyAction
.Link:
555
case
AssemblyAction
.AddBypassNGen:
556
case
AssemblyAction
.AddBypassNGenUsed:
773
bool providerInLinkedAssembly = Annotations.GetAction (CustomAttributeSource.GetAssemblyFromCustomAttributeProvider (provider)) ==
AssemblyAction
.Link;
1138
Annotations.GetAction (resolvedConstructor.Module.Assembly) ==
AssemblyAction
.Link)
1350
var
action = Annotations.GetAction (assembly);
1352
if (action !=
AssemblyAction
.Copy ||
1474
if (IsAttributeRemoved (customAttribute, resolved.DeclaringType) && Annotations.GetAction (CustomAttributeSource.GetAssemblyFromCustomAttributeProvider (assemblyLevelAttribute.Provider)) ==
AssemblyAction
.Link)
1766
return assembly != null && Annotations.GetAction (assembly) !=
AssemblyAction
.Link;
2107
if (Annotations.HasLinkerAttribute<RemoveAttributeInstancesAttribute> (resolvedAttributeType) && Annotations.GetAction (type.Module.Assembly) ==
AssemblyAction
.Link)
3114
bool markAllOverrides = assembly != null && Annotations.GetAction (assembly) is
AssemblyAction
.Copy or
AssemblyAction
.CopyUsed or
AssemblyAction
.Save;
3419
case
AssemblyAction
.Link:
3420
case
AssemblyAction
.Copy:
3421
case
AssemblyAction
.CopyUsed:
3422
case
AssemblyAction
.AddBypassNGen:
3423
case
AssemblyAction
.AddBypassNGenUsed:
Linker.Steps\OutputStep.cs (6)
117
var
action = Annotations.GetAction (assembly);
121
case
AssemblyAction
.Save:
122
case
AssemblyAction
.Link:
123
case
AssemblyAction
.AddBypassNGen:
128
case
AssemblyAction
.Copy:
134
case
AssemblyAction
.Delete:
Linker.Steps\ProcessReferencesStep.cs (4)
62
public static bool IsFullyPreservedAction (
AssemblyAction
action)
64
return action ==
AssemblyAction
.Copy || action ==
AssemblyAction
.Save;
69
if (Context.Actions.TryGetValue (assemblyName, out
AssemblyAction
action))
Linker.Steps\RegenerateGuidStep.cs (1)
44
if (Annotations.GetAction (assembly) ==
AssemblyAction
.Link)
Linker.Steps\RemoveResourcesStep.cs (3)
24
var
action = Annotations.GetAction (assembly);
25
return action ==
AssemblyAction
.Link || action ==
AssemblyAction
.Save;
Linker.Steps\RemoveSecurityStep.cs (1)
13
if (context.Annotations.GetAction (assembly) ==
AssemblyAction
.Link) {
Linker.Steps\RootAssemblyInputStep.cs (4)
30
AssemblyAction
action = Context.Annotations.GetAction (assembly);
32
case
AssemblyAction
.Copy:
36
case
AssemblyAction
.CopyUsed:
37
case
AssemblyAction
.Link:
Linker.Steps\SweepStep.cs (39)
67
var
action = Annotations.GetAction (assembly);
69
case
AssemblyAction
.CopyUsed:
70
case
AssemblyAction
.Link:
71
case
AssemblyAction
.Save:
73
if (changed && action ==
AssemblyAction
.CopyUsed)
74
Annotations.SetAction (assembly,
AssemblyAction
.Save);
86
Annotations.SetAction (assembly,
AssemblyAction
.Delete);
96
case
AssemblyAction
.AddBypassNGenUsed:
97
case
AssemblyAction
.CopyUsed:
98
case
AssemblyAction
.Link:
108
var
action = Annotations.GetAction (assembly);
110
case
AssemblyAction
.Copy:
111
case
AssemblyAction
.Delete:
112
case
AssemblyAction
.Link:
113
case
AssemblyAction
.Save:
114
case
AssemblyAction
.Skip:
117
case
AssemblyAction
.CopyUsed:
118
case
AssemblyAction
.AddBypassNGen:
119
case
AssemblyAction
.AddBypassNGenUsed:
126
if (Annotations.GetAction (ad) !=
AssemblyAction
.Delete)
133
case
AssemblyAction
.CopyUsed:
149
Annotations.SetAction (assembly,
AssemblyAction
.Save);
152
case
AssemblyAction
.AddBypassNGenUsed:
153
Annotations.SetAction (assembly,
AssemblyAction
.AddBypassNGen);
154
goto case
AssemblyAction
.AddBypassNGen;
156
case
AssemblyAction
.AddBypassNGen:
169
case
AssemblyAction
.AddBypassNGenUsed:
170
Annotations.SetAction (assembly,
AssemblyAction
.AddBypassNGen);
171
goto case
AssemblyAction
.AddBypassNGen;
173
case
AssemblyAction
.CopyUsed:
174
AssemblyAction
assemblyAction =
AssemblyAction
.Copy;
178
assemblyAction =
AssemblyAction
.Save;
184
case
AssemblyAction
.Copy:
187
case
AssemblyAction
.Link:
191
case
AssemblyAction
.AddBypassNGen:
194
case
AssemblyAction
.Save:
260
Annotations.SetAction (assembly,
AssemblyAction
.Delete);
485
return assembly != null && Annotations.GetAction (assembly) ==
AssemblyAction
.Link;
Linker.Steps\UnreachableBlocksOptimizer.cs (1)
45
if (_context.Annotations.GetAction (method.Module.Assembly) !=
AssemblyAction
.Link)
Linker\Annotations.cs (5)
49
protected readonly Dictionary<AssemblyDefinition,
AssemblyAction
> assembly_actions = new Dictionary<AssemblyDefinition,
AssemblyAction
> ();
117
public
AssemblyAction
GetAction (AssemblyDefinition assembly)
119
if (assembly_actions.TryGetValue (assembly, out
AssemblyAction
action))
130
public void SetAction (AssemblyDefinition assembly,
AssemblyAction
action)
Linker\DependencyRecorderHelper.cs (3)
64
case
AssemblyAction
.Link:
65
case
AssemblyAction
.AddBypassNGen:
66
case
AssemblyAction
.AddBypassNGenUsed:
Linker\Driver.cs (11)
325
AssemblyAction
? action = ParseAssemblyAction (actionString);
347
AssemblyAction
? action = ParseAssemblyAction (actionString);
1129
AssemblyAction
? ParseAssemblyAction (string s)
1133
return
AssemblyAction
.Copy;
1135
return
AssemblyAction
.CopyUsed;
1137
return
AssemblyAction
.Link;
1139
return
AssemblyAction
.Skip;
1143
return
AssemblyAction
.AddBypassNGen;
1146
return
AssemblyAction
.AddBypassNGenUsed;
1310
TrimAction =
AssemblyAction
.Link,
1311
DefaultAction =
AssemblyAction
.Link,
Linker\EmbeddedXmlInfo.cs (7)
27
if (context.Annotations.GetAction (assembly) ==
AssemblyAction
.Skip)
48
if (context.Annotations.GetAction (assembly) ==
AssemblyAction
.Skip)
73
if (context.Annotations.GetAction (assembly) ==
AssemblyAction
.Skip)
114
case
AssemblyAction
.Link:
115
case
AssemblyAction
.AddBypassNGen:
116
case
AssemblyAction
.AddBypassNGenUsed:
117
case
AssemblyAction
.Copy:
Linker\LinkContext.cs (16)
66
readonly Dictionary<string,
AssemblyAction
> _actions;
99
public
AssemblyAction
TrimAction { get; set; }
101
public
AssemblyAction
DefaultAction { get; set; }
141
public Dictionary<string,
AssemblyAction
> Actions {
207
_actions = new Dictionary<string,
AssemblyAction
> ();
375
public void RegisterAssemblyAction (string assemblyName,
AssemblyAction
action)
381
public void SetAction (AssemblyDefinition assembly,
AssemblyAction
defaultAction)
383
if (!_actions.TryGetValue (assembly.Name.Name, out
AssemblyAction
action))
389
public
AssemblyAction
CalculateAssemblyAction (AssemblyDefinition assembly)
391
if (_actions.TryGetValue (assembly.Name.Name, out
AssemblyAction
action)) {
392
if (IsCPPCLIAssembly (assembly.MainModule) && action !=
AssemblyAction
.Copy && action !=
AssemblyAction
.Skip) {
394
return
AssemblyAction
.Copy;
401
return DefaultAction ==
AssemblyAction
.Skip ? DefaultAction :
AssemblyAction
.Copy;
526
return Annotations.GetAction (context) ==
AssemblyAction
.Link &&