flitter/h_program-lang/refactoring_code.mli
Joey Yakimowich-Payne fa600b98f7 Add poc files
2018-05-26 10:55:38 +09:00

26 lines
599 B
OCaml

(* 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