Documentation
¶
Index ¶
- func ClassInfo(fname string) (autoLambdas map[string]int, isProj, ok bool)
- func ClassKind(fname string) (isProj, ok bool)deprecated
- func RegisterClassFileType(ext string, class string, works []*Class, pkgPaths ...string) *cl.Project
- type Class
- type Context
- func (ctx *Context) BuildDir(dir string) (data []byte, err error)
- func (ctx *Context) BuildFSDir(fs parser.FileSystem, dir string) (data []byte, err error)
- func (ctx *Context) BuildFile(filename string, src any) (data []byte, err error)
- func (c *Context) Import(path string) (*types.Package, error)
- func (c *Context) ParseDir(dir string) (*Package, error)
- func (c *Context) ParseFSDir(fs parser.FileSystem, dir string) (*Package, error)
- func (c *Context) ParseFile(file string, src any) (*Package, error)
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClassInfo ¶ added in v1.7.6
ClassInfo checks a fname is a known classfile or not. If it is, it returns the auto-lambda map, whether it is a project file, and true. See https://github.com/goplus/xgo/issues/2828 to learn about auto lambda.
Types ¶
type Context ¶
func (*Context) BuildFSDir ¶
func (*Context) ParseFSDir ¶
Click to show internal directories.
Click to hide internal directories.