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, opts ...FmtCtxOption)
| 788 | // AsStringWithFlags pretty prints a node to a string given specific flags; only |
| 789 | // flags that don't require Annotations can be used. |
| 790 | func AsStringWithFlags(n NodeFormatter, fl FmtFlags, opts ...FmtCtxOption) string { |
| 791 | ctx := NewFmtCtx(fl, opts...) |
| 792 | if fl.HasFlags(FmtSummary) { |
| 793 | ctx.formatNodeSummary(n) |
| 794 | } else { |
| 795 | ctx.FormatNode(n) |
| 796 | } |
| 797 | return ctx.CloseAndGetString() |
| 798 | } |
| 799 | |
| 800 | // AsStringWithFQNames pretty prints a node to a string with the |
| 801 | // FmtAlwaysQualifyTableNames flag (which requires annotations). |
no test coverage detected
searching dependent graphs…