Class: Rubinius::ToolSet.current::TS::AST::EmptyBody

Inherits:
Node
  • Object
show all
Defined in:
lib/rubinius/ast/definitions.rb

Instance Attribute Summary

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph, #attributes, #children, #defined, #initialize, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk

Constructor Details

This class inherits a constructor from Rubinius::ToolSet.current::TS::AST::Node

Instance Method Details

#bytecode(g) ⇒ Object



842
843
844
845
# File 'lib/rubinius/ast/definitions.rb', line 842

def bytecode(g)
  g.pop
  g.push :nil
end

#to_sexpObject



847
848
849
# File 'lib/rubinius/ast/definitions.rb', line 847

def to_sexp
  [:scope]
end