Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1890 | |
| 1891 | // Format implements the NodeFormatter interface. |
| 1892 | func (d *DDate) Format(ctx *FmtCtx) { |
| 1893 | f := ctx.flags |
| 1894 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 1895 | if !bareStrings { |
| 1896 | ctx.WriteByte('\'') |
| 1897 | } |
| 1898 | d.Date.Format(&ctx.Buffer) |
| 1899 | if !bareStrings { |
| 1900 | ctx.WriteByte('\'') |
| 1901 | } |
| 1902 | } |
| 1903 | |
| 1904 | // Size implements the Datum interface. |
| 1905 | func (d *DDate) Size() uintptr { |