Sha256: a69c58a2889251c533a678560fe2fef3476c16fe891ab556a4268eb6b46e1a4a

Contents?: true

Size: 656 Bytes

Versions: 49

Compression:

Stored size: 656 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
          "bot"
        end

        include Helper::NoFreeVariables

        include Helper::NoChild

        def level
          [2]
        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/bot.rb
steep-1.8.0.dev.1 lib/steep/ast/types/bot.rb
steep-1.7.1 lib/steep/ast/types/bot.rb
steep-1.7.0 lib/steep/ast/types/bot.rb
steep-1.7.0.dev.3 lib/steep/ast/types/bot.rb
steep-1.7.0.dev.2 lib/steep/ast/types/bot.rb
steep-1.7.0.dev.1 lib/steep/ast/types/bot.rb
steep-1.6.0 lib/steep/ast/types/bot.rb
steep-1.6.0.pre.4 lib/steep/ast/types/bot.rb
steep-1.6.0.pre.3 lib/steep/ast/types/bot.rb
steep-1.6.0.pre.2 lib/steep/ast/types/bot.rb
steep-1.6.0.pre.1 lib/steep/ast/types/bot.rb
steep-1.5.3 lib/steep/ast/types/bot.rb
steep-1.5.2 lib/steep/ast/types/bot.rb
steep-1.5.1 lib/steep/ast/types/bot.rb
steep-1.5.0 lib/steep/ast/types/bot.rb
steep-1.5.0.pre.6 lib/steep/ast/types/bot.rb
steep-1.5.0.pre.5 lib/steep/ast/types/bot.rb
steep-1.5.0.pre.4 lib/steep/ast/types/bot.rb
steep-1.5.0.pre.3 lib/steep/ast/types/bot.rb