Commit graph

10 commits

Author SHA1 Message Date
Markus Schirp
7bf70d9634 Add support for explicit type in meta examples
* This is needed to relate examples to node types for nodes that cannot
  stand alone. Example are :where nodes that do not have syntax outside
  a :case
2016-03-19 15:13:05 +00:00
John Backus
1ddcac2504 Add restarg arity mutation
- Mutates `def foo(*args); end` into `def foo(*args); args = []; end`
- Closes #181
2015-09-08 08:03:48 -07:00
John Backus
557b9a2585 Add mutation def hi; end -> remove_method :hi
closes #108
2015-08-19 15:08:20 -04:00
John Backus
b19a97084c Add optarg arity mutation
- Adds mutation from `def foo(a = true); end`
  to `def foo(a = true); a = true; end`
- closes #310
2015-08-19 16:15:52 +00:00
John Backus
44bb90e4a0 Mutate arg into _foo instead of foo__mutant__
- Changes mutation `foo` -> `_foo` instead of `foo` -> `foo__mutant__`
- closes #292
2015-08-13 22:17:22 -04:00
Markus Schirp
c392cb5e4b Remove redundant encoding comment
* Mutant is ruby 2.0+ only where UTF-8 is default encoding
2015-04-27 21:07:30 +00:00
Markus Schirp
1ae2c04193 Add concat-promotion of resbody nodes
Idea related to #245.
2014-08-16 21:14:22 +00:00
Markus Schirp
49517af01c Add rescue/else-body promotion/concatenation mutation
[fix #245]
2014-08-16 20:58:08 +00:00
Markus Schirp
d21f4ae5fb Do not mutate to invalid AST on reqarg promotion
Closes #153
2014-06-06 23:05:29 +00:00
Markus Schirp
017ccc1044 Add expression => self mutation
Also reorganizes parts of meta to align filenames to node name better.

Closes #191
2014-06-05 17:48:39 +00:00
Renamed from meta/define.rb (Browse further)