(n node.Node)
| 1617 | } |
| 1618 | |
| 1619 | func (p *Printer) printExprMethodCall(n node.Node) { |
| 1620 | nn := n.(*expr.MethodCall) |
| 1621 | p.printFreeFloating(nn, freefloating.Start) |
| 1622 | |
| 1623 | p.Print(nn.Variable) |
| 1624 | p.printFreeFloating(nn, freefloating.Var) |
| 1625 | io.WriteString(p.w, "->") |
| 1626 | p.Print(nn.Method) |
| 1627 | |
| 1628 | p.printFreeFloating(nn.ArgumentList, freefloating.Start) |
| 1629 | io.WriteString(p.w, "(") |
| 1630 | p.joinPrint(",", nn.ArgumentList.Arguments) |
| 1631 | p.printFreeFloating(nn.ArgumentList, freefloating.ArgumentList) |
| 1632 | io.WriteString(p.w, ")") |
| 1633 | p.printFreeFloating(nn.ArgumentList, freefloating.End) |
| 1634 | |
| 1635 | p.printFreeFloating(nn, freefloating.End) |
| 1636 | } |
| 1637 | |
| 1638 | func (p *Printer) printExprNew(n node.Node) { |
| 1639 | nn := n.(*expr.New) |
no test coverage detected