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

Method printExprArrayDimFetchWithoutLeadingDollar

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

Source from the content-addressed store, hash-verified

1285}
1286
1287func (p *Printer) printExprArrayDimFetchWithoutLeadingDollar(n node.Node) {
1288 nn := n.(*expr.ArrayDimFetch)
1289 p.printFreeFloating(nn, freefloating.Start)
1290 p.printExprVariableWithoutLeadingDollar(nn.Variable)
1291 p.printFreeFloating(nn, freefloating.Var)
1292 if nn.GetFreeFloating().IsEmpty() {
1293 io.WriteString(p.w, "[")
1294 }
1295 p.Print(nn.Dim)
1296 p.printFreeFloating(nn, freefloating.Expr)
1297 if nn.GetFreeFloating().IsEmpty() {
1298 io.WriteString(p.w, "]")
1299 }
1300 p.printFreeFloating(nn, freefloating.End)
1301}
1302
1303func (p *Printer) printExprArrayItem(n node.Node) {
1304 nn := n.(*expr.ArrayItem)

Callers 2

printScalarEncapsedMethod · 0.95
printScalarHeredocMethod · 0.95

Calls 5

printFreeFloatingMethod · 0.95
PrintMethod · 0.95
IsEmptyMethod · 0.80
GetFreeFloatingMethod · 0.65

Tested by

no test coverage detected