Class: Furnace::AVM2::ABC::PushLiteralOpcode

Inherits:
Opcode
  • Object
show all
Defined in:
lib/furnace-avm2/abc/opcodes/push_literal_opcode.rb

Constant Summary

Constants inherited from Opcode

Opcode::MAP

Instance Attribute Summary

Attributes inherited from Opcode

#sequence

Instance Method Summary collapse

Methods inherited from Opcode

body, #byte_length, #consumes_context, define_property, #disassemble, #disassemble_parameters, #initialize, mnemonic, #next, #offset, #read, #root, #write

Constructor Details

This class inherits a constructor from Furnace::AVM2::ABC::Opcode

Instance Method Details

#ast_typeObject



6
7
8
# File 'lib/furnace-avm2/abc/opcodes/push_literal_opcode.rb', line 6

def ast_type
  type
end

#parametersObject



10
11
12
13
14
15
16
# File 'lib/furnace-avm2/abc/opcodes/push_literal_opcode.rb', line 10

def parameters
  if respond_to? :body
    [ body.value ]
  else
    [ ]
  end
end