Add type annotations to `clientConnect.ml`
[hiphop-php.git] / hphp / hack / src / server / serverRefactorTypes.ml
blobaf29140e3bbd4167be524f6db6d4dbbc492e3038
1 (**
2 * Copyright (c) 2016, Facebook, Inc.
3 * All rights reserved.
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the "hack" directory of this source tree.
8 *)
10 type patch =
11 | Insert of insert_patch
12 | Remove of Pos.absolute
13 | Replace of insert_patch
15 and insert_patch = {
16 pos: Pos.absolute;
17 text: string;
20 type action =
21 | ClassRename of string * string (* old_name * new_name *)
22 | ClassConstRename of string * string * string
23 (* class_name * old_name * new_name *)
24 | MethodRename of {
25 filename: string option;
26 definition: string SymbolDefinition.t option;
27 class_name: string;
28 old_name: string;
29 new_name: string;
31 | FunctionRename of {
32 filename: string option;
33 definition: string SymbolDefinition.t option;
34 old_name: string;
35 new_name: string;
37 | LocalVarRename of {
38 filename: Relative_path.t;
39 file_content: string;
40 line: int;
41 char: int;
42 new_name: string;
45 type deprecated_wrapper_function_ref =
46 | DeprecatedStaticMethodRef
47 | DeprecatedNonStaticMethodRef
48 | DeprecatedFunctionRef