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

Method printArray

printer/printer.go:1178–1189  ·  view source on GitHub ↗

cast

(n node.Node)

Source from the content-addressed store, hash-verified

1176// cast
1177
1178func (p *Printer) printArray(n node.Node) {
1179 nn := n.(*cast.Array)
1180 p.printFreeFloating(nn, freefloating.Start)
1181
1182 p.printFreeFloating(nn, freefloating.Cast)
1183 if nn.GetFreeFloating().IsEmpty() {
1184 io.WriteString(p.w, "(array)")
1185 }
1186
1187 p.Print(nn.Expr)
1188 p.printFreeFloating(nn, freefloating.End)
1189}
1190
1191func (p *Printer) printBool(n node.Node) {
1192 nn := n.(*cast.Bool)

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