Documentation
¶
Overview ¶
Package parser provides a mockable wrapper for go/parser.
Index ¶
- type Impl
- func (*Impl) ParseDir(fset *token.FileSet, path string, filter func(fs.FileInfo) bool, ...) (pkgs map[string]*ast.Package, first error)
- func (*Impl) ParseExpr(x string) (ast.Expr, error)
- func (*Impl) ParseExprFrom(fset *token.FileSet, filename string, src any, mode parser.Mode) (expr ast.Expr, err error)
- func (*Impl) ParseFile(fset *token.FileSet, filename string, src any, mode parser.Mode) (f *ast.File, err error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { ParseDir(fset *token.FileSet, path string, filter func(fs.FileInfo) bool, mode parser.Mode) (pkgs map[string]*ast.Package, first error) ParseExpr(x string) (ast.Expr, error) ParseExprFrom(fset *token.FileSet, filename string, src any, mode parser.Mode) (expr ast.Expr, err error) ParseFile(fset *token.FileSet, filename string, src any, mode parser.Mode) (f *ast.File, err error) }
Click to show internal directories.
Click to hide internal directories.