NodeToStringWithoutQuote get node text
(node ast.Node)
| 278 | |
| 279 | // NodeToStringWithoutQuote get node text |
| 280 | func NodeToStringWithoutQuote(node ast.Node) (string, error) { |
| 281 | s := &strings.Builder{} |
| 282 | if err := node.Restore(pformat.NewRestoreCtx(resultTableNameFlag, s)); err != nil { |
| 283 | return "", err |
| 284 | } |
| 285 | return s.String(), nil |
| 286 | } |