Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 3861 | |
| 3862 | // Format implements the NodeFormatter interface. |
| 3863 | func (d *DBox2D) Format(ctx *FmtCtx) { |
| 3864 | f := ctx.flags |
| 3865 | bareStrings := f.HasFlags(FmtFlags(lexbase.EncBareStrings)) |
| 3866 | if !bareStrings { |
| 3867 | ctx.WriteByte('\'') |
| 3868 | } |
| 3869 | ctx.Write(d.CartesianBoundingBox.AppendFormat(ctx.scratch[:0])) |
| 3870 | if !bareStrings { |
| 3871 | ctx.WriteByte('\'') |
| 3872 | } |
| 3873 | } |
| 3874 | |
| 3875 | // Size implements the Datum interface. |
| 3876 | func (d *DBox2D) Size() uintptr { |
nothing calls this directly
no test coverage detected