Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 81 | |
| 82 | // Format implements the NodeFormatter interface. |
| 83 | func (u *UnrestrictedName) Format(ctx *FmtCtx) { |
| 84 | f := ctx.flags |
| 85 | if f.HasFlags(FmtAnonymize) { |
| 86 | ctx.WriteByte('_') |
| 87 | } else { |
| 88 | lexbase.EncodeUnrestrictedSQLIdent(&ctx.Buffer, string(*u), f.EncodeFlags()) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | // ToStrings converts the name list to an array of regular strings. |
| 93 | func (l NameList) ToStrings() []string { |
nothing calls this directly
no test coverage detected