ruby-syntax-tree / syntax_tree

Interact with the Ruby syntax tree

Home Page:https://ruby-syntax-tree.github.io/syntax_tree/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Combine ArrayLiteral, MRHS, QSymbols, QWords, Symbols, Words into ArrayNode

kddnewton opened this issue · comments

All of these nodes are effectively arrays. We should combine them. YARP has:

  • elements - the list of elements in the array
  • opening_loc - the source range representing the opening (e.g., [, %w[, or omitted)
  • closing_loc - the source range representing the closing (e.g., ], }, or omitted)