Documentation
¶
Index ¶
- func RunStringWithPackage(src, projectPath, scriptPath, fileName string, pkg *tp.Package, ...) (*tp.Transform, error)
- func RunWithPackage(projectPath, scriptPath, fileName string, pkg *tp.Package, ...) (*tp.Transform, error)
- type FuncMap
- type LinkingContext
- func (ctx *LinkingContext) HasErrors() bool
- func (ctx *LinkingContext) Link()
- func (ctx *LinkingContext) LinkRest()
- func (ctx *LinkingContext) LinkRoot()
- func (ctx *LinkingContext) ProcessInstruction(ins *tp.Instruction, scopeType int, path string) (returnType int)
- func (ctx *LinkingContext) ProcessInstructionWithLocalScope(ins *tp.Instruction, scopeType int, localScope LocalDef, caller string, ...) (returnType int)
- type LocalDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunStringWithPackage ¶
Types ¶
type LinkingContext ¶
type LinkingContext struct {
Errors []string
ProjectFolder string
ScriptsFolder string
*tp.Transform
Visiting map[string]bool
// contains filtered or unexported fields
}
func NewLinkingContext ¶
func NewLinkingContext(pkg *tp.Package, ranges ...Range) *LinkingContext
func NewObjectLinkingContext ¶
func NewObjectLinkingContext(pkg *tp.Package, objs []*tp.ScriptObject, projectPath, scriptPath string, ranges ...Range) *LinkingContext
func (*LinkingContext) HasErrors ¶
func (ctx *LinkingContext) HasErrors() bool
func (*LinkingContext) Link ¶
func (ctx *LinkingContext) Link()
func (*LinkingContext) LinkRest ¶
func (ctx *LinkingContext) LinkRest()
func (*LinkingContext) LinkRoot ¶
func (ctx *LinkingContext) LinkRoot()
func (*LinkingContext) ProcessInstruction ¶
func (ctx *LinkingContext) ProcessInstruction(ins *tp.Instruction, scopeType int, path string) (returnType int)
func (*LinkingContext) ProcessInstructionWithLocalScope ¶
func (ctx *LinkingContext) ProcessInstructionWithLocalScope(ins *tp.Instruction, scopeType int, localScope LocalDef, caller string, path string, justRoot bool) (returnType int)
Click to show internal directories.
Click to hide internal directories.