Commit 5c4af73
committed
WIP: Vendor x/tools/go/importer, x/tools/go/types/typeutil, modify them to import go/types.
go/types defines some types just like golang.org/x/tools/go/types, but
because they have different import paths, those types are not
interchangeable.
Not all packages have moved into Go standard library. Namely,
golang.org/x/tools/go/importer and golang.org/x/tools/go/types/typeutil
are still living in x/tools subrepo. They have not yet been updated to
import go/types, so if we import them as is, we would have incompatible
types defined in go/types and golang.org/x/tools/go/types.
A temporary solution to have a working codebase is to vendor those 2
packages and modify them to import go/types.
This can be undone as soon as the upstream packages are modified to
import go/types themselves (should hopefully happen soon, e.g., see
golang/tools@12c48ce
for first related change).1 parent 7b9282a commit 5c4af73
File tree
9 files changed
+1459
-3
lines changed- compiler
- third_party
- importer
- typeutil
9 files changed
+1459
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments