package
2.0.0+incompatible
Repository: https://github.com/sourcegraph/go-langserver.git
Documentation: pkg.go.dev
# Functions
ParseDir calls ParseFile for the files in the directory specified by path and returns a map of package name -> package AST with all the packages found.
ParseExpr parses a Go expression and returns the corresponding AST node.
ParseFile parses the source code of a single Go source file and returns the corresponding ast.File node.
ParseFiles calls ParseFile for each file in the filenames list and returns a map of package name -> package AST with all the packages found.
# Constants
report declaration errors.
parsing stops after import declarations.
parsing stops after package clause.
parse comments and add them to AST.
print a trace of parsed productions.
# Variables
No description provided by the author
# Type aliases
ImportPathToName is the type of the function that's used to find the package name for an imported package path.