Also, add loader.Config.DisplayPath hook, which allows the filename returned by build.Context.Import() to be transformed prior to attaching to the AST. This allows a virtual file system to be used without leaking into the user interface. Eliminate parsePackageFiles hook; I don't think we need it any more. The test that was using it has been rewritten to use the build.Context hooks. LGTM=gri R=gri, crawshaw CC=daniel.morsing, golang-codereviews, rsc https://golang.org/cl/75520046 |
||
|---|---|---|
| .. | ||
| testdata | ||
| importer_test.go | ||
| loader.go | ||
| pkginfo.go | ||
| source_test.go | ||
| stdlib_test.go | ||
| util.go | ||