public override bool Equals(object obj)
 {
     if (GetType() != obj.GetType())
     {
         return(false);
     }
     HierarchyAnalyzer.Diff other = (HierarchyAnalyzer.Diff)obj;
     return(_classMetadata == other._classMetadata);
 }
Beispiel #2
0
        public virtual void TraverseAllAspects(ITraverseAspectCommand command)
        {
            int currentSlot = 0;

            for (IEnumerator diffIter = _classDiffs.GetEnumerator(); diffIter.MoveNext();)
            {
                HierarchyAnalyzer.Diff diff          = ((HierarchyAnalyzer.Diff)diffIter.Current);
                ClassMetadata          classMetadata = diff.ClassMetadata();
                if (diff.IsRemoved())
                {
                    currentSlot = SkipAspectsOf(classMetadata, command, currentSlot);
                    continue;
                }
                currentSlot = TraverseAspectsOf(classMetadata, command, currentSlot);
                if (command.Cancelled())
                {
                    return;
                }
            }
        }