You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
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.