Commit graph

28 commits

Author SHA1 Message Date
Dan Kubb
58e6910573 Add explicit mutator for and_asgn 2013-09-07 23:57:47 -07:00
Dan Kubb
3eef4f1173 Add explicit mutator for or_asgn 2013-09-07 23:57:47 -07:00
Dan Kubb
f714f8215f Add explicit mutator for op_asgn 2013-09-07 23:57:47 -07:00
Dan Kubb
1d567f65f1 Add explicit mutator for dstr 2013-09-07 23:57:46 -07:00
Markus Schirp
0ffa49620e Add nthref mutator
Closes #20
2013-08-03 01:36:39 +02:00
Dan Kubb
7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00
Dan Kubb
3a6f928089 Remove defined node which is no longer provided by parser
* The new node is named defined? which is already in the generic
  node list.
2013-07-28 14:56:50 -07:00
Dan Kubb
0f4a653749 Remove match node which is no longer provided by parser 2013-07-28 14:52:04 -07:00
Dan Kubb
25bc3b9bc0 Add block_pass mutator 2013-07-28 13:20:09 -07:00
Dan Kubb
fc313945a1 Remove :not node
* The :not node is not used in Ruby 1.9+
2013-07-23 23:24:26 -07:00
Dan Kubb
d44115c0b6 Add binary connective mutator 2013-07-23 23:24:26 -07:00
Dan Kubb
14133fe199 Add cbase mutator 2013-07-23 21:58:10 -07:00
Dan Kubb
e85bdfa0e9 Add mutator for zsuper node 2013-07-23 01:04:31 -07:00
Dan Kubb
23a84df277 Add mutator for self nodes 2013-07-23 00:43:48 -07:00
Dan Kubb
1e14b7f703 Add constant assignment mutator 2013-07-23 00:23:21 -07:00
Dan Kubb
537dbdb99a Add const mutator 2013-07-22 23:57:30 -07:00
Dan Kubb
0e1365a565 Refactor Mutant::Mutator::Node::Generic#dispatch guard clause 2013-07-22 09:20:18 -07:00
Dan Kubb
ec9da5da97 Add Mutant::Mutator::Node::Variable
* Rename lvar mutator to handle all variable usage
2013-07-22 09:20:10 -07:00
Dan Kubb
72b7488809 Add Mutant::Mutator::Node::LocalVariable 2013-07-22 00:33:54 -07:00
Dan Kubb
06e16ee951 Fix code formatting and spelling 2013-07-22 00:33:35 -07:00
Markus Schirp
2ea0df4b86 Fix closing comment 2013-07-16 23:09:04 +02:00
Markus Schirp
ad162c2a42 Add dedicated splat mutator
Closes #66
2013-07-15 22:25:09 +02:00
Markus Schirp
4a2d12e7bf Do not emit invalid ast for op-assign mutations
Closes #64
2013-07-14 21:39:23 +02:00
Markus Schirp
3a82ebea5c Simplify generic mutator 2013-07-05 19:17:17 +02:00
Markus Schirp
7505344a8b Handle masgn outside of generic mutator
May result in syntactially invalid AST.
Currently is a noop.
2013-07-05 13:48:13 +02:00
Markus Schirp
a707027197 Use multiple lines for complex guard 2013-07-05 03:03:56 +02:00
Markus Schirp
93da846051 Add guard to ensure generic mutator only visits nodes 2013-07-05 01:32:13 +02:00
Markus Schirp
4211dfa444 Refactor noop into generic mutator
A generic mutator does delegate mutations to children. The generic
mutator does not know any type specific semantics. For this reason he
cannot do deletion, reordering or anything more sophisticated than
visiting children.

But still it should result in a TON of more mutations!
2013-07-05 01:21:07 +02:00
Renamed from lib/mutant/mutator/node/noop.rb (Browse further)