Skip to content

Leading comments inserted inside of parenthesized expression #1

@schmidtk

Description

@schmidtk

Open this AST Explorer example.

The ObjectExpression returned by the function has both leadingComments defined and "parenthesizedExpression": true. When the CallExpression for goog.isDef is replaced, the pretty printer writes the leading comments inside the parentheses for the object expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions