|
1 | 1 | (* Copyright (C) 2015-2016 Bloomberg Finance L.P. |
2 | | - * |
| 2 | + * |
3 | 3 | * This program is free software: you can redistribute it and/or modify |
4 | 4 | * it under the terms of the GNU Lesser General Public License as published by |
5 | 5 | * the Free Software Foundation, either version 3 of the License, or |
|
17 | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | 19 | * GNU Lesser General Public License for more details. |
20 | | - * |
| 20 | + * |
21 | 21 | * You should have received a copy of the GNU Lesser General Public License |
22 | 22 | * along with this program; if not, write to the Free Software |
23 | 23 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) |
24 | 24 | type attr = Parsetree.attribute |
25 | | -type t = attr list |
| 25 | +type t = attr list |
26 | 26 |
|
27 | | -type ('a,'b) st = |
28 | | - { get : 'a option ; |
| 27 | +type ('a,'b) st = |
| 28 | + { get : 'a option ; |
29 | 29 | set : 'b option } |
30 | 30 |
|
31 | | -val process_method_attributes_rev : |
| 31 | +val process_method_attributes_rev : |
32 | 32 | t -> |
33 | | - (bool * bool , [`Get | `No_get ]) st * t |
| 33 | + (bool * bool , [`Get | `No_get ]) st * t |
34 | 34 |
|
35 | | -val process_attributes_rev : |
36 | | - t -> [ `Meth_callback | `Nothing | `Uncurry | `Method ] * t |
| 35 | +val process_attributes_rev : |
| 36 | + t -> [ `Meth_callback | `Nothing | `Uncurry | `Method ] * t |
37 | 37 |
|
38 | 38 | val process_pexp_fun_attributes_rev : |
39 | | - t -> [ `Nothing | `Exn ] * t |
40 | | -val process_bs : |
41 | | - t -> [ `Nothing | `Has] * t |
| 39 | + t -> [ `Nothing | `Exn ] * t |
| 40 | +val process_bs : |
| 41 | + t -> [ `Nothing | `Has] * t |
42 | 42 |
|
43 | | -val process_external : t -> bool |
| 43 | +val process_external : t -> bool |
44 | 44 |
|
45 | 45 | type derive_attr = { |
46 | 46 | explict_nonrec : bool; |
47 | | - bs_deriving : Ast_payload.action list option |
| 47 | + bs_deriving : Ast_payload.action list option |
48 | 48 | } |
49 | 49 | val process_bs_string_int_unwrap_uncurry : |
50 | 50 | t -> [`Nothing | `String | `Int | `Ignore | `Unwrap | `Uncurry of int option ] * t |
51 | 51 |
|
52 | 52 |
|
53 | 53 | val iter_process_bs_string_as : |
54 | | - t -> string option |
| 54 | + t -> string option |
55 | 55 |
|
56 | | -val iter_process_bs_int_as : |
57 | | - t -> int option |
| 56 | +val has_bs_optional : |
| 57 | + t -> bool |
58 | 58 |
|
| 59 | +val iter_process_bs_int_as : |
| 60 | + t -> int option |
59 | 61 |
|
60 | | -val iter_process_bs_string_or_int_as : |
| 62 | + |
| 63 | +val iter_process_bs_string_or_int_as : |
61 | 64 | t -> |
62 | | - [ `Int of int |
| 65 | + [ `Int of int |
63 | 66 | | `Str of string |
64 | | - | `Json_str of string ] option |
65 | | - |
| 67 | + | `Json_str of string ] option |
| 68 | + |
66 | 69 |
|
67 | | -val process_derive_type : |
68 | | - t -> derive_attr * t |
| 70 | +val process_derive_type : |
| 71 | + t -> derive_attr * t |
69 | 72 |
|
70 | | -val iter_process_derive_type : |
71 | | - t -> derive_attr |
| 73 | +val iter_process_derive_type : |
| 74 | + t -> derive_attr |
72 | 75 |
|
73 | 76 |
|
74 | | -val bs : attr |
| 77 | +val bs : attr |
75 | 78 | val is_bs : attr -> bool |
76 | 79 | val bs_this : attr |
77 | 80 | val bs_method : attr |
78 | | -val bs_obj : attr |
| 81 | +val bs_obj : attr |
79 | 82 |
|
80 | 83 |
|
81 | | -val bs_get : attr |
| 84 | +val bs_get : attr |
82 | 85 | val bs_set : attr |
83 | | -val bs_return_undefined : attr |
| 86 | +val bs_return_undefined : attr |
0 commit comments