MCPcopy
hub / github.com/pingcap/tidb / CleanNodeText

Function CleanNodeText

pkg/parser/parser_test.go:6906–6909  ·  view source on GitHub ↗

CleanNodeText set the text of node and all child node empty. For test only.

(node ast.Node)

Source from the content-addressed store, hash-verified

6904// CleanNodeText set the text of node and all child node empty.
6905// For test only.
6906func 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.

Callers 2

RunRestoreTestFunction · 0.70

Calls 1

AcceptMethod · 0.65

Tested by

no test coverage detected