(node, emitSignatureHead)
| 112761 | emitSignatureAndBody(node, emitSignatureHead); |
| 112762 | } |
| 112763 | function emitSignatureAndBody(node, emitSignatureHead) { |
| 112764 | var body = node.body; |
| 112765 | if (body) { |
| 112766 | if (ts.isBlock(body)) { |
| 112767 | var indentedFlag = ts.getEmitFlags(node) & 65536 /* EmitFlags.Indented */; |
| 112768 | if (indentedFlag) { |
| 112769 | increaseIndent(); |
| 112770 | } |
| 112771 | pushNameGenerationScope(node); |
| 112772 | ts.forEach(node.parameters, generateNames); |
| 112773 | generateNames(node.body); |
| 112774 | emitSignatureHead(node); |
| 112775 | emitBlockFunctionBody(body); |
| 112776 | popNameGenerationScope(node); |
| 112777 | if (indentedFlag) { |
| 112778 | decreaseIndent(); |
| 112779 | } |
| 112780 | } |
| 112781 | else { |
| 112782 | emitSignatureHead(node); |
| 112783 | writeSpace(); |
| 112784 | emitExpression(body, parenthesizer.parenthesizeConciseBodyOfArrowFunction); |
| 112785 | } |
| 112786 | } |
| 112787 | else { |
| 112788 | emitSignatureHead(node); |
| 112789 | writeTrailingSemicolon(); |
| 112790 | } |
| 112791 | } |
| 112792 | function emitSignatureHead(node) { |
| 112793 | emitTypeParameters(node, node.typeParameters); |
| 112794 | emitParameters(node, node.parameters); |
no test coverage detected