SwiftDiagnostics
import SwiftDiagnostics
Module information
- Declarations
- 75
- Symbols
- 78
import SwiftDiagnostics
protocol DiagnosticMessage : Sendable
Types conforming to this protocol represent diagnostic messages that can be shown to the client.
protocol FixItMessage : Sendable
Types conforming to this protocol represent Fix-It messages that can be shown to the client. The messages should describe the change that the Fix-It will perform
protocol NoteMessage : Sendable
Types conforming to this protocol represent note messages that can be shown to the client. The messages should describe what the note is pointing at.
struct ANSIDiagnosticDecorator
An implementation of the DiagnosticDecorator
protocol that enhances various diagnostic elements—including messages, buffer outlines, and code highlights—by applying severity-based prefixes and ANSI color codes.
struct BasicDiagnosticDecorator
An implementation of the DiagnosticDecorator
protocol that enhances diagnostic elements—such as messages, buffer outlines, and code highlights—by appending severity-based prefixes.
struct Diagnostic
enum DiagnosticSeverity
struct DiagnosticsError
struct DiagnosticsFormatter
struct FixIt
A Fix-It that can be applied to resolve a diagnostic.
struct GroupedDiagnostics
struct MessageID
An identifier that identifies a diagnostic message’s type. Fundamentally different diagnostics should have a different diagnosticID
so that clients may filter/prioritise/highlight/… certain diagnostics. Two diagnostics with the same ID don’t need to necessarily have the exact same wording. Eg. it’s possible that the message contains more context when available.
struct Note
A note that points to another node that’s relevant for a Diagnostic.
import SwiftBasicFormat
import SwiftCompilerPlugin
import SwiftCompilerPluginMessageHandling
import SwiftIDEUtils
import SwiftLibraryPluginProvider
import SwiftOperators
An implementation of Swift’s user-defined operator declarations and precedence groups, allowing a program to reason about the relative precedence of infix operations and transform syntax trees to describe the order of operations.
import SwiftParser
A parser for the Swift programming language.
import SwiftParserDiagnostics
import SwiftRefactor
import SwiftSyntax
A library for working with Swift code.
import SwiftSyntax509
import SwiftSyntax510
import SwiftSyntax600
import SwiftSyntaxBuilder
SwiftSyntaxBuilder is a tool for generating Swift code in a convenient way using result builders.
import SwiftSyntaxMacroExpansion
import SwiftSyntaxMacros
import SwiftSyntaxMacrosGenericTestSupport
import SwiftSyntaxMacrosTestSupport
import _SwiftLibraryPluginProviderCShims
import _SwiftSyntaxCShims
import _SwiftSyntaxGenericTestSupport