()
| 36572 | return withJSDoc(finishNode(node, pos), hasJSDoc); |
| 36573 | } |
| 36574 | function parseConstructorName() { |
| 36575 | if (token() === 134 /* SyntaxKind.ConstructorKeyword */) { |
| 36576 | return parseExpected(134 /* SyntaxKind.ConstructorKeyword */); |
| 36577 | } |
| 36578 | if (token() === 10 /* SyntaxKind.StringLiteral */ && lookAhead(nextToken) === 20 /* SyntaxKind.OpenParenToken */) { |
| 36579 | return tryParse(function () { |
| 36580 | var literalNode = parseLiteralNode(); |
| 36581 | return literalNode.text === "constructor" ? literalNode : undefined; |
| 36582 | }); |
| 36583 | } |
| 36584 | } |
| 36585 | function tryParseConstructorDeclaration(pos, hasJSDoc, decorators, modifiers) { |
| 36586 | return tryParse(function () { |
| 36587 | if (parseConstructorName()) { |
no test coverage detected
searching dependent graphs…