private void Process(BuildEvent e) { UnstripAndEnqueue((BuildType)e.GetOwnerType()); // Process references var module = e.Module; Process(e.EventType, module); if (e.AddMethod != null) { Process(e.AddMethod, module, true); } if (e.RemoveMethod != null) { Process(e.RemoveMethod, module, true); } if (e.InvokeMethod != null) { Process(e.InvokeMethod, module, true); } Process(e.CustomAttributes, module); }
public static void Change(BuildEvent e) { if (e.NameChanged) { e.Name = e.NewName; } }
private void UnstripAndEnqueue(BuildEvent e) { if (e.Strip) { e.Strip = false; Enqueue(e); } }
private void Enqueue(BuildEvent e) { if (!e.StripProcessed) { e.StripProcessed = true; _queue.Enqueue(e); } }
private static void Unmark(BuildEvent e) { if (e.Strip) { e.Rename = false; e.StripObfuscationAttribute = false; e.NameChanged = false; } }
private void Analyze(BuildEvent e) { var attr = CA.BindableAttribute.FindFirst(e.CustomAttributes); if (attr != null && attr.Bindable) { if (!_renameBindableMembers) { e.Rename = false; } e.Strip = false; } }
private void Analyze(BuildEvent e, bool serializable) { LoadSerializableAttributes(ref serializable, e.CustomAttributes); if (serializable) { if (!_renameSerializableMembers) { e.Rename = false; } e.Strip = false; } }