Add poc files

This commit is contained in:
Joey Yakimowich-Payne 2018-05-26 10:55:38 +09:00
commit fa600b98f7
220 changed files with 45679 additions and 0 deletions

View file

@ -0,0 +1,26 @@
(* many refactorings can be done by spatch! used this code only as
* last resort
*)
type refactoring_kind =
| AddInterface of string option (* specific class *)
* string (* the interface to add *)
| RemoveInterface of string option * string
| SplitMembers
(* type related *)
| AddReturnType of string
| AddTypeHintParameter of string
| OptionizeTypeParameter
| AddTypeMember of string
type position = {
file: Common.filename;
line: int;
col: int;
}
type refactoring = refactoring_kind * position option
val load: Common.filename -> refactoring list