class SyntaxTree::YARV::Decompiler::BlockLabel
When
we’re decompiling, we use a looped case statement to emulate jumping around in the same way the virtual machine would. This class provides convenience methods for generating the AST nodes that have to do with that label.
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/syntax_tree/yarv/decompiler.rb, line 16 def initialize(name) @name = name end
Public Instance Methods
field()
click to toggle source
# File lib/syntax_tree/yarv/decompiler.rb, line 20 def field VarField(Ident(name)) end
ref()
click to toggle source
# File lib/syntax_tree/yarv/decompiler.rb, line 24 def ref VarRef(Ident(name)) end