internal DiagnosticGroup Group(DiagnosticResult[] results) { var childGroups = this.GroupResults(results, level: 0); var groupResults = GetGroupResults(results, level: 0); return new DiagnosticGroup( diagnosticType: this.analyzer.DiagnosticType, groupType: typeof(object), name: this.analyzer.Name, description: this.analyzer.GetRootDescription(results), children: childGroups, results: groupResults); }
internal static DiagnosticGroup Group(IContainerAnalyzer analyzer, DiagnosticResult[] results) { return new DiagnosticResultGrouper(analyzer).Group(results); }
internal DiagnosticVerificationException(string message, DiagnosticResult error) : base(message) { this.errors = new ReadOnlyCollection<DiagnosticResult>(new[] { error }); }