Remove status values

This commit is contained in:
Nigel Tao committed 2018-08-12 19:36:29 +10:00
1 parent 44e99d79cf
commit 203b45e869
13 files changed
+61 -146

No files matched your search

-6
View File
@@ -210,12 +210,6 @@ func (g *gen) writeExprOther(b *buffer, n *a.Expr, rp replacementPolicy, depth u
case t.IDError, t.IDStatus, t.IDSuspension:
if z := g.statusMap[n.StatusQID()]; z.cName != "" {
b.writes(g.pkgPrefix)
if z.keyword == t.IDSuspension {
b.writes("suspension__")
} else {
b.writes("error__")
}
b.writes(z.cName)
} else {
msg, _ := t.Unescape(n.Ident().Str(g.tm))