type go/ast.Node
60 uses
go/ast (current package)
ast.go#L33: type Node interface {
ast.go#L40: Node
ast.go#L46: Node
ast.go#L52: Node
ast.go#L873: Node
commentmap.go#L35: type CommentMap map[Node][]*CommentGroup
commentmap.go#L37: func (cmap CommentMap) addComment(n Node, c *CommentGroup) {
commentmap.go#L47: type byInterval []Node
commentmap.go#L58: func nodeList(n Node) []Node {
commentmap.go#L59: var list []Node
commentmap.go#L60: Inspect(n, func(n Node) bool {
commentmap.go#L103: type nodeStack []Node
commentmap.go#L108: func (s *nodeStack) push(n Node) {
commentmap.go#L117: func (s *nodeStack) pop(pos token.Pos) (top Node) {
commentmap.go#L143: func NewCommentMap(fset *token.FileSet, node Node, comments []*CommentGroup) CommentMap {
commentmap.go#L163: p Node // previous node
commentmap.go#L165: pg Node // previous node group (enclosing nodes of "importance")
commentmap.go#L194: var assoc Node
commentmap.go#L246: func (cmap CommentMap) Update(old, new Node) Node {
commentmap.go#L258: func (cmap CommentMap) Filter(node Node) CommentMap {
commentmap.go#L260: Inspect(node, func(n Node) bool {
walk.go#L13: Visit(node Node) (w Visitor)
walk.go#L51: func Walk(v Visitor, node Node) {
walk.go#L370: type inspector func(Node) bool
walk.go#L372: func (f inspector) Visit(node Node) Visitor {
walk.go#L384: func Inspect(node Node, f func(Node) bool) {
go/doc
example.go#L26: Code ast.Node
example.go#L196: var inspectFunc func(ast.Node) bool
example.go#L197: inspectFunc = func(n ast.Node) bool {
go/printer
nodes.go#L1136: ast.Inspect(px.X, func(node ast.Node) bool {
nodes.go#L1650: func (p *printer) nodeSize(n ast.Node, maxSize int) (size int) {
nodes.go#L1683: func (p *printer) numLines(n ast.Node) int {
printer.go#L87: nodeSizes map[ast.Node]int
printer.go#L94: func (p *printer) init(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int) {
printer.go#L1031: func getDoc(n ast.Node) *ast.CommentGroup {
printer.go#L1051: func getLastComment(n ast.Node) *ast.CommentGroup {
printer.go#L1083: n, ok := node.(ast.Node)
printer.go#L1305: func (cfg *Config) fprint(output io.Writer, fset *token.FileSet, node interface{}, nodeSizes map[ast.Node]int) (err error) {
printer.go#L1367: return cfg.fprint(output, fset, node, make(map[ast.Node]int))
golang.org/x/pkgsite/internal/godoc
render.go#L118: sourceLinkFunc := func(n ast.Node) string {
golang.org/x/pkgsite/internal/godoc/dochtml
dochtml.go#L59: SourceLinkFunc func(ast.Node) string
dochtml.go#L291: sourceLink := func(name string, node ast.Node) safehtml.HTML {
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
idents.go#L342: func nodeName(n ast.Node) (string, *ast.Ident) {
linkify.go#L389: ast.Inspect(decl, func(node ast.Node) bool {
linkify.go#L521: func (v *rewriteVisitor) Visit(n ast.Node) ast.Visitor {
linkify.go#L535: func (v *rewriteVisitor) rewriteLongValue(n ast.Node, pcg **ast.CommentGroup) {
linkify.go#L665: ignore := map[ast.Node]bool{}
linkify.go#L666: ast.Inspect(decl, func(node ast.Node) bool {
render.go#L143: func (r *Renderer) ShortSynopsis(n ast.Node) (string, error) {
render.go#L148: func (r *Renderer) Synopsis(n ast.Node) string {
short_synopsis.go#L18: func shortOneLineNodeDepth(fset *token.FileSet, node ast.Node, depth int) (string, error) {
synopsis.go#L21: func OneLineNodeDepth(fset *token.FileSet, node ast.Node, depth int) string {
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L26: Code ast.Node
example.go#L303: func findDeclsAndUnresolved(body ast.Node, topDecls map[*ast.Object]ast.Decl, typMethods map[string][]ast.Decl) ([]ast.Decl, map[string]bool) {
example.go#L309: var inspectFunc func(ast.Node) bool
example.go#L310: inspectFunc = func(n ast.Node) bool {
example.go#L442: ast.Inspect(s, func(n ast.Node) bool {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |