Sha256: 25ccddb0bcaac6b6131a2eb3dc23532e4d67b40a6ed8e2c8d31db72abad5b713

Contents?: true

Size: 660 Bytes

Versions: 49

Compression:

Stored size: 660 Bytes

Contents

module Steep
  module AST
    module Types
      class Any
        attr_reader :location

        def initialize(location: nil)
          @location = location
        end

        def ==(other)
          other.is_a?(Any)
        end

        def hash
          self.class.hash
        end

        alias eql? ==

        def subst(s)
          self
        end

        def to_s
          "untyped"
        end

        include Helper::NoFreeVariables

        include Helper::NoChild

        def level
          [1]
        end

        def with_location(new_location)
          self.class.new(location: new_location)
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
steep-1.8.0.dev.2 lib/steep/ast/types/any.rb
steep-1.8.0.dev.1 lib/steep/ast/types/any.rb
steep-1.7.1 lib/steep/ast/types/any.rb
steep-1.7.0 lib/steep/ast/types/any.rb
steep-1.7.0.dev.3 lib/steep/ast/types/any.rb
steep-1.7.0.dev.2 lib/steep/ast/types/any.rb
steep-1.7.0.dev.1 lib/steep/ast/types/any.rb
steep-1.6.0 lib/steep/ast/types/any.rb
steep-1.6.0.pre.4 lib/steep/ast/types/any.rb
steep-1.6.0.pre.3 lib/steep/ast/types/any.rb
steep-1.6.0.pre.2 lib/steep/ast/types/any.rb
steep-1.6.0.pre.1 lib/steep/ast/types/any.rb
steep-1.5.3 lib/steep/ast/types/any.rb
steep-1.5.2 lib/steep/ast/types/any.rb
steep-1.5.1 lib/steep/ast/types/any.rb
steep-1.5.0 lib/steep/ast/types/any.rb
steep-1.5.0.pre.6 lib/steep/ast/types/any.rb
steep-1.5.0.pre.5 lib/steep/ast/types/any.rb
steep-1.5.0.pre.4 lib/steep/ast/types/any.rb
steep-1.5.0.pre.3 lib/steep/ast/types/any.rb