package js_of_ocaml-webidl

  1. Overview
  2. Docs
module Syntax = Webidl_syntax
type attribute = {
  1. is_static : bool;
  2. is_readonly : bool;
  3. is_inherit : bool;
  4. type_with_ext : Syntax.Ast.type_with_ext;
  5. name : string;
}
val attribute_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> attribute
val sexp_of_attribute : attribute -> Ppx_sexp_conv_lib.Sexp.t
type special = [
  1. | `Getter
  2. | `Setter
  3. | `Deleter
  4. | `Legacycaller
]
val __special_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> special
val special_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> special
val sexp_of_special : special -> Ppx_sexp_conv_lib.Sexp.t
type operation = {
  1. specials : special list;
  2. is_static : bool;
  3. return_type : Syntax.Ast.return_type;
  4. ident : string option;
  5. arguments : (Syntax.Ast.extends * Syntax.Ast.argument) list;
}
val operation_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> operation
val sexp_of_operation : operation -> Ppx_sexp_conv_lib.Sexp.t
type dictionary_member = {
  1. is_required : bool;
  2. type_with_ext : Syntax.Ast.type_with_ext;
  3. ident : string;
  4. default : Syntax.Ast.default_value option;
}
val dictionary_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> dictionary_member
val sexp_of_dictionary_member : dictionary_member -> Ppx_sexp_conv_lib.Sexp.t
type dictionary = {
  1. ident : string;
  2. inheritance : string option;
  3. dictionary_members : (Syntax.Ast.extends * dictionary_member) list;
}
val dictionary_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> dictionary
val sexp_of_dictionary : dictionary -> Ppx_sexp_conv_lib.Sexp.t
type operation_or_attribute = [
  1. | `Operation of operation
  2. | `Attribute of attribute
]
val __operation_or_attribute_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> operation_or_attribute
val operation_or_attribute_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> operation_or_attribute
val sexp_of_operation_or_attribute : operation_or_attribute -> Ppx_sexp_conv_lib.Sexp.t
type namespace_member = operation_or_attribute
val namespace_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> namespace_member
val sexp_of_namespace_member : namespace_member -> Ppx_sexp_conv_lib.Sexp.t
type namespace = {
  1. ident : string;
  2. namespace_members : (Syntax.Ast.extends * namespace_member) list;
}
val namespace_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> namespace
val sexp_of_namespace : namespace -> Ppx_sexp_conv_lib.Sexp.t
type pattern_list = [
  1. | `Getter
  2. | `Identifiers of string list
  3. | `None
]
val __pattern_list_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> pattern_list
val pattern_list_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> pattern_list
val sexp_of_pattern_list : pattern_list -> Ppx_sexp_conv_lib.Sexp.t
type maplike = {
  1. is_readonly : bool;
  2. key_type : Syntax.Ast.type_with_ext;
  3. value_type : Syntax.Ast.type_with_ext;
}
val maplike_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> maplike
val sexp_of_maplike : maplike -> Ppx_sexp_conv_lib.Sexp.t
type setlike = {
  1. is_readonly : bool;
  2. key_type : Syntax.Ast.type_with_ext;
}
val setlike_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> setlike
val sexp_of_setlike : setlike -> Ppx_sexp_conv_lib.Sexp.t
type interface_member = [
  1. | `Const of Syntax.Ast.const_type * string * Syntax.Ast.const_value
  2. | `Operation of operation
  3. | `Stringifier of [ operation_or_attribute | `None ]
  4. | `Iterable of Syntax.Ast.type_with_ext * Syntax.Ast.type_with_ext option
  5. | `Attribute of attribute
  6. | `Maplike of maplike
  7. | `Setlike of setlike
]
val __interface_member_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> interface_member
val interface_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> interface_member
val sexp_of_interface_member : interface_member -> Ppx_sexp_conv_lib.Sexp.t
type interface = {
  1. ident : string;
  2. inheritance : string option;
  3. interface_members : (Syntax.Ast.extends * interface_member) list;
}
val interface_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> interface
val sexp_of_interface : interface -> Ppx_sexp_conv_lib.Sexp.t
type mixin_member = [
  1. | `Const of Syntax.Ast.const_type * string * Syntax.Ast.const_value
  2. | `Operation of operation
  3. | `Stringifier of [ operation_or_attribute | `None ]
  4. | `Attribute of attribute
  5. | `Maplike of maplike
  6. | `Setlike of setlike
]
val __mixin_member_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> mixin_member
val mixin_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> mixin_member
val sexp_of_mixin_member : mixin_member -> Ppx_sexp_conv_lib.Sexp.t
type mixin = {
  1. ident : string;
  2. mixin_members : (Syntax.Ast.extends * mixin_member) list;
}
val mixin_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> mixin
val sexp_of_mixin : mixin -> Ppx_sexp_conv_lib.Sexp.t
type partial = [
  1. | `Interface of interface
  2. | `Mixin of mixin
  3. | `Dictionary of dictionary
  4. | `Namespace of namespace
]
val __partial_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> partial
val partial_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> partial
val sexp_of_partial : partial -> Ppx_sexp_conv_lib.Sexp.t
type callback = [
  1. | `Operation of operation
  2. | `Interface of interface
]
val __callback_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> callback
val callback_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> callback
val sexp_of_callback : callback -> Ppx_sexp_conv_lib.Sexp.t
type definition = [
  1. | `Callback of callback
  2. | `Interface of interface
  3. | `Mixin of mixin
  4. | `Namespace of namespace
  5. | `Partial of partial
  6. | `Dictionary of dictionary
  7. | `Enum of string * string list
  8. | `Typedef of Syntax.Ast.type_with_ext * string
  9. | `Implements of string * string
  10. | `Includes of string * string
]
val __definition_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t -> definition
val definition_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> definition
val sexp_of_definition : definition -> Ppx_sexp_conv_lib.Sexp.t
type definitions = (Syntax.Ast.extends * definition) list
val definitions_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> definitions
val sexp_of_definitions : definitions -> Ppx_sexp_conv_lib.Sexp.t
OCaml

Innovation. Community. Security.