MCPcopy Create free account
hub / github.com/z7zmey/php-parser / printExprShortArray

Method printExprShortArray

printer/pretty_printer.go:1254–1260  ·  view source on GitHub ↗
(n node.Node)

Source from the content-addressed store, hash-verified

1252}
1253
1254func (p *PrettyPrinter) printExprShortArray(n node.Node) {
1255 nn := n.(*expr.ShortArray)
1256
1257 io.WriteString(p.w, "[")
1258 p.joinPrint(", ", nn.Items)
1259 io.WriteString(p.w, "]")
1260}
1261
1262func (p *PrettyPrinter) printExprShortList(n node.Node) {
1263 nn := n.(*expr.ShortList)

Callers 1

printNodeMethod · 0.95

Calls 1

joinPrintMethod · 0.95

Tested by

no test coverage detected