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

Method printExprArrayDimFetch

printer/pretty_printer.go:964–970  ·  view source on GitHub ↗

expr

(n node.Node)

Source from the content-addressed store, hash-verified

962// expr
963
964func (p *PrettyPrinter) printExprArrayDimFetch(n node.Node) {
965 nn := n.(*expr.ArrayDimFetch)
966 p.Print(nn.Variable)
967 io.WriteString(p.w, "[")
968 p.Print(nn.Dim)
969 io.WriteString(p.w, "]")
970}
971
972func (p *PrettyPrinter) printExprArrayItem(n node.Node) {
973 nn := n.(*expr.ArrayItem)

Callers 1

printNodeMethod · 0.95

Calls 1

PrintMethod · 0.95

Tested by

no test coverage detected