Class: CodeTools::AST::ZSuper

Inherits:
Super show all
Defined in:
lib/rubinius/code/ast/sends.rb

Instance Attribute Summary

Attributes inherited from Super

#block, #name

Attributes inherited from SendWithArguments

#arguments

Attributes inherited from Send

#block, #name, #privately, #receiver, #variable, #vcall_style

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Super

#block_bytecode, #defined

Methods inherited from SendWithArguments

#arguments_sexp

Methods inherited from Send

#arguments_sexp, #check_local_reference, #defined, #receiver_sexp, #sexp_name, #value_defined

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, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk

Constructor Details

#initialize(line) ⇒ ZSuper

Returns a new instance of ZSuper.



1113
1114
1115
1116
# File 'lib/rubinius/code/ast/sends.rb', line 1113

def initialize(line)
  @line = line
  @block = nil
end

Instance Method Details

#bytecode(g) ⇒ Object



1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'lib/rubinius/code/ast/sends.rb', line 1118

def bytecode(g)
  pos(g)

  @name = g.state.super.name if g.state.super?

  block_bytecode(g)

  g.zsuper @name
end

#to_sexpObject



1128
1129
1130
# File 'lib/rubinius/code/ast/sends.rb', line 1128

def to_sexp
  [:zsuper]
end