From f1e8be08a2b845fb3296d37f1c529d82f4b5309e Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Tue, 23 Jul 2024 12:03:07 +0330 Subject: [PATCH] rename a function --- Sources/EnumeratorMacroImpl/EnumeratorMacroType.swift | 2 +- Sources/EnumeratorMacroImpl/Types/ECases.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/EnumeratorMacroImpl/EnumeratorMacroType.swift b/Sources/EnumeratorMacroImpl/EnumeratorMacroType.swift index 8e343cf..de24d59 100644 --- a/Sources/EnumeratorMacroImpl/EnumeratorMacroType.swift +++ b/Sources/EnumeratorMacroImpl/EnumeratorMacroType.swift @@ -33,7 +33,7 @@ extension EnumeratorMacroType: MemberMacro { context: context ) - guard cases.checkCommentsOnlyContainAllowedKeys( + guard cases.checkCommentsOnlyContainAllowedKeysOrDiagnose( arguments: parsedArguments, context: context ) else { diff --git a/Sources/EnumeratorMacroImpl/Types/ECases.swift b/Sources/EnumeratorMacroImpl/Types/ECases.swift index ba9728a..938dfb4 100644 --- a/Sources/EnumeratorMacroImpl/Types/ECases.swift +++ b/Sources/EnumeratorMacroImpl/Types/ECases.swift @@ -25,7 +25,7 @@ struct ECases { ) } - func checkCommentsOnlyContainAllowedKeys( + func checkCommentsOnlyContainAllowedKeysOrDiagnose( arguments: Arguments, context: some MacroExpansionContext ) -> Bool {