Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder constructs code graphs from Go source code
func (*Builder) BuildFromFile ¶
BuildFromFile builds a code graph from a single file
type Exporter ¶
type Exporter struct{}
Exporter exports code graphs to various formats
func (*Exporter) ExportToDOT ¶
ExportToDOT exports a graph to DOT format (Graphviz)
type Graph ¶
type Graph struct {
Nodes []codeintel.GraphNode `json:"nodes"`
Edges []*codeintel.GraphEdge `json:"edges"`
EntryPoints []string `json:"entry_points"`
Cycles []string `json:"cycles"`
}
Graph represents a code call graph
func (*Graph) Complexity ¶
Complexity calculates the overall graph complexity
func (*Graph) GetCalleesOf ¶
GetCalleesOf finds all functions called by the given function
func (*Graph) GetCallersOf ¶
GetCallersOf finds all functions that call the given function
type GraphStats ¶
type GraphStats struct {
TotalNodes int `json:"total_nodes"`
TotalEdges int `json:"total_edges"`
EntryPoints int `json:"entry_points"`
Cycles int `json:"cycles"`
FunctionCount int `json:"function_count"`
MethodCount int `json:"method_count"`
TypeCount int `json:"type_count"`
ExportedNodes int `json:"exported_nodes"`
AvgOutDegree float64 `json:"avg_out_degree"`
MaxOutDegree int `json:"max_out_degree"`
}
GraphStats represents statistics about a code graph
Click to show internal directories.
Click to hide internal directories.