MCPcopy Index your code
hub / github.com/dave/dst

github.com/dave/dst @v0.27.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.27.4 ↗ · + Follow
567 symbols 1,482 edges 68 files 293 documented · 52% 59 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

package dst

//go:generate go get github.com/dave/rebecca/cmd/becca //go:generate becca -package=github.com/dave/dst

Extension points exported contracts — how you extend this code

Node (Interface)
---------------------------------------------------------------------------- Interfaces There are 3 main classes of nod [54 …
dst.go
RestorerResolver (Interface)
RestorerResolver resolves a package path to a package name. [2 implementers]
decorator/resolver/resolver.go
Code (Interface)
(no doc) [4 implementers]
gendst/data/data.go
FieldFilter (FuncType)
A FieldFilter may be provided to Fprint to control the output.
print.go
Visitor (Interface)
A Visitor's Visit method is invoked for each node encountered by Walk. If the result visitor w is not nil, Walk visits e
walk.go
Importer (FuncType)
An Importer resolves import paths to package Objects. The imports map records the packages already imported, indexed by
resolve.go
ApplyFunc (FuncType)
An ApplyFunc is invoked by Apply for each node n, even if n is nil, before and/or after the node's children, using a Cur
dstutil/rewrite.go
Expr (Interface)
All expression nodes implement the Expr interface. [23 implementers]
dst.go

Core symbols most depended-on inside this repo

applyDecorations
called by 208
decorator/restorer.go
addDecorationFragment
called by 199
decorator/decorator-fragment.go
String
called by 117
dst.go
Get
called by 112
gendst/data/data.go
applySpace
called by 108
decorator/restorer.go
addTokenFragment
called by 72
decorator/decorator-fragment.go
Index
called by 31
dstutil/rewrite.go
printf
called by 28
print.go

Shape

Method 230
Struct 167
Function 136
Interface 14
TypeAlias 14
FuncType 6

Languages

Go100%

Modules by API surface

dst.go120 symbols
decorations-types-generated.go54 symbols
decorations-node-generated.go54 symbols
gendst/data/data.go40 symbols
decorator/decorator-fragment.go36 symbols
decorator/restorer.go23 symbols
gendst/data/positions.go21 symbols
decorations_test.go19 symbols
decorator/decorator.go18 symbols
dstutil/rewrite.go16 symbols
walk.go10 symbols
print.go10 symbols

For agents

$ claude mcp add dst \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact