Class: Evilution::Mutator::Operator::ExplicitSuperMutation
- Inherits:
-
Base
- Object
- Prism::Visitor
- Base
- Evilution::Mutator::Operator::ExplicitSuperMutation
- Defined in:
- lib/evilution/mutator/operator/explicit_super_mutation.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#call, clear_parse_cache!, #initialize, operator_name, parsed_tree_for
Constructor Details
This class inherits a constructor from Evilution::Mutator::Base
Instance Method Details
#visit_super_node(node) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/evilution/mutator/operator/explicit_super_mutation.rb', line 6 def visit_super_node(node) replace_with_zsuper(node) args = node.arguments&.arguments mutate_arguments(node, args) if args && !args.empty? super end |