Js_of_ocaml_compiler.Linker
type fragment_ = {
provides : (Parse_info.t option * string * Primitive.kind * Primitive.kind_arg list option) option; |
requires : string list; |
version_constraint : ((int -> int -> bool) * string) list list; |
weakdef : bool; |
always : bool; |
code : Javascript.program; |
ignore : [ `No | `Because of Primitive.condition ]; |
}
val parse_file : string -> fragment list
val parse_string : string -> fragment list
val parse_builtin : Builtins.File.t -> fragment list
val load_fragment : filename:string -> fragment -> unit
val init : unit -> state
val resolve_deps : ?linkall:bool -> state -> Stdlib.StringSet.t -> state * Stdlib.StringSet.t
val link : Javascript.program -> state -> output
val get_provided : unit -> Stdlib.StringSet.t
val all : state -> string list