Skip to content

sameLine.functionBody = next does not work when metadata is before the body #681

@NeeEoo

Description

@NeeEoo

Describe the bug

A clear and concise description of what the bug is.

Input file

class Main {
	public inline function main():Bool
		@:privateAccess return true;
}

Broken output

class Main {
	public inline function main():Bool @:privateAccess return true;
}

Expected output

class Main {
	public inline function main():Bool
		@:privateAccess return true;
}

Optional: hxformat.json

{
  "sameLine": {
    "functionBody": "next"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsamelinebroken same line formatting

    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