CleanNodeText set the text of node and all child node empty. For test only.
(node ast.Node)
| 6904 | // CleanNodeText set the text of node and all child node empty. |
| 6905 | // For test only. |
| 6906 | func CleanNodeText(node ast.Node) { |
| 6907 | var cleaner nodeTextCleaner |
| 6908 | node.Accept(&cleaner) |
| 6909 | } |
| 6910 | |
| 6911 | // nodeTextCleaner clean the text of a node and it's child node. |
| 6912 | // For test only. |
no test coverage detected