Beispiel #1
0
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)
}
Beispiel #2
0
func CheckFile(projectPath, scriptPath, fileName string, layers []string) *CheckResult {
	objs := parser.ParseFileSet(projectPath, scriptPath, fileName, false, layers)
	return CheckBeforeLinking(objs)
}