MCPcopy Create free account

hub / github.com/adonovan/spaghetti / functions

Functions24 in github.com/adonovan/spaghetti

↓ 3 callersFunctionrecompute
recompute redoes all the graph algorithms each time the graph is updated.
spaghetti.go:131
↓ 3 callersFunctionremove
remove destructively removes all occurrences of x from slice, sorts it, and returns it.
spaghetti.go:393
↓ 3 callersFunctionsortNodes
(nodes []*node)
spaghetti.go:197
↓ 2 callersMethodIdom
Dominator tree construction This file was plundered from golang.org/x/tools/go/ssa/dom.go and modified to support a different graph representation, m
dom.go:55
↓ 2 callersFunctionaddImports
(select, packageIDs)
code.js:126
↓ 2 callersMethodeval
eval implements the EVAL part of the LT algorithm.
dom.go:100
↓ 2 callersMethodid
id returns the entry's DOM element ID in the jsTree.
spaghetti.go:210
↓ 2 callersMethodlink
link implements the LINK part of the LT algorithm.
dom.go:111
↓ 1 callersFunctionbuildDomTree
buildDomTree computes the dominator tree of f using the LT algorithm. The first node is the distinguished root node.
dom.go:117
↓ 1 callersMethoddfs
dfs implements the depth-first search part of the LT algorithm.
dom.go:84
↓ 1 callersFunctiongetDirent
getDirent returns the dirent for a given slash-separated path. TODO explain module behavior.
spaghetti.go:225
↓ 1 callersFunctionnumberDomTree
numberDomTree sets the pre- and post-order numbers of a depth-first traversal of the dominator tree rooted at v. These are used to answer dominance q
dom.go:229
↓ 1 callersFunctionselectPkg
(json)
code.js:74
MethodDominates
Dominates reports whether b dominates c.
dom.go:62
MethodDominees
Dominees returns the list of blocks that b immediately dominates: its children in the dominator tree.
dom.go:59
Functionbreakedge
(i, j, all)
code.js:114
Functionmain
TODO: - select the initial nodes initially in the dir tree. - need more rigor with IDs. Test on a project with multiple versioned modules. - support g
spaghetti.go:31
FunctiononBreak
onBreak handles the /break (from, to int, all bool) endpoint.
spaghetti.go:360
FunctiononData
(data)
code.js:12
FunctiononData
onData handles the /data endpoint. It emits all the server's state as JSON: the list of root packages, the directory tree of packages in jsTree form,
spaghetti.go:259
FunctiononLoad
()
code.js:6
FunctiononSelectImport
(sel)
code.js:142
FunctiononUnbreak
onUnbreak handles the /unbreak (from, to int) endpoint.
spaghetti.go:407
Functionunbreak
(i, j)
code.js:119