ast

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comment

func Comment(n ast.Node) (string, bool)

func FindTopNodeByName

func FindTopNodeByName(f *ast.File, name string) (ast.Node, []ast.Node, bool)

func LoadFileAST

func LoadFileAST(path string) (*ast.File, error)

func Walk

func Walk(f *ast.File, visitor func(node ast.Node, parents []ast.Node) bool)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL