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

Method printNodeRoot

printer/printer.go:441–447  ·  view source on GitHub ↗

node

(n node.Node)

Source from the content-addressed store, hash-verified

439// node
440
441func (p *Printer) printNodeRoot(n node.Node) {
442 nn := n.(*node.Root)
443 p.SetState(HtmlState)
444 p.printFreeFloating(nn, freefloating.Start)
445 p.printNodes(nn.Stmts)
446 p.printFreeFloating(nn, freefloating.End)
447}
448
449func (p *Printer) printNodeIdentifier(n node.Node) {
450 nn := n.(*node.Identifier)

Callers 1

printNodeMethod · 0.95

Calls 3

SetStateMethod · 0.95
printFreeFloatingMethod · 0.95
printNodesMethod · 0.95

Tested by

no test coverage detected