OriginalDir returns the real directory name. It is the same as p.Dir except that if it is part of the cached GOROOT, its real location is returned.
()
| 339 | // OriginalDir returns the real directory name. It is the same as p.Dir except |
| 340 | // that if it is part of the cached GOROOT, its real location is returned. |
| 341 | func (p *Package) OriginalDir() string { |
| 342 | return strings.TrimSuffix(p.program.getOriginalPath(p.Dir+string(os.PathSeparator)), string(os.PathSeparator)) |
| 343 | } |
| 344 | |
| 345 | // parseFile is a wrapper around parser.ParseFile. |
| 346 | func (p *Package) parseFile(path string, mode parser.Mode) (*ast.File, error) { |
no test coverage detected