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

Method printNodeArgument

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

Source from the content-addressed store, hash-verified

494}
495
496func (p *Printer) printNodeArgument(n node.Node) {
497 nn := n.(*node.Argument)
498 p.printFreeFloating(nn, freefloating.Start)
499
500 if nn.IsReference {
501 io.WriteString(p.w, "&")
502 }
503 p.printFreeFloating(nn, freefloating.Ampersand)
504
505 if nn.Variadic {
506 io.WriteString(p.w, "...")
507 }
508 p.printFreeFloating(nn, freefloating.Variadic)
509
510 p.Print(nn.Expr)
511
512 p.printFreeFloating(nn, freefloating.End)
513}
514
515// name
516

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
PrintMethod · 0.95

Tested by

no test coverage detected