Sha256: 1ed92a18b00919c0d5a7e186a951155cbd99b5cda94bf47d25a46c5a5d902e4f

Contents?: true

Size: 822 Bytes

Versions: 4

Compression:

Stored size: 822 Bytes

Contents

module Yoda
  module Model
    module Values
      class EmptyValue < Base
        # @param name [String, Symbol]
        # @return [Array<Functions::Base>]
        def select_method(name, **kwargs)
          []
        end

        def referred_objects
          []
        end

        # @param name [String, Symbol]
        # @return [RBS::Types::t]
        def select_constant_type(name, **kwargs)
          RBS::Types::Bases::Any.new(location: nil)
        end

        # @param name [String, Symbol]
        # @return [Array<String>]
        def select_constant_paths(name, **kwargs)
          []
        end

        # @return [EmptyValue]
        def singleton_class_value
          self
        end

        # @return [EmptyValue]
        def instance_value
          self
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/model/values/empty_value.rb
yoda-language-server-0.10.0 lib/yoda/model/values/empty_value.rb
yoda-language-server-0.9.0 lib/yoda/model/values/empty_value.rb
yoda-language-server-0.8.0 lib/yoda/model/values/empty_value.rb