Add pkg to ast Expr nodes

This commit is contained in:
Nigel Tao committed 2017-12-29 13:28:31 +11:00
1 parent 8b4ba30a36
commit 139bcfa7f1
5 files changed
+25 -7

No files matched your search

+1 -1
View File
@@ -440,7 +440,7 @@ func (g *gen) writeExprOther(b *buffer, n *a.Expr, rp replacementPolicy, pp pare
return nil
case t.KeyError, t.KeyStatus, t.KeySuspension:
status := g.statusMap[t.QID{0, n.Ident()}]
status := g.statusMap[n.StatusQID()]
if status.name == "" {
msg, _ := t.Unescape(n.Ident().Str(g.tm))
z := builtin.StatusMap[msg]