Skip to content

Meta breaks anon obj #607

@kevinresol

Description

@kevinresol

Describe the bug

When a meta is applied on anon object, the space after field name will be removed. (the space right after the status: in example below)

Input file

class Main {
	static function main() {
		return @patch {
			status:InProgress(v),
		}
	}
}

Broken output

class Main {
	static function main() {
		return @patch {
			status:InProgress(v),
		}
	}
}

Expected output

class Main {
	static function main() {
		return @patch {
			status: InProgress(v),
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtokentreerequires fix in tokentreewhitespacemissing or incorrect space around token

    Type

    No type
    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