AsStringWithFlags pretty prints a node to a string given specific flags; only flags that don't require Annotations can be used.
(n NodeFormatter, fl FmtFlags)
| 429 | // AsStringWithFlags pretty prints a node to a string given specific flags; only |
| 430 | // flags that don't require Annotations can be used. |
| 431 | func AsStringWithFlags(n NodeFormatter, fl FmtFlags) string { |
| 432 | ctx := NewFmtCtx(fl) |
| 433 | ctx.FormatNode(n) |
| 434 | return ctx.CloseAndGetString() |
| 435 | } |
| 436 | |
| 437 | // AsStringWithFQNames pretty prints a node to a string with the |
| 438 | // FmtAlwaysQualifyTableNames flag (which requires annotations). |
no test coverage detected