Class: CodeTools::AST::TypeConstant

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

Instance Attribute Summary

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph, #attributes, #children, #defined, 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) ⇒ TypeConstant

Returns a new instance of TypeConstant.



7
8
9
# File 'lib/rubinius/code/ast/constants.rb', line 7

def initialize(line)
  @line = line
end

Instance Method Details

#bytecode(g) ⇒ Object



11
12
13
14
# File 'lib/rubinius/code/ast/constants.rb', line 11

def bytecode(g)
  pos(g)
  g.push_type
end