package ast_generic

  1. Overview
  2. Docs
Abstract Syntax Tree (AST) supporting 31 programming languages

Install

Dune Dependency

Authors

Maintainers

Sources

semgrep-full-1.12.0.tar.gz
md5=d72b17df65c5cea30701cdf25f186bca
sha512=b135affadcdeb892352ec269a8761e41d2b34383ee839b83855f9604983eae324732b76f1b2b8b305dfc06f1f8863dd32afe83528bf605daa910a3fc107474c5

doc/ast_generic/Ast_generic_v1_j/index.html

Module Ast_generic_v1_jSource

Sourcetype token_location = Ast_generic_v1_t.token_location = {
  1. str : string;
  2. charpos : int;
  3. line : int;
  4. column : int;
  5. filename : string;
}
Sourcetype 'a bracket = 'a Ast_generic_v1_t.bracket
Sourcetype 'a wrap_ = 'a Ast_generic_v1_t.wrap_
Sourceand class_definition = Ast_generic_v1_t.class_definition = {
  1. ckind : class_kind wrap_;
  2. cextends : class_parent list;
  3. cimplements : type_ list;
  4. cmixins : type_ list;
  5. cparams : parameters;
  6. cbody : field list bracket;
}
Sourceand entity = Ast_generic_v1_t.entity = {
  1. name : entity_name;
  2. attrs : attribute list;
  3. tparams : type_parameters;
}
Sourceand enum_entry_definition = Ast_generic_v1_t.enum_entry_definition = {
  1. ee_args : arguments option;
  2. ee_body : field list bracket option;
}
Sourceand function_definition = Ast_generic_v1_t.function_definition = {
  1. fkind : function_kind wrap_;
  2. fparams : parameters;
  3. frettype : type_ option;
  4. fbody : function_body;
}
Sourceand id_info = Ast_generic_v1_t.id_info = {
  1. id_resolved : resolved_name option;
  2. id_type : type_ option;
  3. id_svalue : svalue option;
}
Sourceand macro_definition = Ast_generic_v1_t.macro_definition = {
  1. macroparams : ident list;
  2. macrobody : any list;
}
Sourceand parameter_classic = Ast_generic_v1_t.parameter_classic = {
  1. pname : ident option;
  2. ptype : type_ option;
  3. pdefault : expr option;
  4. pattrs : attribute list;
  5. pinfo : id_info;
}
Sourceand qualified_info = Ast_generic_v1_t.qualified_info = {
  1. name_last : ident * type_arguments option;
  2. name_middle : qualifier option;
  3. name_top : tok option;
  4. name_info : id_info;
}
Sourceand type_parameter_classic = Ast_generic_v1_t.type_parameter_classic = {
  1. tp_id : ident;
  2. tp_attrs : attribute list;
  3. tp_bounds : type_ list;
  4. tp_default : type_ option;
  5. tp_variance : variance wrap_ option;
}
Sourceand variable_definition = Ast_generic_v1_t.variable_definition = {
  1. vinit : expr option;
  2. vtype : type_ option;
}
Sourceand xml = Ast_generic_v1_t.xml = {
  1. xml_kind : xml_kind;
  2. xml_attrs : xml_attribute list;
  3. xml_body : xml_body list;
}
Sourceval write_class_kind : Buffer.t -> class_kind -> unit

Output a JSON value of type class_kind.

Sourceval string_of_class_kind : ?len:int -> class_kind -> string

Serialize a value of type class_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type class_kind.

Sourceval class_kind_of_string : string -> class_kind

Deserialize JSON data of type class_kind.

Sourceval write_concat_string_kind : Buffer.t -> concat_string_kind -> unit

Output a JSON value of type concat_string_kind.

Sourceval string_of_concat_string_kind : ?len:int -> concat_string_kind -> string

Serialize a value of type concat_string_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type concat_string_kind.

Sourceval concat_string_kind_of_string : string -> concat_string_kind

Deserialize JSON data of type concat_string_kind.

Sourceval write_const_type : Buffer.t -> const_type -> unit

