Add poc files
This commit is contained in:
parent
30da2412e3
commit
fa600b98f7
220 changed files with 45679 additions and 0 deletions
26
h_program-lang/refactoring_code.mli
Normal file
26
h_program-lang/refactoring_code.mli
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue