var (
ErrPackageOrFileNotLoaded = errors.New("could not load package of file")
ErrBuildPackageFail = errors.New("could not create build package")
ErrGetFileABSFail = errors.New("could not absolute the file path")
)
ParseAndTypeCheckFile parses and type-checks the given file, and returns everything interesting about the file.
If a fatal error is encountered the error return argument is not nil.
ParseFile parses the content of the given file and returns the corresponding ast.File node and its file set for positional information.
If a fatal error is encountered the error return argument is not nil.
ParseSource parses the given source and returns the corresponding ast.File node and its file set for positional information.
If a fatal error is encountered the error return argument is not nil.