public bool CanApplyOptimization(CodeOptimizations optimization, AssemblyDefinition context) { return(Annotations.GetAction(context) == AssemblyAction.Link && IsOptimizationEnabled(optimization, context)); }
public void SetAction(AssemblyDefinition assembly, AssemblyAction action) { RegisterAssembly(assembly); Annotations.SetAction(assembly, action); }