Commit graph

31 commits

Author SHA1 Message Date
Dan Kubb
f8c0623265 Fix whitespace 2013-07-29 17:34:02 -07: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
Markus Schirp
1105d2c6ce Fix rubocop warnings in Mutant::Mutator namespace 2013-07-27 20:21:27 +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
e1824db5cc Style fixes 2013-07-05 03:01:59 +02:00
Dan Kubb
bd912831a8 Fix YARD docs 2013-06-25 00:33:28 -07:00
Markus Schirp
2d0c57ba07 Fix generation of invalid ast via parent tracking 2013-06-24 22:10:40 +02:00
Markus Schirp
da30228b94 Prefer Array#at over Array#[] for fixnum index access 2013-06-21 18:38:15 +02:00
Markus Schirp
d364c7b519 Use and improve child nameing for send mutator 2013-06-21 15:51:30 +02:00
Markus Schirp
586a4d3e1b Use constant nodes when possible 2013-06-21 15:07:40 +02:00
Markus Schirp
ac6502bc59 Add child nameing helpers 2013-06-21 15:07:40 +02:00
Markus Schirp
c6d1c3c0c8 Fix all yard docs 2013-06-15 16:37:43 +02:00
Markus Schirp
d35df6d70c Use KEYWORDS constants from unparser 2013-06-14 21:12:10 +02:00
Markus Schirp
56fb2c7285 Port case mutations to parser 2013-06-14 21:12:09 +02:00
Markus Schirp
af8954cfdb Port literal fixnum emitter to parser 2013-06-14 21:12:09 +02:00
Markus Schirp
c5cdc05e5e Port if node mutator to parser 2013-06-14 21:12:09 +02:00
Markus Schirp
d6481615af Port argument mutators to parser 2013-06-14 21:11:54 +02:00
Markus Schirp
ededf82ebe Port single variable assignment mutator to parser 2013-06-14 21:11:54 +02:00
Markus Schirp
6b2e2a8bb0 Initial round of refactoring
* Remove some RBX only nodes
* Register parser types
* Remove all occurences of ::Rubinius when loading libraries
2013-06-14 21:11:54 +02:00
Markus Schirp
97a75dd062 Cleanup mutation generation
This is a reaction to the to_source rewrite

* Do not use 1.8 specific nodes anymore
* Do not generate AST nodes that would not be generatable from source
2013-01-09 20:43:06 +01:00
Markus Schirp
eb6ea9a74f Metric driven code refactoring
Break some classes, rename stuff etc.
2013-01-04 22:16:03 +01:00
Markus Schirp
fce6d5c06e Metric diven cleanups and break large classes
* Formal argument mutations are still very dirty :(
2012-12-29 20:12:48 +01:00
Markus Schirp
3026572b50 Deduplicate util array and literal hash mutations 2012-12-29 16:53:52 +01:00
Markus Schirp
913a3fdbf1 Move emit_values helper to correct subclass 2012-12-29 16:34:39 +01:00
Markus Schirp
93556763dd Bring back yard coverage to 100%
Also do some minor refactorings
2012-12-12 22:31:27 +01:00
Markus Schirp
40d5230c68 Introduce noop mutation guards and argument mutators
* Sorry for not splitting up into smaller commit
2012-12-11 00:17:19 +01:00
Markus Schirp
de276327f5 Add support for mutating block arguments 2012-12-10 17:11:08 +01:00
Markus Schirp
fe941ff74c Cleanup node body mutation 2012-12-06 22:30:57 +01:00
Markus Schirp
e3754434dc Rename emit_body_mutation into emit_attribute_mutation(attribute_name) 2012-12-06 22:05:42 +01:00
Markus Schirp
e164d1f4a9 Generalize generation of body mutations for sends 2012-12-06 21:54:18 +01:00
Markus Schirp
69e9de95ed Extract node specific mutator base class 2012-12-06 21:30:28 +01:00