Method: Parser::Ruby34#_reduce_502

Defined in:
lib/parser/ruby34.rb

#_reduce_502(val, _values, result) ⇒ Object

reduce 501 omitted

[View source]

11255
11256
11257
11258
11259
11260
11261
11262
11263
# File 'lib/parser/ruby34.rb', line 11255

def _reduce_502(val, _values, result)
                      # array patterns that end with comma
                      # like [1, 2,]
                      # must be emitted as `array_pattern_with_tail`
                      item = @builder.match_with_trailing_comma(val[0], val[1])
                      result = [ item ]

    result
end