Sha256: 675f5d5ba5d6f12962e825a86eb25adf5b4fa0095fe58d129636c11d250528a9

Contents?: true

Size: 727 Bytes

Versions: 27

Compression:

Stored size: 727 Bytes

Contents

module Steep
  module AST
    module Types
      class Literal
        attr_reader location: untyped

        type value = Integer | String | Symbol | TrueClass | FalseClass

        attr_reader value: value

        def initialize: (value: value, ?location: untyped?) -> void

        def ==: (untyped other) -> bool

        def hash: () -> Integer

        alias eql? ==

        def subst: (Interface::Substitution s) -> Literal

        def to_s: () -> String

        include Helper::NoFreeVariables

        include Helper::NoChild

        def level: () -> Array[Integer]

        def with_location: (untyped new_location) -> Literal

        def back_type: () -> AST::Types::Name::Instance
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/steep/ast/types/literal.rbs
steep-1.7.0.dev.2 sig/steep/ast/types/literal.rbs
steep-1.7.0.dev.1 sig/steep/ast/types/literal.rbs
steep-1.6.0 sig/steep/ast/types/literal.rbs
steep-1.6.0.pre.4 sig/steep/ast/types/literal.rbs
steep-1.6.0.pre.3 sig/steep/ast/types/literal.rbs
steep-1.6.0.pre.2 sig/steep/ast/types/literal.rbs
steep-1.6.0.pre.1 sig/steep/ast/types/literal.rbs
steep-1.5.3 sig/steep/ast/types/literal.rbs
steep-1.5.2 sig/steep/ast/types/literal.rbs
steep-1.5.1 sig/steep/ast/types/literal.rbs
steep-1.5.0 sig/steep/ast/types/literal.rbs
steep-1.5.0.pre.6 sig/steep/ast/types/literal.rbs
steep-1.5.0.pre.5 sig/steep/ast/types/literal.rbs
steep-1.5.0.pre.4 sig/steep/ast/types/literal.rbs
steep-1.5.0.pre.3 sig/steep/ast/types/literal.rbs
steep-1.5.0.pre.2 sig/steep/ast/types/literal.rbs
steep-1.5.0.pre.1 sig/steep/ast/types/literal.rbs
steep-1.4.0 sig/steep/ast/types/literal.rbs
steep-1.4.0.dev.5 sig/steep/ast/types/literal.rbs