Documentation
¶
Index ¶
- Constants
- func BuildDir(ctx *ixgo.Context, dir string) (data []byte, err error)
- func BuildFSDir(ctx *ixgo.Context, fs parser.FileSystem, dir string) (data []byte, err error)
- func BuildFile(ctx *ixgo.Context, filename string, src interface{}) (data []byte, err error)
- func ClassKind(fname string) (isProj, ok bool)
- func RegisterClassFileType(ext string, class string, works []*modfile.Class, pkgPaths ...string)
- func RegisterPackagePatch(ctx *ixgo.Context, path string, src interface{}) error
- func RegisterProject(proj *modfile.Project)
- type Class
- type Context
- type Import
- type Package
- type Project
Constants ¶
View Source
const ( // StaticLoad is a mode flag that disables dynamic Importer creation. // When StaticLoad is set, the Context will use only the base Loader // for package imports instead of creating a dynamic ixgo.Importer. // This mode is useful for scenarios where all packages are pre-loaded // or when dynamic importing is not needed. StaticLoad = ixgo.LastMode * 2 // NormalizeExport is a mode flag that normalizes package patch exports. // When NormalizeExport is set, objects from package patches are re-exported // with the base package as their owner, rather than the patch package. // This allows patch symbols to appear as if they belong to the original package // (e.g., gsh.Point instead of gsh@patch.Point), providing a cleaner API. NormalizeExport = ixgo.LastMode * 4 )
Variables ¶
This section is empty.
Functions ¶
func BuildFSDir ¶
func RegisterClassFileType ¶
func RegisterPackagePatch ¶
func RegisterProject ¶
Types ¶
type Context ¶
type Context struct {
Context *ixgo.Context
FileSet *token.FileSet
Importer types.Importer
Loader ixgo.Loader
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) ParseFSDir ¶
type Package ¶
func (*Package) ForEachFile ¶
Click to show internal directories.
Click to hide internal directories.