Sha256: 0d40380f5d3f47f8cdd5af9bbffb093db36272ee02f47bea173d71bb570992e2

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require 'yoda/typing/tree/namespace_inferable'

module Yoda
  module Typing
    module Tree
      class ClassTree < Base
        include NamespaceInferable

        # @!method node
        #   @return [AST::ClassNode]

        # @return [Types::Base]
        def infer_type
          if super_class_node = node.super_class
            infer_child(super_class_node)
          end

          infer_namespace
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/typing/tree/class_tree.rb
yoda-language-server-0.10.0 lib/yoda/typing/tree/class_tree.rb