Skip to content

Too much indentation in formatting of AccessorDeclSyntax #1819

Open
@ahoppen

Description

@ahoppen

In the following two cases, we appear to add too much indentation in front of the return.

let source: AccessorDeclSyntax = """
    get {
      return 1
    }
  """

assertFormatted(
  tree: source,
  expected: """
      get {
            return 1
      }
    """
)
let source: AccessorDeclSyntax = """
    get {
        return 1
    }
  """

assertFormatted(
  tree: source,
  expected: """
      get {
                return 1
      }
    """
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BasicFormatIncorrect formatting by BasicFormat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions