void IDiffActions.PropertyMatch(PropertyRecord p) { if (IsFirstProperty(p)) { Console.WriteLine(FORMAT_A0, p.Activity.Name); } PrintProperty0(p); }
private void AddPropertyAdded(PropertyRecord p) { _propertiesAdded.Add(p); if (!_modified) { _activitiesModified.Add(p.Activity); _modified = true; } }
void IDiffActions.PropertyOnlyInSecond(PropertyRecord p) { if (IsFirstProperty(p)) { Console.WriteLine(FORMAT_A0, p.Activity.Name); } PrintProperty2(p); AddPropertyAdded(p); }
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); }
private bool IsFirstProperty(PropertyRecord p) { if (_currentActivityName == null || _currentActivityName != p.Activity.Name) { _currentActivityName = p.Activity.Name; _modified = false; return(true); } else { return(false); } }
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)); } }
private void PrintProperty2(PropertyRecord p) { PrintProperty(p, FORMAT_P2, FORMAT_P2_TYPE); }
private void PrintProperty1(PropertyRecord p) { PrintProperty(p, FORMAT_P1, FORMAT_P1_TYPE); }
private void PrintProperty0(PropertyRecord p) { PrintProperty(p, FORMAT_P0, FORMAT_P0_TYPE); }