expr
(n node.Node)
| 1269 | // expr |
| 1270 | |
| 1271 | func (p *Printer) printExprArrayDimFetch(n node.Node) { |
| 1272 | nn := n.(*expr.ArrayDimFetch) |
| 1273 | p.printFreeFloating(nn, freefloating.Start) |
| 1274 | p.Print(nn.Variable) |
| 1275 | p.printFreeFloating(nn, freefloating.Var) |
| 1276 | if nn.GetFreeFloating().IsEmpty() { |
| 1277 | io.WriteString(p.w, "[") |
| 1278 | } |
| 1279 | p.Print(nn.Dim) |
| 1280 | p.printFreeFloating(nn, freefloating.Expr) |
| 1281 | if nn.GetFreeFloating().IsEmpty() { |
| 1282 | io.WriteString(p.w, "]") |
| 1283 | } |
| 1284 | p.printFreeFloating(nn, freefloating.End) |
| 1285 | } |
| 1286 | |
| 1287 | func (p *Printer) printExprArrayDimFetchWithoutLeadingDollar(n node.Node) { |
| 1288 | nn := n.(*expr.ArrayDimFetch) |
no test coverage detected