(pos, hasJSDoc, decorators, modifiers)
| 36938 | return withJSDoc(finishNode(node, pos), hasJSDoc); |
| 36939 | } |
| 36940 | function parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers) { |
| 36941 | parseExpected(152 /* SyntaxKind.TypeKeyword */); |
| 36942 | var name = parseIdentifier(); |
| 36943 | var typeParameters = parseTypeParameters(); |
| 36944 | parseExpected(63 /* SyntaxKind.EqualsToken */); |
| 36945 | var type = token() === 138 /* SyntaxKind.IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType(); |
| 36946 | parseSemicolon(); |
| 36947 | var node = factory.createTypeAliasDeclaration(decorators, modifiers, name, typeParameters, type); |
| 36948 | return withJSDoc(finishNode(node, pos), hasJSDoc); |
| 36949 | } |
| 36950 | // In an ambient declaration, the grammar only allows integer literals as initializers. |
| 36951 | // In a non-ambient declaration, the grammar allows uninitialized members only in a |
| 36952 | // ConstantEnumMemberSection, which starts at the beginning of an enum declaration |
no test coverage detected
searching dependent graphs…