Skip to content

Commit 7dc253a

Browse files
committed
strip new lines
1 parent 5108323 commit 7dc253a

File tree

2 files changed

+391
-388
lines changed

2 files changed

+391
-388
lines changed

jscomp/syntax/external_ffi_types.mli

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
2-
*
2+
*
33
* This program is free software: you can redistribute it and/or modify
44
* it under the terms of the GNU Lesser General Public License as published by
55
* the Free Software Foundation, either version 3 of the License, or
@@ -17,119 +17,120 @@
1717
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1818
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1919
* GNU Lesser General Public License for more details.
20-
*
20+
*
2121
* You should have received a copy of the GNU Lesser General Public License
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

25-
type module_bind_name =
26-
| Phint_name of string
25+
type module_bind_name =
26+
| Phint_name of string
2727
(* explicit hint name *)
2828
| Phint_nothing
2929

30-
type external_module_name =
31-
{ bundle : string ;
30+
type external_module_name =
31+
{ bundle : string ;
3232
module_bind_name : module_bind_name
3333
}
3434

35-
type pipe = bool
36-
type js_call = {
35+
type pipe = bool
36+
type js_call = {
3737
name : string;
3838
external_module_name : external_module_name option;
3939
splice : bool ;
40-
scopes : string list
40+
scopes : string list
4141
}
4242

43-
type js_send = {
43+
type js_send = {
4444
name : string ;
45-
splice : bool ;
45+
splice : bool ;
4646
pipe : pipe ;
47-
js_send_scopes : string list;
47+
js_send_scopes : string list;
4848
} (* we know it is a js send, but what will happen if you pass an ocaml objct *)
4949

5050
type js_global_val = {
51-
name : string ;
51+
name : string ;
5252
external_module_name : external_module_name option;
5353
scopes : string list
5454
}
5555

5656
type js_new_val = {
57-
name : string ;
57+
name : string ;
5858
external_module_name : external_module_name option;
5959
splice : bool ;
6060
scopes : string list;
6161
}
6262

63-
type js_module_as_fn =
63+
type js_module_as_fn =
6464
{ external_module_name : external_module_name;
65-
splice : bool
65+
splice : bool
6666
}
6767

6868
type arg_type = External_arg_spec.attr
6969

70-
type arg_label = External_arg_spec.label
70+
type arg_label = External_arg_spec.label
7171

7272

7373
type obj_create = External_arg_spec.t list
7474

75-
type js_get =
75+
type js_get =
7676
{ js_get_name : string ;
7777
js_get_scopes : string list;
7878
}
7979

80-
type js_set =
80+
type js_set =
8181
{ js_set_name : string ;
82-
js_set_scopes : string list
82+
js_set_scopes : string list
8383
}
8484

8585

8686
type js_get_index = {
87-
js_get_index_scopes : string list
87+
js_get_index_scopes : string list
8888
}
8989

9090
type js_set_index = {
91-
js_set_index_scopes : string list
92-
}
91+
js_set_index_scopes : string list
92+
}
9393

9494

9595

96-
type attr =
97-
| Js_global of js_global_val
96+
type attr =
97+
| Js_global of js_global_val
9898
| Js_module_as_var of external_module_name
9999
| Js_module_as_fn of js_module_as_fn
100-
| Js_module_as_class of external_module_name
101-
| Js_call of js_call
100+
| Js_module_as_class of external_module_name
101+
| Js_call of js_call
102102
| Js_send of js_send
103103
| Js_new of js_new_val
104104
| Js_set of js_set
105105
| Js_get of js_get
106106
| Js_get_index of js_get_index
107-
| Js_set_index of js_set_index
107+
| Js_set_index of js_set_index
108108

109-
type return_wrapper =
110-
| Return_unset
109+
type return_wrapper =
110+
| Return_unset
111111
| Return_identity
112-
| Return_undefined_to_opt
112+
| Return_undefined_to_opt
113113
| Return_null_to_opt
114114
| Return_null_undefined_to_opt
115115
| Return_to_ocaml_bool
116-
| Return_replaced_with_unit
116+
| Return_replaced_with_unit
117117

118-
type t =
119-
| Ffi_bs of
118+
type t =
119+
| Ffi_bs of
120120
External_arg_spec.t list *
121-
return_wrapper * attr
121+
return_wrapper *
122+
attr
122123
| Ffi_obj_create of obj_create
123-
| Ffi_normal
124+
| Ffi_normal
124125
(* When it's normal, it is handled as normal c functional ffi call *)
125126

126127

127128
val name_of_ffi : attr -> string
128129

129-
val check_ffi : ?loc:Location.t -> attr -> unit
130+
val check_ffi : ?loc:Location.t -> attr -> unit
130131

131-
val to_string : t -> string
132+
val to_string : t -> string
132133

133134
(** Note *)
134-
val from_string : string -> t
135+
val from_string : string -> t
135136

0 commit comments

Comments
 (0)