@@ -113,10 +113,7 @@ func (p *gc_bin_parser) parse_export(callback func(string, ast.Decl)) {
113
113
114
114
// read version specific flags - extend as necessary
115
115
switch p .version {
116
- // case 6:
117
- // ...
118
- // fallthrough
119
- case 5 , 4 , 3 , 2 , 1 :
116
+ case 6 , 5 , 4 , 3 , 2 , 1 :
120
117
p .debugFormat = p .rawStringln (p .rawByte ()) == "debug"
121
118
p .trackAllTypes = p .int () != 0
122
119
p .posInfoFormat = p .int () != 0
@@ -172,6 +169,9 @@ func (p *gc_bin_parser) pkg() string {
172
169
} else {
173
170
path = p .string ()
174
171
}
172
+ if p .version >= 6 {
173
+ p .int () // package height; unused by go/types
174
+ }
175
175
176
176
// we should never see an empty package name
177
177
if name == "" {
@@ -810,13 +810,13 @@ var predeclared = []ast.Expr{
810
810
// TODO(nsf): don't think those are used in just package type info,
811
811
// maybe for consts, but we are not interested in that
812
812
// untyped types
813
- ast .NewIdent (">_< " ), // TODO: types.Typ[types.UntypedBool],
814
- ast .NewIdent (">_< " ), // TODO: types.Typ[types.UntypedInt],
815
- ast .NewIdent (">_< " ), // TODO: types.Typ[types.UntypedRune],
816
- ast .NewIdent (">_< " ), // TODO: types.Typ[types.UntypedFloat],
817
- ast .NewIdent (">_< " ), // TODO: types.Typ[types.UntypedComplex],
818
- ast .NewIdent (">_< " ), // TODO: types.Typ[types.UntypedString],
819
- ast .NewIdent (">_< " ), // TODO: types.Typ[types.UntypedNil],
813
+ ast .NewIdent ("&untypedBool& " ), // TODO: types.Typ[types.UntypedBool],
814
+ ast .NewIdent ("&untypedInt& " ), // TODO: types.Typ[types.UntypedInt],
815
+ ast .NewIdent ("&untypedRune& " ), // TODO: types.Typ[types.UntypedRune],
816
+ ast .NewIdent ("&untypedFloat& " ), // TODO: types.Typ[types.UntypedFloat],
817
+ ast .NewIdent ("&untypedComplex& " ), // TODO: types.Typ[types.UntypedComplex],
818
+ ast .NewIdent ("&untypedString& " ), // TODO: types.Typ[types.UntypedString],
819
+ ast .NewIdent ("&untypedNil& " ), // TODO: types.Typ[types.UntypedNil],
820
820
821
821
// package unsafe
822
822
& ast.SelectorExpr {X : ast .NewIdent ("unsafe" ), Sel : ast .NewIdent ("Pointer" )},
0 commit comments