# $Id: zsuper.rb,v 1.2 2003/12/30 06:11:02 yuya Exp $ class Foo def initialize p(:Foo) end end class Bar < Foo def initialize p(:Bar) super end end Bar.new # NodeDump V0.1.7 # # NODE_BLOCK: # NODE_NEWLINE: [zsuper.rb:3] # NODE_CLASS: class 8965 (Foo) # NODE_SCOPE: # NODE_NEWLINE: [zsuper.rb:4] # NODE_DEFN: method 2865 (initialize) # NODE_SCOPE: # NODE_BLOCK: # NODE_ARGS: count = 0 # additional default values: # NODE_NEWLINE: [zsuper.rb:5] # NODE_FCALL: to function: 6753 (p) # Parameters: # NODE_ARRAY: size = 1 # NODE_LIT: Symbol: 8965 (Foo) # NODE_NEWLINE: [zsuper.rb:9] # NODE_CLASS: class 8973 (Bar) # Superclass: # NODE_CONST: 8965 (Foo) # NODE_SCOPE: # NODE_NEWLINE: [zsuper.rb:10] # NODE_DEFN: method 2865 (initialize) # NODE_SCOPE: # NODE_BLOCK: # NODE_ARGS: count = 0 # additional default values: # NODE_NEWLINE: [zsuper.rb:11] # NODE_FCALL: to function: 6753 (p) # Parameters: # NODE_ARRAY: size = 1 # NODE_LIT: Symbol: 8973 (Bar) # NODE_NEWLINE: [zsuper.rb:12] # NODE_ZSUPER: # NODE_NEWLINE: [zsuper.rb:16] # NODE_CALL: to method: 3177 (new) # Receiver: # NODE_CONST: 8973 (Bar)