(n node.Node)
| 1235 | } |
| 1236 | |
| 1237 | func (p *PrettyPrinter) printExprShellExec(n node.Node) { |
| 1238 | nn := n.(*expr.ShellExec) |
| 1239 | |
| 1240 | io.WriteString(p.w, "`") |
| 1241 | for _, part := range nn.Parts { |
| 1242 | switch part.(type) { |
| 1243 | case *scalar.EncapsedStringPart: |
| 1244 | p.Print(part) |
| 1245 | default: |
| 1246 | io.WriteString(p.w, "{") |
| 1247 | p.Print(part) |
| 1248 | io.WriteString(p.w, "}") |
| 1249 | } |
| 1250 | } |
| 1251 | io.WriteString(p.w, "`") |
| 1252 | } |
| 1253 | |
| 1254 | func (p *PrettyPrinter) printExprShortArray(n node.Node) { |
| 1255 | nn := n.(*expr.ShortArray) |