Skip to content

Targets

The annotation must target only the specified declaration types. By default, any declaration type can be targeted.

Parameters:

Name Type Description Default
targets List<AnnotationTarget> An exhaustive list of the valid targets. -

Targets:

  • Annotation
Stub code in annotationUsage.sdsstub
annotation Targets(
    targets: List<AnnotationTarget>
)