File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,18 @@ class MyAttribute
333
333
</para >
334
334
</example >
335
335
336
+ <para >The following targets can be specified:</para >
337
+
338
+ <simplelist >
339
+ <member ><constant >Attribute::TARGET_CLASS</constant ></member >
340
+ <member ><constant >Attribute::TARGET_FUNCTION</constant ></member >
341
+ <member ><constant >Attribute::TARGET_METHOD</constant ></member >
342
+ <member ><constant >Attribute::TARGET_PROPERTY</constant ></member >
343
+ <member ><constant >Attribute::TARGET_CLASS_CONSTANT</constant ></member >
344
+ <member ><constant >Attribute::TARGET_PARAMETER</constant ></member >
345
+ <member ><constant >Attribute::TARGET_ALL</constant ></member >
346
+ </simplelist >
347
+
336
348
<para >
337
349
By default an attribute can only be used once per declaration. If the attribute should be repeatable on declarations it must
338
350
be specified as part of the bitmask to the <literal >#[Attribute]</literal > declaration.
You can’t perform that action at this time.
0 commit comments