Class: Rubinius::ToolSet.current::TS::AST::FixnumLiteral
- Inherits:
-
NumberLiteral
- Object
- Node
- NumberLiteral
- Rubinius::ToolSet.current::TS::AST::FixnumLiteral
- Defined in:
- lib/rubinius/ast/literals.rb
Instance Attribute Summary
Attributes inherited from NumberLiteral
Attributes inherited from Node
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
- #defined(g) ⇒ Object
-
#initialize(line, value) ⇒ FixnumLiteral
constructor
A new instance of FixnumLiteral.
Methods inherited from NumberLiteral
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
Returns a new instance of FixnumLiteral.
220 221 222 223 |
# File 'lib/rubinius/ast/literals.rb', line 220 def initialize(line, value) @line = line @value = value end |
Instance Method Details
#bytecode(g) ⇒ Object
225 226 227 228 229 |
# File 'lib/rubinius/ast/literals.rb', line 225 def bytecode(g) pos(g) g.push @value end |
#defined(g) ⇒ Object
231 232 233 |
# File 'lib/rubinius/ast/literals.rb', line 231 def defined(g) g.push_literal "expression" end |