Class: CodeTools::AST::CurrentException
- Inherits:
-
Node
- Object
- Node
- CodeTools::AST::CurrentException
show all
- Defined in:
- lib/rubinius/code/ast/variables.rb
Instance Attribute Summary
Attributes inherited from Node
#line
Instance Method Summary
collapse
Methods inherited from Node
#ascii_graph, #attributes, #children, #initialize, 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
Instance Method Details
#bytecode(g) ⇒ Object
236
237
238
239
|
# File 'lib/rubinius/code/ast/variables.rb', line 236
def bytecode(g)
pos(g)
g.push_current_exception
end
|
#defined(g) ⇒ Object
241
242
243
|
# File 'lib/rubinius/code/ast/variables.rb', line 241
def defined(g)
g.push_literal "global-variable"
end
|
#to_sexp ⇒ Object
245
246
247
|
# File 'lib/rubinius/code/ast/variables.rb', line 245
def to_sexp
[:gvar, :$!]
end
|