示例#1
0
文件: linker.go 项目: nmakiya/tritium
func RunWithPackage(projectPath, scriptPath, fileName string, pkg *tp.Package, layers []string) (*tp.Transform, error) {
	objs := parser.ParseFileSet(projectPath, scriptPath, fileName, false, layers)
	return runWithObjs(objs, pkg, projectPath, scriptPath, layers)
}
示例#2
0
func CheckFile(projectPath, scriptPath, fileName string, layers []string) *CheckResult {
	objs := parser.ParseFileSet(projectPath, scriptPath, fileName, false, layers)
	return CheckBeforeLinking(objs)
}