Skip to content

v0.11.0

Compare
Choose a tag to compare
@kddnewton kddnewton released this 08 Sep 19:52
· 2101 commits to main since this release
3815d29

Added

  • Node#inspect is much improved.
  • YARP::Pattern is introduced, which can construct procs to match against nodes.
  • BlockLocalVariableNode is introduced to take the place of the locations array on BlockParametersNode.
  • ParseResult#attach_comments! is now provided to attach comments to locations in the tree.
  • MultiTargetNode is introduced as the target of multi writes and for loops.
  • Node#comment_targets is introduced to return the list of objects that can have attached comments.

Changed

  • BREAKING: GlobalVariable*Node#name now returns a symbol.
  • BREAKING: Constant*Node#name now returns a symbol.
  • BREAKING: BlockParameterNode, KeywordParameterNode, KeywordRestParameterNode, RestParameterNode, DefNode all have their name methods returning symbols now.
  • BREAKING: ClassNode#name and ModuleNode#name now return symbols.
  • BREAKING: Location#end_column is now exclusive instead of inclusive.
  • Location#slice now returns a properly encoded string.
  • CallNode#operator_loc is now CallNode#call_operator_loc.
  • CallOperatorAndWriteNode is renamed to CallAndWriteNode and its structure has changed.
  • CallOperatorOrWriteNode is renamed to CallOrWriteNode and its structure has changed.