Skip to content

Commit 6c8ef5a

Browse files
committed
Update macro definition for new Swift Syntax
1 parent b9cefa8 commit 6c8ef5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Macros/Inputs/syntax_macro_definitions.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -925,10 +925,10 @@ public struct AddCompletionHandler: PeerMacro {
925925
let nodeType = node.attributeName.as(IdentifierTypeSyntax.self) {
926926
return attributeType.name.text != nodeType.name.text
927927
}
928-
if let attributeMemberType = attribute.attributeName.as(MemberTypeIdentifierSyntax.self),
929-
let attributeModuleName = attributeMemberType.baseType.as(SimpleTypeIdentifierSyntax.self),
930-
let nodeMemberType = node.attributeName.as(MemberTypeIdentifierSyntax.self),
931-
let moduleName = nodeMemberType.baseType.as(SimpleTypeIdentifierSyntax.self) {
928+
if let attributeMemberType = attribute.attributeName.as(MemberTypeSyntax.self),
929+
let attributeModuleName = attributeMemberType.baseType.as(IdentifierTypeSyntax.self),
930+
let nodeMemberType = node.attributeName.as(MemberTypeSyntax.self),
931+
let moduleName = nodeMemberType.baseType.as(IdentifierTypeSyntax.self) {
932932
return attributeModuleName.name.text != moduleName.name.text ||
933933
nodeMemberType.name.text != attributeMemberType.name.text
934934
}

0 commit comments

Comments
 (0)