Class: CodeTools::AST::FalseLiteral

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

Instance Attribute Summary

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph, #attributes, #children, #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



61
62
63
64
65
# File 'lib/rubinius/code/ast/literals.rb', line 61

def bytecode(g)
  pos(g)

  g.push_false
end

#defined(g) ⇒ Object



67
68
69
# File 'lib/rubinius/code/ast/literals.rb', line 67

def defined(g)
  g.push_literal "false"
end

#to_sexpObject



71
72
73
# File 'lib/rubinius/code/ast/literals.rb', line 71

def to_sexp
  [:false]
end