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

Method printExprShortArray

printer/printer.go:1774–1784  ·  view source on GitHub ↗
(n node.Node)

Source from the content-addressed store, hash-verified

1772}
1773
1774func (p *Printer) printExprShortArray(n node.Node) {
1775 nn := n.(*expr.ShortArray)
1776 p.printFreeFloating(nn, freefloating.Start)
1777
1778 io.WriteString(p.w, "[")
1779 p.joinPrint(",", nn.Items)
1780 p.printFreeFloating(nn, freefloating.ArrayPairList)
1781 io.WriteString(p.w, "]")
1782
1783 p.printFreeFloating(nn, freefloating.End)
1784}
1785
1786func (p *Printer) printExprShortList(n node.Node) {
1787 nn := n.(*expr.ShortList)

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
joinPrintMethod · 0.95

Tested by

no test coverage detected