compile

package
v0.0.0-...-dc6f9f8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BacklinkFunc

func BacklinkFunc(fu *model.Func)

func CompileRepo

func CompileRepo(repoDirs []string, pkgPaths []string) (repo model.Repo, err error)

CompileRepo compiles all files in the given packages in a repository contained in given directories into a Repo.

func CompileString

func CompileString(forPkg, fileName, fileText string) (model.Repo, error)

CompileString compiles a file with given name & content in a package with given name.

func GraftFile

func GraftFile(pkgPath string, file syntax.File) (pkg model.Package, err error)

Step logics include:

  • PkgFunc
  • Operator with other-than-two reference elements

func GraftRepo

func GraftRepo(pkgFiles map[string][]syntax.File) (repo model.Repo, err error)

Step logics include Operator logics with 0, 1, 3 or more elements, as well as PkgFunc logics.

func MustCompileString

func MustCompileString(forPkg, fileName, fileText string) model.Repo

MustCompileString compiles a file with given name & content in a package with given name. The function with panic is case of errors.

func StepID

func StepID(label string) model.ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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