class SyntaxTree::YARV::InstructionSequence::Label
This represents the destination of instructions that jump. Initially it does not track its position so that when we perform optimizations the indices don’t get messed up.
Attributes
Public Class Methods
Source
# File lib/syntax_tree/yarv/instruction_sequence.rb, line 115 def initialize(name = nil) @name = name end
Public Instance Methods
Source
# File lib/syntax_tree/yarv/instruction_sequence.rb, line 123 def inspect name.inspect end
Source
# File lib/syntax_tree/yarv/instruction_sequence.rb, line 119 def patch!(name) @name = name end