Method: Parser::MacRuby#_reduce_316

Defined in:
lib/parser/macruby.rb

#_reduce_316(val, _values, result) ⇒ Object

[View source]

8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
# File 'lib/parser/macruby.rb', line 8192

def _reduce_316(val, _values, result)
                      k_class, ctx = val[0]
                      if @context.in_def
                        diagnostic :error, :class_in_def, nil, k_class
                      end

                      lt_t, superclass = val[2]
                      result = @builder.def_class(k_class, val[1],
                                                  lt_t, superclass,
                                                  val[4], val[5])

                      local_pop
                      @context.in_class = ctx.in_class

    result
end