Skip to content

Commit 64300d1

Browse files
PR feedback
1 parent a254252 commit 64300d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TSPL.docc/ReferenceManual/Attributes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ indicates the macro's role:
9999

100100
The peer and member macro roles require a `names:` argument,
101101
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.
102106
The extension macro role also requires a `names:` argument
103107
if the macro adds declarations inside the extension.
104108
When a macro declaration includes the `names:` argument,

0 commit comments

Comments
 (0)