- simplified handling of primary types (types w/ names which must
be canonicalized upon import)
- missed some exports
R=r
OCL=13733
CL=13733
diff --git a/usr/gri/gosrc/parser.go b/usr/gri/gosrc/parser.go
index 02081d3..d7e7fa0 100644
--- a/usr/gri/gosrc/parser.go
+++ b/usr/gri/gosrc/parser.go
@@ -1649,15 +1649,21 @@
typ := P.TryType();
if typ != nil {
for p := list.first; p != nil; p = p.next {
- p.obj.exported = exported;
- p.obj.typ = typ; // TODO should use/have set_type()!
+ p.obj.typ = typ;
}
}
+
if P.tok == Scanner.ASSIGN {
P.Next();
P.ParseExpressionList();
}
+ if exported {
+ for p := list.first; p != nil; p = p.next {
+ p.obj.exported = true;
+ }
+ }
+
P.Ecart();
}
@@ -1725,6 +1731,12 @@
}
}
+ if exported {
+ for p := list.first; p != nil; p = p.next {
+ p.obj.exported = true;
+ }
+ }
+
P.Ecart();
}