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

Method printString

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

Source from the content-addressed store, hash-verified

1241}
1242
1243func (p *Printer) printString(n node.Node) {
1244 nn := n.(*cast.String)
1245 p.printFreeFloating(nn, freefloating.Start)
1246
1247 p.printFreeFloating(nn, freefloating.Cast)
1248 if nn.GetFreeFloating().IsEmpty() {
1249 io.WriteString(p.w, "(string)")
1250 }
1251
1252 p.Print(nn.Expr)
1253 p.printFreeFloating(nn, freefloating.End)
1254}
1255
1256func (p *Printer) printUnset(n node.Node) {
1257 nn := n.(*cast.Unset)

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