package melange

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

Install

Dune Dependency

Authors

Maintainers

Sources

melange-5.1.0-51.tbz
sha256=0c817cbd92c42ac15fea6e6d975fd3eb3aa31f22b10cca22b3687ffed0e1b092
sha512=a0b85e22b106df7e9448d12977b740f735445640d4a9368591bdf5e67a95b93d5aacf957086c524549e3402faf0916c3f501ba43a631c74d8af4a7c986842c09

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

Module Statement.ImportDeclaration

type import_kind =
  1. | ImportType
  2. | ImportTypeof
  3. | ImportValue
and ('M, 'T) specifier =
  1. | ImportNamedSpecifiers of ('M, 'T) named_specifier list
  2. | ImportNamespaceSpecifier of 'M * ('M, 'T) Identifier.t
and ('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;
}
and ('M, 'T) default_identifier = {
  1. identifier : ('M, 'T) Identifier.t;
  2. remote_default_name_def_loc : 'M option;
}
and ('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;
}
OCaml

Innovation. Community. Security.