diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f4c45a856ee..4f1b797e58a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -14890,6 +14890,10 @@ namespace ts { return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type!); } } + const thisTag = getJSDocThisTag(node); + if (thisTag && thisTag.typeExpression) { + return getTypeFromTypeNode(thisTag.typeExpression); + } } function isInConstructorArgumentInitializer(node: Node, constructorDecl: Node): boolean { diff --git a/src/parser/parser.ts b/src/parser/parser.ts index 591cb900a7f..c7b01b9b804 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -491,6 +491,8 @@ namespace ts { case SyntaxKind.JSDocCallbackTag: return visitNode(cbNode, (node as JSDocCallbackTag).fullName) || visitNode(cbNode, (node as JSDocCallbackTag).typeExpression); + case SyntaxKind.JSDocThisTag: + return visitNode(cbNode, (node as JSDocThisTag).typeExpression); case SyntaxKind.JSDocSignature: return visitNodes(cbNode, cbNodes, node.decorators) || visitNodes(cbNode, cbNodes, node.modifiers) || @@ -6497,6 +6499,9 @@ namespace ts { case "constructor": tag = parseClassTag(atToken, tagName); break; + case "this": + tag = parseThisTag(atToken, tagName); + break; case "arg": case "argument": case "param": @@ -6768,6 +6773,15 @@ namespace ts { return finishNode(tag); } + function parseThisTag(atToken: AtToken, tagName: Identifier): JSDocThisTag { + const tag = createNode(SyntaxKind.JSDocThisTag, atToken.pos); + tag.atToken = atToken; + tag.tagName = tagName; + tag.typeExpression = parseJSDocTypeExpression(/*mayOmitBraces*/ true); + skipWhitespace(); + return finishNode(tag); + } + function parseTypedefTag(atToken: AtToken, tagName: Identifier, indent: number): JSDocTypedefTag { const typeExpression = tryParseTypeExpression(); skipWhitespace(); diff --git a/src/parser/types.ts b/src/parser/types.ts index c79976091fe..29a7e3d8842 100644 --- a/src/parser/types.ts +++ b/src/parser/types.ts @@ -371,6 +371,7 @@ namespace ts { JSDocCallbackTag, JSDocParameterTag, JSDocReturnTag, + JSDocThisTag, JSDocTypeTag, JSDocTemplateTag, JSDocTypedefTag, @@ -2323,6 +2324,11 @@ namespace ts { kind: SyntaxKind.JSDocClassTag; } + export interface JSDocThisTag extends JSDocTag { + kind: SyntaxKind.JSDocThisTag; + typeExpression?: JSDocTypeExpression; + } + export interface JSDocTemplateTag extends JSDocTag { kind: SyntaxKind.JSDocTemplateTag; typeParameters: NodeArray; diff --git a/src/parser/utilities.ts b/src/parser/utilities.ts index e67ea3e743f..7602e01f9c2 100644 --- a/src/parser/utilities.ts +++ b/src/parser/utilities.ts @@ -4970,6 +4970,11 @@ namespace ts { return getFirstJSDocTag(node, isJSDocClassTag); } + /** Gets the JSDoc this tag for the node if present */ + export function getJSDocThisTag(node: Node): JSDocThisTag | undefined { + return getFirstJSDocTag(node, isJSDocThisTag); + } + /** Gets the JSDoc return tag for the node if present */ export function getJSDocReturnTag(node: Node): JSDocReturnTag | undefined { return getFirstJSDocTag(node, isJSDocReturnTag); @@ -5701,6 +5706,10 @@ namespace ts { return node.kind === SyntaxKind.JSDocClassTag; } + export function isJSDocThisTag(node: Node): node is JSDocThisTag { + return node.kind === SyntaxKind.JSDocThisTag; + } + export function isJSDocParameterTag(node: Node): node is JSDocParameterTag { return node.kind === SyntaxKind.JSDocParameterTag; } diff --git a/tests/baselines/reference/APISample_Watch.errors.txt b/tests/baselines/reference/APISample_Watch.errors.txt index e1e24d9d1a8..d4f7638416b 100644 --- a/tests/baselines/reference/APISample_Watch.errors.txt +++ b/tests/baselines/reference/APISample_Watch.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_Watch.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt b/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt index a67ce67f334..52755e8fe21 100644 --- a/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt +++ b/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_WatchWithDefaults.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt b/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt index ab00aef04d8..1275cf337b0 100644 --- a/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt +++ b/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_compile.errors.txt b/tests/baselines/reference/APISample_compile.errors.txt index 6aef2e513ed..4af4a173002 100644 --- a/tests/baselines/reference/APISample_compile.errors.txt +++ b/tests/baselines/reference/APISample_compile.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_compile.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_jsdoc.errors.txt b/tests/baselines/reference/APISample_jsdoc.errors.txt index cb323e7d542..b80bb027663 100644 --- a/tests/baselines/reference/APISample_jsdoc.errors.txt +++ b/tests/baselines/reference/APISample_jsdoc.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_jsdoc.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_linter.errors.txt b/tests/baselines/reference/APISample_linter.errors.txt index 3f3c3d92c35..51a0140cf04 100644 --- a/tests/baselines/reference/APISample_linter.errors.txt +++ b/tests/baselines/reference/APISample_linter.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_linter.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_parseConfig.errors.txt b/tests/baselines/reference/APISample_parseConfig.errors.txt index 31b18c908b3..f2ccfacdc9f 100644 --- a/tests/baselines/reference/APISample_parseConfig.errors.txt +++ b/tests/baselines/reference/APISample_parseConfig.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_parseConfig.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_transform.errors.txt b/tests/baselines/reference/APISample_transform.errors.txt index a60d4983246..1680cd61511 100644 --- a/tests/baselines/reference/APISample_transform.errors.txt +++ b/tests/baselines/reference/APISample_transform.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_transform.ts (0 errors) ==== diff --git a/tests/baselines/reference/APISample_watcher.errors.txt b/tests/baselines/reference/APISample_watcher.errors.txt index dc4736619ca..1041d8495bb 100644 --- a/tests/baselines/reference/APISample_watcher.errors.txt +++ b/tests/baselines/reference/APISample_watcher.errors.txt @@ -1,83 +1,75 @@ typescript_standalone.d.ts(21,28): error TS1005: ';' expected. typescript_standalone.d.ts(21,41): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,28): error TS1005: ';' expected. -typescript_standalone.d.ts(8913,42): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9173,46): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9523,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9547,36): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,28): error TS1005: ';' expected. -typescript_standalone.d.ts(9634,38): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10799,57): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10810,41): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10820,48): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10895,47): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,28): error TS1005: ';' expected. -typescript_standalone.d.ts(10952,47): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11006,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11026,44): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11036,35): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11070,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11073,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11077,45): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11095,56): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11121,36): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11124,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11136,43): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11166,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11200,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11211,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11235,40): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,28): error TS1005: ';' expected. +typescript_standalone.d.ts(8921,42): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9181,46): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9531,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9555,36): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,28): error TS1005: ';' expected. +typescript_standalone.d.ts(9642,38): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10807,57): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10818,41): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10828,48): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10903,47): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,28): error TS1005: ';' expected. +typescript_standalone.d.ts(10960,47): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11014,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11034,44): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11044,35): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11078,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11081,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11085,45): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11103,56): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11129,36): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11132,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11144,43): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11174,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11208,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11219,40): error TS1005: ';' expected. typescript_standalone.d.ts(11243,28): error TS1005: ';' expected. typescript_standalone.d.ts(11243,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11247,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11277,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11320,41): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11507,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11509,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11513,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11251,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11255,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11285,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11328,41): error TS1005: ';' expected. typescript_standalone.d.ts(11515,28): error TS1005: ';' expected. typescript_standalone.d.ts(11515,37): error TS1005: ';' expected. typescript_standalone.d.ts(11517,28): error TS1005: ';' expected. typescript_standalone.d.ts(11517,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11519,37): error TS1005: ';' expected. typescript_standalone.d.ts(11521,28): error TS1005: ';' expected. typescript_standalone.d.ts(11521,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11530,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11532,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11534,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11536,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11523,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11525,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11527,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11529,37): error TS1005: ';' expected. typescript_standalone.d.ts(11538,28): error TS1005: ';' expected. typescript_standalone.d.ts(11538,37): error TS1005: ';' expected. typescript_standalone.d.ts(11540,28): error TS1005: ';' expected. @@ -100,14 +92,14 @@ typescript_standalone.d.ts(11556,28): error TS1005: ';' expected. typescript_standalone.d.ts(11556,37): error TS1005: ';' expected. typescript_standalone.d.ts(11558,28): error TS1005: ';' expected. typescript_standalone.d.ts(11558,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11568,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11570,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11572,37): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11574,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11560,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11562,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11564,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11566,37): error TS1005: ';' expected. typescript_standalone.d.ts(11576,28): error TS1005: ';' expected. typescript_standalone.d.ts(11576,37): error TS1005: ';' expected. typescript_standalone.d.ts(11578,28): error TS1005: ';' expected. @@ -115,19 +107,27 @@ typescript_standalone.d.ts(11578,37): error TS1005: ';' expected. typescript_standalone.d.ts(11580,28): error TS1005: ';' expected. typescript_standalone.d.ts(11580,37): error TS1005: ';' expected. typescript_standalone.d.ts(11582,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11582,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11582,37): error TS1005: ';' expected. typescript_standalone.d.ts(11584,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11584,52): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11656,72): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11658,38): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11660,71): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11662,40): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,28): error TS1005: ';' expected. -typescript_standalone.d.ts(11738,48): error TS1005: ';' expected. +typescript_standalone.d.ts(11584,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11586,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11588,37): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11590,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11592,52): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11664,72): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11666,38): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11668,71): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11670,40): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,28): error TS1005: ';' expected. +typescript_standalone.d.ts(11746,48): error TS1005: ';' expected. ==== tests/cases/compiler/APISample_watcher.ts (0 errors) ==== diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index c09fab01201..a4597e9997d 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -888,17 +888,18 @@ declare namespace ts { JSDocCallbackTag = 292, JSDocParameterTag = 293, JSDocReturnTag = 294, - JSDocTypeTag = 295, - JSDocTemplateTag = 296, - JSDocTypedefTag = 297, - JSDocPropertyTag = 298, - SyntaxList = 299, - NotEmittedStatement = 300, - PartiallyEmittedExpression = 301, - CommaListExpression = 302, - MergeDeclarationMarker = 303, - EndOfDeclarationMarker = 304, - Count = 305, + JSDocThisTag = 295, + JSDocTypeTag = 296, + JSDocTemplateTag = 297, + JSDocTypedefTag = 298, + JSDocPropertyTag = 299, + SyntaxList = 300, + NotEmittedStatement = 301, + PartiallyEmittedExpression = 302, + CommaListExpression = 303, + MergeDeclarationMarker = 304, + EndOfDeclarationMarker = 305, + Count = 306, FirstAssignment = 58, LastAssignment = 70, FirstCompoundAssignment = 59, @@ -925,9 +926,9 @@ declare namespace ts { LastBinaryOperator = 70, FirstNode = 146, FirstJSDocNode = 278, - LastJSDocNode = 298, + LastJSDocNode = 299, FirstJSDocTagNode = 289, - LastJSDocTagNode = 298, + LastJSDocTagNode = 299, FirstContextualKeyword = 117, LastContextualKeyword = 145 } @@ -2163,6 +2164,10 @@ declare namespace ts { interface JSDocClassTag extends JSDocTag { kind: SyntaxKind.JSDocClassTag; } + interface JSDocThisTag extends JSDocTag { + kind: SyntaxKind.JSDocThisTag; + typeExpression?: JSDocTypeExpression; + } interface JSDocTemplateTag extends JSDocTag { kind: SyntaxKind.JSDocTemplateTag; typeParameters: NodeArray; @@ -6361,7 +6366,7 @@ declare namespace ts { function getExpressionAssociativity(expression: Expression): Associativity; function getOperatorAssociativity(kind: SyntaxKind, operator: SyntaxKind, hasArguments?: boolean): Associativity; function getExpressionPrecedence(expression: Expression): number; - function getOperator(expression: Expression): SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NumericLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.Identifier | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AsKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.InferKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.OfKeyword | SyntaxKind.QualifiedName | SyntaxKind.ComputedPropertyName | SyntaxKind.TypeParameter | SyntaxKind.Parameter | SyntaxKind.Decorator | SyntaxKind.PropertySignature | SyntaxKind.PropertyDeclaration | SyntaxKind.MethodSignature | SyntaxKind.MethodDeclaration | SyntaxKind.Constructor | SyntaxKind.GetAccessor | SyntaxKind.SetAccessor | SyntaxKind.CallSignature | SyntaxKind.ConstructSignature | SyntaxKind.IndexSignature | SyntaxKind.TypePredicate | SyntaxKind.TypeReference | SyntaxKind.FunctionType | SyntaxKind.ConstructorType | SyntaxKind.TypeQuery | SyntaxKind.TypeLiteral | SyntaxKind.ArrayType | SyntaxKind.TupleType | SyntaxKind.UnionType | SyntaxKind.IntersectionType | SyntaxKind.ConditionalType | SyntaxKind.InferType | SyntaxKind.ParenthesizedType | SyntaxKind.ThisType | SyntaxKind.TypeOperator | SyntaxKind.IndexedAccessType | SyntaxKind.MappedType | SyntaxKind.LiteralType | SyntaxKind.ImportType | SyntaxKind.ObjectBindingPattern | SyntaxKind.ArrayBindingPattern | SyntaxKind.BindingElement | SyntaxKind.ArrayLiteralExpression | SyntaxKind.ObjectLiteralExpression | SyntaxKind.PropertyAccessExpression | SyntaxKind.ElementAccessExpression | SyntaxKind.CallExpression | SyntaxKind.NewExpression | SyntaxKind.TaggedTemplateExpression | SyntaxKind.TypeAssertionExpression | SyntaxKind.ParenthesizedExpression | SyntaxKind.FunctionExpression | SyntaxKind.ArrowFunction | SyntaxKind.DeleteExpression | SyntaxKind.TypeOfExpression | SyntaxKind.VoidExpression | SyntaxKind.AwaitExpression | SyntaxKind.ConditionalExpression | SyntaxKind.TemplateExpression | SyntaxKind.YieldExpression | SyntaxKind.SpreadElement | SyntaxKind.ClassExpression | SyntaxKind.OmittedExpression | SyntaxKind.ExpressionWithTypeArguments | SyntaxKind.AsExpression | SyntaxKind.NonNullExpression | SyntaxKind.MetaProperty | SyntaxKind.TemplateSpan | SyntaxKind.SemicolonClassElement | SyntaxKind.Block | SyntaxKind.VariableStatement | SyntaxKind.EmptyStatement | SyntaxKind.ExpressionStatement | SyntaxKind.IfStatement | SyntaxKind.DoStatement | SyntaxKind.WhileStatement | SyntaxKind.ForStatement | SyntaxKind.ForInStatement | SyntaxKind.ForOfStatement | SyntaxKind.ContinueStatement | SyntaxKind.BreakStatement | SyntaxKind.ReturnStatement | SyntaxKind.WithStatement | SyntaxKind.SwitchStatement | SyntaxKind.LabeledStatement | SyntaxKind.ThrowStatement | SyntaxKind.TryStatement | SyntaxKind.DebuggerStatement | SyntaxKind.VariableDeclaration | SyntaxKind.VariableDeclarationList | SyntaxKind.FunctionDeclaration | SyntaxKind.ClassDeclaration | SyntaxKind.InterfaceDeclaration | SyntaxKind.TypeAliasDeclaration | SyntaxKind.EnumDeclaration | SyntaxKind.ModuleDeclaration | SyntaxKind.ModuleBlock | SyntaxKind.CaseBlock | SyntaxKind.NamespaceExportDeclaration | SyntaxKind.ImportEqualsDeclaration | SyntaxKind.ImportDeclaration | SyntaxKind.ImportClause | SyntaxKind.NamespaceImport | SyntaxKind.NamedImports | SyntaxKind.ImportSpecifier | SyntaxKind.ExportAssignment | SyntaxKind.ExportDeclaration | SyntaxKind.NamedExports | SyntaxKind.ExportSpecifier | SyntaxKind.MissingDeclaration | SyntaxKind.ExternalModuleReference | SyntaxKind.JsxElement | SyntaxKind.JsxSelfClosingElement | SyntaxKind.JsxOpeningElement | SyntaxKind.JsxClosingElement | SyntaxKind.JsxFragment | SyntaxKind.JsxOpeningFragment | SyntaxKind.JsxClosingFragment | SyntaxKind.JsxAttribute | SyntaxKind.JsxAttributes | SyntaxKind.JsxSpreadAttribute | SyntaxKind.JsxExpression | SyntaxKind.CaseClause | SyntaxKind.DefaultClause | SyntaxKind.HeritageClause | SyntaxKind.CatchClause | SyntaxKind.PropertyAssignment | SyntaxKind.ShorthandPropertyAssignment | SyntaxKind.SpreadAssignment | SyntaxKind.EnumMember | SyntaxKind.SourceFile | SyntaxKind.Bundle | SyntaxKind.UnparsedSource | SyntaxKind.InputFiles | SyntaxKind.JSDocTypeExpression | SyntaxKind.JSDocAllType | SyntaxKind.JSDocUnknownType | SyntaxKind.JSDocNullableType | SyntaxKind.JSDocNonNullableType | SyntaxKind.JSDocOptionalType | SyntaxKind.JSDocFunctionType | SyntaxKind.JSDocVariadicType | SyntaxKind.JSDocComment | SyntaxKind.JSDocTypeLiteral | SyntaxKind.JSDocSignature | SyntaxKind.JSDocTag | SyntaxKind.JSDocAugmentsTag | SyntaxKind.JSDocClassTag | SyntaxKind.JSDocCallbackTag | SyntaxKind.JSDocParameterTag | SyntaxKind.JSDocReturnTag | SyntaxKind.JSDocTypeTag | SyntaxKind.JSDocTemplateTag | SyntaxKind.JSDocTypedefTag | SyntaxKind.JSDocPropertyTag | SyntaxKind.SyntaxList | SyntaxKind.NotEmittedStatement | SyntaxKind.PartiallyEmittedExpression | SyntaxKind.CommaListExpression | SyntaxKind.MergeDeclarationMarker | SyntaxKind.EndOfDeclarationMarker | SyntaxKind.Count; + function getOperator(expression: Expression): SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NumericLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.Identifier | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AsKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.InferKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.OfKeyword | SyntaxKind.QualifiedName | SyntaxKind.ComputedPropertyName | SyntaxKind.TypeParameter | SyntaxKind.Parameter | SyntaxKind.Decorator | SyntaxKind.PropertySignature | SyntaxKind.PropertyDeclaration | SyntaxKind.MethodSignature | SyntaxKind.MethodDeclaration | SyntaxKind.Constructor | SyntaxKind.GetAccessor | SyntaxKind.SetAccessor | SyntaxKind.CallSignature | SyntaxKind.ConstructSignature | SyntaxKind.IndexSignature | SyntaxKind.TypePredicate | SyntaxKind.TypeReference | SyntaxKind.FunctionType | SyntaxKind.ConstructorType | SyntaxKind.TypeQuery | SyntaxKind.TypeLiteral | SyntaxKind.ArrayType | SyntaxKind.TupleType | SyntaxKind.UnionType | SyntaxKind.IntersectionType | SyntaxKind.ConditionalType | SyntaxKind.InferType | SyntaxKind.ParenthesizedType | SyntaxKind.ThisType | SyntaxKind.TypeOperator | SyntaxKind.IndexedAccessType | SyntaxKind.MappedType | SyntaxKind.LiteralType | SyntaxKind.ImportType | SyntaxKind.ObjectBindingPattern | SyntaxKind.ArrayBindingPattern | SyntaxKind.BindingElement | SyntaxKind.ArrayLiteralExpression | SyntaxKind.ObjectLiteralExpression | SyntaxKind.PropertyAccessExpression | SyntaxKind.ElementAccessExpression | SyntaxKind.CallExpression | SyntaxKind.NewExpression | SyntaxKind.TaggedTemplateExpression | SyntaxKind.TypeAssertionExpression | SyntaxKind.ParenthesizedExpression | SyntaxKind.FunctionExpression | SyntaxKind.ArrowFunction | SyntaxKind.DeleteExpression | SyntaxKind.TypeOfExpression | SyntaxKind.VoidExpression | SyntaxKind.AwaitExpression | SyntaxKind.ConditionalExpression | SyntaxKind.TemplateExpression | SyntaxKind.YieldExpression | SyntaxKind.SpreadElement | SyntaxKind.ClassExpression | SyntaxKind.OmittedExpression | SyntaxKind.ExpressionWithTypeArguments | SyntaxKind.AsExpression | SyntaxKind.NonNullExpression | SyntaxKind.MetaProperty | SyntaxKind.TemplateSpan | SyntaxKind.SemicolonClassElement | SyntaxKind.Block | SyntaxKind.VariableStatement | SyntaxKind.EmptyStatement | SyntaxKind.ExpressionStatement | SyntaxKind.IfStatement | SyntaxKind.DoStatement | SyntaxKind.WhileStatement | SyntaxKind.ForStatement | SyntaxKind.ForInStatement | SyntaxKind.ForOfStatement | SyntaxKind.ContinueStatement | SyntaxKind.BreakStatement | SyntaxKind.ReturnStatement | SyntaxKind.WithStatement | SyntaxKind.SwitchStatement | SyntaxKind.LabeledStatement | SyntaxKind.ThrowStatement | SyntaxKind.TryStatement | SyntaxKind.DebuggerStatement | SyntaxKind.VariableDeclaration | SyntaxKind.VariableDeclarationList | SyntaxKind.FunctionDeclaration | SyntaxKind.ClassDeclaration | SyntaxKind.InterfaceDeclaration | SyntaxKind.TypeAliasDeclaration | SyntaxKind.EnumDeclaration | SyntaxKind.ModuleDeclaration | SyntaxKind.ModuleBlock | SyntaxKind.CaseBlock | SyntaxKind.NamespaceExportDeclaration | SyntaxKind.ImportEqualsDeclaration | SyntaxKind.ImportDeclaration | SyntaxKind.ImportClause | SyntaxKind.NamespaceImport | SyntaxKind.NamedImports | SyntaxKind.ImportSpecifier | SyntaxKind.ExportAssignment | SyntaxKind.ExportDeclaration | SyntaxKind.NamedExports | SyntaxKind.ExportSpecifier | SyntaxKind.MissingDeclaration | SyntaxKind.ExternalModuleReference | SyntaxKind.JsxElement | SyntaxKind.JsxSelfClosingElement | SyntaxKind.JsxOpeningElement | SyntaxKind.JsxClosingElement | SyntaxKind.JsxFragment | SyntaxKind.JsxOpeningFragment | SyntaxKind.JsxClosingFragment | SyntaxKind.JsxAttribute | SyntaxKind.JsxAttributes | SyntaxKind.JsxSpreadAttribute | SyntaxKind.JsxExpression | SyntaxKind.CaseClause | SyntaxKind.DefaultClause | SyntaxKind.HeritageClause | SyntaxKind.CatchClause | SyntaxKind.PropertyAssignment | SyntaxKind.ShorthandPropertyAssignment | SyntaxKind.SpreadAssignment | SyntaxKind.EnumMember | SyntaxKind.SourceFile | SyntaxKind.Bundle | SyntaxKind.UnparsedSource | SyntaxKind.InputFiles | SyntaxKind.JSDocTypeExpression | SyntaxKind.JSDocAllType | SyntaxKind.JSDocUnknownType | SyntaxKind.JSDocNullableType | SyntaxKind.JSDocNonNullableType | SyntaxKind.JSDocOptionalType | SyntaxKind.JSDocFunctionType | SyntaxKind.JSDocVariadicType | SyntaxKind.JSDocComment | SyntaxKind.JSDocTypeLiteral | SyntaxKind.JSDocSignature | SyntaxKind.JSDocTag | SyntaxKind.JSDocAugmentsTag | SyntaxKind.JSDocClassTag | SyntaxKind.JSDocCallbackTag | SyntaxKind.JSDocParameterTag | SyntaxKind.JSDocReturnTag | SyntaxKind.JSDocThisTag | SyntaxKind.JSDocTypeTag | SyntaxKind.JSDocTemplateTag | SyntaxKind.JSDocTypedefTag | SyntaxKind.JSDocPropertyTag | SyntaxKind.SyntaxList | SyntaxKind.NotEmittedStatement | SyntaxKind.PartiallyEmittedExpression | SyntaxKind.CommaListExpression | SyntaxKind.MergeDeclarationMarker | SyntaxKind.EndOfDeclarationMarker | SyntaxKind.Count; function getOperatorPrecedence(nodeKind: SyntaxKind, operatorKind: SyntaxKind, hasArguments?: boolean): number; function getBinaryOperatorPrecedence(kind: SyntaxKind): number; function createDiagnosticCollection(): DiagnosticCollection; @@ -6714,6 +6719,8 @@ declare namespace ts { function getJSDocAugmentsTag(node: Node): JSDocAugmentsTag | undefined; /** Gets the JSDoc class tag for the node if present */ function getJSDocClassTag(node: Node): JSDocClassTag | undefined; + /** Gets the JSDoc this tag for the node if present */ + function getJSDocThisTag(node: Node): JSDocThisTag | undefined; /** Gets the JSDoc return tag for the node if present */ function getJSDocReturnTag(node: Node): JSDocReturnTag | undefined; /** Gets the JSDoc template tag for the node if present */ @@ -6900,6 +6907,7 @@ declare namespace ts { function isJSDoc(node: Node): node is JSDoc; function isJSDocAugmentsTag(node: Node): node is JSDocAugmentsTag; function isJSDocClassTag(node: Node): node is JSDocClassTag; + function isJSDocThisTag(node: Node): node is JSDocThisTag; function isJSDocParameterTag(node: Node): node is JSDocParameterTag; function isJSDocReturnTag(node: Node): node is JSDocReturnTag; function isJSDocTypeTag(node: Node): node is JSDocTypeTag; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 4df56662501..872799f1b25 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -888,17 +888,18 @@ declare namespace ts { JSDocCallbackTag = 292, JSDocParameterTag = 293, JSDocReturnTag = 294, - JSDocTypeTag = 295, - JSDocTemplateTag = 296, - JSDocTypedefTag = 297, - JSDocPropertyTag = 298, - SyntaxList = 299, - NotEmittedStatement = 300, - PartiallyEmittedExpression = 301, - CommaListExpression = 302, - MergeDeclarationMarker = 303, - EndOfDeclarationMarker = 304, - Count = 305, + JSDocThisTag = 295, + JSDocTypeTag = 296, + JSDocTemplateTag = 297, + JSDocTypedefTag = 298, + JSDocPropertyTag = 299, + SyntaxList = 300, + NotEmittedStatement = 301, + PartiallyEmittedExpression = 302, + CommaListExpression = 303, + MergeDeclarationMarker = 304, + EndOfDeclarationMarker = 305, + Count = 306, FirstAssignment = 58, LastAssignment = 70, FirstCompoundAssignment = 59, @@ -925,9 +926,9 @@ declare namespace ts { LastBinaryOperator = 70, FirstNode = 146, FirstJSDocNode = 278, - LastJSDocNode = 298, + LastJSDocNode = 299, FirstJSDocTagNode = 289, - LastJSDocTagNode = 298, + LastJSDocTagNode = 299, FirstContextualKeyword = 117, LastContextualKeyword = 145 } @@ -2163,6 +2164,10 @@ declare namespace ts { interface JSDocClassTag extends JSDocTag { kind: SyntaxKind.JSDocClassTag; } + interface JSDocThisTag extends JSDocTag { + kind: SyntaxKind.JSDocThisTag; + typeExpression?: JSDocTypeExpression; + } interface JSDocTemplateTag extends JSDocTag { kind: SyntaxKind.JSDocTemplateTag; typeParameters: NodeArray; @@ -6361,7 +6366,7 @@ declare namespace ts { function getExpressionAssociativity(expression: Expression): Associativity; function getOperatorAssociativity(kind: SyntaxKind, operator: SyntaxKind, hasArguments?: boolean): Associativity; function getExpressionPrecedence(expression: Expression): number; - function getOperator(expression: Expression): SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NumericLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.Identifier | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AsKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.InferKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.OfKeyword | SyntaxKind.QualifiedName | SyntaxKind.ComputedPropertyName | SyntaxKind.TypeParameter | SyntaxKind.Parameter | SyntaxKind.Decorator | SyntaxKind.PropertySignature | SyntaxKind.PropertyDeclaration | SyntaxKind.MethodSignature | SyntaxKind.MethodDeclaration | SyntaxKind.Constructor | SyntaxKind.GetAccessor | SyntaxKind.SetAccessor | SyntaxKind.CallSignature | SyntaxKind.ConstructSignature | SyntaxKind.IndexSignature | SyntaxKind.TypePredicate | SyntaxKind.TypeReference | SyntaxKind.FunctionType | SyntaxKind.ConstructorType | SyntaxKind.TypeQuery | SyntaxKind.TypeLiteral | SyntaxKind.ArrayType | SyntaxKind.TupleType | SyntaxKind.UnionType | SyntaxKind.IntersectionType | SyntaxKind.ConditionalType | SyntaxKind.InferType | SyntaxKind.ParenthesizedType | SyntaxKind.ThisType | SyntaxKind.TypeOperator | SyntaxKind.IndexedAccessType | SyntaxKind.MappedType | SyntaxKind.LiteralType | SyntaxKind.ImportType | SyntaxKind.ObjectBindingPattern | SyntaxKind.ArrayBindingPattern | SyntaxKind.BindingElement | SyntaxKind.ArrayLiteralExpression | SyntaxKind.ObjectLiteralExpression | SyntaxKind.PropertyAccessExpression | SyntaxKind.ElementAccessExpression | SyntaxKind.CallExpression | SyntaxKind.NewExpression | SyntaxKind.TaggedTemplateExpression | SyntaxKind.TypeAssertionExpression | SyntaxKind.ParenthesizedExpression | SyntaxKind.FunctionExpression | SyntaxKind.ArrowFunction | SyntaxKind.DeleteExpression | SyntaxKind.TypeOfExpression | SyntaxKind.VoidExpression | SyntaxKind.AwaitExpression | SyntaxKind.ConditionalExpression | SyntaxKind.TemplateExpression | SyntaxKind.YieldExpression | SyntaxKind.SpreadElement | SyntaxKind.ClassExpression | SyntaxKind.OmittedExpression | SyntaxKind.ExpressionWithTypeArguments | SyntaxKind.AsExpression | SyntaxKind.NonNullExpression | SyntaxKind.MetaProperty | SyntaxKind.TemplateSpan | SyntaxKind.SemicolonClassElement | SyntaxKind.Block | SyntaxKind.VariableStatement | SyntaxKind.EmptyStatement | SyntaxKind.ExpressionStatement | SyntaxKind.IfStatement | SyntaxKind.DoStatement | SyntaxKind.WhileStatement | SyntaxKind.ForStatement | SyntaxKind.ForInStatement | SyntaxKind.ForOfStatement | SyntaxKind.ContinueStatement | SyntaxKind.BreakStatement | SyntaxKind.ReturnStatement | SyntaxKind.WithStatement | SyntaxKind.SwitchStatement | SyntaxKind.LabeledStatement | SyntaxKind.ThrowStatement | SyntaxKind.TryStatement | SyntaxKind.DebuggerStatement | SyntaxKind.VariableDeclaration | SyntaxKind.VariableDeclarationList | SyntaxKind.FunctionDeclaration | SyntaxKind.ClassDeclaration | SyntaxKind.InterfaceDeclaration | SyntaxKind.TypeAliasDeclaration | SyntaxKind.EnumDeclaration | SyntaxKind.ModuleDeclaration | SyntaxKind.ModuleBlock | SyntaxKind.CaseBlock | SyntaxKind.NamespaceExportDeclaration | SyntaxKind.ImportEqualsDeclaration | SyntaxKind.ImportDeclaration | SyntaxKind.ImportClause | SyntaxKind.NamespaceImport | SyntaxKind.NamedImports | SyntaxKind.ImportSpecifier | SyntaxKind.ExportAssignment | SyntaxKind.ExportDeclaration | SyntaxKind.NamedExports | SyntaxKind.ExportSpecifier | SyntaxKind.MissingDeclaration | SyntaxKind.ExternalModuleReference | SyntaxKind.JsxElement | SyntaxKind.JsxSelfClosingElement | SyntaxKind.JsxOpeningElement | SyntaxKind.JsxClosingElement | SyntaxKind.JsxFragment | SyntaxKind.JsxOpeningFragment | SyntaxKind.JsxClosingFragment | SyntaxKind.JsxAttribute | SyntaxKind.JsxAttributes | SyntaxKind.JsxSpreadAttribute | SyntaxKind.JsxExpression | SyntaxKind.CaseClause | SyntaxKind.DefaultClause | SyntaxKind.HeritageClause | SyntaxKind.CatchClause | SyntaxKind.PropertyAssignment | SyntaxKind.ShorthandPropertyAssignment | SyntaxKind.SpreadAssignment | SyntaxKind.EnumMember | SyntaxKind.SourceFile | SyntaxKind.Bundle | SyntaxKind.UnparsedSource | SyntaxKind.InputFiles | SyntaxKind.JSDocTypeExpression | SyntaxKind.JSDocAllType | SyntaxKind.JSDocUnknownType | SyntaxKind.JSDocNullableType | SyntaxKind.JSDocNonNullableType | SyntaxKind.JSDocOptionalType | SyntaxKind.JSDocFunctionType | SyntaxKind.JSDocVariadicType | SyntaxKind.JSDocComment | SyntaxKind.JSDocTypeLiteral | SyntaxKind.JSDocSignature | SyntaxKind.JSDocTag | SyntaxKind.JSDocAugmentsTag | SyntaxKind.JSDocClassTag | SyntaxKind.JSDocCallbackTag | SyntaxKind.JSDocParameterTag | SyntaxKind.JSDocReturnTag | SyntaxKind.JSDocTypeTag | SyntaxKind.JSDocTemplateTag | SyntaxKind.JSDocTypedefTag | SyntaxKind.JSDocPropertyTag | SyntaxKind.SyntaxList | SyntaxKind.NotEmittedStatement | SyntaxKind.PartiallyEmittedExpression | SyntaxKind.CommaListExpression | SyntaxKind.MergeDeclarationMarker | SyntaxKind.EndOfDeclarationMarker | SyntaxKind.Count; + function getOperator(expression: Expression): SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NumericLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.Identifier | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.LetKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.StaticKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AbstractKeyword | SyntaxKind.AsKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.GetKeyword | SyntaxKind.InferKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.SetKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.TypeKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.FromKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.OfKeyword | SyntaxKind.QualifiedName | SyntaxKind.ComputedPropertyName | SyntaxKind.TypeParameter | SyntaxKind.Parameter | SyntaxKind.Decorator | SyntaxKind.PropertySignature | SyntaxKind.PropertyDeclaration | SyntaxKind.MethodSignature | SyntaxKind.MethodDeclaration | SyntaxKind.Constructor | SyntaxKind.GetAccessor | SyntaxKind.SetAccessor | SyntaxKind.CallSignature | SyntaxKind.ConstructSignature | SyntaxKind.IndexSignature | SyntaxKind.TypePredicate | SyntaxKind.TypeReference | SyntaxKind.FunctionType | SyntaxKind.ConstructorType | SyntaxKind.TypeQuery | SyntaxKind.TypeLiteral | SyntaxKind.ArrayType | SyntaxKind.TupleType | SyntaxKind.UnionType | SyntaxKind.IntersectionType | SyntaxKind.ConditionalType | SyntaxKind.InferType | SyntaxKind.ParenthesizedType | SyntaxKind.ThisType | SyntaxKind.TypeOperator | SyntaxKind.IndexedAccessType | SyntaxKind.MappedType | SyntaxKind.LiteralType | SyntaxKind.ImportType | SyntaxKind.ObjectBindingPattern | SyntaxKind.ArrayBindingPattern | SyntaxKind.BindingElement | SyntaxKind.ArrayLiteralExpression | SyntaxKind.ObjectLiteralExpression | SyntaxKind.PropertyAccessExpression | SyntaxKind.ElementAccessExpression | SyntaxKind.CallExpression | SyntaxKind.NewExpression | SyntaxKind.TaggedTemplateExpression | SyntaxKind.TypeAssertionExpression | SyntaxKind.ParenthesizedExpression | SyntaxKind.FunctionExpression | SyntaxKind.ArrowFunction | SyntaxKind.DeleteExpression | SyntaxKind.TypeOfExpression | SyntaxKind.VoidExpression | SyntaxKind.AwaitExpression | SyntaxKind.ConditionalExpression | SyntaxKind.TemplateExpression | SyntaxKind.YieldExpression | SyntaxKind.SpreadElement | SyntaxKind.ClassExpression | SyntaxKind.OmittedExpression | SyntaxKind.ExpressionWithTypeArguments | SyntaxKind.AsExpression | SyntaxKind.NonNullExpression | SyntaxKind.MetaProperty | SyntaxKind.TemplateSpan | SyntaxKind.SemicolonClassElement | SyntaxKind.Block | SyntaxKind.VariableStatement | SyntaxKind.EmptyStatement | SyntaxKind.ExpressionStatement | SyntaxKind.IfStatement | SyntaxKind.DoStatement | SyntaxKind.WhileStatement | SyntaxKind.ForStatement | SyntaxKind.ForInStatement | SyntaxKind.ForOfStatement | SyntaxKind.ContinueStatement | SyntaxKind.BreakStatement | SyntaxKind.ReturnStatement | SyntaxKind.WithStatement | SyntaxKind.SwitchStatement | SyntaxKind.LabeledStatement | SyntaxKind.ThrowStatement | SyntaxKind.TryStatement | SyntaxKind.DebuggerStatement | SyntaxKind.VariableDeclaration | SyntaxKind.VariableDeclarationList | SyntaxKind.FunctionDeclaration | SyntaxKind.ClassDeclaration | SyntaxKind.InterfaceDeclaration | SyntaxKind.TypeAliasDeclaration | SyntaxKind.EnumDeclaration | SyntaxKind.ModuleDeclaration | SyntaxKind.ModuleBlock | SyntaxKind.CaseBlock | SyntaxKind.NamespaceExportDeclaration | SyntaxKind.ImportEqualsDeclaration | SyntaxKind.ImportDeclaration | SyntaxKind.ImportClause | SyntaxKind.NamespaceImport | SyntaxKind.NamedImports | SyntaxKind.ImportSpecifier | SyntaxKind.ExportAssignment | SyntaxKind.ExportDeclaration | SyntaxKind.NamedExports | SyntaxKind.ExportSpecifier | SyntaxKind.MissingDeclaration | SyntaxKind.ExternalModuleReference | SyntaxKind.JsxElement | SyntaxKind.JsxSelfClosingElement | SyntaxKind.JsxOpeningElement | SyntaxKind.JsxClosingElement | SyntaxKind.JsxFragment | SyntaxKind.JsxOpeningFragment | SyntaxKind.JsxClosingFragment | SyntaxKind.JsxAttribute | SyntaxKind.JsxAttributes | SyntaxKind.JsxSpreadAttribute | SyntaxKind.JsxExpression | SyntaxKind.CaseClause | SyntaxKind.DefaultClause | SyntaxKind.HeritageClause | SyntaxKind.CatchClause | SyntaxKind.PropertyAssignment | SyntaxKind.ShorthandPropertyAssignment | SyntaxKind.SpreadAssignment | SyntaxKind.EnumMember | SyntaxKind.SourceFile | SyntaxKind.Bundle | SyntaxKind.UnparsedSource | SyntaxKind.InputFiles | SyntaxKind.JSDocTypeExpression | SyntaxKind.JSDocAllType | SyntaxKind.JSDocUnknownType | SyntaxKind.JSDocNullableType | SyntaxKind.JSDocNonNullableType | SyntaxKind.JSDocOptionalType | SyntaxKind.JSDocFunctionType | SyntaxKind.JSDocVariadicType | SyntaxKind.JSDocComment | SyntaxKind.JSDocTypeLiteral | SyntaxKind.JSDocSignature | SyntaxKind.JSDocTag | SyntaxKind.JSDocAugmentsTag | SyntaxKind.JSDocClassTag | SyntaxKind.JSDocCallbackTag | SyntaxKind.JSDocParameterTag | SyntaxKind.JSDocReturnTag | SyntaxKind.JSDocThisTag | SyntaxKind.JSDocTypeTag | SyntaxKind.JSDocTemplateTag | SyntaxKind.JSDocTypedefTag | SyntaxKind.JSDocPropertyTag | SyntaxKind.SyntaxList | SyntaxKind.NotEmittedStatement | SyntaxKind.PartiallyEmittedExpression | SyntaxKind.CommaListExpression | SyntaxKind.MergeDeclarationMarker | SyntaxKind.EndOfDeclarationMarker | SyntaxKind.Count; function getOperatorPrecedence(nodeKind: SyntaxKind, operatorKind: SyntaxKind, hasArguments?: boolean): number; function getBinaryOperatorPrecedence(kind: SyntaxKind): number; function createDiagnosticCollection(): DiagnosticCollection; @@ -6714,6 +6719,8 @@ declare namespace ts { function getJSDocAugmentsTag(node: Node): JSDocAugmentsTag | undefined; /** Gets the JSDoc class tag for the node if present */ function getJSDocClassTag(node: Node): JSDocClassTag | undefined; + /** Gets the JSDoc this tag for the node if present */ + function getJSDocThisTag(node: Node): JSDocThisTag | undefined; /** Gets the JSDoc return tag for the node if present */ function getJSDocReturnTag(node: Node): JSDocReturnTag | undefined; /** Gets the JSDoc template tag for the node if present */ @@ -6900,6 +6907,7 @@ declare namespace ts { function isJSDoc(node: Node): node is JSDoc; function isJSDocAugmentsTag(node: Node): node is JSDocAugmentsTag; function isJSDocClassTag(node: Node): node is JSDocClassTag; + function isJSDocThisTag(node: Node): node is JSDocThisTag; function isJSDocParameterTag(node: Node): node is JSDocParameterTag; function isJSDocReturnTag(node: Node): node is JSDocReturnTag; function isJSDocTypeTag(node: Node): node is JSDocTypeTag; diff --git a/tests/baselines/reference/thisTag1.symbols b/tests/baselines/reference/thisTag1.symbols new file mode 100644 index 00000000000..473a80be70f --- /dev/null +++ b/tests/baselines/reference/thisTag1.symbols @@ -0,0 +1,32 @@ +=== tests/cases/conformance/jsdoc/a.js === +/** @this {{ n: number }} Mount Holyoke Preparatory School + * @param {string} s + * @return {number} + */ +function f(s) { +>f : Symbol(f, Decl(a.js, 0, 0)) +>s : Symbol(s, Decl(a.js, 4, 11)) + + return this.n + s.length +>this.n : Symbol(n, Decl(a.js, 0, 12)) +>this : Symbol(__type, Decl(a.js, 0, 11)) +>n : Symbol(n, Decl(a.js, 0, 12)) +>s.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(a.js, 4, 11)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + +const o = { +>o : Symbol(o, Decl(a.js, 8, 5)) + + f, +>f : Symbol(f, Decl(a.js, 8, 11)) + + n: 1 +>n : Symbol(n, Decl(a.js, 9, 6)) +} +o.f('hi') +>o.f : Symbol(f, Decl(a.js, 8, 11)) +>o : Symbol(o, Decl(a.js, 8, 5)) +>f : Symbol(f, Decl(a.js, 8, 11)) + diff --git a/tests/baselines/reference/thisTag1.types b/tests/baselines/reference/thisTag1.types new file mode 100644 index 00000000000..1ef6ae8d28f --- /dev/null +++ b/tests/baselines/reference/thisTag1.types @@ -0,0 +1,37 @@ +=== tests/cases/conformance/jsdoc/a.js === +/** @this {{ n: number }} Mount Holyoke Preparatory School + * @param {string} s + * @return {number} + */ +function f(s) { +>f : (s: string) => number +>s : string + + return this.n + s.length +>this.n + s.length : number +>this.n : number +>this : { n: number; } +>n : number +>s.length : number +>s : string +>length : number +} + +const o = { +>o : { [x: string]: any; f: (s: string) => number; n: number; } +>{ f, n: 1} : { [x: string]: any; f: (s: string) => number; n: number; } + + f, +>f : (s: string) => number + + n: 1 +>n : number +>1 : 1 +} +o.f('hi') +>o.f('hi') : number +>o.f : (s: string) => number +>o : { [x: string]: any; f: (s: string) => number; n: number; } +>f : (s: string) => number +>'hi' : "hi" + diff --git a/tests/cases/conformance/jsdoc/thisTag1.ts b/tests/cases/conformance/jsdoc/thisTag1.ts new file mode 100644 index 00000000000..62416b78d16 --- /dev/null +++ b/tests/cases/conformance/jsdoc/thisTag1.ts @@ -0,0 +1,19 @@ +// @noEmit: true +// @allowJs: true +// @checkJs: true +// @strict: true +// @Filename: a.js + +/** @this {{ n: number }} Mount Holyoke Preparatory School + * @param {string} s + * @return {number} + */ +function f(s) { + return this.n + s.length +} + +const o = { + f, + n: 1 +} +o.f('hi')