Method: Parser::Ruby18#_reduce_305

Defined in:
lib/parser/ruby18.rb

#_reduce_305(val, _values, result) ⇒ Object


8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
# File 'lib/parser/ruby18.rb', line 8169

def _reduce_305(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