Class: CastOff::Compiler::SimpleIR::ReturnIR::ThrowObj

Inherits:
Object
  • Object
show all
Defined in:
lib/cast_off/compile/ir/return_ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, raw_state, state, flag, level) ⇒ ThrowObj

Returns a new instance of ThrowObj.



11
12
13
14
15
# File 'lib/cast_off/compile/ir/return_ir.rb', line 11

def initialize(type, raw_state, state, flag, level)
  @type = type
  @raw_state = raw_state
  @state = state
end

Instance Attribute Details

#raw_stateObject (readonly)

Returns the value of attribute raw_state.



9
10
11
# File 'lib/cast_off/compile/ir/return_ir.rb', line 9

def raw_state
  @raw_state
end

#stateObject (readonly)

Returns the value of attribute state.



9
10
11
# File 'lib/cast_off/compile/ir/return_ir.rb', line 9

def state
  @state
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/cast_off/compile/ir/return_ir.rb', line 9

def type
  @type
end