Output a JSON value of type const_type.

Sourceval string_of_const_type : ?len:int -> const_type -> string

Serialize a value of type const_type into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type const_type.

Sourceval const_type_of_string : string -> const_type

Deserialize JSON data of type const_type.

Sourceval write_container_operator : Buffer.t -> container_operator -> unit

Output a JSON value of type container_operator.

Sourceval string_of_container_operator : ?len:int -> container_operator -> string

Serialize a value of type container_operator into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type container_operator.

Sourceval container_operator_of_string : string -> container_operator

Deserialize JSON data of type container_operator.

Sourceval write_function_kind : Buffer.t -> function_kind -> unit

Output a JSON value of type function_kind.

Sourceval string_of_function_kind : ?len:int -> function_kind -> string

Serialize a value of type function_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type function_kind.

Sourceval function_kind_of_string : string -> function_kind

Deserialize JSON data of type function_kind.

Sourceval write_incr_decr : Buffer.t -> incr_decr -> unit

Output a JSON value of type incr_decr.

Sourceval string_of_incr_decr : ?len:int -> incr_decr -> string

Serialize a value of type incr_decr into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type incr_decr.

Sourceval incr_decr_of_string : string -> incr_decr

Deserialize JSON data of type incr_decr.

Sourceval write_keyword_attribute : Buffer.t -> keyword_attribute -> unit

Output a JSON value of type keyword_attribute.

Sourceval string_of_keyword_attribute : ?len:int -> keyword_attribute -> string

Serialize a value of type keyword_attribute into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type keyword_attribute.

Sourceval keyword_attribute_of_string : string -> keyword_attribute

Deserialize JSON data of type keyword_attribute.

Sourceval write_operator : Buffer.t -> operator -> unit

Output a JSON value of type operator.

Sourceval string_of_operator : ?len:int -> operator -> string

Serialize a value of type operator into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type operator.

Sourceval operator_of_string : string -> operator

Deserialize JSON data of type operator.

Sourceval write_prefix_postfix : Buffer.t -> prefix_postfix -> unit

Output a JSON value of type prefix_postfix.

Sourceval string_of_prefix_postfix : ?len:int -> prefix_postfix -> string

Serialize a value of type prefix_postfix into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type prefix_postfix.

Sourceval prefix_postfix_of_string : string -> prefix_postfix

Deserialize JSON data of type prefix_postfix.

Sourceval write_sid : Buffer.t -> sid -> unit

Output a JSON value of type sid.

Sourceval string_of_sid : ?len:int -> sid -> string

Serialize a value of type sid into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type sid.

Sourceval sid_of_string : string -> sid

Deserialize JSON data of type sid.

Sourceval write_special : Buffer.t -> special -> unit

Output a JSON value of type special.

Sourceval string_of_special : ?len:int -> special -> string

Serialize a value of type special into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type special.

Sourceval special_of_string : string -> special

Deserialize JSON data of type special.

Sourceval write_token_location : Buffer.t -> token_location -> unit

Output a JSON value of type token_location.

Sourceval string_of_token_location : ?len:int -> token_location -> string

Serialize a value of type token_location into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type token_location.

Sourceval token_location_of_string : string -> token_location

Deserialize JSON data of type token_location.

Sourceval write_token : Buffer.t -> token -> unit

Output a JSON value of type token.

Sourceval string_of_token : ?len:int -> token -> string

Serialize a value of type token into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type token.

Sourceval token_of_string : string -> token

Deserialize JSON data of type token.

Sourceval write_tok : Buffer.t -> tok -> unit

Output a JSON value of type tok.

Sourceval string_of_tok : ?len:int -> tok -> string

Serialize a value of type tok into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type tok.

Sourceval tok_of_string : string -> tok

Deserialize JSON data of type tok.

