(n node.Node)
| 3222 | } |
| 3223 | |
| 3224 | func (p *Printer) printStmtUse(n node.Node) { |
| 3225 | nn := n.(*stmt.Use) |
| 3226 | p.printFreeFloating(nn, freefloating.Start) |
| 3227 | |
| 3228 | if nn.UseType != nil { |
| 3229 | p.Print(nn.UseType) |
| 3230 | if nn.UseType.GetFreeFloating().IsEmpty() { |
| 3231 | io.WriteString(p.w, " ") |
| 3232 | } |
| 3233 | } |
| 3234 | |
| 3235 | p.printFreeFloating(nn, freefloating.Slash) |
| 3236 | |
| 3237 | p.Print(nn.Use) |
| 3238 | |
| 3239 | if nn.Alias != nil { |
| 3240 | if nn.Alias.GetFreeFloating().IsEmpty() { |
| 3241 | io.WriteString(p.w, " ") |
| 3242 | } |
| 3243 | io.WriteString(p.w, "as") |
| 3244 | if nn.Alias.GetFreeFloating().IsEmpty() { |
| 3245 | io.WriteString(p.w, " ") |
| 3246 | } |
| 3247 | p.Print(nn.Alias) |
| 3248 | } |
| 3249 | |
| 3250 | p.printFreeFloating(nn, freefloating.End) |
| 3251 | } |
| 3252 | |
| 3253 | func (p *Printer) printStmtWhile(n node.Node) { |
| 3254 | nn := n.(*stmt.While) |
no test coverage detected