Class: Rubinius::ToolSet.current::TS::AST::NilLiteral
- Inherits:
-
Node
- Object
- Node
- Rubinius::ToolSet.current::TS::AST::NilLiteral
show all
- Defined in:
- lib/rubinius/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
Instance Method Details
#bytecode(g) ⇒ Object
181
182
183
184
185
|
# File 'lib/rubinius/ast/literals.rb', line 181
def bytecode(g)
pos(g)
g.push :nil
end
|
#defined(g) ⇒ Object
187
188
189
|
# File 'lib/rubinius/ast/literals.rb', line 187
def defined(g)
g.push_literal "nil"
end
|
#to_sexp ⇒ Object
191
192
193
|
# File 'lib/rubinius/ast/literals.rb', line 191
def to_sexp
[:nil]
end
|