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

Method printExprInclude

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

Source from the content-addressed store, hash-verified

1547}
1548
1549func (p *Printer) printExprInclude(n node.Node) {
1550 nn := n.(*expr.Include)
1551 p.printFreeFloating(nn, freefloating.Start)
1552 io.WriteString(p.w, "include")
1553 if nn.Expr.GetFreeFloating().IsEmpty() {
1554 io.WriteString(p.w, " ")
1555 }
1556 p.Print(nn.Expr)
1557 p.printFreeFloating(nn, freefloating.End)
1558}
1559
1560func (p *Printer) printExprIncludeOnce(n node.Node) {
1561 nn := n.(*expr.IncludeOnce)

Callers 1

printNodeMethod · 0.95

Calls 4

printFreeFloatingMethod · 0.95
PrintMethod · 0.95
IsEmptyMethod · 0.80
GetFreeFloatingMethod · 0.65

Tested by

no test coverage detected