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

Method printStmtLabel

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

Source from the content-addressed store, hash-verified

2833}
2834
2835func (p *Printer) printStmtLabel(n node.Node) {
2836 nn := n.(*stmt.Label)
2837 p.printFreeFloating(nn, freefloating.Start)
2838
2839 p.Print(nn.LabelName)
2840 p.printFreeFloating(nn, freefloating.Label)
2841
2842 io.WriteString(p.w, ":")
2843
2844 p.printFreeFloating(nn, freefloating.End)
2845}
2846
2847func (p *Printer) printStmtNamespace(n node.Node) {
2848 nn := n.(*stmt.Namespace)

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
PrintMethod · 0.95

Tested by

no test coverage detected