package diffast-core

  1. Overview
  2. Docs
inherit node_maker
inherit Otree.otree2
method private create : node_data Otree.node2 -> bool -> c
method extra_namespaces : (string * string) list
method unparse_subtree_ch : ?no_boxing:bool -> ?no_header:bool -> ?fail_on_error:bool -> node_t -> SB.OutChannel.t -> unit
method unparse_ch : ?no_boxing:bool -> ?no_header:bool -> ?fail_on_error:bool -> SB.OutChannel.t -> unit
val bid_map : (BID.t, BID.t list) Hashtbl.t
method add_to_bid_map : BID.t -> BID.t -> unit
method find_mapped_bids : BID.t -> BID.t list
val bid_tbl : (BID.t, string) Hashtbl.t
method add_to_bid_tbl : BID.t -> string -> unit
method find_name_for_bid : BID.t -> string
val def_bid_tbl : (BID.t, node_t) Hashtbl.t
method add_to_def_bid_tbl : BID.t -> node_t -> unit
method find_def_for_bid : BID.t -> node_t
method in_subtree_mutually : node_t -> node_t -> bool
val mutable true_parent_tbl : (UID.t, node_t) Hashtbl.t
method set_true_parent_tbl : (UID.t, node_t) Hashtbl.t -> unit
method find_true_parent : UID.t -> node_t
method set_true_children_tbl : (node_t, Diffast_core.Spec.node_data_t Diffast_core.Spec.SB.Otree.node2 array) Hashtbl.t -> unit
method has_true_children : node_t -> bool
method recover_true_children : initial_only:bool -> unit -> unit
val mutable source_path : string
method set_source_path : string -> unit
method source_path : string
val mutable source_fullpath : string
method set_source_fullpath : string -> unit
method source_fullpath : string
val mutable source_kind : Storage.kind
method set_source_kind : Storage.kind -> unit
method source_kind : Storage.kind
val mutable vkind : Diffast_core.Entity.vkind
method set_vkind : Diffast_core.Entity.vkind -> unit
val mutable version : string
method set_version : string -> unit
method version : string
val mutable proj_root : string
method set_proj_root : string -> unit
method proj_root : string
val mutable source_digest : Xhash.t
method set_source_digest : Xhash.t -> unit
method source_digest : Xhash.t
method encoded_source_digest : string
method set_source_info : Storage.file -> unit
val mutable parser_name : string
method set_parser_name : string -> unit
method parser_name : string
method private get_attrs : string
method dump_astml : ?comp:C.c -> string -> unit
method collapse : unit
method make_subtree_copy : ?find_hook:(node_t -> node_data Otree.node2 -> unit) -> node_t -> c
method private make_anonymizedx_subtree_copy : (node_t -> L.t) -> ?nds_left_named:node_t list -> node_t -> c
method make_anonymized_subtree_copy : ?nds_left_named:node_t list -> node_t -> c
method make_anonymized2_subtree_copy : ?nds_left_named:node_t list -> node_t -> c
method make_anonymized3_subtree_copy : ?nds_left_named:node_t list -> node_t -> c
method get_ident_use_list : Otree.GI.t -> string list
method initial_subtree_to_rep : node_t -> string
method initial_to_rep : string
method subtree_to_simple_string : Otree.GI.t -> string
method dump_line_ranges : string -> unit
val mutable ignored_regions : (int * int) list
method set_ignored_regions : (int * int) list -> unit
method ignored_regions : (int * int) list
val mutable misparsed_regions : (int * int) list
method set_misparsed_regions : (int * int) list -> unit
method misparsed_regions : (int * int) list
val mutable total_LOC : int
method set_total_LOC : int -> unit
method total_LOC : int
val mutable misparsed_LOC : int
method set_misparsed_LOC : int -> unit
method misparsed_LOC : int
method get_units_to_be_notified : node_t list
method get_nearest_containing_unit : node_t -> node_t
method make_subtree_from_node : node_data Otree.node2 -> c
method make_subtree_from_uid : Diffast_misc.UID.t -> c
method make_subtree_from_path : Diffast_misc.Path.t -> c
method label_match : string -> bool
method merge_locs_adjusting_to_boundary : Otree.GI.t list -> Loc.t
method private cross_boundary : node_t -> node_t -> bool
method get_nearest_boundary : node_t -> node_t
method nearest_common_ancestor : ?closed:bool -> node_t list -> node_t * int
method private _get_origin : string list -> int -> int * string * string
method align_fragments : (int * int) list -> 'a -> unit
method find_nodes_by_line_range : (int * int) -> node_t list
method find_nodes_by_line_col_range : ((int * int) * (int * int)) -> node_t list
val mutable token_array : string array
val mutable node_array : node_t array
method find_token_node : int -> node_t
method to_token_array : string array
val mutable node_array_pat : node_t array
method find_token_node_pat : int -> node_t
method get_token_array_pat : Diffast_core.GIDfragment.c -> string array
method private compute_continuity : int list -> float
method match_token_array_pat_ch : string -> string -> string -> string array -> out_channel -> unit
method show_node_array_pat : unit
method match_pat_ch : string -> 'a -> string array -> Diffast_core.GIDfragment.c -> out_channel -> unit
method private _match_token_array_pat_ch : string array -> string -> (int -> Diffast_core.Spec.SB.Otree.GI.t) -> string -> out_channel -> unit
method match_pats : string -> string -> 'a -> Diffast_core.GIDfragment.c list -> unit
method find_label : node_t -> node_t -> node_t list
method dump_subtree_for_delta_ch : node_t -> node_t list -> Xchannel.out_channel -> unit
OCaml

Innovation. Community. Security.