Skip to content

Inline @abstract annotations are moved out of the function's line #118

@DeeJayLSP

Description

@DeeJayLSP

The following code:

@abstract func my_func() -> void
    pass

Becomes:

@abstract 
func my_func() -> void
    pass

From what I understood looking at the GDScript reference only top class declarations should have @abstract placed at the top, while declarations in the script body should be inline.

Additionally, calling the formatter in this situation fails with --safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions