Handle :rational type nodes via generic mutator

This commit is contained in:
Markus Schirp 2014-11-03 14:27:45 +00:00
parent 739644e149
commit aee85f9273
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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