Skip to content

Revisit parsing of attributes, and printing for functions. #5735

Closed
@cristianoc

Description

@cristianoc

Context: rescript-lang/syntax#680

  • During parsing, attributes outside ( ) would be added to the function, and inside (...) to the pattern. Parsing async adds @res.async to function, and uncurried (. ...) also adds the attribute to the function.
  • Printing can be simplified.
  • Need checking that this does not break existing code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions