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

Method printExprPropertyFetch

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

Source from the content-addressed store, hash-verified

1713}
1714
1715func (p *Printer) printExprPropertyFetch(n node.Node) {
1716 nn := n.(*expr.PropertyFetch)
1717 p.printFreeFloating(nn, freefloating.Start)
1718
1719 p.Print(nn.Variable)
1720 p.printFreeFloating(nn, freefloating.Var)
1721 io.WriteString(p.w, "->")
1722 p.Print(nn.Property)
1723
1724 p.printFreeFloating(nn, freefloating.End)
1725}
1726
1727func (p *Printer) printExprReference(n node.Node) {
1728 nn := n.(*expr.Reference)

Callers 1

printNodeMethod · 0.95

Calls 2

printFreeFloatingMethod · 0.95
PrintMethod · 0.95

Tested by

no test coverage detected