Skip to content

Reorder puts @icon annotation in a wrong place #295

Description

@CosmoMyzrailGorynych

Related? #93

Input:

@icon('res://addons/at-icons/node2d/comet.svg')
extends Area2D
class_name SausageFactory

Output:

class_name SausageFactory
@icon('res://addons/at-icons/node2d/comet.svg')
extends Area2D

Which results in...

Error at (2, 1): Annotation "@icon" must be at the top of the script, before "extends" and "class_name".

This doesn't happen if extends is below the class_name.

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