예제 #1
0
 void IDiffActions.PropertyMatch(PropertyRecord p)
 {
     if (IsFirstProperty(p))
     {
         Console.WriteLine(FORMAT_A0, p.Activity.Name);
     }
     PrintProperty0(p);
 }
예제 #2
0
 private void AddPropertyAdded(PropertyRecord p)
 {
     _propertiesAdded.Add(p);
     if (!_modified)
     {
         _activitiesModified.Add(p.Activity);
         _modified = true;
     }
 }
예제 #3
0
 void IDiffActions.PropertyOnlyInSecond(PropertyRecord p)
 {
     if (IsFirstProperty(p))
     {
         Console.WriteLine(FORMAT_A0, p.Activity.Name);
     }
     PrintProperty2(p);
     AddPropertyAdded(p);
 }
예제 #4
0
 private PropertyRecord AddProperty(string name, Mono.Cecil.PropertyDefinition pd)
 {
     if (!properties.TryGetValue(name, out PropertyRecord pr))
     {
         pr = new PropertyRecord(name, pd, this);
         properties.Add(pr.Name, pr);
     }
     return(pr);
 }
예제 #5
0
 private bool IsFirstProperty(PropertyRecord p)
 {
     if (_currentActivityName == null || _currentActivityName != p.Activity.Name)
     {
         _currentActivityName = p.Activity.Name;
         _modified            = false;
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #6
0
 private void PrintProperty(PropertyRecord p, string format1, string format2)
 {
     if (_typefmt == TypeFormat.NONE)
     {
         Console.WriteLine(format1, p.Name);
     }
     else if (_typefmt == TypeFormat.FULL)
     {
         Console.WriteLine(format2, p.Name, p.Type);
     }
     else
     {
         Console.WriteLine(format2, p.Name, TypeString.Symplify(p.Type));
     }
 }
예제 #7
0
 private void PrintProperty2(PropertyRecord p)
 {
     PrintProperty(p, FORMAT_P2, FORMAT_P2_TYPE);
 }
예제 #8
0
 private void PrintProperty1(PropertyRecord p)
 {
     PrintProperty(p, FORMAT_P1, FORMAT_P1_TYPE);
 }
예제 #9
0
 private void PrintProperty0(PropertyRecord p)
 {
     PrintProperty(p, FORMAT_P0, FORMAT_P0_TYPE);
 }