package melange

  1. Overview
  2. Docs
Toolchain to produce JS from Reason/OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

melange-7.0.0-414.tbz
sha256=2d35ea2a1fc8aae9a76b81154626e91dd8c93773b1829cbce7081911cd47f43f
sha512=09e1c3f6ef9572e94882abbce5df7e348c99f0452d23ea3fe75ad3d7df0201adfcb22139a5876e495121eb08c97340a5935633cb1a4b8f019ddf46c5a5258f9a

doc/melange.js_parser/Js_parser/Flow_ast/Statement/ImportDeclaration/index.html

Module Statement.ImportDeclarationSource

Sourcetype import_kind =
  1. | ImportType
  2. | ImportTypeof
  3. | ImportValue
Sourceand ('M, 'T) specifier =
  1. | ImportNamedSpecifiers of ('M, 'T) named_specifier list
  2. | ImportNamespaceSpecifier of 'M * ('M, 'T) Identifier.t
Sourceand ('M, 'T) named_specifier = {
  1. kind : import_kind option;
  2. local : ('M, 'T) Identifier.t option;
  3. remote : ('M, 'T) Identifier.t;
  4. remote_name_def_loc : 'M option;
}
Sourceand ('M, 'T) default_identifier = {
  1. identifier : ('M, 'T) Identifier.t;
  2. remote_default_name_def_loc : 'M option;
}
Sourceand ('M, 'T) t = {
  1. import_kind : import_kind;
  2. source : 'T * 'M StringLiteral.t;
  3. default : ('M, 'T) default_identifier option;
  4. specifiers : ('M, 'T) specifier option;
  5. comments : ('M, unit) Syntax.t option;
}
Sourceval pp_import_kind : Format.formatter -> import_kind -> unit
Sourceval show_import_kind : import_kind -> string
Sourceval pp_specifier : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> Format.formatter -> ('M, 'T) specifier -> unit
Sourceval show_specifier : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> ('M, 'T) specifier -> string
Sourceval pp_named_specifier : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> Format.formatter -> ('M, 'T) named_specifier -> unit
Sourceval show_named_specifier : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> ('M, 'T) named_specifier -> string
Sourceval pp_default_identifier : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> Format.formatter -> ('M, 'T) default_identifier -> unit
Sourceval show_default_identifier : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> ('M, 'T) default_identifier -> string
Sourceval pp : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> Format.formatter -> ('M, 'T) t -> unit
Sourceval show : (Format.formatter -> 'M -> unit) -> (Format.formatter -> 'T -> unit) -> ('M, 'T) t -> string