package rescriptdep
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A dependency analyzer for ReScript modules
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.1.2.tar.gz
md5=b4add411a4fe583fc5e42800189a5d37
sha512=6a5eec651a35db4fc14b4db34c6839bc556868e8f649fd306664ff218dddd8824afeaacfc58a55b2b6b482a0e1ba4837b2bc076ebd22393a38161124b79640f5
doc/rescriptdep.vendor/Typedtree/index.html
Module TypedtreeSource
Abstract syntax tree after typing
By comparison with Parsetree:
- Every
Longindent.tis accompanied by a resolvedPath.t.
Source
type pattern = {pat_desc : pattern_desc;pat_loc : Location.t;pat_extra : (pat_extra * Location.t * string) list;pat_type : Types.type_expr;mutable pat_env : unit;pat_attributes : string;
}Source
and pattern_desc = | Tpat_any| Tpat_var of Ident.t * string Asttypes.loc| Tpat_alias of pattern * string * string| Tpat_constant of constant| Tpat_tuple of pattern list| Tpat_construct of unit * constructor_description * pattern list| Tpat_variant of string * pattern option * Types.row_desc ref| Tpat_record of (unit * label_description * pattern) list * closed_flag| Tpat_array of pattern list| Tpat_or of pattern * pattern * Types.row_desc option| Tpat_lazy of pattern
Source
and expression = {exp_desc : expression_desc;exp_loc : Location.t;exp_extra : (exp_extra * Location.t * string) list;exp_type : Types.type_expr;exp_env : unit;exp_attributes : string;
}Source
and expression_desc = | Texp_ident of Path.t * unit * value_description| Texp_constant of constant| Texp_let of Types.rec_flag * value_binding list * expression| Texp_function of {}| Texp_apply of expression * (string * expression option) list| Texp_match of expression * case list * case list * partial| Texp_try of expression * case list| Texp_tuple of expression list| Texp_construct of Location.t * constructor_description * expression list| Texp_variant of string * expression option| Texp_record of {fields : (label_description * record_label_definition) array;representation : Types.record_representation;extended_expression : expression option;
}| Texp_field of expression * Location.t * label_description| Texp_setfield of expression * Location.t * label_description * expression| Texp_array of expression list| Texp_ifthenelse of expression * expression * expression option| Texp_sequence of expression * expression| Texp_while of expression * expression| Texp_for of unit * string * expression * expression * direction_flag * expression| Texp_send of expression * meth * expression option| Texp_new of Path.t * unit * class_declaration| Texp_instvar of Path.t * Path.t * string| Texp_setinstvar of Path.t * Path.t * string * expression| Texp_override of Path.t * (Path.t * string * expression) list| Texp_letmodule of unit * string * module_expr * expression| Texp_letexception of extension_constructor * expression| Texp_assert of expression| Texp_lazy of expression| Texp_object of class_structure * string list| Texp_pack of module_expr| Texp_letop of {let_ : binding_op;ands : binding_op list;body : case;
}| Texp_unreachable| Texp_extension_constructor of Location.t * Path.t| Texp_open of open_declaration * expression
Source
and record_label_definition = | Kept of Types.type_expr| Overridden of Location.t * expression
Source
and binding_op = {bop_op_path : Path.t;bop_op_val : value_description;bop_op_type : Types.type_expr;bop_exp : expression;bop_loc : Location.t;
}Source
and value_binding = {vb_pat : pattern;vb_expr : expression;vb_attributes : string;vb_loc : Location.t;
}Source
and module_binding = {mb_id : Ident.t;mb_name : string Asttypes.loc;mb_expr : module_expr;mb_attributes : string;mb_loc : Location.t;
}Source
and module_coercion = | Tcoerce_none| Tcoerce_structure of (int * module_coercion) list| Tcoerce_functor of module_coercion * module_coercion| Tcoerce_primitive of unit| Tcoerce_alias of Path.t * module_coercion
Source
and module_type = {mty_desc : module_type_desc;mty_type : Types.module_type;mty_env : unit;mty_loc : Location.t;mty_attributes : string;
}Source
and module_type_desc = | Tmty_ident of Path.t * unit| Tmty_signature of signature| Tmty_functor of unit * string * module_type option * module_type| Tmty_with of module_type * (Path.t * Location.t * with_constraint) list| Tmty_typeof of module_expr| Tmty_alias of Path.t * unit
Source
and signature = {sig_items : signature_item list;sig_type : Types.signature;sig_final_env : unit;
}Source
and signature_item_desc = | Tsig_value of string * value_description| Tsig_type of Types.rec_flag * type_declaration list| Tsig_typesubst of type_declaration list| Tsig_typext of type_extension| Tsig_exception of extension_constructor| Tsig_module of string * module_declaration| Tsig_recmodule of module_declaration list| Tsig_modtype of string * Types.modtype_declaration| Tsig_modtypesubst of string * Types.modtype_declaration| Tsig_open of open_description| Tsig_include of include_description| Tsig_class of class_description list| Tsig_class_type of class_type_declaration list| Tsig_attribute of string
Source
and module_declaration = {md_id : Ident.t;md_name : string Asttypes.loc;md_type : module_type;md_attributes : string;md_loc : Location.t;
}Source
and module_expr = {mod_desc : module_expr_desc;mod_loc : Location.t;mod_type : Types.module_type;mod_env : unit;mod_attributes : string;
}Source
and module_expr_desc = | Tmod_ident of Path.t * unit| Tmod_structure of structure| Tmod_functor of unit * string * module_type option * module_expr| Tmod_apply of module_expr * module_expr * module_coercion| Tmod_constraint of module_expr * Types.module_type * module_type_constraint * module_coercion| Tmod_unpack of expression * Types.module_type
Source
and structure = {str_items : structure_item list;str_type : Types.signature;str_final_env : unit;
}Source
and structure_item_desc = | Tstr_eval of expression * string| Tstr_value of Types.rec_flag * value_binding list| Tstr_primitive of value_description| Tstr_type of Types.rec_flag * type_declaration list| Tstr_typext of type_extension| Tstr_exception of extension_constructor| Tstr_module of module_binding| Tstr_recmodule of module_binding list| Tstr_modtype of module_type_declaration| Tstr_open of open_declaration| Tstr_class of class_declaration list * string list| Tstr_class_type of class_type_declaration list * string list| Tstr_include of include_declaration| Tstr_attribute of string
Source
and module_type_declaration = {mtd_id : Ident.t;mtd_name : string Asttypes.loc;mtd_type : module_type option;mtd_attributes : string;mtd_loc : Location.t;
}Source
and open_declaration = {open_expr : module_expr;open_bound_items : Types.signature;open_override : override_flag;open_env : unit;open_loc : Location.t;open_attributes : string;
}Source
and open_description = {open_path : Path.t;open_txt : Longident.t Asttypes.loc;open_override : override_flag;open_loc : Location.t;open_attributes : string;
}Source
and include_declaration = {incl_mod : module_expr;incl_type : Types.signature;incl_loc : unit;incl_attributes : string;
}Source
and include_description = {incl_mod : module_type;incl_type : Types.signature;incl_loc : Location.t;incl_attributes : string;
}Source
and with_constraint = | Twith_type of type_declaration| Twith_module of Path.t| Twith_typesubst of type_declaration| Twith_modsubst of Path.t
Source
and core_type = {ctyp_desc : core_type_desc;ctyp_type : Types.type_expr;ctyp_env : unit;ctyp_loc : Location.t;ctyp_attributes : string;
}Source
and core_type_desc = | Ttyp_var of string| Ttyp_any| Ttyp_poly of string list * core_type| Ttyp_constr of Path.t * unit * core_type list| Ttyp_arrow of string * core_type * core_type| Ttyp_tuple of core_type list| Ttyp_object of unit * closed_flag| Ttyp_class of Path.t * unit * core_type list| Ttyp_alias of core_type * string| Ttyp_variant of row_field list * closed_flag * string list option| Ttyp_package of package_type
Source
and value_description = {val_id : Ident.t;val_name : string Asttypes.loc;val_desc : core_type;val_val : Types.value_description;val_prim : string list;val_loc : Location.t;val_attributes : string;
}Source
and type_declaration = {typ_id : Ident.t;typ_name : string Asttypes.loc;typ_params : (core_type * unit) list;typ_type : Types.type_declaration;typ_cstrs : unit;typ_kind : type_kind;typ_private : private_flag;typ_manifest : core_type option;typ_loc : Location.t;typ_attributes : string;
}Source
and type_kind = | Ttype_abstract| Ttype_variant of constructor_declaration list| Ttype_record of label_declaration list| Ttype_open
Source
and label_declaration = {ld_id : Ident.t;ld_name : string Asttypes.loc;ld_mutable : Types.mutable_flag;ld_type : core_type;ld_loc : Location.t;ld_attributes : string;
}Source
and constructor_declaration = {cd_id : Ident.t;cd_name : string Asttypes.loc;cd_args : constructor_arguments;cd_res : core_type option;cd_loc : Location.t;cd_attributes : string;
}Source
and constructor_arguments = | Cstr_tuple of core_type list| Cstr_record of label_declaration list
Source
and type_extension = {tyext_path : Path.t;tyext_txt : Longident.t Asttypes.loc;tyext_params : (core_type * unit) list;tyext_constructors : extension_constructor list;tyext_private : private_flag;tyext_loc : Location.t;tyext_attributes : string;
}Source
and extension_constructor = {ext_id : Ident.t;ext_name : string Asttypes.loc;ext_type : Types.extension_constructor;ext_kind : extension_constructor_kind;ext_loc : Location.t;ext_attributes : string;
}Source
and extension_constructor_kind = | Text_decl of constructor_arguments * core_type option| Text_rebind of Path.t * unit
Source
and class_structure = {cstr_self : pattern;cstr_fields : class_field list;cstr_type : Types.class_signature;cstr_meths : unit;
}Source
and class_field_kind = | Tcfk_val of unit * Types.mutable_flag * unit * expression| Tcfk_method of unit * private_flag * unit * expression| Tcfk_initializer of expression| Tcfk_constraint of core_type * core_type
Source
and class_field_desc = | Tcf_inherit of override_flag * class_expr * string option * unit * unit| Tcf_val of string * string * Types.mutable_flag * class_field_kind| Tcf_method of string * string * private_flag * class_field_kind| Tcf_constraint of core_type * core_type| Tcf_initializer of expression| Tcf_attribute of string
Source
and class_expr = {cl_desc : class_expr_desc;cl_loc : Location.t;cl_type : Types.class_type;cl_env : unit;cl_attributes : string;
}Source
and class_expr_desc = | Tcl_constraint of class_expr * Types.class_type option * string list * string list * unit list| Tcl_structure of class_structure| Tcl_fun of string * pattern * class_expr * unit| Tcl_apply of class_expr * (string * expression option) list| Tcl_let of Types.rec_flag * value_binding list * class_expr| Tcl_ident of Path.t * unit * core_type list
Source
and row_field = | Ttag of string Asttypes.loc * string * bool * core_type list| Tinherit of core_type
Source
and package_type = {pack_path : Path.t;pack_fields : (string * core_type) list;pack_type : Types.module_type;pack_txt : Longident.t Asttypes.loc;
}Source
and constructor_description = {cstr_name : string;cstr_res : Types.type_expr;cstr_existentials : Types.type_expr list;cstr_args : Types.type_expr list;cstr_arity : int;cstr_tag : constructor_tag;cstr_consts : int;cstr_nonconsts : int;cstr_normal : int;cstr_private : private_flag;cstr_generalized : bool;cstr_loc : Location.t;cstr_attributes : string;cstr_inlined : type_declaration option;
}Source
and label_description = {lbl_name : string;lbl_res : Types.type_expr;lbl_arg : Types.type_expr;lbl_mut : Types.mutable_flag;lbl_pos : int;lbl_all : label_description array;lbl_repres : Types.record_representation;lbl_private : private_flag;lbl_loc : Location.t;lbl_attributes : string;
} sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>