Skip to content

enum AnnotationTarget

The declaration types that can be targeted by annotations.

Stub code in annotationUsage.sdsstub
enum AnnotationTarget {

    /**
     * The annotation can be called on annotations.
     */
    Annotation

    /**
     * The annotation can be called on attributes.
     */
    Attribute

    /**
     * The annotation can be called on classes.
     */
    Class

    /**
     * The annotation can be called on enums.
     */
    Enum

    /**
     * The annotation can be called on enum variants.
     */
    EnumVariant

    /**
     * The annotation can be called on functions.
     */
    Function

    /**
     * The annotation can be called on modules (i.e. files).
     */
    Module

    /**
     * The annotation can be called on parameters.
     */
    Parameter

    /**
     * The annotation can be called on pipelines.
     */
    Pipeline

    /**
     * The annotation can be called on results.
     */
    Result

    /**
     * The annotation can be called on schemas.
     */
    Schema

    /**
     * The annotation can be called on segments.
     */
    Segment

    /**
     * The annotation can be called on type parameters.
     */
    TypeParameter
}

Annotation

The annotation can be called on annotations.

Attribute

The annotation can be called on attributes.

Class

The annotation can be called on classes.

Enum

The annotation can be called on enums.

EnumVariant

The annotation can be called on enum variants.

Function

The annotation can be called on functions.

Module

The annotation can be called on modules (i.e. files).

Parameter

The annotation can be called on parameters.

Pipeline

The annotation can be called on pipelines.

Result

The annotation can be called on results.

Schema

The annotation can be called on schemas.

Segment

The annotation can be called on segments.

TypeParameter

The annotation can be called on type parameters.