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

Method printNodeNullable

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

Source from the content-addressed store, hash-verified

484}
485
486func (p *Printer) printNodeNullable(n node.Node) {
487 nn := n.(*node.Nullable)
488 p.printFreeFloating(nn, freefloating.Start)
489
490 io.WriteString(p.w, "?")
491 p.Print(nn.Expr)
492
493 p.printFreeFloating(nn, freefloating.End)
494}
495
496func (p *Printer) printNodeArgument(n node.Node) {
497 nn := n.(*node.Argument)

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
PrintMethod · 0.95

Tested by

no test coverage detected