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.
|
# Nodes that are NOT generated by parser but used by mutant / unparser.
|
||||||
EXTRA = symbolset.(%w[empty])
|
EXTRA = symbolset.(%w[empty])
|
||||||
|
|
||||||
|
# Nodes that are currently missing from parser META
|
||||||
|
MISSING = symbolset.(%w[rational])
|
||||||
|
|
||||||
# All node types mutant handles
|
# 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 # Types
|
||||||
end # AST
|
end # AST
|
||||||
end # Mutant
|
end # Mutant
|
||||||
|
|
|
@ -13,7 +13,7 @@ module Mutant
|
||||||
:alias, :for, :xstr, :back_ref, :class,
|
:alias, :for, :xstr, :back_ref, :class,
|
||||||
:sclass, :match_with_lvasgn, :while_post,
|
:sclass, :match_with_lvasgn, :while_post,
|
||||||
:until_post, :preexe, :postexe, :iflipflop, :eflipflop, :kwsplat,
|
:until_post, :preexe, :postexe, :iflipflop, :eflipflop, :kwsplat,
|
||||||
:shadowarg
|
:shadowarg, :rational
|
||||||
)
|
)
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue