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

Method printStmtExpression

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

Source from the content-addressed store, hash-verified

2543}
2544
2545func (p *Printer) printStmtExpression(n node.Node) {
2546 nn := n.(*stmt.Expression)
2547 p.printFreeFloating(nn, freefloating.Start)
2548
2549 p.Print(nn.Expr)
2550 p.printFreeFloating(nn, freefloating.Expr)
2551
2552 p.printFreeFloating(nn, freefloating.SemiColon)
2553 if nn.GetFreeFloating().IsEmpty() {
2554 io.WriteString(p.w, ";")
2555 }
2556
2557 p.printFreeFloating(nn, freefloating.End)
2558}
2559
2560func (p *Printer) printStmtFinally(n node.Node) {
2561 nn := n.(*stmt.Finally)

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