emits a Type node not in the `extends` clause of a ConditionalType or InferType
(node *ast.TypeNode)
| 2260 | |
| 2261 | // emits a Type node not in the `extends` clause of a ConditionalType or InferType |
| 2262 | func (p *Printer) emitTypeNodeOutsideExtends(node *ast.TypeNode) { |
| 2263 | savedInExtends := p.inExtends |
| 2264 | p.inExtends = false |
| 2265 | p.emitTypeNodePreservingExtends(node, ast.TypePrecedenceLowest) |
| 2266 | p.inExtends = savedInExtends |
| 2267 | } |
| 2268 | |
| 2269 | // emits a Type node preserving whether or not we are currently in the `extends` clause of a ConditionalType or InferType |
| 2270 | func (p *Printer) emitTypeNodePreservingExtends(node *ast.TypeNode, precedence ast.TypePrecedence) { |
no test coverage detected