Class: CodeTools::AST::EmptyBody

Inherits:
Node
  • Object
show all
Defined in:
lib/rubinius/code/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 CodeTools::AST::Node

Instance Method Details

#bytecode(g) ⇒ Object



991
992
993
994
# File 'lib/rubinius/code/ast/definitions.rb', line 991

def bytecode(g)
  g.pop
  g.push_tagged_nil 0
end

#to_sexpObject



996
997
998
# File 'lib/rubinius/code/ast/definitions.rb', line 996

def to_sexp
  [:scope]
end