Handle :rational type nodes via generic mutator
This commit is contained in:
parent
739644e149
commit
aee85f9273
2 changed files with 5 additions and 2 deletions
|
@ -41,8 +41,11 @@ module Mutant
|
|||
# Nodes that are NOT generated by parser but used by mutant / unparser.
|
||||
EXTRA = symbolset.(%w[empty])
|
||||
|
||||
# Nodes that are currently missing from parser META
|
||||
MISSING = symbolset.(%w[rational])
|
||||
|
||||
# All node types mutant handles
|
||||
ALL = symbolset.((Parser::Meta::NODE_TYPES + EXTRA) - BLACKLIST)
|
||||
ALL = symbolset.((Parser::Meta::NODE_TYPES + EXTRA + MISSING) - BLACKLIST)
|
||||
end # Types
|
||||
end # AST
|
||||
end # Mutant
|
||||
|
|
|
@ -13,7 +13,7 @@ module Mutant
|
|||
:alias, :for, :xstr, :back_ref, :class,
|
||||
:sclass, :match_with_lvasgn, :while_post,
|
||||
:until_post, :preexe, :postexe, :iflipflop, :eflipflop, :kwsplat,
|
||||
:shadowarg
|
||||
:shadowarg, :rational
|
||||
)
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue