Skip to content

Add shorthand options for annotations #5

Description

@pkedy

Currently, annotations follow this syntax in order to support multi-valued annotations:

@myannotation(value1: "one", value2: "two")

For cases when 1 or no value is applicable for an annotation, it would be ideal to use a shorthand form to improve readability.

Single value - likely the most common usage

@myannotation("myvalue")

Is equivalent to

@myannotation(value: "myvalue")

No value - useful for "has annotation" style checks

@myannotation

Is equivalent to

@myannotation()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions