(n node.Node)
| 2948 | } |
| 2949 | |
| 2950 | func (p *Printer) printStmtStaticVar(n node.Node) { |
| 2951 | nn := n.(*stmt.StaticVar) |
| 2952 | p.printFreeFloating(nn, freefloating.Start) |
| 2953 | |
| 2954 | p.Print(nn.Variable) |
| 2955 | |
| 2956 | if nn.Expr != nil { |
| 2957 | p.printFreeFloating(nn, freefloating.Var) |
| 2958 | io.WriteString(p.w, "=") |
| 2959 | p.Print(nn.Expr) |
| 2960 | } |
| 2961 | |
| 2962 | p.printFreeFloating(nn, freefloating.End) |
| 2963 | } |
| 2964 | |
| 2965 | func (p *Printer) printStmtStatic(n node.Node) { |
| 2966 | nn := n.(*stmt.Static) |
no test coverage detected