Skip to content

v0.14.0

Compare
Choose a tag to compare
@kddnewton kddnewton released this 13 Oct 19:46
· 2544 commits to main since this release
189dad6

Added

  • Syntax errors are added for invalid lambda local semicolon placement.
  • Lambda locals are now checked for duplicate names.
  • Destructured parameters are now checked for duplicate names.
  • Constant{Read,Path,PathTarget}Node#full_name and Constant{Read,Path,PathTarget}Node#full_name_parts are added to walk constant paths for you to find the full name of the constant.
  • Syntax errors are added when assigning to a numbered parameter.
  • Node::type is added, which matches the Node#type API.
  • Magic comments are now parsed as part of the parsing process and a new field is added in the form of ParseResult#magic_comments to access them.

Changed

  • BREAKING: Call*Node#name methods now return symbols instead of strings.
  • BREAKING: For loops now have their index value considered as part of the body, so depths of local variable assignments will be increased by 1.
  • Tilde heredocs now split up their lines into multiple string nodes to make them easier to dedent.