(n node.Node)
| 1866 | } |
| 1867 | |
| 1868 | func (p *Printer) printExprVariable(n node.Node) { |
| 1869 | nn := n.(*expr.Variable) |
| 1870 | p.printFreeFloating(nn, freefloating.Start) |
| 1871 | |
| 1872 | p.printFreeFloating(nn, freefloating.Dollar) |
| 1873 | if nn.GetFreeFloating().IsEmpty() { |
| 1874 | io.WriteString(p.w, "$") |
| 1875 | } |
| 1876 | |
| 1877 | p.Print(nn.VarName) |
| 1878 | |
| 1879 | p.printFreeFloating(nn, freefloating.End) |
| 1880 | } |
| 1881 | |
| 1882 | func (p *Printer) printExprVariableWithoutLeadingDollar(n node.Node) { |
| 1883 | nn := n.(*expr.Variable) |
no test coverage detected