Given an AST node, return the string representation of names
(root ast.Node)
| 13 | |
| 14 | // Given an AST node, return the string representation of names |
| 15 | func flatten(root ast.Node) (string, bool) { |
| 16 | sw := &stringWalker{} |
| 17 | astutils.Walk(sw, root) |
| 18 | return sw.String, sw.IsConst |
| 19 | } |
| 20 | |
| 21 | type stringWalker struct { |
| 22 | String string |
no test coverage detected