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

Method printStmtStaticVar

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

Source from the content-addressed store, hash-verified

2948}
2949
2950func (p *Printer) printStmtStaticVar(n node.Node) {
2951 nn := n.(*stmt.StaticVar)
2952 p.printFreeFloating(nn, freefloating.Start)
2953
2954 p.Print(nn.Variable)
2955
2956 if nn.Expr != nil {
2957 p.printFreeFloating(nn, freefloating.Var)
2958 io.WriteString(p.w, "=")
2959 p.Print(nn.Expr)
2960 }
2961
2962 p.printFreeFloating(nn, freefloating.End)
2963}
2964
2965func (p *Printer) printStmtStatic(n node.Node) {
2966 nn := n.(*stmt.Static)

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
PrintMethod · 0.95

Tested by

no test coverage detected