Class: Duby::AST::NodeProxy

Inherits:
Node
  • Object
show all
Defined in:
lib/duby/ast/call.rb

Instance Attribute Summary

Attributes inherited from Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

Methods inherited from Node

#<<, ===, #[], #_set_parent, child, child_name, #each, #empty?, #expr?, #initialize, #initialize_copy, #insert, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s

Constructor Details

This class inherits a constructor from Duby::AST::Node

Instance Method Details

#__inline__(node) ⇒ Object



5
6
7
8
# File 'lib/duby/ast/call.rb', line 5

def __inline__(node)
  node.parent = parent
  __setobj__(node)
end

#dupObject



10
11
12
13
14
15
# File 'lib/duby/ast/call.rb', line 10

def dup
  new = super
  new.__setobj__(__getobj__.dup)
  new.proxy = new
  new
end