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

Method printStmtInlineHTML

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

Source from the content-addressed store, hash-verified

2786}
2787
2788func (p *Printer) printStmtInlineHTML(n node.Node) {
2789 nn := n.(*stmt.InlineHtml)
2790 p.printFreeFloating(nn, freefloating.Start)
2791
2792 if p.s == PhpState && nn.GetFreeFloating().IsEmpty() {
2793 io.WriteString(p.w, "?>")
2794 }
2795 p.SetState(HtmlState)
2796
2797 io.WriteString(p.w, nn.Value)
2798
2799 p.printFreeFloating(nn, freefloating.End)
2800}
2801
2802func (p *Printer) printStmtInterface(n node.Node) {
2803 nn := n.(*stmt.Interface)

Callers 1

printNodeMethod · 0.95

Calls 4

printFreeFloatingMethod · 0.95
SetStateMethod · 0.95
IsEmptyMethod · 0.80
GetFreeFloatingMethod · 0.65

Tested by

no test coverage detected