Class: Ibex::Runtime::RepairInput

Inherits:
Object
  • Object
show all
Defined in:
lib/ibex/runtime/repair.rb,
sig/ibex/runtime/repair.rbs

Overview

Internal normalized input record retained while repair looks ahead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token_id:, token_name:, value:, location:) ⇒ RepairInput

Returns a new instance of RepairInput.

RBS:

  • (token_id: Integer, token_name: String, value: untyped, location: untyped) -> void

Parameters:

  • token_id: (Integer)
  • token_name: (String)
  • value: (Object)
  • location: (Object)


101
102
103
104
105
106
107
# File 'lib/ibex/runtime/repair.rb', line 101

def initialize(token_id:, token_name:, value:, location:)
  @token_id = token_id
  @token_name = token_name.dup.freeze
  @value = value
  @location = location
  freeze
end

Instance Attribute Details

#locationObject (readonly)

Signature:

  • untyped

Returns:

  • (Object)


98
99
100
# File 'lib/ibex/runtime/repair.rb', line 98

def location
  @location
end

#token_idInteger (readonly)

Signature:

  • Integer

Returns:

  • (Integer)


95
96
97
# File 'lib/ibex/runtime/repair.rb', line 95

def token_id
  @token_id
end

#token_nameString (readonly)

Signature:

  • String

Returns:

  • (String)


96
97
98
# File 'lib/ibex/runtime/repair.rb', line 96

def token_name
  @token_name
end

#valueObject (readonly)

Signature:

  • untyped

Returns:

  • (Object)


97
98
99
# File 'lib/ibex/runtime/repair.rb', line 97

def value
  @value
end

Instance Method Details

#eof?Boolean

RBS:

  • () -> bool

Returns:

  • (Boolean)


110
# File 'lib/ibex/runtime/repair.rb', line 110

def eof? = @token_id.zero?