mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Add some ast.Expr.IsEtc methods
This commit is contained in:
1 parent
b645180357
commit
41e407a774
7 files changed
+58
-48
No files matched your search
@@ -1035,9 +1035,9 @@ func (g *gen) writeConst(b *buffer, n *a.Const) error {
|
||||
}
|
||||
|
||||
func (g *gen) writeConstList(b *buffer, n *a.Expr) error {
|
||||
if n.Operator() == t.IDComma {
|
||||
if args, ok := n.IsList(); ok {
|
||||
b.writeb('{')
|
||||
for i, o := range n.Args() {
|
||||
for i, o := range args {
|
||||
if i&7 == 0 {
|
||||
b.writeb('\n')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user