Sha256: 3b6d6d0af47105200c60d4e09c9c7ecc85eb92a48c4a66706e728241817edd33

Contents?: true

Size: 680 Bytes

Versions: 4

Compression:

Stored size: 680 Bytes

Contents

module Yoda
  module Model
    module TypeExpressions
      class AnyType < Base
        def eql?(another)
          another.is_a?(AnyType)
        end

        def hash
          [self.class.name].hash
        end

        # @param paths [LexicalContext]
        # @return [self]
        def change_root(paths)
          self
        end

        # @param registry [Registry]
        # @return [Array<Store::Objects::Base>]
        def resolve(registry)
          []
        end

        def to_rbs_type(_env)
          RBS::Types::Bases::Any.new(location: nil)
        end

        # @return [String]
        def to_s
          'untyped'
        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/type_expressions/any_type.rb
yoda-language-server-0.10.0 lib/yoda/model/type_expressions/any_type.rb
yoda-language-server-0.9.0 lib/yoda/model/type_expressions/any_type.rb
yoda-language-server-0.8.0 lib/yoda/model/type_expressions/any_type.rb