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

Method printExprShellExec

printer/pretty_printer.go:1237–1252  ·  view source on GitHub ↗
(n node.Node)

Source from the content-addressed store, hash-verified

1235}
1236
1237func (p *PrettyPrinter) printExprShellExec(n node.Node) {
1238 nn := n.(*expr.ShellExec)
1239
1240 io.WriteString(p.w, "`")
1241 for _, part := range nn.Parts {
1242 switch part.(type) {
1243 case *scalar.EncapsedStringPart:
1244 p.Print(part)
1245 default:
1246 io.WriteString(p.w, "{")
1247 p.Print(part)
1248 io.WriteString(p.w, "}")
1249 }
1250 }
1251 io.WriteString(p.w, "`")
1252}
1253
1254func (p *PrettyPrinter) printExprShortArray(n node.Node) {
1255 nn := n.(*expr.ShortArray)

Callers 1

printNodeMethod · 0.95

Calls 1

PrintMethod · 0.95

Tested by

no test coverage detected