(typ super.Type)
| 699 | } |
| 700 | |
| 701 | func (f *Formatter) startColorPrimitive(typ super.Type) { |
| 702 | if !f.colorDisabled { |
| 703 | c, ok := colors[super.TypeUnder(typ)] |
| 704 | if !ok { |
| 705 | c = color.Reset |
| 706 | } |
| 707 | f.startColor(c) |
| 708 | } |
| 709 | } |
| 710 | |
| 711 | func (f *Formatter) startColor(code color.Code) { |
| 712 | if !f.colorDisabled { |
no test coverage detected