-
-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
Why isn't the severity parameter being used here? Was it supposed to be the parameter of SimpleDiagnosticMessage or not?
public func suggestReplacement(
_ message: String? = nil,
messageID: MessageID? = nil,
severity: DiagnosticSeverity = .error,
old: some SyntaxProtocol,
new: some SyntaxProtocol
) -> Self {
fixIt(
FixIt(
message: SimpleDiagnosticMessage(
message: message ?? "suggested replacement",
diagnosticID: messageID ?? self.messageID,
severity: .error
),
changes: [
FixIt.Change.replace(
oldNode: Syntax(old),
newNode: Syntax(new)
)
]
))
}Diagnostics 103
Metadata
Metadata
Assignees
Labels
No labels