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

Method printExprClosureUse

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

Source from the content-addressed store, hash-verified

1411}
1412
1413func (p *Printer) printExprClosureUse(n node.Node) {
1414 nn := n.(*expr.ClosureUse)
1415 p.printFreeFloating(nn, freefloating.Start)
1416 io.WriteString(p.w, "use")
1417 p.printFreeFloating(nn, freefloating.Use)
1418 io.WriteString(p.w, "(")
1419 p.joinPrint(",", nn.Uses)
1420 p.printFreeFloating(nn, freefloating.LexicalVarList)
1421 io.WriteString(p.w, ")")
1422
1423 p.printFreeFloating(nn, freefloating.End)
1424}
1425
1426func (p *Printer) printExprClosure(n node.Node) {
1427 nn := n.(*expr.Closure)

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
joinPrintMethod · 0.95

Tested by

no test coverage detected