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);
        }
예제 #2
0
 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;
     }
 }
예제 #6
0
        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;
            }
        }
예제 #7
0
        private void Analyze(BuildEvent e, bool serializable)
        {
            LoadSerializableAttributes(ref serializable, e.CustomAttributes);

            if (serializable)
            {
                if (!_renameSerializableMembers)
                {
                    e.Rename = false;
                }

                e.Strip = false;
            }
        }