Class: CodeTools::AST::FixnumLiteral
Instance Attribute Summary
#value
Attributes inherited from Node
#line
Instance Method Summary
collapse
#to_sexp
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
#initialize(line, value) ⇒ FixnumLiteral
264
265
266
267
|
# File 'lib/rubinius/code/ast/literals.rb', line 264
def initialize(line, value)
@line = line
@value = value
end
|
Instance Method Details
#bytecode(g) ⇒ Object
269
270
271
272
273
|
# File 'lib/rubinius/code/ast/literals.rb', line 269
def bytecode(g)
pos(g)
g.push_int @value
end
|
#defined(g) ⇒ Object
275
276
277
|
# File 'lib/rubinius/code/ast/literals.rb', line 275
def defined(g)
g.push_literal "expression"
end
|