Class: Opal::Rewriters::DumpArgs
- Inherits:
-
Base
- Object
- Parser::AST::Processor
- Base
- Opal::Rewriters::DumpArgs
show all
- Defined in:
- opal/lib/opal/rewriters/dump_args.rb
Constant Summary
Constants inherited
from Base
Base::DUMMY_LOCATION
Instance Attribute Summary
Attributes inherited from Base
#current_node
Instance Method Summary
collapse
Methods inherited from Base
#append_to_body, #begin_with_stmts, #error, #prepend_to_body, #process, #s, s, #stmts_of
Instance Method Details
#on_def(node) ⇒ Object
8
9
10
11
12
|
# File 'opal/lib/opal/rewriters/dump_args.rb', line 8
def on_def(node)
node = super(node)
_mid, args, _body = *node
node.updated(nil, nil, meta: { original_args: args })
end
|
#on_defs(node) ⇒ Object
14
15
16
17
18
19
|
# File 'opal/lib/opal/rewriters/dump_args.rb', line 14
def on_defs(node)
node = super(node)
_recv, _mid, args, _body = *node
node.updated(nil, nil, meta: { original_args: args })
end
|
#on_iter(node) ⇒ Object
21
22
23
24
25
|
# File 'opal/lib/opal/rewriters/dump_args.rb', line 21
def on_iter(node)
node = super(node)
args, _body = *node
node.updated(nil, nil, meta: { original_args: args })
end
|