emits a Type node preserving whether or not we are currently in the `extends` clause of a ConditionalType or InferType
(node *ast.TypeNode, precedence ast.TypePrecedence)
| 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) { |
| 2271 | p.emitTypeNode(node, precedence) |
| 2272 | } |
| 2273 | |
| 2274 | func (p *Printer) emitTypeNode(node *ast.TypeNode, precedence ast.TypePrecedence) { |
| 2275 | if p.inExtends && precedence <= ast.TypePrecedenceConditional { |
no test coverage detected