package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.37.7.tar.gz
md5=d069f379342be72574b4cdc52f4ed9b4
sha512=68e9971364f5e016bad8f94bb72fd15252f19c7964424992309cdb4a9fc922dbe15d07619f500f4bcbc72f820c93d4da20f0759bb4276cd073a29a179bef9300
doc/pfff-graph_code/Graph_code/index.html
Module Graph_code
type node = string * Entity_code.entity_kind
type nodeinfo = {
pos : Parse_info.token_location;
props : Entity_code.property list;
typ : string option;
}
exception Error of error
val string_of_error : error -> string
type statistics = {
parse_errors : Common.filename list ref;
lookup_fail : (Parse_info.info * node) list ref;
method_calls : (Parse_info.info * resolved) list ref;
field_access : (Parse_info.info * resolved) list ref;
unresolved_class_access : Parse_info.info list ref;
unresolved_calls : Parse_info.info list ref;
}
val empty_statistics : unit -> statistics
type whitelist = dependency list
val load : Common.filename -> graph
val save : graph -> Common.filename -> unit
val root : node
val pb : node
val not_found : node
val dupe : node
val create : unit -> graph
val create_initial_hierarchy : graph -> unit
val create_intermediate_directories_if_not_present :
graph ->
Common.dirname ->
unit
val basename_to_readable_disambiguator :
Common.filename list ->
root:Common.dirname ->
string ->
Common.filename list
val file_of_node : node -> graph -> Common.filename
val privacy_of_node : node -> graph -> Entity_code.privacy
val shortname_of_node : node -> string
val nb_nodes : graph -> int
val nb_use_edges : graph -> int
val print_statistics : statistics -> graph -> unit
val group_edges_by_files_edges :
(node * node) list ->
graph ->
((Common.filename * Common.filename) * (node * node) list) list
val graph_of_dotfile : Common.filename -> graph
val string_of_node : node -> string
val display_with_gv : graph -> unit
val load_adjust : Common.filename -> adjust list
val load_whitelist : Common.filename -> whitelist
val save_whitelist : whitelist -> Common.filename -> graph -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>