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
ArrayNode now has a contains_splat? flag if it has a splatted element in it.
All of the remaining encodings have been implemented.
Allow forwarding & in a method that has a ... parameter.
Many statements that are found in non-statement positions are being properly rejected now.
Void values are now properly checked.
Referencing a parameter in its own default value is now properly rejected.
DATA/__END__ is now parsed as its own field on parse result (data_loc) as opposed to as a comment.
Blank * now properly forwards into arrays.
ImplicitRestNode is introduced to represent the implicit rest of a destructure.
We now support negative start lines.
StringNode#heredoc?, InterpolatedStringNode#heredoc?, XStringNode#heredoc?, and InterpolatedXStringNode#heredoc? are introduced.
NumberedParametersNode is introduced to represent the implicit set of parameters when numbered parameters are used.
Prism::parse_success? and Prism::parse_failure? are introduced to bypass reifying the AST.
We now emit a warning for constant assignments in method definitions.
We now provide flags on strings and xstrings to indicate the correct encoding.
The hash pattern rest field now more accurately parses ** and **nil.
The equality operators are now properly parsed as non-associative.
Changed
BREAKING: Many fields have changed positions within their nodes. This impacts the C API and the Ruby API if you are manually creating nodes through the initializer.
BREAKING: Almost all of the error messages have been updated to begin with lowercase characters to match ruby/spec.
Unterminated strings with only plain content are now always StringNode as opposed to InterpolatedStringNode
BREAKING: Call node has been split up when it is in the target position into CallTargetNode and IndexTargetNode.