diff --git a/Examples/Package.resolved b/Examples/Package.resolved index 48c07b6..3e8b4fb 100644 --- a/Examples/Package.resolved +++ b/Examples/Package.resolved @@ -3,10 +3,10 @@ { "identity" : "swift-syntax", "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-syntax.git", + "location" : "https://github.com/apple/swift-syntax", "state" : { - "revision" : "74203046135342e4a4a627476dd6caf8b28fe11b", - "version" : "509.0.0" + "revision" : "08a2f0a9a30e0f705f79c9cfaca1f68b71bdc775", + "version" : "510.0.0" } } ], diff --git a/Package.resolved b/Package.resolved index 48c07b6..3e8b4fb 100644 --- a/Package.resolved +++ b/Package.resolved @@ -3,10 +3,10 @@ { "identity" : "swift-syntax", "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-syntax.git", + "location" : "https://github.com/apple/swift-syntax", "state" : { - "revision" : "74203046135342e4a4a627476dd6caf8b28fe11b", - "version" : "509.0.0" + "revision" : "08a2f0a9a30e0f705f79c9cfaca1f68b71bdc775", + "version" : "510.0.0" } } ], diff --git a/Package.swift b/Package.swift index 9038123..e38f231 100644 --- a/Package.swift +++ b/Package.swift @@ -21,7 +21,7 @@ let package = Package( dependencies: [ .package( url: "https://github.com/apple/swift-syntax", - "509.0.0"..<"510.0.0" + "509.0.0" ..< "511.0.0" ) ], targets: [ diff --git a/Sources/SpyableMacro/Diagnostics/SpyableNoteMessage.swift b/Sources/SpyableMacro/Diagnostics/SpyableNoteMessage.swift index d519c0c..3e1cd30 100644 --- a/Sources/SpyableMacro/Diagnostics/SpyableNoteMessage.swift +++ b/Sources/SpyableMacro/Diagnostics/SpyableNoteMessage.swift @@ -18,8 +18,15 @@ enum SpyableNoteMessage: String, NoteMessage { } } + #if canImport(SwiftSyntax510) + /// Unique identifier for each note message, aligning with the corresponding diagnostic message for clarity. + var noteID: MessageID { + MessageID(domain: "SpyableMacro", id: rawValue + "NoteMessage") + } + #else /// Unique identifier for each note message, aligning with the corresponding diagnostic message for clarity. var fixItID: MessageID { MessageID(domain: "SpyableMacro", id: rawValue + "NoteMessage") } + #endif }