(parentNode, statements, colonPos)
| 113226 | emitCaseOrDefaultClauseRest(node, node.statements, pos); |
| 113227 | } |
| 113228 | function emitCaseOrDefaultClauseRest(parentNode, statements, colonPos) { |
| 113229 | var emitAsSingleStatement = statements.length === 1 && |
| 113230 | ( |
| 113231 | // treat synthesized nodes as located on the same line for emit purposes |
| 113232 | !currentSourceFile || |
| 113233 | ts.nodeIsSynthesized(parentNode) || |
| 113234 | ts.nodeIsSynthesized(statements[0]) || |
| 113235 | ts.rangeStartPositionsAreOnSameLine(parentNode, statements[0], currentSourceFile)); |
| 113236 | var format = 163969 /* ListFormat.CaseOrDefaultClauseStatements */; |
| 113237 | if (emitAsSingleStatement) { |
| 113238 | writeToken(58 /* SyntaxKind.ColonToken */, colonPos, writePunctuation, parentNode); |
| 113239 | writeSpace(); |
| 113240 | format &= ~(1 /* ListFormat.MultiLine */ | 128 /* ListFormat.Indented */); |
| 113241 | } |
| 113242 | else { |
| 113243 | emitTokenWithComment(58 /* SyntaxKind.ColonToken */, colonPos, writePunctuation, parentNode); |
| 113244 | } |
| 113245 | emitList(parentNode, statements, format); |
| 113246 | } |
| 113247 | function emitHeritageClause(node) { |
| 113248 | writeSpace(); |
| 113249 | writeTokenText(node.token, writeKeyword); |
no test coverage detected