Sha256: e4a5d5ffae027f291b21546aac540f90aee6bc260c1a6fe2775327517b3f023d

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

module Steep
  module AST
    module Types
      class Bot
        attr_reader :location

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

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

        def hash
          self.class.hash
        end

        alias eql? ==

        def subst(s)
          self
        end

        def to_s
          "⟘"
        end

        def free_variables
          Set.new
        end

        def level
          [2]
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
steep-0.3.0 lib/steep/ast/types/bot.rb
steep-0.2.0 lib/steep/ast/types/bot.rb
steep-0.1.0 lib/steep/ast/types/bot.rb