We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a254252 commit 64300d1Copy full SHA for 64300d1
TSPL.docc/ReferenceManual/Attributes.md
@@ -99,6 +99,10 @@ indicates the macro's role:
99
100
The peer and member macro roles require a `names:` argument,
101
listing the names of the symbols that the macro generates.
102
+The accessor macro role requires a `names:` argument if the
103
+macro generates a `willSet` or `didSet` property observer. An
104
+accessor macro that generates property observers can't add
105
+other accessors, because observers only apply to stored properties.
106
The extension macro role also requires a `names:` argument
107
if the macro adds declarations inside the extension.
108
When a macro declaration includes the `names:` argument,
0 commit comments