linker

package
v0.0.0-...-6f0ee80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2016 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunStringWithPackage

func RunStringWithPackage(src, projectPath, scriptPath, fileName string, pkg *tp.Package, activeLayers []string, ranges ...Range) (*tp.Transform, error)

func RunWithPackage

func RunWithPackage(projectPath, scriptPath, fileName string, pkg *tp.Package, activeLayers []string) (*tp.Transform, error)

Types

type FuncMap

type FuncMap map[string]int

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 (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)

type LocalDef

type LocalDef map[string]int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL