public override void Visit(AssemblySetMapping assemblySet) { if (this.IncludeAssemblyProperties && assemblySet.ElementCount > 1) { foreach (var assembly in assemblySet.Assemblies) { var attributes = assembly.Attributes.Where(e => DiffFilter.Include(e.Difference)); var properties = assembly.Properties.Where(e => DiffFilter.Include(e.Difference)); if (!attributes.Any() && !properties.Any()) { continue; } _syntaxWriter.WriteKeyword("assembly"); _syntaxWriter.WriteSpace(); _syntaxWriter.WriteIdentifier(assembly.Representative.Name.Value); using (_syntaxWriter.StartBraceBlock()) { Visit(properties); Visit(attributes); } } } base.Visit(assemblySet); }
public override void Visit(IEnumerable <MemberMapping> members) { MemberMapping mapping = members.FirstOrDefault(m => DiffFilter.Include(m) && !IsPropertyOrEventAccessor(m.Representative)); if (mapping != null) { WriteMemberGroupHeader(mapping.Representative); } base.Visit(members); }
public override void Visit(MemberMapping mapping) { if (_cancellationToken.IsCancellationRequested) { return; } if (DiffFilter.Include(mapping.Difference)) { WriteRow(mapping); } base.Visit(mapping); }
public override void Visit(AssemblyMapping assembly) { Contract.Assert(this.Settings.GroupByAssembly); _syntaxWriter.WriteKeyword("assembly"); _syntaxWriter.WriteSpace(); _syntaxWriter.WriteIdentifier(assembly.Representative.Name.Value); using (_syntaxWriter.StartBraceBlock()) { if (this.IncludeAssemblyProperties) { var attributes = assembly.Attributes.Where(e => DiffFilter.Include(e.Difference)); var properties = assembly.Properties.Where(e => DiffFilter.Include(e.Difference)); Visit(properties); Visit(attributes); } base.Visit(assembly); } }