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



979
980
981
982
# File 'lib/rubinius/code/ast/definitions.rb', line 979

def bytecode(g)
  g.pop
  g.push_nil
end

#to_sexpObject



984
985
986
# File 'lib/rubinius/code/ast/definitions.rb', line 984

def to_sexp
  [:scope]
end