Add via keyword and named args.

This commit is contained in:
Nigel Tao committed 2017-05-19 16:14:05 +10:00
1 parent 9719fab535
commit 06eaadb1d6
7 files changed
+86 -27

No files matched your search

+3 -1
View File
@@ -41,7 +41,9 @@ func (n *Expr) appendString(buf []byte, m *t.IDMap, parenthesize bool, depth uin
if i != 0 {
buf = append(buf, ", "...)
}
buf = o.Expr().appendString(buf, m, false, depth)
buf = append(buf, m.ByID(o.Arg().Name())...)
buf = append(buf, ':')
buf = o.Arg().Value().appendString(buf, m, false, depth)
}
buf = append(buf, ')')