SwiftDocCDiagnosticStructureDiagnosticA diagnostic explains a problem or issue that needs the end-user’s attention.struct DiagnosticTopicsInitializersinit(source: URL?, severity: DiagnosticSeverity, range: SourceRange?, identifier: String, summary: String, explanation: String?, notes: [DiagnosticNote])Instance Propertiesvar explanation: String?Additional details that explain the problem or issue to the end-user in plain language.var identifier: StringA unique reverse-DNS-style string identifier used for looking up explanations for diagnostics.var notes: [DiagnosticNote]Extra notes to tack onto the editor for additional information.var range: SourceRange?The diagnostic’s source range if the diagnostic originated at a source document, else nil.var severity: DiagnosticSeverityThe diagnostic’s severity.var source: URL?The origin of the diagnostic, such as a file or process.var summary: StringA brief summary that describe the problem or issue.Instance Methodsfunc offsetWithRange(SymbolGraph.LineList.SourceRange)Offsets the diagnostic using a certain SymbolKit SourceRange.func withRangeOffset(by: SymbolGraph.LineList.SourceRange) -> DiagnosticReturns the diagnostic with its range offset by the given documentation comment range.