Commit be67827
committed
compiler: Replace old importer with x/tools/go/gcimporter15.
The copied importer is an old package from Go 1.5 times. It was a copy
of x/tools/go/importer package. It does not support type aliases added
in Go 1.9. Encountering a type alias declaration caused a panic.
Use the gcimporter15 package instead. It supports a more modern binary
export format and includes support for type aliases.
The gcimporter15 package is marked as deprecated and said to be deleted
in October 2017. However, the replacement package does not expose the
functionality suitable for GopherJS current needs. That means we'll
need to find a resolution by the time it's deleted. It will either be a
feature request to add the needed functionality, a rewrite of GopherJS
code to use available functionality, or vendoring/copying the code.
Updates #278.1 parent 62cb4ed commit be67827
File tree
5 files changed
+4
-1002
lines changed- compiler
- third_party/importer
5 files changed
+4
-1002
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 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments