Sha256: 1b02d71f29706d581dbe02745d91164112f26200c8bd51c66fd7a3f7ebfc8ef1
Contents?: true
Size: 623 Bytes
Versions: 6
Compression:
Stored size: 623 Bytes
Contents
require_relative 'code_context' require_relative 'method_context' module Reek module Context # # A context wrapper representing the root of an abstract syntax tree. # class RootContext < CodeContext def initialize(exp) super(nil, exp) end def type :root end def full_name '' end # Return the correct class for child method contexts (representing nodes # of type `:def`). For RootContext, this is the class that represents # instance methods. def method_context_class MethodContext end end end end
Version data entries
6 entries across 6 versions & 1 rubygems