Sourceval write_bracket : (Buffer.t -> 'a -> unit) -> Buffer.t -> 'a bracket -> unit

Output a JSON value of type bracket.

Sourceval string_of_bracket : (Buffer.t -> 'a -> unit) -> ?len:int -> 'a bracket -> string

Serialize a value of type bracket into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type bracket.

Sourceval bracket_of_string : (Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a) -> string -> 'a bracket

Deserialize JSON data of type bracket.

Sourceval write_sc : Buffer.t -> sc -> unit

Output a JSON value of type sc.

Sourceval string_of_sc : ?len:int -> sc -> string

Serialize a value of type sc into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type sc.

Sourceval sc_of_string : string -> sc

Deserialize JSON data of type sc.

Sourceval write_variance : Buffer.t -> variance -> unit

Output a JSON value of type variance.

Sourceval string_of_variance : ?len:int -> variance -> string

Serialize a value of type variance into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type variance.

Sourceval variance_of_string : string -> variance

Deserialize JSON data of type variance.

Sourceval write_wrap_ : (Buffer.t -> 'a -> unit) -> Buffer.t -> 'a wrap_ -> unit

Output a JSON value of type wrap_.

Sourceval string_of_wrap_ : (Buffer.t -> 'a -> unit) -> ?len:int -> 'a wrap_ -> string

Serialize a value of type wrap_ into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type wrap_.

Sourceval wrap__of_string : (Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a) -> string -> 'a wrap_

Deserialize JSON data of type wrap_.

Sourceval write_ident : Buffer.t -> ident -> unit

Output a JSON value of type ident.

Sourceval string_of_ident : ?len:int -> ident -> string

Serialize a value of type ident into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type ident.

Sourceval ident_of_string : string -> ident

Deserialize JSON data of type ident.

Sourceval write_dotted_ident : Buffer.t -> dotted_ident -> unit

Output a JSON value of type dotted_ident.

Sourceval string_of_dotted_ident : ?len:int -> dotted_ident -> string

Serialize a value of type dotted_ident into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type dotted_ident.

Sourceval dotted_ident_of_string : string -> dotted_ident

Deserialize JSON data of type dotted_ident.

Sourceval write_label : Buffer.t -> label -> unit

Output a JSON value of type label.

Sourceval string_of_label : ?len:int -> label -> string

Serialize a value of type label into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type label.

Sourceval label_of_string : string -> label

Deserialize JSON data of type label.

Sourceval write_literal : Buffer.t -> literal -> unit

Output a JSON value of type literal.

Sourceval string_of_literal : ?len:int -> literal -> string

Serialize a value of type literal into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type literal.

Sourceval literal_of_string : string -> literal

Deserialize JSON data of type literal.

Sourceval write_module_name : Buffer.t -> module_name -> unit

Output a JSON value of type module_name.

Sourceval string_of_module_name : ?len:int -> module_name -> string

Serialize a value of type module_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type module_name.

Sourceval module_name_of_string : string -> module_name

Deserialize JSON data of type module_name.

Sourceval write_resolved_name_kind : Buffer.t -> resolved_name_kind -> unit

Output a JSON value of type resolved_name_kind.

Sourceval string_of_resolved_name_kind : ?len:int -> resolved_name_kind -> string

Serialize a value of type resolved_name_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type resolved_name_kind.

Sourceval resolved_name_kind_of_string : string -> resolved_name_kind

Deserialize JSON data of type resolved_name_kind.

Sourceval write_resolved_name : Buffer.t -> resolved_name -> unit

Output a JSON value of type resolved_name.

Sourceval string_of_resolved_name : ?len:int -> resolved_name -> string

Serialize a value of type resolved_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type resolved_name.

Sourceval resolved_name_of_string : string -> resolved_name

Deserialize JSON data of type resolved_name.

Sourceval write_todo_kind : Buffer.t -> todo_kind -> unit

Output a JSON value of type todo_kind.

Sourceval string_of_todo_kind : ?len:int -> todo_kind -> string

Serialize a value of type todo_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type todo_kind.

Sourceval todo_kind_of_string : string -> todo_kind

Deserialize JSON data of type todo_kind.

Sourceval write_xml_kind : Buffer.t -> xml_kind -> unit

Output a JSON value of type xml_kind.

Sourceval string_of_xml_kind : ?len:int -> xml_kind -> string

Serialize a value of type xml_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type xml_kind.

Sourceval xml_kind_of_string : string -> xml_kind

Deserialize JSON data of type xml_kind.

Sourceval write_alias : Buffer.t -> alias -> unit

Output a JSON value of type alias.

Sourceval string_of_alias : ?len:int -> alias -> string

Serialize a value of type alias into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type alias.

Sourceval alias_of_string : string -> alias

Deserialize JSON data of type alias.

Sourceval write_any : Buffer.t -> any -> unit

Output a JSON value of type any.

Sourceval string_of_any : ?len:int -> any -> string

Serialize a value of type any into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type any.

Sourceval any_of_string : string -> any

Deserialize JSON data of type any.

Sourceval write_argument : Buffer.t -> argument -> unit

Output a JSON value of type argument.

Sourceval string_of_argument : ?len:int -> argument -> string

Serialize a value of type argument into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type argument.

Sourceval argument_of_string : string -> argument

Deserialize JSON data of type argument.

Sourceval write_arguments : Buffer.t -> arguments -> unit

Output a JSON value of type arguments.

Sourceval string_of_arguments : ?len:int -> arguments -> string

Serialize a value of type arguments into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type arguments.

Sourceval arguments_of_string : string -> arguments

Deserialize JSON data of type arguments.

Sourceval write_attribute : Buffer.t -> attribute -> unit

Output a JSON value of type attribute.

Sourceval string_of_attribute : ?len:int -> attribute -> string

Serialize a value of type attribute into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type attribute.

Sourceval attribute_of_string : string -> attribute

Deserialize JSON data of type attribute.

Sourceval write_case : Buffer.t -> case -> unit

Output a JSON value of type case.

Sourceval string_of_case : ?len:int -> case -> string

Serialize a value of type case into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type case.

Sourceval case_of_string : string -> case

Deserialize JSON data of type case.

Sourceval write_case_and_body : Buffer.t -> case_and_body -> unit

Output a JSON value of type case_and_body.

Sourceval string_of_case_and_body : ?len:int -> case_and_body -> string

Serialize a value of type case_and_body into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type case_and_body.

Sourceval case_and_body_of_string : string -> case_and_body

Deserialize JSON data of type case_and_body.

Sourceval write_catch : Buffer.t -> catch -> unit

Output a JSON value of type catch.

Sourceval string_of_catch : ?len:int -> catch -> string

Serialize a value of type catch into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type catch.

Sourceval catch_of_string : string -> catch

Deserialize JSON data of type catch.

Sourceval write_catch_exn : Buffer.t -> catch_exn -> unit

Output a JSON value of type catch_exn.

Sourceval string_of_catch_exn : ?len:int -> catch_exn -> string

Serialize a value of type catch_exn into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type catch_exn.

Sourceval catch_exn_of_string : string -> catch_exn

Deserialize JSON data of type catch_exn.

Sourceval write_class_definition : Buffer.t -> class_definition -> unit

Output a JSON value of type class_definition.

Sourceval string_of_class_definition : ?len:int -> class_definition -> string

Serialize a value of type class_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type class_definition.

Sourceval class_definition_of_string : string -> class_definition

Deserialize JSON data of type class_definition.

Sourceval write_class_parent : Buffer.t -> class_parent -> unit

Output a JSON value of type class_parent.

Sourceval string_of_class_parent : ?len:int -> class_parent -> string

Serialize a value of type class_parent into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type class_parent.

Sourceval class_parent_of_string : string -> class_parent

Deserialize JSON data of type class_parent.

Sourceval write_comprehension : Buffer.t -> comprehension -> unit

Output a JSON value of type comprehension.

Sourceval string_of_comprehension : ?len:int -> comprehension -> string

Serialize a value of type comprehension into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type comprehension.

Sourceval comprehension_of_string : string -> comprehension

Deserialize JSON data of type comprehension.

Sourceval write_condition : Buffer.t -> condition -> unit

Output a JSON value of type condition.

Sourceval string_of_condition : ?len:int -> condition -> string

Serialize a value of type condition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type condition.

Sourceval condition_of_string : string -> condition

Deserialize JSON data of type condition.

Sourceval write_definition : Buffer.t -> definition -> unit

Output a JSON value of type definition.

Sourceval string_of_definition : ?len:int -> definition -> string

Serialize a value of type definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type definition.

Sourceval definition_of_string : string -> definition

Deserialize JSON data of type definition.

Sourceval write_definition_kind : Buffer.t -> definition_kind -> unit

Output a JSON value of type definition_kind.

Sourceval string_of_definition_kind : ?len:int -> definition_kind -> string

Serialize a value of type definition_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type definition_kind.

Sourceval definition_kind_of_string : string -> definition_kind

Deserialize JSON data of type definition_kind.

Sourceval write_directive : Buffer.t -> directive -> unit

Output a JSON value of type directive.

Sourceval string_of_directive : ?len:int -> directive -> string

Serialize a value of type directive into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type directive.

Sourceval directive_of_string : string -> directive

Deserialize JSON data of type directive.

Sourceval write_entity : Buffer.t -> entity -> unit

Output a JSON value of type entity.

Sourceval string_of_entity : ?len:int -> entity -> string

Serialize a value of type entity into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type entity.

Sourceval entity_of_string : string -> entity

Deserialize JSON data of type entity.

Sourceval write_entity_name : Buffer.t -> entity_name -> unit

Output a JSON value of type entity_name.

Sourceval string_of_entity_name : ?len:int -> entity_name -> string

Serialize a value of type entity_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type entity_name.

Sourceval entity_name_of_string : string -> entity_name

Deserialize JSON data of type entity_name.

Sourceval write_enum_entry_definition : Buffer.t -> enum_entry_definition -> unit

Output a JSON value of type enum_entry_definition.

Sourceval string_of_enum_entry_definition : ?len:int -> enum_entry_definition -> string

Serialize a value of type enum_entry_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_enum_entry_definition : Yojson.Safe.lexer_state -> Lexing.lexbuf -> enum_entry_definition

Input JSON data of type enum_entry_definition.

Sourceval enum_entry_definition_of_string : string -> enum_entry_definition

Deserialize JSON data of type enum_entry_definition.

Sourceval write_expr : Buffer.t -> expr -> unit

Output a JSON value of type expr.

Sourceval string_of_expr : ?len:int -> expr -> string

Serialize a value of type expr into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type expr.

Sourceval expr_of_string : string -> expr

Deserialize JSON data of type expr.

Sourceval write_field : Buffer.t -> field -> unit

Output a JSON value of type field.

Sourceval string_of_field : ?len:int -> field -> string

Serialize a value of type field into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type field.

Sourceval field_of_string : string -> field

Deserialize JSON data of type field.

Sourceval write_field_name : Buffer.t -> field_name -> unit

Output a JSON value of type field_name.

Sourceval string_of_field_name : ?len:int -> field_name -> string

Serialize a value of type field_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type field_name.

Sourceval field_name_of_string : string -> field_name

Deserialize JSON data of type field_name.

Sourceval write_finally : Buffer.t -> finally -> unit

Output a JSON value of type finally.

Sourceval string_of_finally : ?len:int -> finally -> string

Serialize a value of type finally into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type finally.

Sourceval finally_of_string : string -> finally

Deserialize JSON data of type finally.

Sourceval write_for_each : Buffer.t -> for_each -> unit

Output a JSON value of type for_each.

Sourceval string_of_for_each : ?len:int -> for_each -> string

Serialize a value of type for_each into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type for_each.

Sourceval for_each_of_string : string -> for_each

Deserialize JSON data of type for_each.

Sourceval write_for_header : Buffer.t -> for_header -> unit

Output a JSON value of type for_header.

Sourceval string_of_for_header : ?len:int -> for_header -> string

Serialize a value of type for_header into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type for_header.

Sourceval for_header_of_string : string -> for_header

Deserialize JSON data of type for_header.

Sourceval write_for_or_if_comp : Buffer.t -> for_or_if_comp -> unit

Output a JSON value of type for_or_if_comp.

Sourceval string_of_for_or_if_comp : ?len:int -> for_or_if_comp -> string

Serialize a value of type for_or_if_comp into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type for_or_if_comp.

Sourceval for_or_if_comp_of_string : string -> for_or_if_comp

Deserialize JSON data of type for_or_if_comp.

Sourceval write_for_var_or_expr : Buffer.t -> for_var_or_expr -> unit

Output a JSON value of type for_var_or_expr.

Sourceval string_of_for_var_or_expr : ?len:int -> for_var_or_expr -> string

Serialize a value of type for_var_or_expr into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type for_var_or_expr.

Sourceval for_var_or_expr_of_string : string -> for_var_or_expr

Deserialize JSON data of type for_var_or_expr.

Sourceval write_function_body : Buffer.t -> function_body -> unit

Output a JSON value of type function_body.

Sourceval string_of_function_body : ?len:int -> function_body -> string

Serialize a value of type function_body into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type function_body.

Sourceval function_body_of_string : string -> function_body

Deserialize JSON data of type function_body.

Sourceval write_function_definition : Buffer.t -> function_definition -> unit

Output a JSON value of type function_definition.

Sourceval string_of_function_definition : ?len:int -> function_definition -> string

Serialize a value of type function_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type function_definition.

Sourceval function_definition_of_string : string -> function_definition

Deserialize JSON data of type function_definition.

Sourceval write_id_info : Buffer.t -> id_info -> unit

Output a JSON value of type id_info.

Sourceval string_of_id_info : ?len:int -> id_info -> string

Serialize a value of type id_info into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type id_info.

Sourceval id_info_of_string : string -> id_info

Deserialize JSON data of type id_info.

Sourceval write_item : Buffer.t -> item -> unit

Output a JSON value of type item.

Sourceval string_of_item : ?len:int -> item -> string

Serialize a value of type item into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type item.

Sourceval item_of_string : string -> item

Deserialize JSON data of type item.

Sourceval write_label_ident : Buffer.t -> label_ident -> unit

Output a JSON value of type label_ident.

Sourceval string_of_label_ident : ?len:int -> label_ident -> string

Serialize a value of type label_ident into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type label_ident.

Sourceval label_ident_of_string : string -> label_ident

Deserialize JSON data of type label_ident.

Sourceval write_macro_definition : Buffer.t -> macro_definition -> unit

Output a JSON value of type macro_definition.

Sourceval string_of_macro_definition : ?len:int -> macro_definition -> string

Serialize a value of type macro_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type macro_definition.

Sourceval macro_definition_of_string : string -> macro_definition

Deserialize JSON data of type macro_definition.

Sourceval write_module_definition : Buffer.t -> module_definition -> unit

Output a JSON value of type module_definition.

Sourceval string_of_module_definition : ?len:int -> module_definition -> string

Serialize a value of type module_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type module_definition.

Sourceval module_definition_of_string : string -> module_definition

Deserialize JSON data of type module_definition.

Sourceval write_module_definition_kind : Buffer.t -> module_definition_kind -> unit

Output a JSON value of type module_definition_kind.

Sourceval string_of_module_definition_kind : ?len:int -> module_definition_kind -> string

Serialize a value of type module_definition_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type module_definition_kind.

Sourceval module_definition_kind_of_string : string -> module_definition_kind

Deserialize JSON data of type module_definition_kind.

Sourceval write_multi_for_each : Buffer.t -> multi_for_each -> unit

Output a JSON value of type multi_for_each.

Sourceval string_of_multi_for_each : ?len:int -> multi_for_each -> string

Serialize a value of type multi_for_each into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type multi_for_each.

Sourceval multi_for_each_of_string : string -> multi_for_each

Deserialize JSON data of type multi_for_each.

Sourceval write_name : Buffer.t -> name -> unit

Output a JSON value of type name.

Sourceval string_of_name : ?len:int -> name -> string

Serialize a value of type name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type name.

Sourceval name_of_string : string -> name

Deserialize JSON data of type name.

Sourceval write_or_type_element : Buffer.t -> or_type_element -> unit

Output a JSON value of type or_type_element.

Sourceval string_of_or_type_element : ?len:int -> or_type_element -> string

Serialize a value of type or_type_element into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type or_type_element.

Sourceval or_type_element_of_string : string -> or_type_element

Deserialize JSON data of type or_type_element.

Sourceval write_parameter : Buffer.t -> parameter -> unit

Output a JSON value of type parameter.

Sourceval string_of_parameter : ?len:int -> parameter -> string

Serialize a value of type parameter into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type parameter.

Sourceval parameter_of_string : string -> parameter

Deserialize JSON data of type parameter.

Sourceval write_parameter_classic : Buffer.t -> parameter_classic -> unit

Output a JSON value of type parameter_classic.

Sourceval string_of_parameter_classic : ?len:int -> parameter_classic -> string

Serialize a value of type parameter_classic into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type parameter_classic.

Sourceval parameter_classic_of_string : string -> parameter_classic

Deserialize JSON data of type parameter_classic.

Sourceval write_parameters : Buffer.t -> parameters -> unit

Output a JSON value of type parameters.

Sourceval string_of_parameters : ?len:int -> parameters -> string

Serialize a value of type parameters into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type parameters.

Sourceval parameters_of_string : string -> parameters

Deserialize JSON data of type parameters.

Sourceval write_pattern : Buffer.t -> pattern -> unit

Output a JSON value of type pattern.

Sourceval string_of_pattern : ?len:int -> pattern -> string

Serialize a value of type pattern into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type pattern.

Sourceval pattern_of_string : string -> pattern

Deserialize JSON data of type pattern.

Sourceval write_qualified_info : Buffer.t -> qualified_info -> unit

Output a JSON value of type qualified_info.

Sourceval string_of_qualified_info : ?len:int -> qualified_info -> string

Serialize a value of type qualified_info into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type qualified_info.

Sourceval qualified_info_of_string : string -> qualified_info

Deserialize JSON data of type qualified_info.

Sourceval write_qualifier : Buffer.t -> qualifier -> unit

Output a JSON value of type qualifier.

Sourceval string_of_qualifier : ?len:int -> qualifier -> string

Serialize a value of type qualifier into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type qualifier.

Sourceval qualifier_of_string : string -> qualifier

Deserialize JSON data of type qualifier.

Sourceval write_stmt : Buffer.t -> stmt -> unit

Output a JSON value of type stmt.

Sourceval string_of_stmt : ?len:int -> stmt -> string

Serialize a value of type stmt into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type stmt.

Sourceval stmt_of_string : string -> stmt

Deserialize JSON data of type stmt.

Sourceval write_svalue : Buffer.t -> svalue -> unit

Output a JSON value of type svalue.

Sourceval string_of_svalue : ?len:int -> svalue -> string

Serialize a value of type svalue into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type svalue.

Sourceval svalue_of_string : string -> svalue

Deserialize JSON data of type svalue.

Sourceval write_type_ : Buffer.t -> type_ -> unit

Output a JSON value of type type_.

Sourceval string_of_type_ : ?len:int -> type_ -> string

Serialize a value of type type_ into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_.

Sourceval type__of_string : string -> type_

Deserialize JSON data of type type_.

Sourceval write_type_argument : Buffer.t -> type_argument -> unit

Output a JSON value of type type_argument.

Sourceval string_of_type_argument : ?len:int -> type_argument -> string

Serialize a value of type type_argument into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_argument.

Sourceval type_argument_of_string : string -> type_argument

Deserialize JSON data of type type_argument.

Sourceval write_type_arguments : Buffer.t -> type_arguments -> unit

Output a JSON value of type type_arguments.

Sourceval string_of_type_arguments : ?len:int -> type_arguments -> string

Serialize a value of type type_arguments into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_arguments.

Sourceval type_arguments_of_string : string -> type_arguments

Deserialize JSON data of type type_arguments.

Sourceval write_type_definition : Buffer.t -> type_definition -> unit

Output a JSON value of type type_definition.

Sourceval string_of_type_definition : ?len:int -> type_definition -> string

Serialize a value of type type_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_definition.

Sourceval type_definition_of_string : string -> type_definition

Deserialize JSON data of type type_definition.

Sourceval write_type_definition_kind : Buffer.t -> type_definition_kind -> unit

Output a JSON value of type type_definition_kind.

Sourceval string_of_type_definition_kind : ?len:int -> type_definition_kind -> string

Serialize a value of type type_definition_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_definition_kind.

Sourceval type_definition_kind_of_string : string -> type_definition_kind

Deserialize JSON data of type type_definition_kind.

Sourceval write_type_parameter : Buffer.t -> type_parameter -> unit

Output a JSON value of type type_parameter.

Sourceval string_of_type_parameter : ?len:int -> type_parameter -> string

Serialize a value of type type_parameter into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_parameter.

Sourceval type_parameter_of_string : string -> type_parameter

Deserialize JSON data of type type_parameter.

Sourceval write_type_parameter_classic : Buffer.t -> type_parameter_classic -> unit

Output a JSON value of type type_parameter_classic.

Sourceval string_of_type_parameter_classic : ?len:int -> type_parameter_classic -> string

Serialize a value of type type_parameter_classic into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_parameter_classic.

Sourceval type_parameter_classic_of_string : string -> type_parameter_classic

Deserialize JSON data of type type_parameter_classic.

Sourceval write_type_parameters : Buffer.t -> type_parameters -> unit

Output a JSON value of type type_parameters.

Sourceval string_of_type_parameters : ?len:int -> type_parameters -> string

Serialize a value of type type_parameters into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type type_parameters.

Sourceval type_parameters_of_string : string -> type_parameters

Deserialize JSON data of type type_parameters.

Sourceval write_variable_definition : Buffer.t -> variable_definition -> unit

Output a JSON value of type variable_definition.

Sourceval string_of_variable_definition : ?len:int -> variable_definition -> string

Serialize a value of type variable_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type variable_definition.

Sourceval variable_definition_of_string : string -> variable_definition

Deserialize JSON data of type variable_definition.

Sourceval write_xml : Buffer.t -> xml -> unit

Output a JSON value of type xml.

Sourceval string_of_xml : ?len:int -> xml -> string

Serialize a value of type xml into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type xml.

Sourceval xml_of_string : string -> xml

Deserialize JSON data of type xml.

Sourceval write_xml_attr_value : Buffer.t -> xml_attr_value -> unit

Output a JSON value of type xml_attr_value.

Sourceval string_of_xml_attr_value : ?len:int -> xml_attr_value -> string

Serialize a value of type xml_attr_value into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type xml_attr_value.

Sourceval xml_attr_value_of_string : string -> xml_attr_value

Deserialize JSON data of type xml_attr_value.

Sourceval write_xml_attribute : Buffer.t -> xml_attribute -> unit

Output a JSON value of type xml_attribute.

Sourceval string_of_xml_attribute : ?len:int -> xml_attribute -> string

Serialize a value of type xml_attribute into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type xml_attribute.

Sourceval xml_attribute_of_string : string -> xml_attribute

Deserialize JSON data of type xml_attribute.

Sourceval write_xml_body : Buffer.t -> xml_body -> unit

Output a JSON value of type xml_body.

Sourceval string_of_xml_body : ?len:int -> xml_body -> string

Serialize a value of type xml_body into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type xml_body.

Sourceval xml_body_of_string : string -> xml_body

Deserialize JSON data of type xml_body.

Sourceval write_program : Buffer.t -> program -> unit

Output a JSON value of type program.

Sourceval string_of_program : ?len:int -> program -> string

Serialize a value of type program into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type program.

Sourceval program_of_string : string -> program

Deserialize JSON data of type program.

OCaml

Innovation. Community. Security.