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

Method printExprArray

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

Source from the content-addressed store, hash-verified

1320}
1321
1322func (p *Printer) printExprArray(n node.Node) {
1323 nn := n.(*expr.Array)
1324 p.printFreeFloating(nn, freefloating.Start)
1325 io.WriteString(p.w, "array")
1326 p.printFreeFloating(nn, freefloating.Array)
1327 io.WriteString(p.w, "(")
1328 p.joinPrint(",", nn.Items)
1329 p.printFreeFloating(nn, freefloating.ArrayPairList)
1330 io.WriteString(p.w, ")")
1331
1332 p.printFreeFloating(nn, freefloating.End)
1333}
1334
1335func (p *Printer) printExprArrowFunction(n node.Node) {
1336 nn := n.(*expr.ArrowFunction)

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
joinPrintMethod · 0.95

Tested by

no test coverage detected