Skip to content

Commit

Permalink
Add nonisolated as a known modifier in the macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Frizlab committed Mar 7, 2024
1 parent f6167f9 commit 3bb3047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SafeGlobalMacros/SafeGlobalMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public struct SafeGlobalMacro : PeerMacro, AccessorMacro {
* The list can be found in the documentation of `DeclModifierSyntax`.
* There are probably a bunch of modifiers where we should have specific actions, but for now we’ll let it be. */
let removedModifiers: Set<String> = ["public", "internal", "fileprivate", "private"]
let knownModifiers: Set<String> = removedModifiers.union(["static"])
let knownModifiers: Set<String> = removedModifiers.union(["nonisolated", "static"])
if !knownModifiers.contains(name) {
context.diagnose(
Diagnostic(
Expand Down

0 comments on commit 3bb3047

Please sign in to comment.