|
[ |
|
{ |
|
"psig_desc": [ |
|
"Psig_attribute", |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.text" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" Lwt switches ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 162 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 181 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 162 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 181 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 162 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 181 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 162 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 181 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 162 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 6, |
|
"pos_bol": 162, |
|
"pos_cnum": 181 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_attribute", |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.text" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" Switch has two goals:\n\n - being able to free multiple resources at the same time,\n - offer a better alternative than always returning an id to free\n some resource.\n\n For example, consider the following interface:\n\n {[\n type id\n\n val free : id -> unit Lwt.t\n\n val f : unit -> id Lwt.t\n val g : unit -> id Lwt.t\n val h : unit -> id Lwt.t\n ]}\n\n Now you want to call [f], [g] and [h] in parallel. You can\n simply do:\n\n {[\n lwt idf = f () and idg = g () and idh = h () in\n ...\n ]}\n\n However, one may want to handle possible failures of [f ()], [g ()]\n and [h ()], and disable all allocated resources if one of\n these three threads fails. This may be hard since you have to\n remember which one failed and which one returned correctly.\n\n Now if we change the interface a little bit:\n\n {[\n val f : ?switch : Lwt_switch.t -> unit -> id Lwt.t\n val g : ?switch : Lwt_switch.t -> unit -> id Lwt.t\n val h : ?switch : Lwt_switch.t -> unit -> id Lwt.t\n ]}\n\n the code becomes:\n\n {[\n Lwt_switch.with_switch (fun switch ->\n lwt idf = f ~switch ()\n and idg = g ~switch ()\n and idh = h ~switch () in\n ...\n )\n ]}\n", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 8, |
|
"pos_bol": 183, |
|
"pos_cnum": 183 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 57, |
|
"pos_bol": 1429, |
|
"pos_cnum": 1431 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 8, |
|
"pos_bol": 183, |
|
"pos_cnum": 183 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 57, |
|
"pos_bol": 1429, |
|
"pos_cnum": 1431 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 8, |
|
"pos_bol": 183, |
|
"pos_cnum": 183 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 57, |
|
"pos_bol": 1429, |
|
"pos_cnum": 1431 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 8, |
|
"pos_bol": 183, |
|
"pos_cnum": 183 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 57, |
|
"pos_bol": 1429, |
|
"pos_cnum": 1431 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 8, |
|
"pos_bol": 183, |
|
"pos_cnum": 183 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 57, |
|
"pos_bol": 1429, |
|
"pos_cnum": 1431 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_type", |
|
[ "Recursive" ], |
|
[ |
|
{ |
|
"ptype_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 59, |
|
"pos_bol": 1433, |
|
"pos_cnum": 1438 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 59, |
|
"pos_bol": 1433, |
|
"pos_cnum": 1439 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "t" |
|
}, |
|
"ptype_params": [], |
|
"ptype_cstrs": [], |
|
"ptype_kind": [ "Ptype_abstract" ], |
|
"ptype_private": [ "Public" ], |
|
"ptype_manifest": null, |
|
"ptype_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" Type of switches. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1442 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1466 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1442 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1466 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1442 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1466 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1442 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 60, |
|
"pos_bol": 1440, |
|
"pos_cnum": 1466 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"ptype_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 59, |
|
"pos_bol": 1433, |
|
"pos_cnum": 1433 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 59, |
|
"pos_bol": 1433, |
|
"pos_cnum": 1439 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 59, |
|
"pos_bol": 1433, |
|
"pos_cnum": 1433 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 59, |
|
"pos_bol": 1433, |
|
"pos_cnum": 1439 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_value", |
|
{ |
|
"pval_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1472 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1478 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "create" |
|
}, |
|
"pval_type": { |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1481 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1485 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "t", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1489 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1490 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1481 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1490 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
"pval_prim": [], |
|
"pval_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" [create ()] creates a new switch. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1493 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1533 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1493 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1533 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1493 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1533 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1493 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 63, |
|
"pos_bol": 1491, |
|
"pos_cnum": 1533 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"pval_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1468 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1490 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1468 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 62, |
|
"pos_bol": 1468, |
|
"pos_cnum": 1490 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_value", |
|
{ |
|
"pval_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1539 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1550 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "with_switch" |
|
}, |
|
"pval_type": { |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "t", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1554 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1555 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"Lwtt", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_var", "a" ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1559 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1561 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1559 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1567 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1554 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1567 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"Lwtt", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_var", "a" ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1572 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1574 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1572 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1580 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1553 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1580 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
"pval_prim": [], |
|
"pval_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" [with_switch fn] is [fn switch], where [switch] is a fresh switch\n that is turned off when the callback thread finishes (whether it\n succeeds or fails).\n\n @since 2.6.0 ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 66, |
|
"pos_bol": 1581, |
|
"pos_cnum": 1583 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 70, |
|
"pos_bol": 1751, |
|
"pos_cnum": 1772 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 66, |
|
"pos_bol": 1581, |
|
"pos_cnum": 1583 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 70, |
|
"pos_bol": 1751, |
|
"pos_cnum": 1772 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 66, |
|
"pos_bol": 1581, |
|
"pos_cnum": 1583 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 70, |
|
"pos_bol": 1751, |
|
"pos_cnum": 1772 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 66, |
|
"pos_bol": 1581, |
|
"pos_cnum": 1583 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 70, |
|
"pos_bol": 1751, |
|
"pos_cnum": 1772 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"pval_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1535 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1580 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1535 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 65, |
|
"pos_bol": 1535, |
|
"pos_cnum": 1580 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_value", |
|
{ |
|
"pval_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1778 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1783 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "is_on" |
|
}, |
|
"pval_type": { |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "t", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1786 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1787 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "bool", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1791 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1795 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1786 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1795 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
"pval_prim": [], |
|
"pval_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" [is_on switch] returns [true] if the switch is currently on, and\n [false] otherwise. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 73, |
|
"pos_bol": 1796, |
|
"pos_cnum": 1798 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 74, |
|
"pos_bol": 1867, |
|
"pos_cnum": 1894 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 73, |
|
"pos_bol": 1796, |
|
"pos_cnum": 1798 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 74, |
|
"pos_bol": 1867, |
|
"pos_cnum": 1894 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 73, |
|
"pos_bol": 1796, |
|
"pos_cnum": 1798 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 74, |
|
"pos_bol": 1867, |
|
"pos_cnum": 1894 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 73, |
|
"pos_bol": 1796, |
|
"pos_cnum": 1798 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 74, |
|
"pos_bol": 1867, |
|
"pos_cnum": 1894 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"pval_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1774 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1795 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1774 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 72, |
|
"pos_bol": 1774, |
|
"pos_cnum": 1795 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_value", |
|
{ |
|
"pval_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1900 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1908 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "turn_off" |
|
}, |
|
"pval_type": { |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "t", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1911 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1912 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"Lwtt", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1916 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1920 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1916 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1926 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1911 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1926 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
"pval_prim": [], |
|
"pval_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" [turn_off switch] turns off the switch. It calls all registered\n hooks, waits for all of them to terminate, then returns. If\n one of the hooks failed, it will fail with the exception raised\n by the hook. If the switch is already off, it does nothing. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 77, |
|
"pos_bol": 1927, |
|
"pos_cnum": 1929 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 80, |
|
"pos_bol": 2133, |
|
"pos_cnum": 2201 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 77, |
|
"pos_bol": 1927, |
|
"pos_cnum": 1929 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 80, |
|
"pos_bol": 2133, |
|
"pos_cnum": 2201 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 77, |
|
"pos_bol": 1927, |
|
"pos_cnum": 1929 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 80, |
|
"pos_bol": 2133, |
|
"pos_cnum": 2201 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 77, |
|
"pos_bol": 1927, |
|
"pos_cnum": 1929 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 80, |
|
"pos_bol": 2133, |
|
"pos_cnum": 2201 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"pval_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1896 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1926 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1896 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 76, |
|
"pos_bol": 1896, |
|
"pos_cnum": 1926 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_exception", |
|
{ |
|
"ptyexn_constructor": { |
|
"pext_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 82, |
|
"pos_bol": 2203, |
|
"pos_cnum": 2213 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 82, |
|
"pos_bol": 2203, |
|
"pos_cnum": 2216 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "Off" |
|
}, |
|
"pext_kind": [ "Pext_decl", [], [ "Pcstr_tuple", [] ], null ], |
|
"pext_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 82, |
|
"pos_bol": 2203, |
|
"pos_cnum": 2203 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 82, |
|
"pos_bol": 2203, |
|
"pos_cnum": 2216 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pext_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" Exception raised when trying to add a hook to a switch that is\n already off. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 83, |
|
"pos_bol": 2217, |
|
"pos_cnum": 2219 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 84, |
|
"pos_bol": 2286, |
|
"pos_cnum": 2307 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 83, |
|
"pos_bol": 2217, |
|
"pos_cnum": 2219 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 84, |
|
"pos_bol": 2286, |
|
"pos_cnum": 2307 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 83, |
|
"pos_bol": 2217, |
|
"pos_cnum": 2219 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 84, |
|
"pos_bol": 2286, |
|
"pos_cnum": 2307 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 83, |
|
"pos_bol": 2217, |
|
"pos_cnum": 2219 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 84, |
|
"pos_bol": 2286, |
|
"pos_cnum": 2307 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
}, |
|
"ptyexn_loc": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"ptyexn_attributes": [] |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 82, |
|
"pos_bol": 2203, |
|
"pos_cnum": 2203 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 82, |
|
"pos_bol": 2203, |
|
"pos_cnum": 2216 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_value", |
|
{ |
|
"pval_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2313 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2318 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "check" |
|
}, |
|
"pval_type": { |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"option", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "t", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2321 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2322 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2321 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2329 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2333 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2337 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2321 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2337 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
"pval_prim": [], |
|
"pval_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" [check switch] does nothing if [switch] is [None] or contains an\n switch that is currently on, and raises {!Off} otherwise. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 87, |
|
"pos_bol": 2338, |
|
"pos_cnum": 2340 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 88, |
|
"pos_bol": 2409, |
|
"pos_cnum": 2475 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 87, |
|
"pos_bol": 2338, |
|
"pos_cnum": 2340 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 88, |
|
"pos_bol": 2409, |
|
"pos_cnum": 2475 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 87, |
|
"pos_bol": 2338, |
|
"pos_cnum": 2340 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 88, |
|
"pos_bol": 2409, |
|
"pos_cnum": 2475 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 87, |
|
"pos_bol": 2338, |
|
"pos_cnum": 2340 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 88, |
|
"pos_bol": 2409, |
|
"pos_cnum": 2475 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"pval_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2309 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2337 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2309 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 86, |
|
"pos_bol": 2309, |
|
"pos_cnum": 2337 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_value", |
|
{ |
|
"pval_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2481 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2489 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "add_hook" |
|
}, |
|
"pval_type": { |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"option", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "t", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2492 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2493 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2492 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2500 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2505 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2509 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"Lwtt", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2513 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2517 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2513 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2523 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2505 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2523 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2528 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2532 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2504 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2532 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2492 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2532 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
"pval_prim": [], |
|
"pval_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" [add_hook switch f] registers [f] so it will be called when\n {!turn_off} is invoked. It does nothing if [switch] is\n [None]. If [switch] contains an switch that is already off then\n {!Off} is raised. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 91, |
|
"pos_bol": 2533, |
|
"pos_cnum": 2535 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 94, |
|
"pos_bol": 2730, |
|
"pos_cnum": 2756 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 91, |
|
"pos_bol": 2533, |
|
"pos_cnum": 2535 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 94, |
|
"pos_bol": 2730, |
|
"pos_cnum": 2756 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 91, |
|
"pos_bol": 2533, |
|
"pos_cnum": 2535 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 94, |
|
"pos_bol": 2730, |
|
"pos_cnum": 2756 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 91, |
|
"pos_bol": 2533, |
|
"pos_cnum": 2535 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 94, |
|
"pos_bol": 2730, |
|
"pos_cnum": 2756 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"pval_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2477 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2532 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2477 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 90, |
|
"pos_bol": 2477, |
|
"pos_cnum": 2532 |
|
}, |
|
"loc_ghost": false |
|
} |
|
}, |
|
{ |
|
"psig_desc": [ |
|
"Psig_value", |
|
{ |
|
"pval_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2762 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2778 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"txt2": "add_hook_or_exec" |
|
}, |
|
"pval_type": { |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"option", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "t", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2781 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2782 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2781 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2789 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_arrow", |
|
[ "Nolabel" ], |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2794 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2798 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"Lwtt", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2802 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2806 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2802 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2812 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2794 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2812 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
{ |
|
"ptyp_desc": [ |
|
"Ptyp_constr", |
|
"Lwtt", |
|
[ |
|
{ |
|
"ptyp_desc": [ "Ptyp_constr", "unit", [] ], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2817 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2821 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
] |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2817 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2827 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2793 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2827 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
} |
|
], |
|
"ptyp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2781 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2827 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"ptyp_loc_stack": [], |
|
"ptyp_attributes": [] |
|
}, |
|
"pval_prim": [], |
|
"pval_attributes": [ |
|
{ |
|
"attr_name": { |
|
"loc2": { |
|
"loc_start": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "_none_", |
|
"pos_lnum": 0, |
|
"pos_bol": 0, |
|
"pos_cnum": -1 |
|
}, |
|
"loc_ghost": true |
|
}, |
|
"txt2": "ocaml.doc" |
|
}, |
|
"attr_payload": [ |
|
"PStr", |
|
[ |
|
{ |
|
"pstr_desc": [ |
|
"Pstr_eval", |
|
{ |
|
"pexp_desc": [ |
|
"Pexp_constant", |
|
[ |
|
"Pconst_string", |
|
" [add_hook_or_exec switch f] is the same as {!add_hook} except\n that if the switch is already off, [f] is called immediately. ", |
|
{ |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 97, |
|
"pos_bol": 2828, |
|
"pos_cnum": 2830 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 98, |
|
"pos_bol": 2896, |
|
"pos_cnum": 2966 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
null |
|
] |
|
], |
|
"pexp_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 97, |
|
"pos_bol": 2828, |
|
"pos_cnum": 2830 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 98, |
|
"pos_bol": 2896, |
|
"pos_cnum": 2966 |
|
}, |
|
"loc_ghost": false |
|
}, |
|
"pexp_loc_stack": [], |
|
"pexp_attributes": [] |
|
}, |
|
[] |
|
], |
|
"pstr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 97, |
|
"pos_bol": 2828, |
|
"pos_cnum": 2830 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 98, |
|
"pos_bol": 2896, |
|
"pos_cnum": 2966 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
], |
|
"attr_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 97, |
|
"pos_bol": 2828, |
|
"pos_cnum": 2830 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 98, |
|
"pos_bol": 2896, |
|
"pos_cnum": 2966 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"pval_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2758 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2827 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
], |
|
"psig_loc": { |
|
"loc_start": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2758 |
|
}, |
|
"loc_end": { |
|
"pos_fname": "./_opam/lib/lwt/lwt_switch.mli", |
|
"pos_lnum": 96, |
|
"pos_bol": 2758, |
|
"pos_cnum": 2827 |
|
}, |
|
"loc_ghost": false |
|
} |
|
} |
|
] |
|
|