From 271c50caa228f26e8284fba48041689b07d6f7eb Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 18 Mar 2021 14:02:50 -0700 Subject: [PATCH] Revert "Editor support for link tag (#41877)" This reverts commit ec77bff33226fb01f4e38b20e481f8c1fcd9e6c0. --- src/compiler/checker.ts | 8 +- src/compiler/emitter.ts | 24 +- src/compiler/factory/nodeFactory.ts | 95 +- src/compiler/factory/nodeTests.ts | 4 - src/compiler/parser.ts | 192 +- src/compiler/types.ts | 105 +- src/compiler/utilitiesPublic.ts | 13 +- src/deprecatedCompat/deprecations.ts | 4 +- src/harness/client.ts | 16 +- src/harness/fourslashImpl.ts | 2 +- src/server/protocol.ts | 21 +- src/server/session.ts | 77 +- src/services/classifier.ts | 3 - src/services/codefixes/inferFromUsage.ts | 10 +- src/services/jsDoc.ts | 40 +- src/services/services.ts | 20 +- src/services/signatureHelp.ts | 2 +- src/services/symbolDisplay.ts | 6 +- src/services/types.ts | 20 +- src/services/utilities.ts | 40 +- src/testRunner/tsconfig.json | 1 - src/testRunner/unittests/jsDocParsing.ts | 17 +- src/testRunner/unittests/publicApi.ts | 4 +- .../unittests/tsserver/completions.ts | 3 +- src/testRunner/unittests/tsserver/jsdocTag.ts | 693 -- tests/baselines/reference/APISample_jsdoc.js | 8 +- ...Correctly.@@ does not start a new tag.json | 16 +- ...ocComments.parsesCorrectly.@link tags.json | 420 +- ...ly.Initial email address is not a tag.json | 16 +- ...esCorrectly.Initial star is not a tag.json | 16 +- ...ectly.Initial star space is not a tag.json | 16 +- ...ts.parsesCorrectly.Nested @param tags.json | 32 +- ...parsesCorrectly.argSynonymForParamTag.json | 16 +- ...sCorrectly.argumentSynonymForParamTag.json | 16 +- ...parsesCorrectly.asteriskAfterPreamble.json | 16 +- ...DocComments.parsesCorrectly.authorTag.json | 343 +- ...sCorrectly.consecutive newline tokens.json | 20 +- ...ments.parsesCorrectly.leadingAsterisk.json | 4 +- ...less-than and greater-than characters.json | 16 +- ...ly.no space before @ is not a new tag.json | 52 +- ...nts.parsesCorrectly.noLeadingAsterisk.json | 4 +- ...Comments.parsesCorrectly.noReturnType.json | 4 +- ...DocComments.parsesCorrectly.paramTag1.json | 16 +- ...arsesCorrectly.paramTagBracketedName1.json | 16 +- ...arsesCorrectly.paramTagBracketedName2.json | 16 +- ...parsesCorrectly.paramTagNameThenType2.json | 16 +- ...ocComments.parsesCorrectly.returnTag1.json | 4 +- ...ocComments.parsesCorrectly.returnTag2.json | 20 +- ...cComments.parsesCorrectly.returnsTag1.json | 4 +- ...cComments.parsesCorrectly.templateTag.json | 4 +- ...Comments.parsesCorrectly.templateTag2.json | 4 +- ...Comments.parsesCorrectly.templateTag3.json | 4 +- ...Comments.parsesCorrectly.templateTag4.json | 4 +- ...Comments.parsesCorrectly.templateTag5.json | 4 +- ...Comments.parsesCorrectly.templateTag6.json | 20 +- ...mments.parsesCorrectly.threeAsterisks.json | 16 +- .../DocComments.parsesCorrectly.typeTag.json | 4 +- .../reference/api/tsserverlibrary.d.ts | 252 +- tests/baselines/reference/api/typescript.d.ts | 230 +- .../completionEntryForUnionMethod.baseline | 6133 ----------------- .../completionsCommentsClass.baseline | 180 +- .../completionsCommentsClassMembers.baseline | 1455 +--- ...completionsCommentsCommentParsing.baseline | 4088 ++--------- ...etionsCommentsFunctionDeclaration.baseline | 585 +- ...letionsCommentsFunctionExpression.baseline | 896 +-- ...hodsOnAssignedFunctionExpressions.baseline | 15 +- .../enumTagCircularReference.errors.txt | 2 +- ...findAllRefs_importType_js.1.baseline.jsonc | 2 +- .../findAllRefs_importType_js.baseline.jsonc | 4 +- ...ameterTagReusesInputNodeInEmit1.errors.txt | 4 +- .../reference/jsDocAliasQuickInfo.baseline | 21 +- .../jsDocDontBreakWithNamespaces.baseline | 14 +- .../jsDocFunctionSignatures5.baseline | 67 +- .../jsDocFunctionSignatures6.baseline | 240 +- tests/baselines/reference/jsDocTags.baseline | 71 +- .../reference/jsDocTypeTagQuickInfo1.baseline | 91 +- .../reference/jsDocTypeTagQuickInfo2.baseline | 84 +- .../reference/jsDocTypedefQuickInfo1.baseline | 7 +- .../jsdocImportTypeNodeNamespace.errors.txt | 2 +- tests/baselines/reference/jsdocLink1.baseline | 208 - tests/baselines/reference/jsdocLink2.baseline | 208 - tests/baselines/reference/jsdocLink3.baseline | 208 - ...sdocLink_findAllReferences1.baseline.jsonc | 73 - .../reference/jsdocLink_rename1.baseline | 7 - .../reference/jsdocReturnsTag.baseline | 28 +- .../reference/jsdocTypeTagCast.errors.txt | 10 +- tests/baselines/reference/linkTagEmit1.js | 64 - .../baselines/reference/linkTagEmit1.symbols | 28 - tests/baselines/reference/linkTagEmit1.types | 28 - .../reference/quickInfoAlias.baseline | 14 +- .../quickInfoCommentsClassMembers.baseline | 45 +- .../quickInfoCommentsCommentParsing.baseline | 662 +- ...ickInfoCommentsFunctionExpression.baseline | 148 +- .../quickInfoDisplayPartsParameters.baseline | 7 +- .../quickInfoForJSDocCodefence.baseline | 14 +- .../quickInfoForJSDocUnknownTag.baseline | 35 +- .../reference/quickInfoJSDocTags.baseline | 71 +- .../reference/quickInfoJsDocTags1.baseline | 103 +- .../reference/quickInfoJsDocTags3.baseline | 59 +- .../reference/quickInfoJsDocTags4.baseline | 59 +- .../reference/quickInfoJsDocTags5.baseline | 59 +- .../reference/quickInfoJsDocTags6.baseline | 59 +- ...ckInfoJsDocTagsFunctionOverload01.baseline | 7 +- ...ckInfoJsDocTagsFunctionOverload03.baseline | 7 +- ...ckInfoJsDocTagsFunctionOverload05.baseline | 7 +- .../quickInfoJsDocTextFormatting1.baseline | 150 +- .../signatureHelpCommentsClass.baseline | 15 +- ...gnatureHelpCommentsCommentParsing.baseline | 1298 +--- ...reHelpCommentsFunctionDeclaration.baseline | 15 +- ...ureHelpCommentsFunctionExpression.baseline | 44 +- ...elpConstructorCallParamProperties.baseline | 15 +- .../signatureHelpJSDocCallbackTag.baseline | 548 -- .../reference/signatureHelpJSDocTags.baseline | 21 +- ...natureHelpJSMissingPropertyAccess.baseline | 60 +- .../signatureHelpTypeArguments2.baseline | 268 +- .../signatureHelpWithUnknown.baseline | 15 +- .../smartSelection_JSDocTags1.baseline | 3 +- .../smartSelection_JSDocTags2.baseline | 3 +- .../smartSelection_JSDocTags9.baseline | 2 +- .../trailingCommaSignatureHelp.baseline | 15 +- ...nusedTypeParameters_templateTag.errors.txt | 2 +- ...usedTypeParameters_templateTag2.errors.txt | 6 +- tests/cases/compiler/APISample_jsdoc.ts | 4 +- tests/cases/conformance/jsdoc/linkTagEmit1.ts | 23 - .../fourslash/codeFixInferFromUsageJS.ts | 2 +- .../codeFixInferFromUsageMemberJS.ts | 4 +- .../codeFixInferFromUsageVariable2JS.ts | 4 +- .../codeFixInferFromUsageVariableJS.ts | 2 +- .../fourslash/codeFixInferFromUsage_allJS.ts | 4 +- .../codeFixUnusedIdentifier_all_delete_js.ts | 16 +- ...eFixUnusedIdentifier_delete_templateTag.ts | 3 +- .../completionEntryForUnionMethod.ts | 13 +- .../fourslash/findAllRefsJsDocTypeDef_js.ts | 2 +- .../findAllRefsTypedef_importType.ts | 2 +- tests/cases/fourslash/fourslash.ts | 2 +- .../fourslash/getJavaScriptCompletions16.ts | 2 +- .../cases/fourslash/gotoDefinitionLinkTag1.ts | 56 - tests/cases/fourslash/importJsNodeModule3.ts | 4 +- .../fourslash/jsDocDontBreakWithNamespaces.ts | 27 + tests/cases/fourslash/jsdocLink1.ts | 16 - tests/cases/fourslash/jsdocLink2.ts | 18 - tests/cases/fourslash/jsdocLink3.ts | 19 - .../fourslash/jsdocLink_findAllReferences1.ts | 9 - tests/cases/fourslash/jsdocLink_rename1.ts | 9 - .../jsdocTypedefTagSemanticMeaning0.ts | 2 +- .../completionEntryDetailAcrossFiles01.ts | 10 +- .../completionEntryDetailAcrossFiles02.ts | 14 +- tests/cases/fourslash/server/completions02.ts | 4 +- ...nsImport_defaultAndNamedConflict_server.ts | 6 +- .../fourslash/server/jsdocCallbackTag.ts | 16 + .../server/jsdocTypedefTagRename02.ts | 2 +- .../server/signatureHelpJSDocCallbackTag.ts | 28 - .../signatureHelpWhenEditingCallExpression.ts | 4 +- ...tacticClassificationForJSDocTemplateTag.ts | 5 +- .../syntacticClassificationsDocComment1.ts | 2 +- 155 files changed, 1604 insertions(+), 20458 deletions(-) delete mode 100644 src/testRunner/unittests/tsserver/jsdocTag.ts delete mode 100644 tests/baselines/reference/completionEntryForUnionMethod.baseline delete mode 100644 tests/baselines/reference/jsdocLink1.baseline delete mode 100644 tests/baselines/reference/jsdocLink2.baseline delete mode 100644 tests/baselines/reference/jsdocLink3.baseline delete mode 100644 tests/baselines/reference/jsdocLink_findAllReferences1.baseline.jsonc delete mode 100644 tests/baselines/reference/jsdocLink_rename1.baseline delete mode 100644 tests/baselines/reference/linkTagEmit1.js delete mode 100644 tests/baselines/reference/linkTagEmit1.symbols delete mode 100644 tests/baselines/reference/linkTagEmit1.types delete mode 100644 tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline delete mode 100644 tests/cases/conformance/jsdoc/linkTagEmit1.ts delete mode 100644 tests/cases/fourslash/gotoDefinitionLinkTag1.ts delete mode 100644 tests/cases/fourslash/jsdocLink1.ts delete mode 100644 tests/cases/fourslash/jsdocLink2.ts delete mode 100644 tests/cases/fourslash/jsdocLink3.ts delete mode 100644 tests/cases/fourslash/jsdocLink_findAllReferences1.ts delete mode 100644 tests/cases/fourslash/jsdocLink_rename1.ts delete mode 100644 tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2f96a4402f858..a8ab4ec7802fc 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5187,7 +5187,7 @@ namespace ts { function preserveCommentsOn(node: T) { if (some(propertySymbol.declarations, d => d.kind === SyntaxKind.JSDocPropertyTag)) { const d = propertySymbol.declarations?.find(d => d.kind === SyntaxKind.JSDocPropertyTag)! as JSDocPropertyTag; - const commentText = getTextOfJSDocComment(d.comment); + const commentText = d.comment; if (commentText) { setSyntheticLeadingComments(node, [{ kind: SyntaxKind.MultiLineCommentTrivia, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); } @@ -6702,7 +6702,7 @@ namespace ts { const typeParams = getSymbolLinks(symbol).typeParameters; const typeParamDecls = map(typeParams, p => typeParameterToDeclaration(p, context)); const jsdocAliasDecl = symbol.declarations?.find(isJSDocTypeAlias); - const commentText = getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : undefined); + const commentText = jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : undefined; const oldFlags = context.flags; context.flags |= NodeBuilderFlags.InTypeAlias; const oldEnclosingDecl = context.enclosingDeclaration; @@ -38593,10 +38593,6 @@ namespace ts { const meaning = SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Value; return resolveEntityName(name, meaning, /*ignoreErrors*/ false, /*dontResolveAlias*/ true, getHostSignatureFromJSDoc(name)); } - else if (isJSDocLink(name.parent)) { - const meaning = SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Value; - return resolveEntityName(name, meaning, /*ignoreErrors*/ true); - } if (name.parent.kind === SyntaxKind.TypePredicate) { return resolveEntityName(name, /*meaning*/ SymbolFlags.FunctionScopedVariable); diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 8c3cbc96c1105..e14e0f8b689ad 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3565,16 +3565,13 @@ namespace ts { function emitJSDoc(node: JSDoc) { write("/**"); if (node.comment) { - const text = getTextOfJSDocComment(node.comment); - if (text) { - const lines = text.split(/\r\n?|\n/g); - for (const line of lines) { - writeLine(); - writeSpace(); - writePunctuation("*"); - writeSpace(); - write(line); - } + const lines = node.comment.split(/\r\n?|\n/g); + for (const line of lines) { + writeLine(); + writeSpace(); + writePunctuation("*"); + writeSpace(); + write(line); } } if (node.tags) { @@ -3707,11 +3704,10 @@ namespace ts { emit(tagName); } - function emitJSDocComment(comment: NodeArray | undefined) { - const text = getTextOfJSDocComment(comment); - if (text) { + function emitJSDocComment(comment: string | undefined) { + if (comment) { writeSpace(); - write(text); + write(comment); } } diff --git a/src/compiler/factory/nodeFactory.ts b/src/compiler/factory/nodeFactory.ts index 01e19545edcb1..99425c2f29653 100644 --- a/src/compiler/factory/nodeFactory.ts +++ b/src/compiler/factory/nodeFactory.ts @@ -34,10 +34,10 @@ namespace ts { const getJSDocPrimaryTypeCreateFunction = memoizeOne((kind: T["kind"]) => () => createJSDocPrimaryTypeWorker(kind)); const getJSDocUnaryTypeCreateFunction = memoizeOne((kind: T["kind"]) => (type: T["type"]) => createJSDocUnaryTypeWorker(kind, type)); const getJSDocUnaryTypeUpdateFunction = memoizeOne((kind: T["kind"]) => (node: T, type: T["type"]) => updateJSDocUnaryTypeWorker(kind, node, type)); - const getJSDocSimpleTagCreateFunction = memoizeOne((kind: T["kind"]) => (tagName: Identifier | undefined, comment?: NodeArray) => createJSDocSimpleTagWorker(kind, tagName, comment)); - const getJSDocSimpleTagUpdateFunction = memoizeOne((kind: T["kind"]) => (node: T, tagName: Identifier | undefined, comment?: NodeArray) => updateJSDocSimpleTagWorker(kind, node, tagName, comment)); - const getJSDocTypeLikeTagCreateFunction = memoizeOne((kind: T["kind"]) => (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: NodeArray) => createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment)); - const getJSDocTypeLikeTagUpdateFunction = memoizeOne((kind: T["kind"]) => (node: T, tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: NodeArray) => updateJSDocTypeLikeTagWorker(kind, node, tagName, typeExpression, comment)); + const getJSDocSimpleTagCreateFunction = memoizeOne((kind: T["kind"]) => (tagName: Identifier | undefined, comment?: string) => createJSDocSimpleTagWorker(kind, tagName, comment)); + const getJSDocSimpleTagUpdateFunction = memoizeOne((kind: T["kind"]) => (node: T, tagName: Identifier | undefined, comment?: string) => updateJSDocSimpleTagWorker(kind, node, tagName, comment)); + const getJSDocTypeLikeTagCreateFunction = memoizeOne((kind: T["kind"]) => (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string) => createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment)); + const getJSDocTypeLikeTagUpdateFunction = memoizeOne((kind: T["kind"]) => (node: T, tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string) => updateJSDocTypeLikeTagWorker(kind, node, tagName, typeExpression, comment)); const factory: NodeFactory = { get parenthesizer() { return parenthesizerRules(); }, @@ -345,8 +345,6 @@ namespace ts { updateJSDocSeeTag, createJSDocNameReference, updateJSDocNameReference, - createJSDocLink, - updateJSDocLink, // lazily load factory members for JSDoc tags with similar structure get createJSDocTypeTag() { return getJSDocTypeLikeTagCreateFunction(SyntaxKind.JSDocTypeTag); }, get updateJSDocTypeTag() { return getJSDocTypeLikeTagUpdateFunction(SyntaxKind.JSDocTypeTag); }, @@ -372,8 +370,6 @@ namespace ts { get updateJSDocDeprecatedTag() { return getJSDocSimpleTagUpdateFunction(SyntaxKind.JSDocDeprecatedTag); }, createJSDocUnknownTag, updateJSDocUnknownTag, - createJSDocText, - updateJSDocText, createJSDocComment, updateJSDocComment, createJsxElement, @@ -4240,15 +4236,15 @@ namespace ts { } // @api - function createBaseJSDocTag(kind: T["kind"], tagName: Identifier, comment: string | NodeArray | undefined) { + function createBaseJSDocTag(kind: T["kind"], tagName: Identifier, comment: string | undefined) { const node = createBaseNode(kind); node.tagName = tagName; - node.comment = typeof comment === "string" ? createNodeArray([createJSDocText(comment)]) : comment; + node.comment = comment; return node; } // @api - function createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray): JSDocTemplateTag { + function createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string): JSDocTemplateTag { const node = createBaseJSDocTag(SyntaxKind.JSDocTemplateTag, tagName ?? createIdentifier("template"), comment); node.constraint = constraint; node.typeParameters = createNodeArray(typeParameters); @@ -4256,7 +4252,7 @@ namespace ts { } // @api - function updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier = getDefaultTagName(node), constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | NodeArray | undefined): JSDocTemplateTag { + function updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier = getDefaultTagName(node), constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | undefined): JSDocTemplateTag { return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters @@ -4266,7 +4262,7 @@ namespace ts { } // @api - function createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocTypedefTag { + function createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocTypedefTag { const node = createBaseJSDocTag(SyntaxKind.JSDocTypedefTag, tagName ?? createIdentifier("typedef"), comment); node.typeExpression = typeExpression; node.fullName = fullName; @@ -4275,7 +4271,7 @@ namespace ts { } // @api - function updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier = getDefaultTagName(node), typeExpression: JSDocTypeExpression | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocTypedefTag { + function updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier = getDefaultTagName(node), typeExpression: JSDocTypeExpression | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocTypedefTag { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName @@ -4285,7 +4281,7 @@ namespace ts { } // @api - function createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocParameterTag { + function createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocParameterTag { const node = createBaseJSDocTag(SyntaxKind.JSDocParameterTag, tagName ?? createIdentifier("param"), comment); node.typeExpression = typeExpression; node.name = name; @@ -4295,7 +4291,7 @@ namespace ts { } // @api - function updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier = getDefaultTagName(node), name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocParameterTag { + function updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier = getDefaultTagName(node), name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocParameterTag { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed @@ -4307,7 +4303,7 @@ namespace ts { } // @api - function createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocPropertyTag { + function createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocPropertyTag { const node = createBaseJSDocTag(SyntaxKind.JSDocPropertyTag, tagName ?? createIdentifier("prop"), comment); node.typeExpression = typeExpression; node.name = name; @@ -4317,7 +4313,7 @@ namespace ts { } // @api - function updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier = getDefaultTagName(node), name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocPropertyTag { + function updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier = getDefaultTagName(node), name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocPropertyTag { return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed @@ -4329,7 +4325,7 @@ namespace ts { } // @api - function createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocCallbackTag { + function createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocCallbackTag { const node = createBaseJSDocTag(SyntaxKind.JSDocCallbackTag, tagName ?? createIdentifier("callback"), comment); node.typeExpression = typeExpression; node.fullName = fullName; @@ -4338,7 +4334,7 @@ namespace ts { } // @api - function updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier = getDefaultTagName(node), typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocCallbackTag { + function updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier = getDefaultTagName(node), typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocCallbackTag { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName @@ -4348,14 +4344,14 @@ namespace ts { } // @api - function createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string | NodeArray): JSDocAugmentsTag { + function createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string): JSDocAugmentsTag { const node = createBaseJSDocTag(SyntaxKind.JSDocAugmentsTag, tagName ?? createIdentifier("augments"), comment); node.class = className; return node; } // @api - function updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier = getDefaultTagName(node), className: JSDocAugmentsTag["class"], comment: string | NodeArray | undefined): JSDocAugmentsTag { + function updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier = getDefaultTagName(node), className: JSDocAugmentsTag["class"], comment: string | undefined): JSDocAugmentsTag { return node.tagName !== tagName || node.class !== className || node.comment !== comment @@ -4364,21 +4360,21 @@ namespace ts { } // @api - function createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string | NodeArray): JSDocImplementsTag { + function createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag { const node = createBaseJSDocTag(SyntaxKind.JSDocImplementsTag, tagName ?? createIdentifier("implements"), comment); node.class = className; return node; } // @api - function createJSDocSeeTag(tagName: Identifier | undefined, name: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag { + function createJSDocSeeTag(tagName: Identifier | undefined, name: JSDocNameReference | undefined, comment?: string): JSDocSeeTag { const node = createBaseJSDocTag(SyntaxKind.JSDocSeeTag, tagName ?? createIdentifier("see"), comment); node.name = name; return node; } // @api - function updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, name: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag { + function updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, name: JSDocNameReference | undefined, comment?: string): JSDocSeeTag { return node.tagName !== tagName || node.name !== name || node.comment !== comment @@ -4401,22 +4397,7 @@ namespace ts { } // @api - function createJSDocLink(name: EntityName | undefined, text: string): JSDocLink { - const node = createBaseNode(SyntaxKind.JSDocLink); - node.name = name; - node.text = text; - return node; - } - - // @api - function updateJSDocLink(node: JSDocLink, name: EntityName | undefined, text: string): JSDocLink { - return node.name !== name - ? update(createJSDocLink(name, text), node) - : node; - } - - // @api - function updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier = getDefaultTagName(node), className: JSDocImplementsTag["class"], comment: string | NodeArray | undefined): JSDocImplementsTag { + function updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier = getDefaultTagName(node), className: JSDocImplementsTag["class"], comment: string | undefined): JSDocImplementsTag { return node.tagName !== tagName || node.class !== className || node.comment !== comment @@ -4432,7 +4413,7 @@ namespace ts { // createJSDocProtectedTag // createJSDocReadonlyTag // createJSDocDeprecatedTag - function createJSDocSimpleTagWorker(kind: T["kind"], tagName: Identifier | undefined, comment?: string | NodeArray) { + function createJSDocSimpleTagWorker(kind: T["kind"], tagName: Identifier | undefined, comment?: string) { const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment); return node; } @@ -4445,7 +4426,7 @@ namespace ts { // updateJSDocProtectedTag // updateJSDocReadonlyTag // updateJSDocDeprecatedTag - function updateJSDocSimpleTagWorker(kind: T["kind"], node: T, tagName: Identifier = getDefaultTagName(node), comment: string | NodeArray | undefined) { + function updateJSDocSimpleTagWorker(kind: T["kind"], node: T, tagName: Identifier = getDefaultTagName(node), comment: string | undefined) { return node.tagName !== tagName || node.comment !== comment ? update(createJSDocSimpleTagWorker(kind, tagName, comment), node) : @@ -4457,7 +4438,7 @@ namespace ts { // createJSDocReturnTag // createJSDocThisTag // createJSDocEnumTag - function createJSDocTypeLikeTagWorker(kind: T["kind"], tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string | NodeArray) { + function createJSDocTypeLikeTagWorker(kind: T["kind"], tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string) { const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment); node.typeExpression = typeExpression; return node; @@ -4468,7 +4449,7 @@ namespace ts { // updateJSDocReturnTag // updateJSDocThisTag // updateJSDocEnumTag - function updateJSDocTypeLikeTagWorker(kind: T["kind"], node: T, tagName: Identifier = getDefaultTagName(node), typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray | undefined) { + function updateJSDocTypeLikeTagWorker(kind: T["kind"], node: T, tagName: Identifier = getDefaultTagName(node), typeExpression: JSDocTypeExpression | undefined, comment: string | undefined) { return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment @@ -4477,13 +4458,13 @@ namespace ts { } // @api - function createJSDocUnknownTag(tagName: Identifier, comment?: string | NodeArray): JSDocUnknownTag { + function createJSDocUnknownTag(tagName: Identifier, comment?: string): JSDocUnknownTag { const node = createBaseJSDocTag(SyntaxKind.JSDocTag, tagName, comment); return node; } // @api - function updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | NodeArray | undefined): JSDocUnknownTag { + function updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | undefined): JSDocUnknownTag { return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) @@ -4491,29 +4472,15 @@ namespace ts { } // @api - function createJSDocText(text: string): JSDocText { - const node = createBaseNode(SyntaxKind.JSDocText); - node.text = text; - return node; - } - - // @api - function updateJSDocText(node: JSDocText, text: string): JSDocText { - return node.text !== text - ? update(createJSDocText(text), node) - : node; - } - - // @api - function createJSDocComment(comment?: string | NodeArray | undefined, tags?: readonly JSDocTag[] | undefined) { + function createJSDocComment(comment?: string | undefined, tags?: readonly JSDocTag[] | undefined) { const node = createBaseNode(SyntaxKind.JSDocComment); - node.comment = typeof comment === "string" ? createNodeArray([createJSDocText(comment)]) : comment; + node.comment = comment; node.tags = asNodeArray(tags); return node; } // @api - function updateJSDocComment(node: JSDoc, comment: string | NodeArray | undefined, tags: readonly JSDocTag[] | undefined) { + function updateJSDocComment(node: JSDoc, comment: string | undefined, tags: readonly JSDocTag[] | undefined) { return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) diff --git a/src/compiler/factory/nodeTests.ts b/src/compiler/factory/nodeTests.ts index 06757ab363ed8..0fbb50d9d1165 100644 --- a/src/compiler/factory/nodeTests.ts +++ b/src/compiler/factory/nodeTests.ts @@ -770,10 +770,6 @@ namespace ts { return node.kind === SyntaxKind.JSDocNameReference; } - export function isJSDocLink(node: Node): node is JSDocLink { - return node.kind === SyntaxKind.JSDocLink; - } - export function isJSDocAllType(node: Node): node is JSDocAllType { return node.kind === SyntaxKind.JSDocAllType; } diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index f423ca046492f..3c1c118b5b33a 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -481,12 +481,10 @@ namespace ts { return visitNodes(cbNode, cbNodes, (node).parameters) || visitNode(cbNode, (node).type); case SyntaxKind.JSDocComment: - return visitNodes(cbNode, cbNodes, (node as JSDoc).comment) - || visitNodes(cbNode, cbNodes, (node as JSDoc).tags); + return visitNodes(cbNode, cbNodes, (node).tags); case SyntaxKind.JSDocSeeTag: return visitNode(cbNode, (node as JSDocSeeTag).tagName) || - visitNode(cbNode, (node as JSDocSeeTag).name) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNode(cbNode, (node as JSDocSeeTag).name); case SyntaxKind.JSDocNameReference: return visitNode(cbNode, (node as JSDocNameReference).name); case SyntaxKind.JSDocParameterTag: @@ -494,54 +492,43 @@ namespace ts { return visitNode(cbNode, (node as JSDocTag).tagName) || ((node as JSDocPropertyLikeTag).isNameFirst ? visitNode(cbNode, (node).name) || - visitNode(cbNode, (node).typeExpression) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment) + visitNode(cbNode, (node).typeExpression) : visitNode(cbNode, (node).typeExpression) || - visitNode(cbNode, (node).name)) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNode(cbNode, (node).name)); case SyntaxKind.JSDocAuthorTag: return visitNode(cbNode, (node as JSDocTag).tagName); case SyntaxKind.JSDocImplementsTag: return visitNode(cbNode, (node as JSDocTag).tagName) || - visitNode(cbNode, (node).class) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNode(cbNode, (node).class); case SyntaxKind.JSDocAugmentsTag: return visitNode(cbNode, (node as JSDocTag).tagName) || - visitNode(cbNode, (node).class) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNode(cbNode, (node).class); case SyntaxKind.JSDocTemplateTag: return visitNode(cbNode, (node as JSDocTag).tagName) || visitNode(cbNode, (node).constraint) || - visitNodes(cbNode, cbNodes, (node).typeParameters) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNodes(cbNode, cbNodes, (node).typeParameters); case SyntaxKind.JSDocTypedefTag: return visitNode(cbNode, (node as JSDocTag).tagName) || ((node as JSDocTypedefTag).typeExpression && (node as JSDocTypedefTag).typeExpression!.kind === SyntaxKind.JSDocTypeExpression ? visitNode(cbNode, (node).typeExpression) || - visitNode(cbNode, (node).fullName) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment) + visitNode(cbNode, (node).fullName) : visitNode(cbNode, (node).fullName) || - visitNode(cbNode, (node).typeExpression)) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNode(cbNode, (node).typeExpression)); case SyntaxKind.JSDocCallbackTag: return visitNode(cbNode, (node as JSDocTag).tagName) || visitNode(cbNode, (node as JSDocCallbackTag).fullName) || - visitNode(cbNode, (node as JSDocCallbackTag).typeExpression) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNode(cbNode, (node as JSDocCallbackTag).typeExpression); case SyntaxKind.JSDocReturnTag: case SyntaxKind.JSDocTypeTag: case SyntaxKind.JSDocThisTag: case SyntaxKind.JSDocEnumTag: return visitNode(cbNode, (node as JSDocTag).tagName) || - visitNode(cbNode, (node as JSDocReturnTag | JSDocTypeTag | JSDocThisTag | JSDocEnumTag).typeExpression) || - visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + visitNode(cbNode, (node as JSDocReturnTag | JSDocTypeTag | JSDocThisTag | JSDocEnumTag).typeExpression); case SyntaxKind.JSDocSignature: return forEach((node).typeParameters, cbNode) || forEach((node).parameters, cbNode) || visitNode(cbNode, (node).type); - case SyntaxKind.JSDocLink: - return visitNode(cbNode, (node as JSDocLink).name); case SyntaxKind.JSDocTypeLiteral: return forEach((node as JSDocTypeLiteral).jsDocPropertyTags, cbNode); case SyntaxKind.JSDocTag: @@ -550,8 +537,7 @@ namespace ts { case SyntaxKind.JSDocPrivateTag: case SyntaxKind.JSDocProtectedTag: case SyntaxKind.JSDocReadonlyTag: - return visitNode(cbNode, (node as JSDocTag).tagName) - || visitNodes(cbNode, cbNodes, (node as JSDocTag).comment); + return visitNode(cbNode, (node as JSDocTag).tagName); case SyntaxKind.PartiallyEmittedExpression: return visitNode(cbNode, (node).expression); } @@ -7332,10 +7318,7 @@ namespace ts { let tags: JSDocTag[]; let tagsPos: number; let tagsEnd: number; - let linkEnd: number; - let commentsPos: number | undefined; - let comments: string[] = []; - const parts: (JSDocLink | JSDocText)[] = []; + const comments: string[] = []; // + 3 for leading /**, - 5 in total for /** */ return scanner.scanRange(start + 3, length - 5, () => { @@ -7365,7 +7348,6 @@ namespace ts { case SyntaxKind.AtToken: if (state === JSDocState.BeginningOfLine || state === JSDocState.SawAsterisk) { removeTrailingWhitespace(comments); - if (!commentsPos) commentsPos = getNodePos(); addTag(parseTag(indent)); // NOTE: According to usejsdoc.org, a tag goes to end of line, except the last tag. // Real-world comments may break this rule, so "BeginningOfLine" will not be a real line beginning @@ -7408,22 +7390,6 @@ namespace ts { break; case SyntaxKind.EndOfFileToken: break loop; - case SyntaxKind.OpenBraceToken: - state = JSDocState.SavingComments; - const commentEnd = scanner.getStartPos(); - const linkStart = scanner.getTextPos() - 1; - const link = parseJSDocLink(linkStart); - if (link) { - if (!linkEnd) { - removeLeadingNewlines(comments); - } - parts.push(finishNode(factory.createJSDocText(comments.join("")), linkEnd ?? start, commentEnd)); - parts.push(link); - comments = []; - linkEnd = scanner.getTextPos(); - break; - } - // fallthrough if it's not a {@link sequence default: // Anything else is doc comment text. We just save it. Because it // wasn't a tag, we can no longer parse a tag on this line until we hit the next @@ -7434,13 +7400,9 @@ namespace ts { } nextTokenJSDoc(); } + removeLeadingNewlines(comments); removeTrailingWhitespace(comments); - if (comments.length) { - parts.push(finishNode(factory.createJSDocText(comments.join("")), linkEnd ?? start, commentsPos)); - } - if (parts.length && tags) Debug.assertIsDefined(commentsPos, "having parsed tags implies that the end of the comment span should be set"); - const tagsArray = tags && createNodeArray(tags, tagsPos, tagsEnd); - return finishNode(factory.createJSDocComment(parts.length ? createNodeArray(parts, start, commentsPos) : undefined, tagsArray), start, end); + return createJSDocComment(); }); function removeLeadingNewlines(comments: string[]) { @@ -7455,6 +7417,12 @@ namespace ts { } } + function createJSDocComment(): JSDoc { + const comment = comments.length ? comments.join("") : undefined; + const tagsArray = tags && createNodeArray(tags, tagsPos, tagsEnd); + return finishNode(factory.createJSDocComment(comment, tagsArray), start, end); + } + function isNextNonwhitespaceTokenEndOfFile(): boolean { // We must use infinite lookahead, as there could be any number of newlines :( while (true) { @@ -7588,11 +7556,8 @@ namespace ts { return parseTagComments(margin, indentText.slice(margin)); } - function parseTagComments(indent: number, initialMargin?: string): NodeArray | undefined { - const commentsPos = getNodePos(); - let comments: string[] = []; - const parts: (JSDocLink | JSDocText)[] = []; - let linkEnd; + function parseTagComments(indent: number, initialMargin?: string): string | undefined { + const comments: string[] = []; let state = JSDocState.BeginningOfLine; let previousWhitespace = true; let margin: number | undefined; @@ -7645,18 +7610,13 @@ namespace ts { break; case SyntaxKind.OpenBraceToken: state = JSDocState.SavingComments; - const commentEnd = scanner.getStartPos(); - const linkStart = scanner.getTextPos() - 1; - const link = parseJSDocLink(linkStart); - if (link) { - parts.push(finishNode(factory.createJSDocText(comments.join("")), linkEnd ?? commentsPos, commentEnd)); - parts.push(link); - comments = []; - linkEnd = scanner.getTextPos(); - } - else { + if (lookAhead(() => nextTokenJSDoc() === SyntaxKind.AtToken && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && scanner.getTokenText() === "link")) { + pushComment(scanner.getTokenText()); + nextTokenJSDoc(); pushComment(scanner.getTokenText()); + nextTokenJSDoc(); } + pushComment(scanner.getTokenText()); break; case SyntaxKind.BacktickToken: if (state === JSDocState.SavingBackticks) { @@ -7689,42 +7649,12 @@ namespace ts { removeLeadingNewlines(comments); removeTrailingWhitespace(comments); - if (comments.length) { - parts.push(finishNode(factory.createJSDocText(comments.join("")), linkEnd ?? commentsPos)); - } - if (parts.length) { - return createNodeArray(parts, commentsPos, scanner.getTextPos()); - } - } - - function parseJSDocLink(start: number) { - if (!tryParse(parseJSDocLinkPrefix)) { - return undefined; - } - nextTokenJSDoc(); // start at token after link, then skip any whitespace - skipWhitespace(); - // parseEntityName logs an error for non-identifier, so create a MissingNode ourselves to avoid the error - const name = tokenIsIdentifierOrKeyword(token()) - ? parseEntityName(/*allowReservedWords*/ true) - : undefined; - const text = []; - while (token() !== SyntaxKind.CloseBraceToken && token() !== SyntaxKind.NewLineTrivia) { - text.push(scanner.getTokenText()); - nextTokenJSDoc(); - } - return finishNode(factory.createJSDocLink(name, text.join("")), start, scanner.getTextPos()); - } - - function parseJSDocLinkPrefix() { - skipWhitespaceOrAsterisk(); - return token() === SyntaxKind.OpenBraceToken - && nextTokenJSDoc() === SyntaxKind.AtToken - && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) - && scanner.getTokenValue() === "link"; + return comments.length === 0 ? undefined : comments.join(""); } function parseUnknownTag(start: number, tagName: Identifier, indent: number, indentText: string) { - return finishNode(factory.createJSDocUnknownTag(tagName, parseTrailingTagComments(start, getNodePos(), indent, indentText)), start); + const end = getNodePos(); + return finishNode(factory.createJSDocUnknownTag(tagName, parseTrailingTagComments(start, end, indent, indentText)), start, end); } function addTag(tag: JSDocTag | undefined): void { @@ -7790,7 +7720,7 @@ namespace ts { const { name, isBracketed } = parseBracketNameInPropertyAndParamTag(); const indentText = skipWhitespaceOrAsterisk(); - if (isNameFirst && !lookAhead(parseJSDocLinkPrefix)) { + if (isNameFirst) { typeExpression = tryParseTypeExpression(); } @@ -7830,7 +7760,8 @@ namespace ts { } const typeExpression = tryParseTypeExpression(); - return finishNode(factory.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start, getNodePos(), indent, indentText)), start); + const end = getNodePos(); + return finishNode(factory.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start, end, indent, indentText)), start, end); } function parseTypeTag(start: number, tagName: Identifier, indent?: number, indentText?: string): JSDocTypeTag { @@ -7839,30 +7770,24 @@ namespace ts { } const typeExpression = parseJSDocTypeExpression(/*mayOmitBraces*/ true); - const comments = indent !== undefined && indentText !== undefined ? parseTrailingTagComments(start, getNodePos(), indent, indentText) : undefined; - return finishNode(factory.createJSDocTypeTag(tagName, typeExpression, comments), start); + const end = getNodePos(); + const comments = indent !== undefined && indentText !== undefined ? parseTrailingTagComments(start, end, indent, indentText) : undefined; + return finishNode(factory.createJSDocTypeTag(tagName, typeExpression, comments), start, end); } function parseSeeTag(start: number, tagName: Identifier, indent?: number, indentText?: string): JSDocSeeTag { - const isLink = lookAhead(() => nextTokenJSDoc() === SyntaxKind.AtToken && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && scanner.getTokenValue() === "link"); - const nameExpression = isLink ? undefined : parseJSDocNameReference(); - const comments = indent !== undefined && indentText !== undefined ? parseTrailingTagComments(start, getNodePos(), indent, indentText) : undefined; - return finishNode(factory.createJSDocSeeTag(tagName, nameExpression, comments), start); + const nameExpression = parseJSDocNameReference(); + const end = getNodePos(); + const comments = indent !== undefined && indentText !== undefined ? parseTrailingTagComments(start, end, indent, indentText) : undefined; + return finishNode(factory.createJSDocSeeTag(tagName, nameExpression, comments), start, end); } function parseAuthorTag(start: number, tagName: Identifier, indent: number, indentText: string): JSDocAuthorTag { - const commentStart = getNodePos(); - const textOnly = parseAuthorNameAndEmail(); - let commentEnd = scanner.getStartPos(); - const comments = parseTrailingTagComments(start, commentEnd, indent, indentText); - if (!comments) { - commentEnd = scanner.getStartPos(); - } - const allParts = concatenate([finishNode(textOnly, commentStart, commentEnd)], comments) as (JSDocText | JSDocLink)[]; // cast away readonly - return finishNode(factory.createJSDocAuthorTag(tagName, createNodeArray(allParts, commentStart)), start); + const comments = parseAuthorNameAndEmail() + (parseTrailingTagComments(start, end, indent, indentText) || ""); + return finishNode(factory.createJSDocAuthorTag(tagName, comments || undefined), start); } - function parseAuthorNameAndEmail(): JSDocText { + function parseAuthorNameAndEmail(): string { const comments: string[] = []; let inEmail = false; let token = scanner.getToken(); @@ -7882,17 +7807,19 @@ namespace ts { token = nextTokenJSDoc(); } - return factory.createJSDocText(comments.join("")); + return comments.join(""); } function parseImplementsTag(start: number, tagName: Identifier, margin: number, indentText: string): JSDocImplementsTag { const className = parseExpressionWithTypeArgumentsForAugments(); - return finishNode(factory.createJSDocImplementsTag(tagName, className, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start); + const end = getNodePos(); + return finishNode(factory.createJSDocImplementsTag(tagName, className, parseTrailingTagComments(start, end, margin, indentText)), start, end); } function parseAugmentsTag(start: number, tagName: Identifier, margin: number, indentText: string): JSDocAugmentsTag { const className = parseExpressionWithTypeArgumentsForAugments(); - return finishNode(factory.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start); + const end = getNodePos(); + return finishNode(factory.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start, end, margin, indentText)), start, end); } function parseExpressionWithTypeArgumentsForAugments(): ExpressionWithTypeArguments & { expression: Identifier | PropertyAccessEntityNameExpression } { @@ -7918,20 +7845,23 @@ namespace ts { return node; } - function parseSimpleTag(start: number, createTag: (tagName: Identifier | undefined, comment?: NodeArray) => JSDocTag, tagName: Identifier, margin: number, indentText: string): JSDocTag { - return finishNode(createTag(tagName, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start); + function parseSimpleTag(start: number, createTag: (tagName: Identifier | undefined, comment?: string) => JSDocTag, tagName: Identifier, margin: number, indentText: string): JSDocTag { + const end = getNodePos(); + return finishNode(createTag(tagName, parseTrailingTagComments(start, end, margin, indentText)), start, end); } function parseThisTag(start: number, tagName: Identifier, margin: number, indentText: string): JSDocThisTag { const typeExpression = parseJSDocTypeExpression(/*mayOmitBraces*/ true); skipWhitespace(); - return finishNode(factory.createJSDocThisTag(tagName, typeExpression, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start); + const end = getNodePos(); + return finishNode(factory.createJSDocThisTag(tagName, typeExpression, parseTrailingTagComments(start, end, margin, indentText)), start, end); } function parseEnumTag(start: number, tagName: Identifier, margin: number, indentText: string): JSDocEnumTag { const typeExpression = parseJSDocTypeExpression(/*mayOmitBraces*/ true); skipWhitespace(); - return finishNode(factory.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start); + const end = getNodePos(); + return finishNode(factory.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start, end, margin, indentText)), start, end); } function parseTypedefTag(start: number, tagName: Identifier, indent: number, indentText: string): JSDocTypedefTag { @@ -7990,7 +7920,7 @@ namespace ts { } const typedefTag = factory.createJSDocTypedefTag(tagName, typeExpression, fullName, comment); - return finishNode(typedefTag, start); + return finishNode(typedefTag, start, end); } function parseJSDocTypeNameWithNamespace(nested?: boolean) { @@ -8042,10 +7972,11 @@ namespace ts { } }); const typeExpression = finishNode(factory.createJSDocSignature(/*typeParameters*/ undefined, parameters, returnTag), start); + const end = getNodePos(); if (!comment) { - comment = parseTrailingTagComments(start, getNodePos(), indent, indentText); + comment = parseTrailingTagComments(start, end, indent, indentText); } - return finishNode(factory.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start); + return finishNode(factory.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start, end); } function escapedTextsEqual(a: EntityName, b: EntityName): boolean { @@ -8167,7 +8098,8 @@ namespace ts { // TODO: Consider only parsing a single type parameter if there is a constraint. const constraint = token() === SyntaxKind.OpenBraceToken ? parseJSDocTypeExpression() : undefined; const typeParameters = parseTemplateTagTypeParameters(); - return finishNode(factory.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start, getNodePos(), indent, indentText)), start); + const end = getNodePos(); + return finishNode(factory.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start, end, indent, indentText)), start, end); } function parseOptionalJsdoc(t: JSDocSyntaxKind): boolean { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 08b77676617fa..c60b65aa7472f 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -370,10 +370,8 @@ namespace ts { JSDocVariadicType, JSDocNamepathType, // https://jsdoc.app/about-namepaths.html JSDocComment, - JSDocText, JSDocTypeLiteral, JSDocSignature, - JSDocLink, JSDocTag, JSDocAugmentsTag, JSDocImplementsTag, @@ -3135,24 +3133,13 @@ namespace ts { readonly kind: SyntaxKind.JSDocComment; readonly parent: HasJSDoc; readonly tags?: NodeArray; - readonly comment?: NodeArray; + readonly comment?: string; } export interface JSDocTag extends Node { readonly parent: JSDoc | JSDocTypeLiteral; readonly tagName: Identifier; - readonly comment?: NodeArray; - } - - export interface JSDocLink extends Node { - readonly kind: SyntaxKind.JSDocLink; - readonly name?: EntityName; - text: string; - } - - export interface JSDocText extends Node { - readonly kind: SyntaxKind.JSDocText; - text: string; + readonly comment?: string; } export interface JSDocUnknownTag extends JSDocTag { @@ -7179,56 +7166,52 @@ namespace ts { updateJSDocTypeExpression(node: JSDocTypeExpression, type: TypeNode): JSDocTypeExpression; createJSDocNameReference(name: EntityName): JSDocNameReference; updateJSDocNameReference(node: JSDocNameReference, name: EntityName): JSDocNameReference; - createJSDocLink(name: EntityName | undefined, text: string): JSDocLink; - updateJSDocLink(node: JSDocLink, name: EntityName | undefined, text: string): JSDocLink; createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral; updateJSDocTypeLiteral(node: JSDocTypeLiteral, jsDocPropertyTags: readonly JSDocPropertyLikeTag[] | undefined, isArrayType: boolean | undefined): JSDocTypeLiteral; createJSDocSignature(typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type?: JSDocReturnTag): JSDocSignature; updateJSDocSignature(node: JSDocSignature, typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type: JSDocReturnTag | undefined): JSDocSignature; - createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray): JSDocTemplateTag; - updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | NodeArray | undefined): JSDocTemplateTag; - createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocTypedefTag; - updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocTypedefTag; - createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocParameterTag; - updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocParameterTag; - createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocPropertyTag; - updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocPropertyTag; - createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocTypeTag; - updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray | undefined): JSDocTypeTag; - createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag; - updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag; - createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string | NodeArray): JSDocReturnTag; - updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray | undefined): JSDocReturnTag; - createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocThisTag; - updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray | undefined): JSDocThisTag; - createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocEnumTag; - updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray | undefined): JSDocEnumTag; - createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocCallbackTag; - updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocCallbackTag; - createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string | NodeArray): JSDocAugmentsTag; - updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | NodeArray | undefined): JSDocAugmentsTag; - createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string | NodeArray): JSDocImplementsTag; - updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | NodeArray | undefined): JSDocImplementsTag; - createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocAuthorTag; - updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocAuthorTag; - createJSDocClassTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocClassTag; - updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocClassTag; - createJSDocPublicTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocPublicTag; - updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocPublicTag; - createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocPrivateTag; - updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocPrivateTag; - createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocProtectedTag; - updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocProtectedTag; - createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocReadonlyTag; - updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocReadonlyTag; - createJSDocUnknownTag(tagName: Identifier, comment?: string | NodeArray): JSDocUnknownTag; - updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | NodeArray | undefined): JSDocUnknownTag; - createJSDocDeprecatedTag(tagName: Identifier, comment?: string | NodeArray): JSDocDeprecatedTag; - updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string | NodeArray): JSDocDeprecatedTag; - createJSDocText(text: string): JSDocText; - updateJSDocText(node: JSDocText, text: string): JSDocText; - createJSDocComment(comment?: string | NodeArray | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc; - updateJSDocComment(node: JSDoc, comment: string | NodeArray | undefined, tags: readonly JSDocTag[] | undefined): JSDoc; + createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string): JSDocTemplateTag; + updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | undefined): JSDocTemplateTag; + createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocTypedefTag; + updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocTypedefTag; + createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocParameterTag; + updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocParameterTag; + createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocPropertyTag; + updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocPropertyTag; + createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocTypeTag; + updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocTypeTag; + createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag; + updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag; + createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string): JSDocReturnTag; + updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocReturnTag; + createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocThisTag; + updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocThisTag; + createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocEnumTag; + updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocEnumTag; + createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocCallbackTag; + updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocCallbackTag; + createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string): JSDocAugmentsTag; + updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | undefined): JSDocAugmentsTag; + createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag; + updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | undefined): JSDocImplementsTag; + createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string): JSDocAuthorTag; + updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | undefined): JSDocAuthorTag; + createJSDocClassTag(tagName: Identifier | undefined, comment?: string): JSDocClassTag; + updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | undefined): JSDocClassTag; + createJSDocPublicTag(tagName: Identifier | undefined, comment?: string): JSDocPublicTag; + updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPublicTag; + createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string): JSDocPrivateTag; + updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPrivateTag; + createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string): JSDocProtectedTag; + updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | undefined): JSDocProtectedTag; + createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string): JSDocReadonlyTag; + updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | undefined): JSDocReadonlyTag; + createJSDocUnknownTag(tagName: Identifier, comment?: string): JSDocUnknownTag; + updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | undefined): JSDocUnknownTag; + createJSDocDeprecatedTag(tagName: Identifier, comment?: string): JSDocDeprecatedTag; + updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string): JSDocDeprecatedTag; + createJSDocComment(comment?: string | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc; + updateJSDocComment(node: JSDoc, comment: string | undefined, tags: readonly JSDocTag[] | undefined): JSDoc; // // JSX diff --git a/src/compiler/utilitiesPublic.ts b/src/compiler/utilitiesPublic.ts index e1543736e33bd..12cf6652ad71c 100644 --- a/src/compiler/utilitiesPublic.ts +++ b/src/compiler/utilitiesPublic.ts @@ -896,11 +896,6 @@ namespace ts { return getJSDocTags(node).filter(doc => doc.kind === kind); } - /** Gets the text of a jsdoc comment, flattening links to their text. */ - export function getTextOfJSDocComment(comment?: NodeArray) { - return comment?.map(c => c.kind === SyntaxKind.JSDocText ? c.text : `{@link ${c.name ? entityNameToString(c.name) + " " : ""}${c.text}}`).join(""); - } - /** * Gets the effective type parameters. If the node was parsed in a * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. @@ -1865,13 +1860,7 @@ namespace ts { /** True if node is of a kind that may contain comment text. */ export function isJSDocCommentContainingNode(node: Node): boolean { - return node.kind === SyntaxKind.JSDocComment - || node.kind === SyntaxKind.JSDocNamepathType - || node.kind === SyntaxKind.JSDocText - || node.kind === SyntaxKind.JSDocLink - || isJSDocTag(node) - || isJSDocTypeLiteral(node) - || isJSDocSignature(node); + return node.kind === SyntaxKind.JSDocComment || node.kind === SyntaxKind.JSDocNamepathType || isJSDocTag(node) || isJSDocTypeLiteral(node) || isJSDocSignature(node); } // TODO: determine what this does before making it public. diff --git a/src/deprecatedCompat/deprecations.ts b/src/deprecatedCompat/deprecations.ts index a70db0d344298..c04e34e8b1649 100644 --- a/src/deprecatedCompat/deprecations.ts +++ b/src/deprecatedCompat/deprecations.ts @@ -1229,7 +1229,7 @@ namespace ts { /** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */ export const createJSDocParamTag = Debug.deprecate(function createJSDocParamTag(name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, comment?: string): JSDocParameterTag { - return factory.createJSDocParameterTag(/*tagName*/ undefined, name, isBracketed, typeExpression, /*isNameFirst*/ false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : undefined); + return factory.createJSDocParameterTag(/*tagName*/ undefined, name, isBracketed, typeExpression, /*isNameFirst*/ false, comment); }, factoryDeprecation); /** @deprecated Use `factory.createComma` or the factory supplied by your transformation context instead. */ @@ -1374,4 +1374,4 @@ namespace ts { }); // #endregion Renamed node Tests -} +} \ No newline at end of file diff --git a/src/harness/client.ts b/src/harness/client.ts index f85e0e111317d..e98db818aecb5 100644 --- a/src/harness/client.ts +++ b/src/harness/client.ts @@ -175,8 +175,8 @@ namespace ts.server { kindModifiers: body.kindModifiers, textSpan: this.decodeSpan(body, fileName), displayParts: [{ kind: "text", text: body.displayString }], - documentation: typeof body.documentation === "string" ? [{ kind: "text", text: body.documentation }] : body.documentation, - tags: this.decodeLinkDisplayParts(body.tags) + documentation: [{ kind: "text", text: body.documentation }], + tags: body.tags }; } @@ -536,13 +536,6 @@ namespace ts.server { this.lineOffsetToPosition(fileName, span.end, lineMap)); } - private decodeLinkDisplayParts(tags: (protocol.JSDocTagInfo | JSDocTagInfo)[]): JSDocTagInfo[] { - return tags.map(tag => typeof tag.text === "string" ? { - ...tag, - text: [textPart(tag.text)] - } : (tag as JSDocTagInfo)); - } - getNameOrDottedNameSpan(_fileName: string, _startPos: number, _endPos: number): TextSpan { return notImplemented(); } @@ -561,10 +554,9 @@ namespace ts.server { return undefined; } - const { items: encodedItems, applicableSpan: encodedApplicableSpan, selectedItemIndex, argumentIndex, argumentCount } = response.body; + const { items, applicableSpan: encodedApplicableSpan, selectedItemIndex, argumentIndex, argumentCount } = response.body; - const applicableSpan = encodedApplicableSpan as unknown as TextSpan; - const items = (encodedItems as (SignatureHelpItem | protocol.SignatureHelpItem)[]).map(item => ({ ...item, tags: this.decodeLinkDisplayParts(item.tags) })); + const applicableSpan = this.decodeSpan(encodedApplicableSpan, fileName); return { items, applicableSpan, selectedItemIndex, argumentIndex, argumentCount }; } diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index 534ff477a7c46..d5c1a7ad8e900 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -1583,7 +1583,7 @@ namespace FourSlash { assert.equal(actualTags.length, (options.tags || ts.emptyArray).length, this.assertionMessageAtLastKnownMarker("signature help tags")); ts.zipWith((options.tags || ts.emptyArray), actualTags, (expectedTag, actualTag) => { assert.equal(actualTag.name, expectedTag.name); - assert.deepEqual(actualTag.text, expectedTag.text, this.assertionMessageAtLastKnownMarker("signature help tag " + actualTag.name)); + assert.equal(actualTag.text, expectedTag.text, this.assertionMessageAtLastKnownMarker("signature help tag " + actualTag.name)); }); const allKeys: readonly (keyof FourSlashInterface.VerifySignatureHelpOptions)[] = [ diff --git a/src/server/protocol.ts b/src/server/protocol.ts index dc29f341ae30f..fc6c86453bbe6 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -979,16 +979,6 @@ namespace ts.server.protocol { file: string; } - export interface JSDocTagInfo { - /** Name of the JSDoc tag */ - name: string; - /** - * Comment text after the JSDoc tag -- the text after the tag name until the next tag or end of comment - * Display parts when UserPreferences.displayPartsForJSDoc is true, flattened to string otherwise. - */ - text?: string | SymbolDisplayPart[]; - } - export interface TextSpanWithContext extends TextSpan { contextStart?: Location; contextEnd?: Location; @@ -1961,7 +1951,6 @@ namespace ts.server.protocol { */ export interface QuickInfoRequest extends FileLocationRequest { command: CommandTypes.Quickinfo; - arguments: FileLocationRequestArgs; } /** @@ -1995,9 +1984,8 @@ namespace ts.server.protocol { /** * Documentation associated with symbol. - * Display parts when UserPreferences.displayPartsForJSDoc is true, flattened to string otherwise. */ - documentation: string | SymbolDisplayPart[]; + documentation: string; /** * JSDoc tags associated with symbol. @@ -2220,12 +2208,6 @@ namespace ts.server.protocol { kind: string; } - /** A part of a symbol description that links from a jsdoc @link tag to a declaration */ - export interface JSDocLinkDisplayPart extends SymbolDisplayPart { - /** The location of the declaration that the @link tag links to. */ - target: FileSpan; - } - /** * An item found in a completion response. */ @@ -3319,7 +3301,6 @@ namespace ts.server.protocol { readonly allowRenameOfImportPath?: boolean; readonly includePackageJsonAutoImports?: "auto" | "on" | "off"; - readonly displayPartsForJSDoc?: boolean; readonly generateReturnInDocTemplate?: boolean; } diff --git a/src/server/session.ts b/src/server/session.ts index 78b9361112658..aeb695bf1477b 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -1274,32 +1274,6 @@ namespace ts.server { result; } - private mapJSDocTagInfo(tags: JSDocTagInfo[] | undefined, project: Project, richResponse: boolean): protocol.JSDocTagInfo[] { - return tags ? tags.map(tag => ({ - ...tag, - text: richResponse ? this.mapDisplayParts(tag.text, project) : tag.text?.map(part => part.text).join("") - })) : []; - } - - private mapDisplayParts(parts: SymbolDisplayPart[] | undefined, project: Project): protocol.SymbolDisplayPart[] { - if (!parts) { - return []; - } - return parts.map(part => part.kind !== "linkName" ? part : { - ...part, - target: this.toFileSpan((part as JSDocLinkDisplayPart).target.fileName, (part as JSDocLinkDisplayPart).target.textSpan, project), - }); - } - - private mapSignatureHelpItems(items: SignatureHelpItem[], project: Project, richResponse: boolean): protocol.SignatureHelpItem[] { - return items.map(item => ({ - ...item, - documentation: this.mapDisplayParts(item.documentation, project), - parameters: item.parameters.map(p => ({ ...p, documentation: this.mapDisplayParts(p.documentation, project) })), - tags: this.mapJSDocTagInfo(item.tags, project, richResponse), - })); - } - private mapDefinitionInfo(definitions: readonly DefinitionInfo[], project: Project): readonly protocol.FileSpanWithContext[] { return definitions.map(def => this.toFileSpanWithContext(def.fileName, def.textSpan, def.contextSpan, project)); } @@ -1711,24 +1685,22 @@ namespace ts.server { return undefined; } - const useDisplayParts = !!this.getPreferences(file).displayPartsForJSDoc; if (simplifiedResult) { const displayString = displayPartsToString(quickInfo.displayParts); + const docString = displayPartsToString(quickInfo.documentation); + return { kind: quickInfo.kind, kindModifiers: quickInfo.kindModifiers, start: scriptInfo.positionToLineOffset(quickInfo.textSpan.start), end: scriptInfo.positionToLineOffset(textSpanEnd(quickInfo.textSpan)), displayString, - documentation: useDisplayParts ? this.mapDisplayParts(quickInfo.documentation, project) : displayPartsToString(quickInfo.documentation), - tags: this.mapJSDocTagInfo(quickInfo.tags, project, useDisplayParts), + documentation: docString, + tags: quickInfo.tags || [] }; } else { - return useDisplayParts ? quickInfo : { - ...quickInfo, - tags: this.mapJSDocTagInfo(quickInfo.tags, project, /*useDisplayParts*/ false) as JSDocTagInfo[] - }; + return quickInfo; } } @@ -1858,25 +1830,19 @@ namespace ts.server { return res; } - private getCompletionEntryDetails(args: protocol.CompletionDetailsRequestArgs, fullResult: boolean): readonly protocol.CompletionEntryDetails[] | readonly CompletionEntryDetails[] { + private getCompletionEntryDetails(args: protocol.CompletionDetailsRequestArgs, simplifiedResult: boolean): readonly protocol.CompletionEntryDetails[] | readonly CompletionEntryDetails[] { const { file, project } = this.getFileAndProject(args); const scriptInfo = this.projectService.getScriptInfoForNormalizedPath(file)!; const position = this.getPosition(args, scriptInfo); const formattingOptions = project.projectService.getFormatCodeOptions(file); - const useDisplayParts = !!this.getPreferences(file).displayPartsForJSDoc; const result = mapDefined(args.entryNames, entryName => { const { name, source, data } = typeof entryName === "string" ? { name: entryName, source: undefined, data: undefined } : entryName; return project.getLanguageService().getCompletionEntryDetails(file, position, name, formattingOptions, source, this.getPreferences(file), data ? cast(data, isCompletionEntryData) : undefined); }); - return fullResult - ? (useDisplayParts ? result : result.map(details => ({ ...details, tags: this.mapJSDocTagInfo(details.tags, project, /*richResponse*/ false) as JSDocTagInfo[] }))) - : result.map(details => ({ - ...details, - codeActions: map(details.codeActions, action => this.mapCodeAction(action)), - documentation: this.mapDisplayParts(details.documentation, project), - tags: this.mapJSDocTagInfo(details.tags, project, useDisplayParts), - })); + return simplifiedResult + ? result.map(details => ({ ...details, codeActions: map(details.codeActions, action => this.mapCodeAction(action)) })) + : result; } private getCompileOnSaveAffectedFileList(args: protocol.FileRequestArgs): readonly protocol.CompileOnSaveAffectedFileListSingleProject[] { @@ -1936,26 +1902,25 @@ namespace ts.server { const scriptInfo = this.projectService.getScriptInfoForNormalizedPath(file)!; const position = this.getPosition(args, scriptInfo); const helpItems = project.getLanguageService().getSignatureHelpItems(file, position, args); - const useDisplayParts = !!this.getPreferences(file).displayPartsForJSDoc; - if (helpItems && simplifiedResult) { + if (!helpItems) { + return undefined; + } + + if (simplifiedResult) { const span = helpItems.applicableSpan; return { - ...helpItems, + items: helpItems.items, applicableSpan: { start: scriptInfo.positionToLineOffset(span.start), end: scriptInfo.positionToLineOffset(span.start + span.length) }, - items: this.mapSignatureHelpItems(helpItems.items, project, useDisplayParts), + selectedItemIndex: helpItems.selectedItemIndex, + argumentIndex: helpItems.argumentIndex, + argumentCount: helpItems.argumentCount, }; } - else if (useDisplayParts || !helpItems) { - return helpItems; - } else { - return { - ...helpItems, - items: helpItems.items.map(item => ({ ...item, tags: this.mapJSDocTagInfo(item.tags, project, /*richResponse*/ false) as JSDocTagInfo[] })) - }; + return helpItems; } } @@ -2735,10 +2700,10 @@ namespace ts.server { return this.requiredResponse(this.getCompletions(request.arguments, CommandNames.CompletionsFull)); }, [CommandNames.CompletionDetails]: (request: protocol.CompletionDetailsRequest) => { - return this.requiredResponse(this.getCompletionEntryDetails(request.arguments, /*fullResult*/ false)); + return this.requiredResponse(this.getCompletionEntryDetails(request.arguments, /*simplifiedResult*/ true)); }, [CommandNames.CompletionDetailsFull]: (request: protocol.CompletionDetailsRequest) => { - return this.requiredResponse(this.getCompletionEntryDetails(request.arguments, /*fullResult*/ true)); + return this.requiredResponse(this.getCompletionEntryDetails(request.arguments, /*simplifiedResult*/ false)); }, [CommandNames.CompileOnSaveAffectedFileList]: (request: protocol.CompileOnSaveAffectedFileListRequest) => { return this.requiredResponse(this.getCompileOnSaveAffectedFileList(request.arguments)); diff --git a/src/services/classifier.ts b/src/services/classifier.ts index fd8d5cc2ea7fa..fc9cad9c5a71d 100644 --- a/src/services/classifier.ts +++ b/src/services/classifier.ts @@ -740,9 +740,6 @@ namespace ts { pos = tag.end; break; } - if (tag.comment) { - pushCommentRange(tag.comment.pos, tag.comment.end - tag.comment.pos); - } } } diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 4fa07f8d836e8..602a71fc1bf3c 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -128,7 +128,7 @@ namespace ts.codefix { const typeNode = getTypeNodeIfAccessible(type, parent, program, host); if (typeNode) { // Note that the codefix will never fire with an existing `@type` tag, so there is no need to merge tags - const typeTag = factory.createJSDocTypeTag(/*tagName*/ undefined, factory.createJSDocTypeExpression(typeNode), /*comment*/ undefined); + const typeTag = factory.createJSDocTypeTag(/*tagName*/ undefined, factory.createJSDocTypeExpression(typeNode), /*comment*/ ""); addJSDocTags(changes, sourceFile, cast(parent.parent.parent, isExpressionStatement), [typeTag]); } importAdder.writeFixes(changes); @@ -307,7 +307,7 @@ namespace ts.codefix { return; } const typeExpression = factory.createJSDocTypeExpression(typeNode); - const typeTag = isGetAccessorDeclaration(declaration) ? factory.createJSDocReturnTag(/*tagName*/ undefined, typeExpression, /*comment*/ undefined) : factory.createJSDocTypeTag(/*tagName*/ undefined, typeExpression, /*comment*/ undefined); + const typeTag = isGetAccessorDeclaration(declaration) ? factory.createJSDocReturnTag(/*tagName*/ undefined, typeExpression, "") : factory.createJSDocTypeTag(/*tagName*/ undefined, typeExpression, ""); addJSDocTags(changes, sourceFile, parent, [typeTag]); } else if (!tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, getEmitScriptTarget(program.getCompilerOptions()))) { @@ -374,20 +374,20 @@ namespace ts.codefix { } else { const paramTags = map(inferences, ({ name, typeNode, isOptional }) => - factory.createJSDocParameterTag(/*tagName*/ undefined, name, /*isBracketed*/ !!isOptional, factory.createJSDocTypeExpression(typeNode), /* isNameFirst */ false, /*comment*/ undefined)); + factory.createJSDocParameterTag(/*tagName*/ undefined, name, /*isBracketed*/ !!isOptional, factory.createJSDocTypeExpression(typeNode), /* isNameFirst */ false, "")); addJSDocTags(changes, sourceFile, signature, paramTags); } } export function addJSDocTags(changes: textChanges.ChangeTracker, sourceFile: SourceFile, parent: HasJSDoc, newTags: readonly JSDocTag[]): void { - const comments = flatMap(parent.jsDoc, j => j.comment) as (JSDocText | JSDocLink)[]; + const comments = mapDefined(parent.jsDoc, j => j.comment); const oldTags = flatMapToMutable(parent.jsDoc, j => j.tags); const unmergedNewTags = newTags.filter(newTag => !oldTags || !oldTags.some((tag, i) => { const merged = tryMergeJsdocTags(tag, newTag); if (merged) oldTags[i] = merged; return !!merged; })); - const tag = factory.createJSDocComment(factory.createNodeArray(intersperse(comments, factory.createJSDocText("\n"))), factory.createNodeArray([...(oldTags || emptyArray), ...unmergedNewTags])); + const tag = factory.createJSDocComment(comments.join("\n"), factory.createNodeArray([...(oldTags || emptyArray), ...unmergedNewTags])); const jsDocNode = parent.kind === SyntaxKind.ArrowFunction ? getJsDocNodeForArrowFunction(parent) : parent; jsDocNode.jsDoc = parent.jsDoc; jsDocNode.jsDocCache = parent.jsDocCache; diff --git a/src/services/jsDoc.ts b/src/services/jsDoc.ts index 01de5d060d9b3..b0e133521cdf0 100644 --- a/src/services/jsDoc.ts +++ b/src/services/jsDoc.ts @@ -82,28 +82,21 @@ namespace ts.JsDoc { let jsDocTagNameCompletionEntries: CompletionEntry[]; let jsDocTagCompletionEntries: CompletionEntry[]; - export function getJsDocCommentsFromDeclarations(declarations: readonly Declaration[], checker?: TypeChecker): SymbolDisplayPart[] { + export function getJsDocCommentsFromDeclarations(declarations: readonly Declaration[]): SymbolDisplayPart[] { // Only collect doc comments from duplicate declarations once: // In case of a union property there might be same declaration multiple times // which only varies in type parameter // Eg. const a: Array | Array; a.length // The property length will have two declarations of property length coming // from Array - Array and Array - const parts: SymbolDisplayPart[][] = []; + const documentationComment: string[] = []; forEachUnique(declarations, declaration => { for (const { comment } of getCommentHavingNodes(declaration)) { if (comment === undefined) continue; - const newparts = getDisplayPartsFromComment(comment, checker); - if (!contains(parts, newparts, isIdenticalListOfDisplayParts)) { - parts.push(newparts); - } + pushIfUnique(documentationComment, comment); } }); - return flatten(intersperse(parts, [lineBreakPart()])); - } - - function isIdenticalListOfDisplayParts(parts1: SymbolDisplayPart[], parts2: SymbolDisplayPart[]) { - return arraysEqual(parts1, parts2, (p1, p2) => p1.kind === p2.kind && p1.text === p2.text); + return intersperse(map(documentationComment, textPart), lineBreakPart()); } function getCommentHavingNodes(declaration: Declaration): readonly (JSDoc | JSDocTag)[] { @@ -119,25 +112,18 @@ namespace ts.JsDoc { } } - export function getJsDocTagsFromDeclarations(declarations?: Declaration[], checker?: TypeChecker): JSDocTagInfo[] { + export function getJsDocTagsFromDeclarations(declarations?: Declaration[]): JSDocTagInfo[] { // Only collect doc comments from duplicate declarations once. const tags: JSDocTagInfo[] = []; forEachUnique(declarations, declaration => { for (const tag of getJSDocTags(declaration)) { - tags.push({ name: tag.tagName.text, text: getCommentDisplayParts(tag, checker) }); + tags.push({ name: tag.tagName.text, text: getCommentText(tag) }); } }); return tags; } - function getDisplayPartsFromComment(comment: readonly (JSDocText | JSDocLink)[], checker: TypeChecker | undefined): SymbolDisplayPart[] { - return flatMap( - comment, - node => node.kind === SyntaxKind.JSDocText ? [textPart(node.text)] : buildLinkParts(node, checker) - ) as SymbolDisplayPart[]; - } - - function getCommentDisplayParts(tag: JSDocTag, checker?: TypeChecker): SymbolDisplayPart[] | undefined { + function getCommentText(tag: JSDocTag): string | undefined { const { comment } = tag; switch (tag.kind) { case SyntaxKind.JSDocImplementsTag: @@ -145,7 +131,7 @@ namespace ts.JsDoc { case SyntaxKind.JSDocAugmentsTag: return withNode((tag as JSDocAugmentsTag).class); case SyntaxKind.JSDocTemplateTag: - return addComment((tag as JSDocTemplateTag).typeParameters.map(tp => tp.getText()).join(", ")); + return withList((tag as JSDocTemplateTag).typeParameters); case SyntaxKind.JSDocTypeTag: return withNode((tag as JSDocTypeTag).typeExpression); case SyntaxKind.JSDocTypedefTag: @@ -154,17 +140,21 @@ namespace ts.JsDoc { case SyntaxKind.JSDocParameterTag: case SyntaxKind.JSDocSeeTag: const { name } = tag as JSDocTypedefTag | JSDocPropertyTag | JSDocParameterTag | JSDocSeeTag; - return name ? withNode(name) : comment && getDisplayPartsFromComment(comment, checker); + return name ? withNode(name) : comment; default: - return comment && getDisplayPartsFromComment(comment, checker); + return comment; } function withNode(node: Node) { return addComment(node.getText()); } + function withList(list: NodeArray): string { + return addComment(list.map(x => x.getText()).join(", ")); + } + function addComment(s: string) { - return comment ? [textPart(s), spacePart(), ...getDisplayPartsFromComment(comment, checker)] : [textPart(s)]; + return comment === undefined ? s : `${s} ${comment}`; } } diff --git a/src/services/services.ts b/src/services/services.ts index f077e55bcc50d..962ec9cb770d3 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -292,11 +292,14 @@ namespace ts { // Undefined is used to indicate the value has not been computed. If, after computing, the // symbol has no doc comment, then the empty array will be returned. documentationComment?: SymbolDisplayPart[]; - tags?: JSDocTagInfo[]; // same contextualGetAccessorDocumentationComment?: SymbolDisplayPart[]; contextualSetAccessorDocumentationComment?: SymbolDisplayPart[]; + // Undefined is used to indicate the value has not been computed. If, after computing, the + // symbol has no JSDoc tags, then the empty array will be returned. + tags?: JSDocTagInfo[]; + constructor(flags: SymbolFlags, name: __String) { this.flags = flags; this.escapedName = name; @@ -356,9 +359,9 @@ namespace ts { } } - getJsDocTags(checker?: TypeChecker): JSDocTagInfo[] { + getJsDocTags(): JSDocTagInfo[] { if (this.tags === undefined) { - this.tags = JsDoc.getJsDocTagsFromDeclarations(this.declarations, checker); + this.tags = JsDoc.getJsDocTagsFromDeclarations(this.declarations); } return this.tags; @@ -518,7 +521,10 @@ namespace ts { // Undefined is used to indicate the value has not been computed. If, after computing, the // symbol has no doc comment, then the empty array will be returned. documentationComment?: SymbolDisplayPart[]; - jsDocTags?: JSDocTagInfo[]; // same + + // Undefined is used to indicate the value has not been computed. If, after computing, the + // symbol has no doc comment, then the empty array will be returned. + jsDocTags?: JSDocTagInfo[]; constructor(checker: TypeChecker, flags: SignatureFlags) { this.checker = checker; @@ -560,7 +566,7 @@ namespace ts { } function getJsDocTagsOfSignature(declaration: Declaration, checker: TypeChecker): JSDocTagInfo[] { - let tags = JsDoc.getJsDocTagsFromDeclarations([declaration], checker); + let tags = JsDoc.getJsDocTagsFromDeclarations([declaration]); if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) { const inheritedTags = findBaseOfDeclaration(checker, declaration, symbol => symbol.declarations?.length === 1 ? symbol.getJsDocTags() : undefined); if (inheritedTags) { @@ -573,7 +579,7 @@ namespace ts { function getDocumentationComment(declarations: readonly Declaration[] | undefined, checker: TypeChecker | undefined): SymbolDisplayPart[] { if (!declarations) return emptyArray; - let doc = JsDoc.getJsDocCommentsFromDeclarations(declarations, checker); + let doc = JsDoc.getJsDocCommentsFromDeclarations(declarations); if (checker && (doc.length === 0 || declarations.some(hasJSDocInheritDocTag))) { forEachUnique(declarations, declaration => { const inheritedDocs = findBaseOfDeclaration(checker, declaration, symbol => symbol.getDocumentationComment(checker)); @@ -1592,7 +1598,7 @@ namespace ts { textSpan: createTextSpanFromNode(nodeForQuickInfo, sourceFile), displayParts: typeChecker.runWithCancellationToken(cancellationToken, typeChecker => typeToDisplayParts(typeChecker, type, getContainerNode(nodeForQuickInfo))), documentation: type.symbol ? type.symbol.getDocumentationComment(typeChecker) : undefined, - tags: type.symbol ? type.symbol.getJsDocTags(typeChecker) : undefined + tags: type.symbol ? type.symbol.getJsDocTags() : undefined }; } diff --git a/src/services/signatureHelp.ts b/src/services/signatureHelp.ts index 8ab4fa39ba0b9..9eb93800605ec 100644 --- a/src/services/signatureHelp.ts +++ b/src/services/signatureHelp.ts @@ -574,7 +574,7 @@ namespace ts.SignatureHelp { const parameters = typeParameters.map(t => createSignatureHelpParameterForTypeParameter(t, checker, enclosingDeclaration, sourceFile, printer)); const documentation = symbol.getDocumentationComment(checker); - const tags = symbol.getJsDocTags(checker); + const tags = symbol.getJsDocTags(); const prefixDisplayParts = [...typeSymbolDisplay, punctuationPart(SyntaxKind.LessThanToken)]; return { isVariadic: false, prefixDisplayParts, suffixDisplayParts: [punctuationPart(SyntaxKind.GreaterThanToken)], separatorDisplayParts, parameters, documentation, tags }; } diff --git a/src/services/symbolDisplay.ts b/src/services/symbolDisplay.ts index beb5bb3e75c30..589d4d4b8bf7b 100644 --- a/src/services/symbolDisplay.ts +++ b/src/services/symbolDisplay.ts @@ -441,7 +441,7 @@ namespace ts.SymbolDisplay { } else { documentationFromAlias = resolvedSymbol.getContextualDocumentationComment(resolvedNode, typeChecker); - tagsFromAlias = resolvedSymbol.getJsDocTags(typeChecker); + tagsFromAlias = resolvedSymbol.getJsDocTags(); } } } @@ -570,7 +570,7 @@ namespace ts.SymbolDisplay { } documentation = rhsSymbol.getDocumentationComment(typeChecker); - tags = rhsSymbol.getJsDocTags(typeChecker); + tags = rhsSymbol.getJsDocTags(); if (documentation.length > 0) { break; } @@ -579,7 +579,7 @@ namespace ts.SymbolDisplay { } if (tags.length === 0 && !hasMultipleSignatures) { - tags = symbol.getJsDocTags(typeChecker); + tags = symbol.getJsDocTags(); } if (documentation.length === 0 && documentationFromAlias) { diff --git a/src/services/types.ts b/src/services/types.ts index 724ffef43e10d..9542ad56600fc 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -43,7 +43,7 @@ namespace ts { getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; /* @internal */ getContextualDocumentationComment(context: Node | undefined, checker: TypeChecker | undefined): SymbolDisplayPart[] - getJsDocTags(checker?: TypeChecker): JSDocTagInfo[]; + getJsDocTags(): JSDocTagInfo[]; } export interface Type { @@ -1032,9 +1032,6 @@ namespace ts { enumMemberName, functionName, regularExpressionLiteral, - link, - linkName, - linkText, } export interface SymbolDisplayPart { @@ -1042,13 +1039,9 @@ namespace ts { kind: string; } - export interface JSDocLinkDisplayPart extends SymbolDisplayPart { - target: DocumentSpan; - } - export interface JSDocTagInfo { name: string; - text?: SymbolDisplayPart[]; + text?: string; } export interface QuickInfo { @@ -1398,15 +1391,6 @@ namespace ts { /** String literal */ string = "string", - - /** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */ - link = "link", - - /** Jsdoc @link: in `{@link C link text}`, the entity name "C" */ - linkName = "link name", - - /** Jsdoc @link: in `{@link C link text}`, the link text "link text" */ - linkText = "link text", } export const enum ScriptElementKindModifier { diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 3fb677efd00c6..74315895927ed 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -105,7 +105,7 @@ namespace ts { else if (isDeclarationName(node)) { return getMeaningFromDeclaration(node.parent); } - else if (isEntityName(node) && (isJSDocNameReference(node.parent) || isJSDocLink(node.parent))) { + else if (isEntityName(node) && isJSDocNameReference(node.parent)) { return SemanticMeaning.All; } else if (isTypeReference(node)) { @@ -2183,44 +2183,6 @@ namespace ts { return displayPart(text, SymbolDisplayPartKind.text); } - export function linkTextPart(text: string) { - return displayPart(text, SymbolDisplayPartKind.linkText); - } - - export function linkNamePart(name: EntityName, target: Declaration): JSDocLinkDisplayPart { - return { - text: getTextOfNode(name), - kind: SymbolDisplayPartKind[SymbolDisplayPartKind.linkName], - target: { - fileName: getSourceFileOfNode(target).fileName, - textSpan: createTextSpanFromNode(target), - }, - }; - } - - export function linkPart(text: string) { - return displayPart(text, SymbolDisplayPartKind.link); - } - - export function buildLinkParts(link: JSDocLink, checker?: TypeChecker): SymbolDisplayPart[] { - const parts = [linkPart("{@link ")]; - if (!link.name) { - if (link.text) {parts.push(linkTextPart(link.text));} - } - else { - const symbol = checker?.getSymbolAtLocation(link.name); - if (symbol?.valueDeclaration) { - parts.push(linkNamePart(link.name, symbol.valueDeclaration)); - if (link.text) {parts.push(linkTextPart(link.text));} - } - else { - parts.push(linkTextPart(getTextOfNode(link.name) + link.text)); - } - } - parts.push(linkPart("}")); - return parts; - } - const carriageReturnLineFeed = "\r\n"; /** * The default is CRLF. diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index 3d4f5a21e6397..4e4f0c7251ef3 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -179,7 +179,6 @@ "unittests/tsserver/importHelpers.ts", "unittests/tsserver/importSuggestionsCache.ts", "unittests/tsserver/inferredProjects.ts", - "unittests/tsserver/jsdocTag.ts", "unittests/tsserver/languageService.ts", "unittests/tsserver/maxNodeModuleJsDepth.ts", "unittests/tsserver/metadataInResponse.ts", diff --git a/src/testRunner/unittests/jsDocParsing.ts b/src/testRunner/unittests/jsDocParsing.ts index e0aa87f2a4cd2..c40650bc935f7 100644 --- a/src/testRunner/unittests/jsDocParsing.ts +++ b/src/testRunner/unittests/jsDocParsing.ts @@ -312,23 +312,8 @@ namespace ts { */`); parsesCorrectly("@link tags", `/** - * {@link first } + * {@link first link} * Inside {@link link text} thing - * @param foo See also {@link A.Reference} - * @param bar Or see {@link http://www.zombocom.com } - * {@link Standalone.Complex } - * This empty one: {@link} is OK. - * This double-space one: {@link doubled } is OK too. - * This should work, despite being badly formatted: {@link -oh.no -} - * Forgot to close this one {@link https://typescriptlang.org - * But it's still OK. - * Although it skips the newline so parses the asterisks in the wrong state. - * This shouldn't work: {@link - * nope - * }, because of the intermediate asterisks. - * @author Alfa Romero See my home page: {@link https://example.com} */`); parsesCorrectly("authorTag", `/** diff --git a/src/testRunner/unittests/publicApi.ts b/src/testRunner/unittests/publicApi.ts index 8245a6d340854..eb8e5f18c4660 100644 --- a/src/testRunner/unittests/publicApi.ts +++ b/src/testRunner/unittests/publicApi.ts @@ -67,9 +67,7 @@ function test() {}`; const funcDec = testSourceFile.statements.find(ts.isFunctionDeclaration)!; const tags = ts.getJSDocTags(funcDec); assert.isDefined(tags[0].comment); - assert.isDefined(tags[0].comment![0]); - assert.equal(tags[0].comment![0].kind, ts.SyntaxKind.JSDocText); - assert.equal(tags[0].comment![0].text, "Some\n text\r\n with newlines."); + assert.equal(tags[0].comment, "Some\n text\r\n with newlines."); }); }); diff --git a/src/testRunner/unittests/tsserver/completions.ts b/src/testRunner/unittests/tsserver/completions.ts index 0d14838690fa9..ccf4bc934611d 100644 --- a/src/testRunner/unittests/tsserver/completions.ts +++ b/src/testRunner/unittests/tsserver/completions.ts @@ -69,6 +69,7 @@ namespace ts.projectSystem { kindModifiers: ScriptElementKindModifier.exportedModifier, name: "foo", source: [{ text: "./a", kind: "text" }], + tags: undefined, }; assert.deepEqual(detailsResponse, [ { @@ -90,7 +91,6 @@ namespace ts.projectSystem { commands: undefined, }, ], - tags: [], ...detailsCommon, }, ]); @@ -117,7 +117,6 @@ namespace ts.projectSystem { commands: undefined, } ], - tags: [], ...detailsCommon, } ]); diff --git a/src/testRunner/unittests/tsserver/jsdocTag.ts b/src/testRunner/unittests/tsserver/jsdocTag.ts deleted file mode 100644 index 5033a4fca7fe9..0000000000000 --- a/src/testRunner/unittests/tsserver/jsdocTag.ts +++ /dev/null @@ -1,693 +0,0 @@ -namespace ts.projectSystem { - describe("unittests:: tsserver:: jsdoc @link ", () => { - const config: File = { - path: "/a/tsconfig.json", - content: `{ -"compilerOptions": { -"checkJs": true, -"noEmit": true -} -"files": ["someFile1.js"] -} -` - }; - function assertQuickInfoJSDoc(file: File, options: { - displayPartsForJSDoc: boolean, - command: protocol.CommandTypes, - tags: string | unknown[] | undefined, - documentation: string | unknown[] - }) { - - const { command, displayPartsForJSDoc, tags, documentation } = options; - const session = createSession(createServerHost([file, config])); - session.getProjectService().setHostConfiguration({ preferences: { displayPartsForJSDoc } }); - openFilesForSession([file], session); - const indexOfX = file.content.indexOf("x"); - const quickInfo = session.executeCommandSeq({ - command: command as protocol.CommandTypes.Quickinfo, - arguments: { - file: file.path, - position: indexOfX, - } as protocol.FileLocationRequestArgs - }).response; - const summaryAndLocation = command === protocol.CommandTypes.Quickinfo ? { - displayString: "var x: number", - start: { - line: 3, - offset: 5, - }, - end: { - line: 3, - offset: 6, - } - } : { - displayParts: [{ - kind: "keyword", - text: "var", - }, { - kind: "space", - text: " ", - }, { - kind: "localName", - text: "x", - }, { - kind: "punctuation", - text: ":", - }, { - kind: "space", - text: " ", - }, { - kind: "keyword", - text: "number", - }], - textSpan: { - length: 1, - start: 38, - } - }; - assert.deepEqual(quickInfo, { - kind: "var", - kindModifiers: "", - ...summaryAndLocation, - documentation, - tags - }); - } - - const linkInTag: File = { - path: "/a/someFile1.js", - content: `class C { } -/** @wat {@link C} */ -var x = 1` - }; - const linkInComment: File = { - path: "/a/someFile1.js", - content: `class C { } - /** {@link C} */ -var x = 1 -;` - }; - - it("for quickinfo, should provide display parts plus a span for a working link in a tag", () => { - assertQuickInfoJSDoc(linkInTag, { - command: protocol.CommandTypes.Quickinfo, - displayPartsForJSDoc: true, - documentation: [], - tags: [{ - name: "wat", - text: [{ - kind: "text", - text: "", - }, { - kind: "link", - text: "{@link ", - }, { - kind: "linkName", - target: { - end: { - line: 1, - offset: 12, - }, - file: "/a/someFile1.js", - start: { - line: 1, - offset: 1, - }, - }, - text: "C", - }, { - kind: "link", - text: "}", - }] - }], - }); - }); - it("for quickinfo, should provide a string for a working link in a tag", () => { - assertQuickInfoJSDoc(linkInTag, { - command: protocol.CommandTypes.Quickinfo, - displayPartsForJSDoc: false, - documentation: "", - tags: [{ - name: "wat", - text: "{@link C}" - }], - }); - }); - it("for quickinfo, should provide display parts for a working link in a comment", () => { - assertQuickInfoJSDoc(linkInComment, { - command: protocol.CommandTypes.Quickinfo, - displayPartsForJSDoc: true, - documentation: [{ - kind: "text", - text: "", - }, { - kind: "link", - text: "{@link ", - }, { - kind: "linkName", - target: { - end: { - line: 1, - offset: 12, - }, - file: "/a/someFile1.js", - start: { - line: 1, - offset: 1, - }, - }, - text: "C", - }, { - kind: "link", - text: "}", - }], - tags: [], - }); - }); - it("for quickinfo, should provide a string for a working link in a comment", () => { - assertQuickInfoJSDoc(linkInComment, { - command: protocol.CommandTypes.Quickinfo, - displayPartsForJSDoc: false, - documentation: "{@link C}", - tags: [], - }); - }); - - it("for quickinfo-full, should provide display parts plus a span for a working link in a tag", () => { - assertQuickInfoJSDoc(linkInTag, { - command: protocol.CommandTypes.QuickinfoFull, - displayPartsForJSDoc: true, - documentation: [], - tags: [{ - name: "wat", - text: [{ - kind: "text", - text: "", - }, { - kind: "link", - text: "{@link ", - }, { - kind: "linkName", - target: { - fileName: "/a/someFile1.js", - textSpan: { - length: 11, - start: 0 - }, - }, - text: "C", - }, { - kind: "link", - text: "}", - }] - }], - }); - }); - it("for quickinfo-full, should provide a string for a working link in a tag", () => { - assertQuickInfoJSDoc(linkInTag, { - command: protocol.CommandTypes.QuickinfoFull, - displayPartsForJSDoc: false, - documentation: [], - tags: [{ - name: "wat", - text: "{@link C}" - }], - }); - }); - it("for quickinfo-full, should provide display parts plus a span for a working link in a comment", () => { - assertQuickInfoJSDoc(linkInComment, { - command: protocol.CommandTypes.QuickinfoFull, - displayPartsForJSDoc: true, - documentation: [{ - kind: "text", - text: "", - }, { - kind: "link", - text: "{@link ", - }, { - kind: "linkName", - target: { - fileName: "/a/someFile1.js", - textSpan: { - length: 11, - start: 0 - }, - }, - text: "C", - }, { - kind: "link", - text: "}", - }], - tags: undefined, - }); - }); - it("for quickinfo-full, should provide a string for a working link in a comment", () => { - assertQuickInfoJSDoc(linkInComment, { - command: protocol.CommandTypes.QuickinfoFull, - displayPartsForJSDoc: false, - documentation: [{ - kind: "text", - text: "", - }, { - kind: "link", - text: "{@link ", - }, { - kind: "linkName", - target: { - fileName: "/a/someFile1.js", - textSpan: { - length: 11, - start: 0 - }, - }, - text: "C", - }, { - kind: "link", - text: "}", - }], - tags: [], - }); - }); - - function assertSignatureHelpJSDoc(options: { - displayPartsForJSDoc: boolean, - command: protocol.CommandTypes, - documentation: string | unknown[], - tags: unknown[] - }) { - const linkInParamTag: File = { - path: "/a/someFile1.js", - content: `class C { } -/** @param y - {@link C} */ -function x(y) { } -x(1)` - }; - - const { command, displayPartsForJSDoc, documentation, tags } = options; - const session = createSession(createServerHost([linkInParamTag, config])); - session.getProjectService().setHostConfiguration({ preferences: { displayPartsForJSDoc } }); - openFilesForSession([linkInParamTag], session); - const indexOfX = linkInParamTag.content.lastIndexOf("1"); - const signatureHelp = session.executeCommandSeq({ - command: command as protocol.CommandTypes.SignatureHelp, - arguments: { - triggerReason: { - kind: "invoked" - }, - file: linkInParamTag.path, - position: indexOfX, - } as protocol.SignatureHelpRequestArgs - }).response; - const applicableSpan = command === protocol.CommandTypes.SignatureHelp ? { - end: { - line: 4, - offset: 4 - }, - start: { - line: 4, - offset: 3 - } - } : { - length: 1, - start: 60 - }; - assert.deepEqual(signatureHelp, { - applicableSpan, - argumentCount: 1, - argumentIndex: 0, - selectedItemIndex: 0, - items: [{ - documentation: [], - isVariadic: false, - parameters: [{ - displayParts: [{ - kind: "parameterName", - text: "y" - }, { - kind: "punctuation", - text: ":" - }, { - kind: "space", - text: " " - }, { - kind: "keyword", - text: "any" - }], - documentation, - isOptional: false, - isRest: false, - name: "y" - }], - prefixDisplayParts: [ - { - kind: "functionName", - text: "x", - }, - { - kind: "punctuation", - text: "(", - }, - ], - separatorDisplayParts: [ - { - kind: "punctuation", - text: ",", - }, - { - kind: "space", - text: " ", - }, - ], - suffixDisplayParts: [ - { - kind: "punctuation", - text: ")", - }, - { - kind: "punctuation", - text: ":", - }, - { - kind: "space", - text: " ", - }, - { - kind: "keyword", - text: "void", - } - ], - tags, - }], - }); - } - it("for signature help, should provide a string for a working link in a comment", () => { - assertSignatureHelpJSDoc({ - command: protocol.CommandTypes.SignatureHelp, - displayPartsForJSDoc: false, - tags: [{ - name: "param", - text: "y - {@link C}" - }], - documentation: [{ - kind: "text", - text: "- " - }, { - kind: "link", - text: "{@link " - }, { - kind: "linkName", - target: { - file: "/a/someFile1.js", - start: { - line: 1, - offset: 1 - }, - end: { - line: 1, - offset: 12 - } - }, - text: "C" - }, { - kind: "link", - text: "}" - }], - }); - }); - it("for signature help, should provide display parts for a working link in a comment", () => { - const tags = [{ - name: "param", - text: [{ - kind: "text", - text: "y" - }, { - kind: "space", - text: " " - }, { - kind: "text", - text: "- " - }, { - kind: "link", - text: "{@link " - }, { - kind: "linkName", - target: { - file: "/a/someFile1.js", - start: { - line: 1, - offset: 1 - }, - end: { - line: 1, - offset: 12 - } - }, - text: "C" - }, { - kind: "link", - text: "}" - }] - }]; - assertSignatureHelpJSDoc({ - command: protocol.CommandTypes.SignatureHelp, - displayPartsForJSDoc: true, - tags, - documentation: tags[0].text.slice(2) - }); - }); - it("for signature help-full, should provide a string for a working link in a comment", () => { - assertSignatureHelpJSDoc({ - command: protocol.CommandTypes.SignatureHelpFull, - displayPartsForJSDoc: false, - tags: [{ - name: "param", - text: "y - {@link C}" - }], - documentation: [{ - kind: "text", - text: "- " - }, { - kind: "link", - text: "{@link " - }, { - kind: "linkName", - target: { - fileName: "/a/someFile1.js", - textSpan: { - length: 11, - start: 0 - } - }, - text: "C" - }, { - kind: "link", - text: "}" - }], - }); - }); - it("for signature help-full, should provide display parts for a working link in a comment", () => { - const tags = [{ - name: "param", - text: [{ - kind: "text", - text: "y" - }, { - kind: "space", - text: " " - }, { - kind: "text", - text: "- " - }, { - kind: "link", - text: "{@link " - }, { - kind: "linkName", - target: { - fileName: "/a/someFile1.js", - textSpan: { - length: 11, - start: 0 - } - }, - text: "C" - }, { - kind: "link", - text: "}" - }] - }]; - assertSignatureHelpJSDoc({ - command: protocol.CommandTypes.SignatureHelpFull, - displayPartsForJSDoc: true, - tags, - documentation: tags[0].text.slice(2), - }); - }); - - function assertCompletionsJSDoc(options: { - displayPartsForJSDoc: boolean, - command: protocol.CommandTypes, - tags: unknown[] - }) { - const linkInParamJSDoc: File = { - path: "/a/someFile1.js", - content: `class C { } -/** @param x - see {@link C} */ -function foo (x) { } -foo` - }; - const { command, displayPartsForJSDoc, tags } = options; - const session = createSession(createServerHost([linkInParamJSDoc, config])); - session.getProjectService().setHostConfiguration({ preferences: { displayPartsForJSDoc } }); - openFilesForSession([linkInParamJSDoc], session); - const indexOfFoo = linkInParamJSDoc.content.lastIndexOf("fo"); - const completions = session.executeCommandSeq({ - command: command as protocol.CommandTypes.CompletionDetails, - arguments: { - entryNames: ["foo"], - file: linkInParamJSDoc.path, - position: indexOfFoo, - } as protocol.CompletionDetailsRequestArgs - }).response; - assert.deepEqual(completions, [{ - codeActions: undefined, - displayParts: [{ - kind: "keyword", - text: "function", - }, { - kind: "space", - text: " ", - }, { - kind: "functionName", - text: "foo", - }, { - kind: "punctuation", - text: "(", - }, { - kind: "parameterName", - text: "x", - }, { - kind: "punctuation", - text: ":", - }, { - kind: "space", - text: " ", - }, { - kind: "keyword", - text: "any", - }, { - kind: "punctuation", - text: ")", - }, { - kind: "punctuation", - text: ":", - }, { - kind: "space", - text: " ", - }, { - kind: "keyword", - text: "void", - }], - documentation: [], - kind: "function", - kindModifiers: "", - name: "foo", - source: undefined, - tags, - }]); - } - it("for completions, should provide display parts for a working link in a comment", () => { - assertCompletionsJSDoc({ - command: protocol.CommandTypes.CompletionDetails, - displayPartsForJSDoc: true, - tags: [{ - name: "param", - text: [{ - kind: "text", - text: "x" - }, { - kind: "space", - text: " " - }, { - kind: "text", - text: "- see " - }, { - kind: "link", - text: "{@link " - }, { - kind: "linkName", - target: { - file: "/a/someFile1.js", - end: { - line: 1, - offset: 12, - }, - start: { - line: 1, - offset: 1, - } - }, - text: "C" - }, { - kind: "link", - text: "}" - }], - }], - }); - }); - it("for completions, should provide a string for a working link in a comment", () => { - assertCompletionsJSDoc({ - command: protocol.CommandTypes.CompletionDetails, - displayPartsForJSDoc: false, - tags: [{ - name: "param", - text: "x - see {@link C}", - }], - }); - }); - it("for completions-full, should provide display parts for a working link in a comment", () => { - assertCompletionsJSDoc({ - command: protocol.CommandTypes.CompletionDetailsFull, - displayPartsForJSDoc: true, - tags: [{ - name: "param", - text: [{ - kind: "text", - text: "x" - }, { - kind: "space", - text: " " - }, { - kind: "text", - text: "- see " - }, { - kind: "link", - text: "{@link " - }, { - kind: "linkName", - target: { - fileName: "/a/someFile1.js", - textSpan: { - length: 11, - start: 0 - } - }, - text: "C" - }, { - kind: "link", - text: "}" - }], - }], - }); - }); - it("for completions-full, should provide a string for a working link in a comment", () => { - assertCompletionsJSDoc({ - command: protocol.CommandTypes.CompletionDetailsFull, - displayPartsForJSDoc: false, - tags: [{ - name: "param", - text: "x - see {@link C}", - }], - }); - }); - }); -} diff --git a/tests/baselines/reference/APISample_jsdoc.js b/tests/baselines/reference/APISample_jsdoc.js index 50288c1237ea5..9c1dd5f824fdb 100644 --- a/tests/baselines/reference/APISample_jsdoc.js +++ b/tests/baselines/reference/APISample_jsdoc.js @@ -35,7 +35,7 @@ function parseCommentsIntoDefinition(this: any, } // jsdocs are separate from comments - const jsdocs = symbol.getJsDocTags(this.checker); + const jsdocs = symbol.getJsDocTags(); jsdocs.forEach(doc => { // if we have @TJS-... annotations, we have to parse them const { name, text } = doc; @@ -59,7 +59,7 @@ function getAnnotations(this: any, node: ts.Node): Annotations | undefined { return undefined; } - const jsDocTags: ts.JSDocTagInfo[] = symbol.getJsDocTags(this.checker); + const jsDocTags: ts.JSDocTagInfo[] = symbol.getJsDocTags(); if (!jsDocTags || !jsDocTags.length) { return undefined; } @@ -143,7 +143,7 @@ function parseCommentsIntoDefinition(symbol, definition, otherAnnotations) { definition.description = comments.map(function (comment) { return comment.kind === "lineBreak" ? comment.text : comment.text.trim().replace(/\r\n/g, "\n"); }).join(""); } // jsdocs are separate from comments - var jsdocs = symbol.getJsDocTags(this.checker); + var jsdocs = symbol.getJsDocTags(); jsdocs.forEach(function (doc) { // if we have @TJS-... annotations, we have to parse them var name = doc.name, text = doc.text; @@ -162,7 +162,7 @@ function getAnnotations(node) { if (!symbol) { return undefined; } - var jsDocTags = symbol.getJsDocTags(this.checker); + var jsDocTags = symbol.getJsDocTags(); if (!jsDocTags || !jsDocTags.length) { return undefined; } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@@ does not start a new tag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@@ does not start a new tag.json index 0899772ccaa49..8da37b34c35ea 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@@ does not start a new tag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@@ does not start a new tag.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 19, - "end": 52, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "is (@@fine@@and) is one comment" - }, - "length": 1, - "pos": 19, - "end": 52, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "is (@@fine@@and) is one comment", "name": { "kind": "Identifier", "pos": 14, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@link tags.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@link tags.json index d031b6e257728..1e0ef5dff87a0 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@link tags.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.@link tags.json @@ -1,425 +1,9 @@ { "kind": "JSDocComment", "pos": 0, - "end": 674, + "end": 63, "flags": "JSDoc", "modifierFlagsCache": 0, "transformFlags": 0, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 0, - "end": 7, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "" - }, - "1": { - "kind": "JSDocLink", - "pos": 7, - "end": 21, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "Identifier", - "pos": 14, - "end": 19, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "first" - }, - "text": "" - }, - "2": { - "kind": "JSDocText", - "pos": 21, - "end": 32, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "\nInside " - }, - "3": { - "kind": "JSDocLink", - "pos": 32, - "end": 49, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "Identifier", - "pos": 39, - "end": 43, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "link" - }, - "text": "text" - }, - "4": { - "kind": "JSDocText", - "pos": 49, - "end": 59, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " thing" - }, - "length": 5, - "pos": 0, - "end": 59, - "hasTrailingComma": false, - "transformFlags": 0 - }, - "tags": { - "0": { - "kind": "JSDocParameterTag", - "pos": 59, - "end": 102, - "modifierFlagsCache": 0, - "transformFlags": 0, - "tagName": { - "kind": "Identifier", - "pos": 60, - "end": 65, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "param" - }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 70, - "end": 79, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "See also " - }, - "1": { - "kind": "JSDocLink", - "pos": 79, - "end": 98, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "FirstNode", - "pos": 86, - "end": 97, - "modifierFlagsCache": 0, - "transformFlags": 0, - "left": { - "kind": "Identifier", - "pos": 86, - "end": 87, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "A" - }, - "right": { - "kind": "Identifier", - "pos": 88, - "end": 97, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "Reference" - } - }, - "text": "" - }, - "length": 2, - "pos": 70, - "end": 102, - "hasTrailingComma": false, - "transformFlags": 0 - }, - "name": { - "kind": "Identifier", - "pos": 66, - "end": 69, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "foo" - }, - "isNameFirst": true, - "isBracketed": false - }, - "1": { - "kind": "JSDocParameterTag", - "pos": 102, - "end": 589, - "modifierFlagsCache": 0, - "transformFlags": 0, - "tagName": { - "kind": "Identifier", - "pos": 103, - "end": 108, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "param" - }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 113, - "end": 120, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Or see " - }, - "1": { - "kind": "JSDocLink", - "pos": 120, - "end": 152, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "Identifier", - "pos": 127, - "end": 131, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "http" - }, - "text": "://www.zombocom.com " - }, - "2": { - "kind": "JSDocText", - "pos": 152, - "end": 156, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "\n" - }, - "3": { - "kind": "JSDocLink", - "pos": 156, - "end": 183, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "FirstNode", - "pos": 163, - "end": 181, - "modifierFlagsCache": 0, - "transformFlags": 0, - "left": { - "kind": "Identifier", - "pos": 163, - "end": 173, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "Standalone" - }, - "right": { - "kind": "Identifier", - "pos": 174, - "end": 181, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "Complex" - } - }, - "text": "" - }, - "4": { - "kind": "JSDocText", - "pos": 183, - "end": 203, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "\nThis empty one: " - }, - "5": { - "kind": "JSDocLink", - "pos": 203, - "end": 210, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "" - }, - "6": { - "kind": "JSDocText", - "pos": 210, - "end": 244, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " is OK.\nThis double-space one: " - }, - "7": { - "kind": "JSDocLink", - "pos": 244, - "end": 262, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "Identifier", - "pos": 252, - "end": 259, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "doubled" - }, - "text": "" - }, - "8": { - "kind": "JSDocText", - "pos": 262, - "end": 326, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " is OK too.\nThis should work, despite being badly formatted: " - }, - "9": { - "kind": "JSDocLink", - "pos": 326, - "end": 340, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "FirstNode", - "pos": 333, - "end": 338, - "modifierFlagsCache": 0, - "transformFlags": 0, - "left": { - "kind": "Identifier", - "pos": 333, - "end": 335, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "oh" - }, - "right": { - "kind": "Identifier", - "pos": 336, - "end": 338, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "no" - } - }, - "text": "" - }, - "10": { - "kind": "JSDocText", - "pos": 340, - "end": 369, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "\nForgot to close this one " - }, - "11": { - "kind": "JSDocLink", - "pos": 369, - "end": 403, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "Identifier", - "pos": 376, - "end": 381, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "https" - }, - "text": "://typescriptlang.org" - }, - "12": { - "kind": "JSDocText", - "pos": 403, - "end": 526, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " * But it's still OK.\nAlthough it skips the newline so parses the asterisks in the wrong state.\nThis shouldn't work: " - }, - "13": { - "kind": "JSDocLink", - "pos": 526, - "end": 541, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "* nope" - }, - "14": { - "kind": "JSDocText", - "pos": 541, - "end": 589, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " * }, because of the intermediate asterisks." - }, - "length": 15, - "pos": 113, - "end": 589, - "hasTrailingComma": false, - "transformFlags": 0 - }, - "name": { - "kind": "Identifier", - "pos": 109, - "end": 112, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "bar" - }, - "isNameFirst": true, - "isBracketed": false - }, - "2": { - "kind": "JSDocAuthorTag", - "pos": 589, - "end": 672, - "modifierFlagsCache": 0, - "transformFlags": 0, - "tagName": { - "kind": "Identifier", - "pos": 590, - "end": 596, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "author" - }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 597, - "end": 624, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Alfa Romero " - }, - "1": { - "kind": "JSDocText", - "pos": 624, - "end": 643, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " See my home page: " - }, - "2": { - "kind": "JSDocLink", - "pos": 643, - "end": 670, - "modifierFlagsCache": 0, - "transformFlags": 0, - "name": { - "kind": "Identifier", - "pos": 650, - "end": 655, - "modifierFlagsCache": 0, - "transformFlags": 0, - "escapedText": "https" - }, - "text": "://example.com" - }, - "length": 3, - "pos": 597, - "end": 672, - "hasTrailingComma": false, - "transformFlags": 0 - } - }, - "length": 3, - "pos": 59, - "end": 672, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "{@link first link}\nInside {@link link text} thing" } \ No newline at end of file diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial email address is not a tag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial email address is not a tag.json index 4ab0c5fe99362..a2ad2693915f0 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial email address is not a tag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial email address is not a tag.json @@ -5,19 +5,5 @@ "flags": "JSDoc", "modifierFlagsCache": 0, "transformFlags": 0, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 0, - "end": 19, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "bill@example.com" - }, - "length": 1, - "pos": 0, - "end": 19, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "bill@example.com" } \ No newline at end of file diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star is not a tag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star is not a tag.json index 4a3f9c993ce46..14d6d34b842d1 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star is not a tag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star is not a tag.json @@ -5,19 +5,5 @@ "flags": "JSDoc", "modifierFlagsCache": 0, "transformFlags": 0, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 0, - "end": 6, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "*@a" - }, - "length": 1, - "pos": 0, - "end": 6, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "*@a" } \ No newline at end of file diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star space is not a tag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star space is not a tag.json index a8c8f6ed1f5fd..6a0af3e105dc4 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star space is not a tag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Initial star space is not a tag.json @@ -5,19 +5,5 @@ "flags": "JSDoc", "modifierFlagsCache": 0, "transformFlags": 0, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 0, - "end": 7, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "* @a" - }, - "length": 1, - "pos": 0, - "end": 7, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "* @a" } \ No newline at end of file diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Nested @param tags.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Nested @param tags.json index 14180aa132c60..2c42878ec2605 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Nested @param tags.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Nested @param tags.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 24, - "end": 34, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Doc doc" - }, - "length": 1, - "pos": 24, - "end": 34, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Doc doc", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 34, @@ -62,21 +48,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 54, - "end": 64, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Doc for f" - }, - "length": 1, - "pos": 54, - "end": 64, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Doc for f", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 41, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json index fd3e10119d7fc..beadc1f572e2b 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argSynonymForParamTag.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "arg" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 28, - "end": 42, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description" - }, - "length": 1, - "pos": 28, - "end": 42, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 13, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json index 6d890214e21ea..5ecb6ad069499 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.argumentSynonymForParamTag.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "argument" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 33, - "end": 47, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description" - }, - "length": 1, - "pos": 33, - "end": 47, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 18, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.asteriskAfterPreamble.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.asteriskAfterPreamble.json index 8a850a5a8d185..2d4beb55b12cd 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.asteriskAfterPreamble.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.asteriskAfterPreamble.json @@ -5,19 +5,5 @@ "flags": "JSDoc", "modifierFlagsCache": 0, "transformFlags": 0, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 0, - "end": 21, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "* @type {number}" - }, - "length": 1, - "pos": 0, - "end": 21, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "* @type {number}" } \ No newline at end of file diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.authorTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.authorTag.json index 27350cfa2f0a1..4f92b492fca66 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.authorTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.authorTag.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 15, - "end": 50, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "John Doe " - }, - "length": 1, - "pos": 15, - "end": 50, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "John Doe " }, "1": { "kind": "JSDocAuthorTag", @@ -50,29 +36,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 58, - "end": 89, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "John Doe " - }, - "1": { - "kind": "JSDocText", - "pos": 89, - "end": 112, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " unexpected comment" - }, - "length": 2, - "pos": 58, - "end": 112, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "John Doe unexpected comment" }, "2": { "kind": "JSDocAuthorTag", @@ -88,29 +52,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 120, - "end": 146, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "108 <108@actionbutton.net>" - }, - "1": { - "kind": "JSDocText", - "pos": 146, - "end": 170, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " Video Games Forever" - }, - "length": 2, - "pos": 120, - "end": 170, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "108 <108@actionbutton.net> Video Games Forever" }, "3": { "kind": "JSDocAuthorTag", @@ -126,21 +68,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 178, - "end": 227, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Multiple Ats " - }, - "length": 1, - "pos": 178, - "end": 227, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Multiple Ats " }, "4": { "kind": "JSDocAuthorTag", @@ -156,21 +84,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 235, - "end": 272, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Multiple Open Carets " - }, - "length": 1, - "pos": 235, - "end": 272, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Multiple Open Carets " }, "5": { "kind": "JSDocAuthorTag", @@ -186,29 +100,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 280, - "end": 312, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Multiple Close Carets " - }, - "1": { - "kind": "JSDocText", - "pos": 312, - "end": 338, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "invalid>but>who>cares>" - }, - "length": 2, - "pos": 280, - "end": 338, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Multiple Close Carets invalid>but>who>cares>" }, "6": { "kind": "JSDocAuthorTag", @@ -224,21 +116,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 346, - "end": 381, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Unclosed Carets " - }, - "length": 1, - "pos": 406, - "end": 429, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "On One " }, "9": { "kind": "JSDocAuthorTag", @@ -314,21 +164,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 437, - "end": 445, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Line" - }, - "length": 1, - "pos": 437, - "end": 445, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Line" }, "10": { "kind": "JSDocAuthorTag", @@ -343,21 +179,6 @@ "modifierFlagsCache": 0, "transformFlags": 0, "escapedText": "author" - }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 453, - "end": 453, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "" - }, - "length": 1, - "pos": 453, - "end": 453, - "hasTrailingComma": false, - "transformFlags": 0 } }, "11": { @@ -373,21 +194,6 @@ "modifierFlagsCache": 0, "transformFlags": 0, "escapedText": "author" - }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 461, - "end": 461, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "" - }, - "length": 1, - "pos": 461, - "end": 461, - "hasTrailingComma": false, - "transformFlags": 0 } }, "12": { @@ -404,21 +210,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 469, - "end": 486, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Empty authors" - }, - "length": 1, - "pos": 469, - "end": 486, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Empty authors" }, "13": { "kind": "JSDocAuthorTag", @@ -433,21 +225,6 @@ "modifierFlagsCache": 0, "transformFlags": 0, "escapedText": "author" - }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 497, - "end": 497, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "" - }, - "length": 1, - "pos": 497, - "end": 497, - "hasTrailingComma": false, - "transformFlags": 0 } }, "14": { @@ -464,21 +241,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 510, - "end": 522, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Comments" - }, - "length": 1, - "pos": 510, - "end": 522, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Comments" }, "15": { "kind": "JSDocAuthorTag", @@ -494,21 +257,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 530, - "end": 559, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Early Close Caret > " - }, - "length": 1, - "pos": 530, - "end": 559, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Early Close Caret > " }, "16": { "kind": "JSDocAuthorTag", @@ -524,34 +273,12 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 567, - "end": 582, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "No Line Breaks:" - }, - "1": { - "kind": "JSDocText", - "pos": 582, - "end": 599, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " must be on the same line to parse" - }, - "length": 1, - "pos": 607, - "end": 646, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "> must be on the same line to parse" }, "18": { "kind": "JSDocAuthorTag", @@ -592,29 +305,7 @@ "transformFlags": 0, "escapedText": "author" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 654, - "end": 685, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Long Comment " - }, - "1": { - "kind": "JSDocText", - "pos": 685, - "end": 737, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": " I\nwant to keep commenting down here, I dunno." - }, - "length": 2, - "pos": 654, - "end": 737, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Long Comment I\nwant to keep commenting down here, I dunno." }, "length": 19, "pos": 7, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.consecutive newline tokens.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.consecutive newline tokens.json index 7605107ceae3c..26875d7eba7c7 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.consecutive newline tokens.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.consecutive newline tokens.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTag", "pos": 7, - "end": 53, + "end": 19, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -20,25 +20,11 @@ "transformFlags": 0, "escapedText": "example" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 19, - "end": 53, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Some\n\ntext\r\nwith newlines." - }, - "length": 1, - "pos": 19, - "end": 53, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "Some\n\ntext\r\nwith newlines." }, "length": 1, "pos": 7, - "end": 53, + "end": 19, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.leadingAsterisk.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.leadingAsterisk.json index 27a284ebe7bae..1289886390bdf 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.leadingAsterisk.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.leadingAsterisk.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTypeTag", "pos": 8, - "end": 25, + "end": 22, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -38,7 +38,7 @@ }, "length": 1, "pos": 8, - "end": 25, + "end": 22, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.less-than and greater-than characters.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.less-than and greater-than characters.json index f8e11d16268ee..25c634c52caa8 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.less-than and greater-than characters.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.less-than and greater-than characters.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 16, - "end": 59, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "hi\n< > still part of the previous comment" - }, - "length": 1, - "pos": 16, - "end": 59, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "hi\n< > still part of the previous comment", "name": { "kind": "Identifier", "pos": 14, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.no space before @ is not a new tag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.no space before @ is not a new tag.json index 930c408f2d7ef..3b154e039731c 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.no space before @ is not a new tag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.no space before @ is not a new tag.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 19, - "end": 29, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "(@is@)" - }, - "length": 1, - "pos": 19, - "end": 29, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "(@is@)", "name": { "kind": "Identifier", "pos": 14, @@ -61,21 +47,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 41, - "end": 50, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "its@fine" - }, - "length": 1, - "pos": 41, - "end": 50, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "its@fine", "name": { "kind": "Identifier", "pos": 36, @@ -105,7 +77,7 @@ "3": { "kind": "JSDocTag", "pos": 62, - "end": 89, + "end": 75, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -116,25 +88,11 @@ "transformFlags": 0, "escapedText": "singlestar" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 75, - "end": 89, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "*@doublestar" - }, - "length": 1, - "pos": 75, - "end": 89, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "*@doublestar" }, "length": 4, "pos": 7, - "end": 89, + "end": 75, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noLeadingAsterisk.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noLeadingAsterisk.json index 27a284ebe7bae..1289886390bdf 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noLeadingAsterisk.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noLeadingAsterisk.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTypeTag", "pos": 8, - "end": 25, + "end": 22, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -38,7 +38,7 @@ }, "length": 1, "pos": 8, - "end": 25, + "end": 22, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noReturnType.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noReturnType.json index 052aa1c5aa6c5..e7e8b9d13d78b 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noReturnType.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.noReturnType.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocReturnTag", "pos": 8, - "end": 18, + "end": 15, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -24,7 +24,7 @@ }, "length": 1, "pos": 8, - "end": 18, + "end": 15, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json index 08b25593b6f80..f45eb771178a3 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTag1.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 30, - "end": 57, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description text follows" - }, - "length": 1, - "pos": 30, - "end": 57, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description text follows", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 15, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json index 900f64cfa3dce..0db3f02520e82 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName1.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 31, - "end": 59, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description text follows" - }, - "length": 1, - "pos": 31, - "end": 59, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description text follows", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 15, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json index bae0654efb8e7..71cb84f5ed793 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagBracketedName2.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 36, - "end": 64, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description text follows" - }, - "length": 1, - "pos": 36, - "end": 64, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description text follows", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 15, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json index 60f217f27b69e..a1bed4eb49b73 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.paramTagNameThenType2.json @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "param" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 29, - "end": 44, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description" - }, - "length": 1, - "pos": 29, - "end": 44, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 21, diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag1.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag1.json index e5d3ee7b6149a..a7f96aa220f0d 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag1.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag1.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocReturnTag", "pos": 8, - "end": 27, + "end": 24, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -38,7 +38,7 @@ }, "length": 1, "pos": 8, - "end": 27, + "end": 24, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag2.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag2.json index ca5d495760bdf..e243e4fb5e2f6 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag2.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnTag2.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocReturnTag", "pos": 8, - "end": 52, + "end": 24, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -21,21 +21,7 @@ "originalKeywordKind": "ReturnKeyword", "escapedText": "return" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 24, - "end": 52, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description text follows" - }, - "length": 1, - "pos": 24, - "end": 52, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description text follows", "typeExpression": { "kind": "JSDocTypeExpression", "pos": 16, @@ -53,7 +39,7 @@ }, "length": 1, "pos": 8, - "end": 52, + "end": 24, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnsTag1.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnsTag1.json index 230dd41541585..a0af3c57f2543 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnsTag1.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.returnsTag1.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocReturnTag", "pos": 8, - "end": 28, + "end": 25, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -37,7 +37,7 @@ }, "length": 1, "pos": 8, - "end": 28, + "end": 25, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag.json index 50c772455d0ec..14d338f4368c3 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTemplateTag", "pos": 8, - "end": 22, + "end": 19, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -45,7 +45,7 @@ }, "length": 1, "pos": 8, - "end": 22, + "end": 19, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag2.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag2.json index 1b4c8e8976951..0217b5efc5749 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag2.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag2.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTemplateTag", "pos": 8, - "end": 24, + "end": 21, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -60,7 +60,7 @@ }, "length": 1, "pos": 8, - "end": 24, + "end": 21, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag3.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag3.json index 15bab6344a35b..1761d1f67b3c4 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag3.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag3.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTemplateTag", "pos": 8, - "end": 25, + "end": 22, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -60,7 +60,7 @@ }, "length": 1, "pos": 8, - "end": 25, + "end": 22, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag4.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag4.json index 15bab6344a35b..1761d1f67b3c4 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag4.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag4.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTemplateTag", "pos": 8, - "end": 25, + "end": 22, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -60,7 +60,7 @@ }, "length": 1, "pos": 8, - "end": 25, + "end": 22, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag5.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag5.json index e3f4dceb82b74..d0faa579c0826 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag5.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag5.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTemplateTag", "pos": 8, - "end": 26, + "end": 23, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -60,7 +60,7 @@ }, "length": 1, "pos": 8, - "end": 26, + "end": 23, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag6.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag6.json index d8018ccefdc78..874e64567fba5 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag6.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.templateTag6.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTemplateTag", "pos": 8, - "end": 58, + "end": 24, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -20,21 +20,7 @@ "transformFlags": 0, "escapedText": "template" }, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 24, - "end": 58, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "Description of type parameters." - }, - "length": 1, - "pos": 24, - "end": 58, - "hasTrailingComma": false, - "transformFlags": 0 - }, + "comment": "Description of type parameters.", "typeParameters": { "0": { "kind": "TypeParameter", @@ -75,7 +61,7 @@ }, "length": 1, "pos": 8, - "end": 58, + "end": 24, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.threeAsterisks.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.threeAsterisks.json index 8aca030cd1436..6e8ff913426b1 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.threeAsterisks.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.threeAsterisks.json @@ -5,19 +5,5 @@ "flags": "JSDoc", "modifierFlagsCache": 0, "transformFlags": 0, - "comment": { - "0": { - "kind": "JSDocText", - "pos": 0, - "end": 5, - "modifierFlagsCache": 0, - "transformFlags": 0, - "text": "*" - }, - "length": 1, - "pos": 0, - "end": 5, - "hasTrailingComma": false, - "transformFlags": 0 - } + "comment": "*" } \ No newline at end of file diff --git a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typeTag.json b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typeTag.json index 27a284ebe7bae..1289886390bdf 100644 --- a/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typeTag.json +++ b/tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.typeTag.json @@ -9,7 +9,7 @@ "0": { "kind": "JSDocTypeTag", "pos": 8, - "end": 25, + "end": 22, "modifierFlagsCache": 0, "transformFlags": 0, "tagName": { @@ -38,7 +38,7 @@ }, "length": 1, "pos": 8, - "end": 25, + "end": 22, "hasTrailingComma": false, "transformFlags": 0 } diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 7fb3cc161c54c..41c65ec6f31b9 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -416,38 +416,36 @@ declare namespace ts { JSDocVariadicType = 309, JSDocNamepathType = 310, JSDocComment = 311, - JSDocText = 312, - JSDocTypeLiteral = 313, - JSDocSignature = 314, - JSDocLink = 315, - JSDocTag = 316, - JSDocAugmentsTag = 317, - JSDocImplementsTag = 318, - JSDocAuthorTag = 319, - JSDocDeprecatedTag = 320, - JSDocClassTag = 321, - JSDocPublicTag = 322, - JSDocPrivateTag = 323, - JSDocProtectedTag = 324, - JSDocReadonlyTag = 325, - JSDocCallbackTag = 326, - JSDocEnumTag = 327, - JSDocParameterTag = 328, - JSDocReturnTag = 329, - JSDocThisTag = 330, - JSDocTypeTag = 331, - JSDocTemplateTag = 332, - JSDocTypedefTag = 333, - JSDocSeeTag = 334, - JSDocPropertyTag = 335, - SyntaxList = 336, - NotEmittedStatement = 337, - PartiallyEmittedExpression = 338, - CommaListExpression = 339, - MergeDeclarationMarker = 340, - EndOfDeclarationMarker = 341, - SyntheticReferenceExpression = 342, - Count = 343, + JSDocTypeLiteral = 312, + JSDocSignature = 313, + JSDocTag = 314, + JSDocAugmentsTag = 315, + JSDocImplementsTag = 316, + JSDocAuthorTag = 317, + JSDocDeprecatedTag = 318, + JSDocClassTag = 319, + JSDocPublicTag = 320, + JSDocPrivateTag = 321, + JSDocProtectedTag = 322, + JSDocReadonlyTag = 323, + JSDocCallbackTag = 324, + JSDocEnumTag = 325, + JSDocParameterTag = 326, + JSDocReturnTag = 327, + JSDocThisTag = 328, + JSDocTypeTag = 329, + JSDocTemplateTag = 330, + JSDocTypedefTag = 331, + JSDocSeeTag = 332, + JSDocPropertyTag = 333, + SyntaxList = 334, + NotEmittedStatement = 335, + PartiallyEmittedExpression = 336, + CommaListExpression = 337, + MergeDeclarationMarker = 338, + EndOfDeclarationMarker = 339, + SyntheticReferenceExpression = 340, + Count = 341, FirstAssignment = 62, LastAssignment = 77, FirstCompoundAssignment = 63, @@ -476,9 +474,9 @@ declare namespace ts { LastStatement = 248, FirstNode = 157, FirstJSDocNode = 301, - LastJSDocNode = 335, - FirstJSDocTagNode = 316, - LastJSDocTagNode = 335, + LastJSDocNode = 333, + FirstJSDocTagNode = 314, + LastJSDocTagNode = 333, } export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia; export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; @@ -1745,21 +1743,12 @@ declare namespace ts { readonly kind: SyntaxKind.JSDocComment; readonly parent: HasJSDoc; readonly tags?: NodeArray; - readonly comment?: NodeArray; + readonly comment?: string; } export interface JSDocTag extends Node { readonly parent: JSDoc | JSDocTypeLiteral; readonly tagName: Identifier; - readonly comment?: NodeArray; - } - export interface JSDocLink extends Node { - readonly kind: SyntaxKind.JSDocLink; - readonly name?: EntityName; - text: string; - } - export interface JSDocText extends Node { - readonly kind: SyntaxKind.JSDocText; - text: string; + readonly comment?: string; } export interface JSDocUnknownTag extends JSDocTag { readonly kind: SyntaxKind.JSDocTag; @@ -3490,56 +3479,52 @@ declare namespace ts { updateJSDocTypeExpression(node: JSDocTypeExpression, type: TypeNode): JSDocTypeExpression; createJSDocNameReference(name: EntityName): JSDocNameReference; updateJSDocNameReference(node: JSDocNameReference, name: EntityName): JSDocNameReference; - createJSDocLink(name: EntityName | undefined, text: string): JSDocLink; - updateJSDocLink(node: JSDocLink, name: EntityName | undefined, text: string): JSDocLink; createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral; updateJSDocTypeLiteral(node: JSDocTypeLiteral, jsDocPropertyTags: readonly JSDocPropertyLikeTag[] | undefined, isArrayType: boolean | undefined): JSDocTypeLiteral; createJSDocSignature(typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type?: JSDocReturnTag): JSDocSignature; updateJSDocSignature(node: JSDocSignature, typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type: JSDocReturnTag | undefined): JSDocSignature; - createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray): JSDocTemplateTag; - updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | NodeArray | undefined): JSDocTemplateTag; - createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocTypedefTag; - updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocTypedefTag; - createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocParameterTag; - updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocParameterTag; - createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocPropertyTag; - updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocPropertyTag; - createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocTypeTag; - updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray | undefined): JSDocTypeTag; - createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag; - updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag; - createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string | NodeArray): JSDocReturnTag; - updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray | undefined): JSDocReturnTag; - createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocThisTag; - updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray | undefined): JSDocThisTag; - createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocEnumTag; - updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray | undefined): JSDocEnumTag; - createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocCallbackTag; - updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocCallbackTag; - createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string | NodeArray): JSDocAugmentsTag; - updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | NodeArray | undefined): JSDocAugmentsTag; - createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string | NodeArray): JSDocImplementsTag; - updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | NodeArray | undefined): JSDocImplementsTag; - createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocAuthorTag; - updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocAuthorTag; - createJSDocClassTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocClassTag; - updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocClassTag; - createJSDocPublicTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocPublicTag; - updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocPublicTag; - createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocPrivateTag; - updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocPrivateTag; - createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocProtectedTag; - updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocProtectedTag; - createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocReadonlyTag; - updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocReadonlyTag; - createJSDocUnknownTag(tagName: Identifier, comment?: string | NodeArray): JSDocUnknownTag; - updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | NodeArray | undefined): JSDocUnknownTag; - createJSDocDeprecatedTag(tagName: Identifier, comment?: string | NodeArray): JSDocDeprecatedTag; - updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string | NodeArray): JSDocDeprecatedTag; - createJSDocText(text: string): JSDocText; - updateJSDocText(node: JSDocText, text: string): JSDocText; - createJSDocComment(comment?: string | NodeArray | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc; - updateJSDocComment(node: JSDoc, comment: string | NodeArray | undefined, tags: readonly JSDocTag[] | undefined): JSDoc; + createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string): JSDocTemplateTag; + updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | undefined): JSDocTemplateTag; + createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocTypedefTag; + updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocTypedefTag; + createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocParameterTag; + updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocParameterTag; + createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocPropertyTag; + updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocPropertyTag; + createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocTypeTag; + updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocTypeTag; + createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag; + updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag; + createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string): JSDocReturnTag; + updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocReturnTag; + createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocThisTag; + updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocThisTag; + createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocEnumTag; + updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocEnumTag; + createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocCallbackTag; + updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocCallbackTag; + createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string): JSDocAugmentsTag; + updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | undefined): JSDocAugmentsTag; + createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag; + updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | undefined): JSDocImplementsTag; + createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string): JSDocAuthorTag; + updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | undefined): JSDocAuthorTag; + createJSDocClassTag(tagName: Identifier | undefined, comment?: string): JSDocClassTag; + updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | undefined): JSDocClassTag; + createJSDocPublicTag(tagName: Identifier | undefined, comment?: string): JSDocPublicTag; + updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPublicTag; + createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string): JSDocPrivateTag; + updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPrivateTag; + createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string): JSDocProtectedTag; + updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | undefined): JSDocProtectedTag; + createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string): JSDocReadonlyTag; + updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | undefined): JSDocReadonlyTag; + createJSDocUnknownTag(tagName: Identifier, comment?: string): JSDocUnknownTag; + updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | undefined): JSDocUnknownTag; + createJSDocDeprecatedTag(tagName: Identifier, comment?: string): JSDocDeprecatedTag; + updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string): JSDocDeprecatedTag; + createJSDocComment(comment?: string | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc; + updateJSDocComment(node: JSDoc, comment: string | undefined, tags: readonly JSDocTag[] | undefined): JSDoc; createJsxElement(openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; createJsxSelfClosingElement(tagName: JsxTagNameExpression, typeArguments: readonly TypeNode[] | undefined, attributes: JsxAttributes): JsxSelfClosingElement; @@ -4222,8 +4207,6 @@ declare namespace ts { function getAllJSDocTags(node: Node, predicate: (tag: JSDocTag) => tag is T): readonly T[]; /** Gets all JSDoc tags of a specified kind */ function getAllJSDocTagsOfKind(node: Node, kind: SyntaxKind): readonly JSDocTag[]; - /** Gets the text of a jsdoc comment, flattening links to their text. */ - function getTextOfJSDocComment(comment?: NodeArray): string | undefined; /** * Gets the effective type parameters. If the node was parsed in a * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. @@ -4543,7 +4526,6 @@ declare namespace ts { function isUnparsedSource(node: Node): node is UnparsedSource; function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression; function isJSDocNameReference(node: Node): node is JSDocNameReference; - function isJSDocLink(node: Node): node is JSDocLink; function isJSDocAllType(node: Node): node is JSDocAllType; function isJSDocUnknownType(node: Node): node is JSDocUnknownType; function isJSDocNullableType(node: Node): node is JSDocNullableType; @@ -5347,7 +5329,7 @@ declare namespace ts { getName(): string; getDeclarations(): Declaration[] | undefined; getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; - getJsDocTags(checker?: TypeChecker): JSDocTagInfo[]; + getJsDocTags(): JSDocTagInfo[]; } interface Type { getFlags(): TypeFlags; @@ -6039,21 +6021,15 @@ declare namespace ts { typeParameterName = 18, enumMemberName = 19, functionName = 20, - regularExpressionLiteral = 21, - link = 22, - linkName = 23, - linkText = 24 + regularExpressionLiteral = 21 } interface SymbolDisplayPart { text: string; kind: string; } - interface JSDocLinkDisplayPart extends SymbolDisplayPart { - target: DocumentSpan; - } interface JSDocTagInfo { name: string; - text?: SymbolDisplayPart[]; + text?: string; } interface QuickInfo { kind: ScriptElementKind; @@ -6342,13 +6318,7 @@ declare namespace ts { */ jsxAttribute = "JSX attribute", /** String literal */ - string = "string", - /** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */ - link = "link", - /** Jsdoc @link: in `{@link C link text}`, the entity name "C" */ - linkName = "link name", - /** Jsdoc @link: in `{@link C link text}`, the link text "link text" */ - linkText = "link text" + string = "string" } enum ScriptElementKindModifier { none = "", @@ -7332,15 +7302,6 @@ declare namespace ts.server.protocol { */ file: string; } - interface JSDocTagInfo { - /** Name of the JSDoc tag */ - name: string; - /** - * Comment text after the JSDoc tag -- the text after the tag name until the next tag or end of comment - * Display parts when UserPreferences.displayPartsForJSDoc is true, flattened to string otherwise. - */ - text?: string | SymbolDisplayPart[]; - } interface TextSpanWithContext extends TextSpan { contextStart?: Location; contextEnd?: Location; @@ -8061,7 +8022,6 @@ declare namespace ts.server.protocol { */ interface QuickInfoRequest extends FileLocationRequest { command: CommandTypes.Quickinfo; - arguments: FileLocationRequestArgs; } /** * Body of QuickInfoResponse. @@ -8089,9 +8049,8 @@ declare namespace ts.server.protocol { displayString: string; /** * Documentation associated with symbol. - * Display parts when UserPreferences.displayPartsForJSDoc is true, flattened to string otherwise. */ - documentation: string | SymbolDisplayPart[]; + documentation: string; /** * JSDoc tags associated with symbol. */ @@ -8282,11 +8241,6 @@ declare namespace ts.server.protocol { */ kind: string; } - /** A part of a symbol description that links from a jsdoc @link tag to a declaration */ - interface JSDocLinkDisplayPart extends SymbolDisplayPart { - /** The location of the declaration that the @link tag links to. */ - target: FileSpan; - } /** * An item found in a completion response. */ @@ -9208,7 +9162,6 @@ declare namespace ts.server.protocol { readonly provideRefactorNotApplicableReason?: boolean; readonly allowRenameOfImportPath?: boolean; readonly includePackageJsonAutoImports?: "auto" | "on" | "off"; - readonly displayPartsForJSDoc?: boolean; readonly generateReturnInDocTemplate?: boolean; } interface CompilerOptions { @@ -10184,9 +10137,6 @@ declare namespace ts.server { private mapDefinitionInfoLocations; private getDefinitionAndBoundSpan; private getEmitOutput; - private mapJSDocTagInfo; - private mapDisplayParts; - private mapSignatureHelpItems; private mapDefinitionInfo; private static mapToOriginalLocation; private toFileSpan; @@ -10773,51 +10723,51 @@ declare namespace ts { /** @deprecated Use `factory.createJSDocTypeExpression` or the factory supplied by your transformation context instead. */ const createJSDocTypeExpression: (type: TypeNode) => JSDocTypeExpression; /** @deprecated Use `factory.createJSDocTypeTag` or the factory supplied by your transformation context instead. */ - const createJSDocTypeTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray | undefined) => JSDocTypeTag; + const createJSDocTypeTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocTypeTag; /** @deprecated Use `factory.createJSDocReturnTag` or the factory supplied by your transformation context instead. */ - const createJSDocReturnTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | undefined, comment?: string | NodeArray | undefined) => JSDocReturnTag; + const createJSDocReturnTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | undefined, comment?: string | undefined) => JSDocReturnTag; /** @deprecated Use `factory.createJSDocThisTag` or the factory supplied by your transformation context instead. */ - const createJSDocThisTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray | undefined) => JSDocThisTag; + const createJSDocThisTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocThisTag; /** @deprecated Use `factory.createJSDocComment` or the factory supplied by your transformation context instead. */ - const createJSDocComment: (comment?: string | NodeArray | undefined, tags?: readonly JSDocTag[] | undefined) => JSDoc; + const createJSDocComment: (comment?: string | undefined, tags?: readonly JSDocTag[] | undefined) => JSDoc; /** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */ - const createJSDocParameterTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | NodeArray | undefined) => JSDocParameterTag; + const createJSDocParameterTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | undefined) => JSDocParameterTag; /** @deprecated Use `factory.createJSDocClassTag` or the factory supplied by your transformation context instead. */ - const createJSDocClassTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocClassTag; + const createJSDocClassTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocClassTag; /** @deprecated Use `factory.createJSDocAugmentsTag` or the factory supplied by your transformation context instead. */ const createJSDocAugmentsTag: (tagName: Identifier | undefined, className: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; - }, comment?: string | NodeArray | undefined) => JSDocAugmentsTag; + }, comment?: string | undefined) => JSDocAugmentsTag; /** @deprecated Use `factory.createJSDocEnumTag` or the factory supplied by your transformation context instead. */ - const createJSDocEnumTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray | undefined) => JSDocEnumTag; + const createJSDocEnumTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocEnumTag; /** @deprecated Use `factory.createJSDocTemplateTag` or the factory supplied by your transformation context instead. */ - const createJSDocTemplateTag: (tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray | undefined) => JSDocTemplateTag; + const createJSDocTemplateTag: (tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | undefined) => JSDocTemplateTag; /** @deprecated Use `factory.createJSDocTypedefTag` or the factory supplied by your transformation context instead. */ - const createJSDocTypedefTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeLiteral | JSDocTypeExpression | undefined, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | NodeArray | undefined) => JSDocTypedefTag; + const createJSDocTypedefTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeLiteral | JSDocTypeExpression | undefined, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | undefined) => JSDocTypedefTag; /** @deprecated Use `factory.createJSDocCallbackTag` or the factory supplied by your transformation context instead. */ - const createJSDocCallbackTag: (tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | NodeArray | undefined) => JSDocCallbackTag; + const createJSDocCallbackTag: (tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | undefined) => JSDocCallbackTag; /** @deprecated Use `factory.createJSDocSignature` or the factory supplied by your transformation context instead. */ const createJSDocSignature: (typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type?: JSDocReturnTag | undefined) => JSDocSignature; /** @deprecated Use `factory.createJSDocPropertyTag` or the factory supplied by your transformation context instead. */ - const createJSDocPropertyTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | NodeArray | undefined) => JSDocPropertyTag; + const createJSDocPropertyTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | undefined) => JSDocPropertyTag; /** @deprecated Use `factory.createJSDocTypeLiteral` or the factory supplied by your transformation context instead. */ const createJSDocTypeLiteral: (jsDocPropertyTags?: readonly JSDocPropertyLikeTag[] | undefined, isArrayType?: boolean | undefined) => JSDocTypeLiteral; /** @deprecated Use `factory.createJSDocImplementsTag` or the factory supplied by your transformation context instead. */ const createJSDocImplementsTag: (tagName: Identifier | undefined, className: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; - }, comment?: string | NodeArray | undefined) => JSDocImplementsTag; + }, comment?: string | undefined) => JSDocImplementsTag; /** @deprecated Use `factory.createJSDocAuthorTag` or the factory supplied by your transformation context instead. */ - const createJSDocAuthorTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocAuthorTag; + const createJSDocAuthorTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocAuthorTag; /** @deprecated Use `factory.createJSDocPublicTag` or the factory supplied by your transformation context instead. */ - const createJSDocPublicTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocPublicTag; + const createJSDocPublicTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocPublicTag; /** @deprecated Use `factory.createJSDocPrivateTag` or the factory supplied by your transformation context instead. */ - const createJSDocPrivateTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocPrivateTag; + const createJSDocPrivateTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocPrivateTag; /** @deprecated Use `factory.createJSDocProtectedTag` or the factory supplied by your transformation context instead. */ - const createJSDocProtectedTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocProtectedTag; + const createJSDocProtectedTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocProtectedTag; /** @deprecated Use `factory.createJSDocReadonlyTag` or the factory supplied by your transformation context instead. */ - const createJSDocReadonlyTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocReadonlyTag; + const createJSDocReadonlyTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocReadonlyTag; /** @deprecated Use `factory.createJSDocUnknownTag` or the factory supplied by your transformation context instead. */ - const createJSDocTag: (tagName: Identifier, comment?: string | NodeArray | undefined) => JSDocUnknownTag; + const createJSDocTag: (tagName: Identifier, comment?: string | undefined) => JSDocUnknownTag; /** @deprecated Use `factory.createJsxElement` or the factory supplied by your transformation context instead. */ const createJsxElement: (openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement) => JsxElement; /** @deprecated Use `factory.updateJsxElement` or the factory supplied by your transformation context instead. */ diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 992a333c9d26c..0ccf7cd1644ec 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -416,38 +416,36 @@ declare namespace ts { JSDocVariadicType = 309, JSDocNamepathType = 310, JSDocComment = 311, - JSDocText = 312, - JSDocTypeLiteral = 313, - JSDocSignature = 314, - JSDocLink = 315, - JSDocTag = 316, - JSDocAugmentsTag = 317, - JSDocImplementsTag = 318, - JSDocAuthorTag = 319, - JSDocDeprecatedTag = 320, - JSDocClassTag = 321, - JSDocPublicTag = 322, - JSDocPrivateTag = 323, - JSDocProtectedTag = 324, - JSDocReadonlyTag = 325, - JSDocCallbackTag = 326, - JSDocEnumTag = 327, - JSDocParameterTag = 328, - JSDocReturnTag = 329, - JSDocThisTag = 330, - JSDocTypeTag = 331, - JSDocTemplateTag = 332, - JSDocTypedefTag = 333, - JSDocSeeTag = 334, - JSDocPropertyTag = 335, - SyntaxList = 336, - NotEmittedStatement = 337, - PartiallyEmittedExpression = 338, - CommaListExpression = 339, - MergeDeclarationMarker = 340, - EndOfDeclarationMarker = 341, - SyntheticReferenceExpression = 342, - Count = 343, + JSDocTypeLiteral = 312, + JSDocSignature = 313, + JSDocTag = 314, + JSDocAugmentsTag = 315, + JSDocImplementsTag = 316, + JSDocAuthorTag = 317, + JSDocDeprecatedTag = 318, + JSDocClassTag = 319, + JSDocPublicTag = 320, + JSDocPrivateTag = 321, + JSDocProtectedTag = 322, + JSDocReadonlyTag = 323, + JSDocCallbackTag = 324, + JSDocEnumTag = 325, + JSDocParameterTag = 326, + JSDocReturnTag = 327, + JSDocThisTag = 328, + JSDocTypeTag = 329, + JSDocTemplateTag = 330, + JSDocTypedefTag = 331, + JSDocSeeTag = 332, + JSDocPropertyTag = 333, + SyntaxList = 334, + NotEmittedStatement = 335, + PartiallyEmittedExpression = 336, + CommaListExpression = 337, + MergeDeclarationMarker = 338, + EndOfDeclarationMarker = 339, + SyntheticReferenceExpression = 340, + Count = 341, FirstAssignment = 62, LastAssignment = 77, FirstCompoundAssignment = 63, @@ -476,9 +474,9 @@ declare namespace ts { LastStatement = 248, FirstNode = 157, FirstJSDocNode = 301, - LastJSDocNode = 335, - FirstJSDocTagNode = 316, - LastJSDocTagNode = 335, + LastJSDocNode = 333, + FirstJSDocTagNode = 314, + LastJSDocTagNode = 333, } export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia; export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; @@ -1745,21 +1743,12 @@ declare namespace ts { readonly kind: SyntaxKind.JSDocComment; readonly parent: HasJSDoc; readonly tags?: NodeArray; - readonly comment?: NodeArray; + readonly comment?: string; } export interface JSDocTag extends Node { readonly parent: JSDoc | JSDocTypeLiteral; readonly tagName: Identifier; - readonly comment?: NodeArray; - } - export interface JSDocLink extends Node { - readonly kind: SyntaxKind.JSDocLink; - readonly name?: EntityName; - text: string; - } - export interface JSDocText extends Node { - readonly kind: SyntaxKind.JSDocText; - text: string; + readonly comment?: string; } export interface JSDocUnknownTag extends JSDocTag { readonly kind: SyntaxKind.JSDocTag; @@ -3490,56 +3479,52 @@ declare namespace ts { updateJSDocTypeExpression(node: JSDocTypeExpression, type: TypeNode): JSDocTypeExpression; createJSDocNameReference(name: EntityName): JSDocNameReference; updateJSDocNameReference(node: JSDocNameReference, name: EntityName): JSDocNameReference; - createJSDocLink(name: EntityName | undefined, text: string): JSDocLink; - updateJSDocLink(node: JSDocLink, name: EntityName | undefined, text: string): JSDocLink; createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral; updateJSDocTypeLiteral(node: JSDocTypeLiteral, jsDocPropertyTags: readonly JSDocPropertyLikeTag[] | undefined, isArrayType: boolean | undefined): JSDocTypeLiteral; createJSDocSignature(typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type?: JSDocReturnTag): JSDocSignature; updateJSDocSignature(node: JSDocSignature, typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type: JSDocReturnTag | undefined): JSDocSignature; - createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray): JSDocTemplateTag; - updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | NodeArray | undefined): JSDocTemplateTag; - createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocTypedefTag; - updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocTypedefTag; - createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocParameterTag; - updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocParameterTag; - createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray): JSDocPropertyTag; - updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray | undefined): JSDocPropertyTag; - createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocTypeTag; - updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray | undefined): JSDocTypeTag; - createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag; - updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray): JSDocSeeTag; - createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string | NodeArray): JSDocReturnTag; - updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray | undefined): JSDocReturnTag; - createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocThisTag; - updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray | undefined): JSDocThisTag; - createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray): JSDocEnumTag; - updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray | undefined): JSDocEnumTag; - createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray): JSDocCallbackTag; - updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray | undefined): JSDocCallbackTag; - createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string | NodeArray): JSDocAugmentsTag; - updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | NodeArray | undefined): JSDocAugmentsTag; - createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string | NodeArray): JSDocImplementsTag; - updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | NodeArray | undefined): JSDocImplementsTag; - createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocAuthorTag; - updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocAuthorTag; - createJSDocClassTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocClassTag; - updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocClassTag; - createJSDocPublicTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocPublicTag; - updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocPublicTag; - createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocPrivateTag; - updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocPrivateTag; - createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocProtectedTag; - updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocProtectedTag; - createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string | NodeArray): JSDocReadonlyTag; - updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | NodeArray | undefined): JSDocReadonlyTag; - createJSDocUnknownTag(tagName: Identifier, comment?: string | NodeArray): JSDocUnknownTag; - updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | NodeArray | undefined): JSDocUnknownTag; - createJSDocDeprecatedTag(tagName: Identifier, comment?: string | NodeArray): JSDocDeprecatedTag; - updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string | NodeArray): JSDocDeprecatedTag; - createJSDocText(text: string): JSDocText; - updateJSDocText(node: JSDocText, text: string): JSDocText; - createJSDocComment(comment?: string | NodeArray | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc; - updateJSDocComment(node: JSDoc, comment: string | NodeArray | undefined, tags: readonly JSDocTag[] | undefined): JSDoc; + createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string): JSDocTemplateTag; + updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | undefined): JSDocTemplateTag; + createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocTypedefTag; + updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocTypedefTag; + createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocParameterTag; + updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocParameterTag; + createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocPropertyTag; + updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocPropertyTag; + createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocTypeTag; + updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocTypeTag; + createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag; + updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag; + createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string): JSDocReturnTag; + updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocReturnTag; + createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocThisTag; + updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocThisTag; + createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocEnumTag; + updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocEnumTag; + createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocCallbackTag; + updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocCallbackTag; + createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string): JSDocAugmentsTag; + updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | undefined): JSDocAugmentsTag; + createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag; + updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | undefined): JSDocImplementsTag; + createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string): JSDocAuthorTag; + updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | undefined): JSDocAuthorTag; + createJSDocClassTag(tagName: Identifier | undefined, comment?: string): JSDocClassTag; + updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | undefined): JSDocClassTag; + createJSDocPublicTag(tagName: Identifier | undefined, comment?: string): JSDocPublicTag; + updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPublicTag; + createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string): JSDocPrivateTag; + updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPrivateTag; + createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string): JSDocProtectedTag; + updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | undefined): JSDocProtectedTag; + createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string): JSDocReadonlyTag; + updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | undefined): JSDocReadonlyTag; + createJSDocUnknownTag(tagName: Identifier, comment?: string): JSDocUnknownTag; + updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | undefined): JSDocUnknownTag; + createJSDocDeprecatedTag(tagName: Identifier, comment?: string): JSDocDeprecatedTag; + updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string): JSDocDeprecatedTag; + createJSDocComment(comment?: string | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc; + updateJSDocComment(node: JSDoc, comment: string | undefined, tags: readonly JSDocTag[] | undefined): JSDoc; createJsxElement(openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement; createJsxSelfClosingElement(tagName: JsxTagNameExpression, typeArguments: readonly TypeNode[] | undefined, attributes: JsxAttributes): JsxSelfClosingElement; @@ -4222,8 +4207,6 @@ declare namespace ts { function getAllJSDocTags(node: Node, predicate: (tag: JSDocTag) => tag is T): readonly T[]; /** Gets all JSDoc tags of a specified kind */ function getAllJSDocTagsOfKind(node: Node, kind: SyntaxKind): readonly JSDocTag[]; - /** Gets the text of a jsdoc comment, flattening links to their text. */ - function getTextOfJSDocComment(comment?: NodeArray): string | undefined; /** * Gets the effective type parameters. If the node was parsed in a * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. @@ -4543,7 +4526,6 @@ declare namespace ts { function isUnparsedSource(node: Node): node is UnparsedSource; function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression; function isJSDocNameReference(node: Node): node is JSDocNameReference; - function isJSDocLink(node: Node): node is JSDocLink; function isJSDocAllType(node: Node): node is JSDocAllType; function isJSDocUnknownType(node: Node): node is JSDocUnknownType; function isJSDocNullableType(node: Node): node is JSDocNullableType; @@ -5347,7 +5329,7 @@ declare namespace ts { getName(): string; getDeclarations(): Declaration[] | undefined; getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; - getJsDocTags(checker?: TypeChecker): JSDocTagInfo[]; + getJsDocTags(): JSDocTagInfo[]; } interface Type { getFlags(): TypeFlags; @@ -6039,21 +6021,15 @@ declare namespace ts { typeParameterName = 18, enumMemberName = 19, functionName = 20, - regularExpressionLiteral = 21, - link = 22, - linkName = 23, - linkText = 24 + regularExpressionLiteral = 21 } interface SymbolDisplayPart { text: string; kind: string; } - interface JSDocLinkDisplayPart extends SymbolDisplayPart { - target: DocumentSpan; - } interface JSDocTagInfo { name: string; - text?: SymbolDisplayPart[]; + text?: string; } interface QuickInfo { kind: ScriptElementKind; @@ -6342,13 +6318,7 @@ declare namespace ts { */ jsxAttribute = "JSX attribute", /** String literal */ - string = "string", - /** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */ - link = "link", - /** Jsdoc @link: in `{@link C link text}`, the entity name "C" */ - linkName = "link name", - /** Jsdoc @link: in `{@link C link text}`, the link text "link text" */ - linkText = "link text" + string = "string" } enum ScriptElementKindModifier { none = "", @@ -7009,51 +6979,51 @@ declare namespace ts { /** @deprecated Use `factory.createJSDocTypeExpression` or the factory supplied by your transformation context instead. */ const createJSDocTypeExpression: (type: TypeNode) => JSDocTypeExpression; /** @deprecated Use `factory.createJSDocTypeTag` or the factory supplied by your transformation context instead. */ - const createJSDocTypeTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray | undefined) => JSDocTypeTag; + const createJSDocTypeTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocTypeTag; /** @deprecated Use `factory.createJSDocReturnTag` or the factory supplied by your transformation context instead. */ - const createJSDocReturnTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | undefined, comment?: string | NodeArray | undefined) => JSDocReturnTag; + const createJSDocReturnTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | undefined, comment?: string | undefined) => JSDocReturnTag; /** @deprecated Use `factory.createJSDocThisTag` or the factory supplied by your transformation context instead. */ - const createJSDocThisTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray | undefined) => JSDocThisTag; + const createJSDocThisTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocThisTag; /** @deprecated Use `factory.createJSDocComment` or the factory supplied by your transformation context instead. */ - const createJSDocComment: (comment?: string | NodeArray | undefined, tags?: readonly JSDocTag[] | undefined) => JSDoc; + const createJSDocComment: (comment?: string | undefined, tags?: readonly JSDocTag[] | undefined) => JSDoc; /** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */ - const createJSDocParameterTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | NodeArray | undefined) => JSDocParameterTag; + const createJSDocParameterTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | undefined) => JSDocParameterTag; /** @deprecated Use `factory.createJSDocClassTag` or the factory supplied by your transformation context instead. */ - const createJSDocClassTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocClassTag; + const createJSDocClassTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocClassTag; /** @deprecated Use `factory.createJSDocAugmentsTag` or the factory supplied by your transformation context instead. */ const createJSDocAugmentsTag: (tagName: Identifier | undefined, className: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; - }, comment?: string | NodeArray | undefined) => JSDocAugmentsTag; + }, comment?: string | undefined) => JSDocAugmentsTag; /** @deprecated Use `factory.createJSDocEnumTag` or the factory supplied by your transformation context instead. */ - const createJSDocEnumTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray | undefined) => JSDocEnumTag; + const createJSDocEnumTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocEnumTag; /** @deprecated Use `factory.createJSDocTemplateTag` or the factory supplied by your transformation context instead. */ - const createJSDocTemplateTag: (tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray | undefined) => JSDocTemplateTag; + const createJSDocTemplateTag: (tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | undefined) => JSDocTemplateTag; /** @deprecated Use `factory.createJSDocTypedefTag` or the factory supplied by your transformation context instead. */ - const createJSDocTypedefTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeLiteral | JSDocTypeExpression | undefined, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | NodeArray | undefined) => JSDocTypedefTag; + const createJSDocTypedefTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeLiteral | JSDocTypeExpression | undefined, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | undefined) => JSDocTypedefTag; /** @deprecated Use `factory.createJSDocCallbackTag` or the factory supplied by your transformation context instead. */ - const createJSDocCallbackTag: (tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | NodeArray | undefined) => JSDocCallbackTag; + const createJSDocCallbackTag: (tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | undefined) => JSDocCallbackTag; /** @deprecated Use `factory.createJSDocSignature` or the factory supplied by your transformation context instead. */ const createJSDocSignature: (typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type?: JSDocReturnTag | undefined) => JSDocSignature; /** @deprecated Use `factory.createJSDocPropertyTag` or the factory supplied by your transformation context instead. */ - const createJSDocPropertyTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | NodeArray | undefined) => JSDocPropertyTag; + const createJSDocPropertyTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | undefined) => JSDocPropertyTag; /** @deprecated Use `factory.createJSDocTypeLiteral` or the factory supplied by your transformation context instead. */ const createJSDocTypeLiteral: (jsDocPropertyTags?: readonly JSDocPropertyLikeTag[] | undefined, isArrayType?: boolean | undefined) => JSDocTypeLiteral; /** @deprecated Use `factory.createJSDocImplementsTag` or the factory supplied by your transformation context instead. */ const createJSDocImplementsTag: (tagName: Identifier | undefined, className: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; - }, comment?: string | NodeArray | undefined) => JSDocImplementsTag; + }, comment?: string | undefined) => JSDocImplementsTag; /** @deprecated Use `factory.createJSDocAuthorTag` or the factory supplied by your transformation context instead. */ - const createJSDocAuthorTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocAuthorTag; + const createJSDocAuthorTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocAuthorTag; /** @deprecated Use `factory.createJSDocPublicTag` or the factory supplied by your transformation context instead. */ - const createJSDocPublicTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocPublicTag; + const createJSDocPublicTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocPublicTag; /** @deprecated Use `factory.createJSDocPrivateTag` or the factory supplied by your transformation context instead. */ - const createJSDocPrivateTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocPrivateTag; + const createJSDocPrivateTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocPrivateTag; /** @deprecated Use `factory.createJSDocProtectedTag` or the factory supplied by your transformation context instead. */ - const createJSDocProtectedTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocProtectedTag; + const createJSDocProtectedTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocProtectedTag; /** @deprecated Use `factory.createJSDocReadonlyTag` or the factory supplied by your transformation context instead. */ - const createJSDocReadonlyTag: (tagName: Identifier | undefined, comment?: string | NodeArray | undefined) => JSDocReadonlyTag; + const createJSDocReadonlyTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocReadonlyTag; /** @deprecated Use `factory.createJSDocUnknownTag` or the factory supplied by your transformation context instead. */ - const createJSDocTag: (tagName: Identifier, comment?: string | NodeArray | undefined) => JSDocUnknownTag; + const createJSDocTag: (tagName: Identifier, comment?: string | undefined) => JSDocUnknownTag; /** @deprecated Use `factory.createJsxElement` or the factory supplied by your transformation context instead. */ const createJsxElement: (openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement) => JsxElement; /** @deprecated Use `factory.updateJsxElement` or the factory supplied by your transformation context instead. */ diff --git a/tests/baselines/reference/completionEntryForUnionMethod.baseline b/tests/baselines/reference/completionEntryForUnionMethod.baseline deleted file mode 100644 index ce000ec6ddbcb..0000000000000 --- a/tests/baselines/reference/completionEntryForUnionMethod.baseline +++ /dev/null @@ -1,6133 +0,0 @@ -[ - { - "marker": { - "fileName": "/tests/cases/fourslash/completionEntryForUnionMethod.ts", - "position": 41, - "name": "" - }, - "completionList": { - "isGlobalCompletion": false, - "isMemberCompletion": true, - "isNewIdentifierLocation": false, - "optionalReplacementSpan": { - "start": 38, - "length": 3 - }, - "entries": [ - { - "name": "length", - "kind": "property", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "property", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "length", - "kind": "propertyName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Gets or sets the length of the array. This is a number one higher than the highest index in the array.", - "kind": "text" - } - ] - }, - { - "name": "toString", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "toString", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Returns a string representation of an array.", - "kind": "text" - } - ] - }, - { - "name": "toLocaleString", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "toLocaleString", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Returns a string representation of an array. The elements are converted to string using their toLocalString methods.", - "kind": "text" - } - ] - }, - { - "name": "pop", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "pop", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Removes the last element from an array and returns it.\r\nIf the array is empty, undefined is returned and the array is not modified.", - "kind": "text" - } - ] - }, - { - "name": "push", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "push", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "items", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "never", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Appends new elements to the end of an array, and returns the new length of the array.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "items", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "New elements to add to the array.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "concat", - "kind": "property", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "property", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "concat", - "kind": "propertyName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "...", - "kind": "punctuation" - }, - { - "text": "items", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ConcatArray", - "kind": "interfaceName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "...", - "kind": "punctuation" - }, - { - "text": "items", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ConcatArray", - "kind": "interfaceName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "...", - "kind": "punctuation" - }, - { - "text": "items", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ConcatArray", - "kind": "interfaceName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "...", - "kind": "punctuation" - }, - { - "text": "items", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ConcatArray", - "kind": "interfaceName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "...", - "kind": "text" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Combines two or more arrays.\r\nThis method returns a new array without modifying any existing arrays.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "items", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Additional arrays and/or items to add to the end of the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "items", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Additional arrays and/or items to add to the end of the array.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "join", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "join", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "separator", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Adds all the elements of an array into a string, separated by the specified separator string.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "separator", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "reverse", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "reverse", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Reverses the elements in an array in place.\r\nThis method mutates the array and returns a reference to the same array.", - "kind": "text" - } - ] - }, - { - "name": "shift", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "shift", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Removes the first element from an array and returns it.\r\nIf the array is empty, undefined is returned and the array is not modified.", - "kind": "text" - } - ] - }, - { - "name": "slice", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "slice", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "start", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "end", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Returns a copy of a section of an array.\r\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\r\nFor example, -2 refers to the second to last element of the array.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "start", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The beginning index of the specified portion of the array.\r\nIf start is undefined, then the slice begins at index 0.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "end", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\r\nIf end is undefined, then the slice extends to the end of the array.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "sort", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "sort", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "compareFn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "a", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "b", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "&", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "a", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "b", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Sorts an array in place.\r\nThis method mutates the array and returns a reference to the same array.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "compareFn", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Function used to determine the order of the elements. It is expected to return\r\na negative value if first argument is less than second argument, zero if they're equal and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```", - "kind": "text" - } - ] - } - ] - }, - { - "name": "splice", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "splice", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "start", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "deleteCount", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "+", - "kind": "operator" - }, - { - "text": "2", - "kind": "numericLiteral" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "overloads", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "start", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The zero-based location in the array from which to start removing elements.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "deleteCount", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The number of elements to remove.", - "kind": "text" - } - ] - }, - { - "name": "returns", - "text": [ - { - "text": "An array containing the elements that were deleted.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "unshift", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "unshift", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "items", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "never", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Inserts new elements at the start of an array, and returns the new length of the array.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "items", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Elements to insert at the start of the array.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "indexOf", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "indexOf", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "searchElement", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "never", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "fromIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Returns the index of the first occurrence of a value in an array, or -1 if it is not present.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "searchElement", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The value to locate in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "fromIndex", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "lastIndexOf", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "lastIndexOf", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "searchElement", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "never", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "fromIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "searchElement", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The value to locate in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "fromIndex", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "every", - "kind": "property", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "property", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "every", - "kind": "propertyName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "S", - "kind": "typeParameterName" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "extends", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "predicate", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "value", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "S", - "kind": "typeParameterName" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "thisArg", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "S", - "kind": "typeParameterName" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "predicate", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "thisArg", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "boolean", - "kind": "keyword" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "...", - "kind": "propertyName" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Determines whether all the members of an array satisfy the specified test.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "predicate", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "predicate", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "some", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "some", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "predicate", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "&", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "thisArg", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "boolean", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Determines whether the specified callback function returns true for any element of an array.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "predicate", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The some method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value true, or until the end of the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "forEach", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "forEach", - "kind": "propertyName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "void", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "&", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "void", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "thisArg", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "void", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "Performs the specified action for each element in an array.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "callbackfn", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "map", - "kind": "method", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "method", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "map", - "kind": "propertyName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "&", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "thisArg", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Calls a defined callback function on each element of an array, and returns an array that contains the results.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "callbackfn", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "filter", - "kind": "property", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "property", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "filter", - "kind": "propertyName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "S", - "kind": "typeParameterName" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "extends", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "predicate", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "value", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "S", - "kind": "typeParameterName" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "thisArg", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "S", - "kind": "typeParameterName" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "predicate", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "value", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "index", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "unknown", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "thisArg", - "kind": "parameterName" - }, - { - "text": "?", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "...", - "kind": "propertyName" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Returns the elements of an array that meet the condition specified in a callback function.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "predicate", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "predicate", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "reduce", - "kind": "property", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "property", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "reduce", - "kind": "propertyName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "previousValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "previousValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "initialValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "previousValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "initialValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "...", - "kind": "propertyName" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "callbackfn", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "initialValue", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "callbackfn", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "initialValue", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.", - "kind": "text" - } - ] - } - ] - }, - { - "name": "reduceRight", - "kind": "property", - "kindModifiers": "declare", - "sortText": "1", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "property", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Array", - "kind": "localName" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "T", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "reduceRight", - "kind": "propertyName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "previousValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "previousValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "initialValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "<", - "kind": "punctuation" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ">", - "kind": "punctuation" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "callbackfn", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "previousValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "currentIndex", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "array", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": "[", - "kind": "punctuation" - }, - { - "text": "]", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "=>", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "initialValue", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "U", - "kind": "typeParameterName" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "...", - "kind": "propertyName" - }, - { - "text": ";", - "kind": "punctuation" - }, - { - "text": "\n", - "kind": "lineBreak" - }, - { - "text": "}", - "kind": "punctuation" - } - ], - "documentation": [ - { - "text": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.", - "kind": "text" - } - ], - "tags": [ - { - "name": "param", - "text": [ - { - "text": "callbackfn", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "initialValue", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "callbackfn", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "initialValue", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.", - "kind": "text" - } - ] - } - ] - } - ] - } - } -] \ No newline at end of file diff --git a/tests/baselines/reference/completionsCommentsClass.baseline b/tests/baselines/reference/completionsCommentsClass.baseline index f971b3ca6153a..8348d644b7f3f 100644 --- a/tests/baselines/reference/completionsCommentsClass.baseline +++ b/tests/baselines/reference/completionsCommentsClass.baseline @@ -95,20 +95,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -204,37 +191,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -302,20 +263,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -383,20 +331,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -464,20 +399,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -545,20 +467,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -626,20 +535,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -707,20 +603,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -820,20 +703,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -901,20 +771,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -982,20 +839,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, diff --git a/tests/baselines/reference/completionsCommentsClassMembers.baseline b/tests/baselines/reference/completionsCommentsClassMembers.baseline index b4a228a035f69..f5ab0284565e8 100644 --- a/tests/baselines/reference/completionsCommentsClassMembers.baseline +++ b/tests/baselines/reference/completionsCommentsClassMembers.baseline @@ -9034,20 +9034,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -9143,37 +9130,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -9241,20 +9202,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -9322,20 +9270,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -9403,20 +9338,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -9484,20 +9406,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -9565,20 +9474,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -9646,20 +9542,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -9759,20 +9642,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -9840,20 +9710,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -9921,20 +9778,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -14180,20 +14024,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -14289,37 +14120,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -14387,20 +14192,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -14468,20 +14260,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -14549,20 +14328,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -14630,20 +14396,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -14711,20 +14464,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -14792,20 +14532,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -14905,20 +14632,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -14986,20 +14700,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -15067,20 +14768,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -22734,20 +22422,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -22843,37 +22518,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -22941,20 +22590,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -23022,20 +22658,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -23103,20 +22726,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -23184,20 +22794,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -23265,20 +22862,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -23346,20 +22930,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -23459,20 +23030,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -23540,20 +23098,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -23621,20 +23166,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -26740,20 +26272,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -26849,37 +26368,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -26947,20 +26440,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -27028,20 +26508,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -27109,20 +26576,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -27190,20 +26644,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -27271,20 +26712,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -27352,20 +26780,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -27465,20 +26880,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -27546,20 +26948,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -27627,20 +27016,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -30746,20 +30122,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -30855,37 +30218,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -30953,20 +30290,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -31034,20 +30358,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -31115,20 +30426,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -31196,20 +30494,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -31277,20 +30562,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -31358,20 +30630,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -31471,20 +30730,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -31552,20 +30798,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -31633,20 +30866,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -34752,20 +33972,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -34861,37 +34068,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -34959,20 +34140,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -35040,20 +34208,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -35121,20 +34276,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -35202,20 +34344,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -35283,20 +34412,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -35364,20 +34480,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -35477,20 +34580,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -35558,20 +34648,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -35639,20 +34716,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -38758,20 +37822,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -38867,37 +37918,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -38965,20 +37990,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -39046,20 +38058,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -39127,20 +38126,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -39208,20 +38194,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -39289,20 +38262,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -39370,20 +38330,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -39483,20 +38430,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -39564,20 +38498,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -39645,20 +38566,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -42764,20 +41672,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -42873,37 +41768,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -42971,20 +41840,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -43052,20 +41908,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -43133,20 +41976,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -43214,20 +42044,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -43295,20 +42112,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -43376,20 +42180,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -43489,20 +42280,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -43570,20 +42348,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -43651,20 +42416,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -50170,20 +48922,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is first parameter a", - "kind": "text" - } - ] + "text": "a this is first parameter a" } ] } diff --git a/tests/baselines/reference/completionsCommentsCommentParsing.baseline b/tests/baselines/reference/completionsCommentsCommentParsing.baseline index b077103c369bb..ebc1f3ab60986 100644 --- a/tests/baselines/reference/completionsCommentsCommentParsing.baseline +++ b/tests/baselines/reference/completionsCommentsCommentParsing.baseline @@ -95,20 +95,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -204,37 +191,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -302,20 +263,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -383,20 +331,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -464,20 +399,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -545,20 +467,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -626,20 +535,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -707,20 +603,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -820,20 +703,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -901,20 +771,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -982,20 +839,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -3262,37 +3106,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] }, @@ -3468,76 +3286,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -3636,20 +3408,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -3933,97 +3692,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": "" + }, + { + "name": "param", + "text": "b this is about b" + }, + { + "name": "param", + "text": "c this is optional param c" + }, + { + "name": "param", + "text": "d this is optional param d" + }, + { + "name": "param", + "text": "e this is optional param e" + }, + { + "name": "param", + "text": " { () => string; } } f this is optional param f" } ] }, @@ -4091,38 +3780,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" + }, + { + "name": "param", + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] }, @@ -4214,46 +3880,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] }, @@ -4345,37 +3980,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] }, @@ -4515,37 +4124,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] }, @@ -4753,54 +4336,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" + }, + { + "name": "param", + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" + }, + { + "name": "param", + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] }, @@ -5787,20 +5331,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -5896,37 +5427,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -5994,20 +5499,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -6075,20 +5567,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -6156,20 +5635,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -6237,20 +5703,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -6318,20 +5771,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -6399,20 +5839,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -6512,20 +5939,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -6593,20 +6007,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -6674,20 +6075,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -9921,37 +9309,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] }, @@ -10127,76 +9489,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -10295,20 +9611,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -10592,97 +9895,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": "" + }, + { + "name": "param", + "text": "b this is about b" + }, + { + "name": "param", + "text": "c this is optional param c" + }, + { + "name": "param", + "text": "d this is optional param d" + }, + { + "name": "param", + "text": "e this is optional param e" + }, + { + "name": "param", + "text": " { () => string; } } f this is optional param f" } ] }, @@ -10750,38 +9983,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" + }, + { + "name": "param", + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] }, @@ -10873,46 +10083,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] }, @@ -11004,37 +10183,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] }, @@ -11174,37 +10327,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] }, @@ -11412,54 +10539,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" + }, + { + "name": "param", + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" + }, + { + "name": "param", + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] }, @@ -12212,20 +11300,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -12321,37 +11396,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -12419,20 +11468,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -12500,20 +11536,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -12581,20 +11604,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -12662,20 +11672,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -12743,20 +11740,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -12824,20 +11808,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -12937,20 +11908,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -13018,20 +11976,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -13099,20 +12044,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -15379,37 +14311,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] }, @@ -15585,76 +14491,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -15753,20 +14613,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -16050,97 +14897,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": "" + }, + { + "name": "param", + "text": "b this is about b" + }, + { + "name": "param", + "text": "c this is optional param c" + }, + { + "name": "param", + "text": "d this is optional param d" + }, + { + "name": "param", + "text": "e this is optional param e" + }, + { + "name": "param", + "text": " { () => string; } } f this is optional param f" } ] }, @@ -16208,38 +14985,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" + }, + { + "name": "param", + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] }, @@ -16331,46 +15085,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] }, @@ -16462,37 +15185,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] }, @@ -16632,37 +15329,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] }, @@ -16870,54 +15541,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" + }, + { + "name": "param", + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" + }, + { + "name": "param", + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] }, @@ -17688,20 +16320,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -17797,37 +16416,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -17895,20 +16488,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -17976,20 +16556,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -18057,20 +16624,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -18138,20 +16692,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -18219,20 +16760,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -18300,20 +16828,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -18413,20 +16928,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -18494,20 +16996,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -18575,20 +17064,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -20855,37 +19331,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] }, @@ -21061,76 +19511,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -21229,20 +19633,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -21526,97 +19917,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": "" + }, + { + "name": "param", + "text": "b this is about b" + }, + { + "name": "param", + "text": "c this is optional param c" + }, + { + "name": "param", + "text": "d this is optional param d" + }, + { + "name": "param", + "text": "e this is optional param e" + }, + { + "name": "param", + "text": " { () => string; } } f this is optional param f" } ] }, @@ -21684,38 +20005,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" + }, + { + "name": "param", + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] }, @@ -21807,46 +20105,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] }, @@ -21938,37 +20205,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] }, @@ -22108,37 +20349,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] }, @@ -22346,54 +20561,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" + }, + { + "name": "param", + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" + }, + { + "name": "param", + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] }, @@ -23142,20 +21318,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -23251,37 +21414,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -23349,20 +21486,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -23430,20 +21554,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -23511,20 +21622,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -23592,20 +21690,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -23673,20 +21758,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -23754,20 +21826,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -23867,20 +21926,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -23948,20 +21994,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -24029,20 +22062,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -26309,37 +24329,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] }, @@ -26515,76 +24509,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -26683,20 +24631,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -26980,97 +24915,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": "" + }, + { + "name": "param", + "text": "b this is about b" + }, + { + "name": "param", + "text": "c this is optional param c" + }, + { + "name": "param", + "text": "d this is optional param d" + }, + { + "name": "param", + "text": "e this is optional param e" + }, + { + "name": "param", + "text": " { () => string; } } f this is optional param f" } ] }, @@ -27138,38 +25003,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" + }, + { + "name": "param", + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] }, @@ -27261,46 +25103,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] }, @@ -27392,37 +25203,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] }, @@ -27562,37 +25347,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] }, @@ -27800,54 +25559,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" + }, + { + "name": "param", + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" + }, + { + "name": "param", + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] }, @@ -28846,20 +26566,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -28955,37 +26662,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -29053,20 +26734,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -29134,20 +26802,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -29215,20 +26870,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -29296,20 +26938,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -29377,20 +27006,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -29458,20 +27074,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -29571,20 +27174,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -29652,20 +27242,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -29733,20 +27310,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -32980,37 +30544,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] }, @@ -33186,76 +30724,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -33354,20 +30846,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -33651,97 +31130,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": "" + }, + { + "name": "param", + "text": "b this is about b" + }, + { + "name": "param", + "text": "c this is optional param c" + }, + { + "name": "param", + "text": "d this is optional param d" + }, + { + "name": "param", + "text": "e this is optional param e" + }, + { + "name": "param", + "text": " { () => string; } } f this is optional param f" } ] }, @@ -33809,38 +31218,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" + }, + { + "name": "param", + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] }, @@ -33932,46 +31318,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] }, @@ -34063,37 +31418,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] }, @@ -34233,37 +31562,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] }, @@ -34471,54 +31774,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" + }, + { + "name": "param", + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" + }, + { + "name": "param", + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] }, @@ -35271,20 +32535,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -35380,37 +32631,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -35478,20 +32703,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -35559,20 +32771,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -35640,20 +32839,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -35721,20 +32907,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -35802,20 +32975,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -35883,20 +33043,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -35996,20 +33143,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -36077,20 +33211,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -36158,20 +33279,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -38438,37 +35546,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] }, @@ -38644,76 +35726,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -38812,20 +35848,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -39109,97 +36132,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": "" + }, + { + "name": "param", + "text": "b this is about b" + }, + { + "name": "param", + "text": "c this is optional param c" + }, + { + "name": "param", + "text": "d this is optional param d" + }, + { + "name": "param", + "text": "e this is optional param e" + }, + { + "name": "param", + "text": " { () => string; } } f this is optional param f" } ] }, @@ -39267,38 +36220,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" + }, + { + "name": "param", + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] }, @@ -39390,46 +36320,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] }, @@ -39521,37 +36420,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] }, @@ -39691,37 +36564,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] }, @@ -39929,54 +36776,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] - }, - { - "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" + }, + { + "name": "param", + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" + }, + { + "name": "param", + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] }, diff --git a/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline b/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline index 155d0d1898978..81d93102a3209 100644 --- a/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline +++ b/tests/baselines/reference/completionsCommentsFunctionDeclaration.baseline @@ -95,20 +95,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -204,37 +191,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -302,20 +263,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -383,20 +331,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -464,20 +399,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -545,20 +467,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -626,20 +535,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -707,20 +603,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -820,20 +703,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -901,20 +771,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -982,20 +839,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -3718,20 +3562,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "a string", - "kind": "text" - } - ] + "text": "a a string" } ] }, @@ -4603,20 +4434,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -4712,37 +4530,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -4810,20 +4602,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -4891,20 +4670,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -4972,20 +4738,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -5053,20 +4806,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -5134,20 +4874,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -5215,20 +4942,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -5328,20 +5042,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -5409,20 +5110,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -5490,20 +5178,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -7259,20 +6934,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "a string", - "kind": "text" - } - ] + "text": "a a string" } ] }, @@ -7946,20 +7608,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -8055,37 +7704,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -8153,20 +7776,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -8234,20 +7844,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -8315,20 +7912,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -8396,20 +7980,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -8477,20 +8048,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -8558,20 +8116,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -8671,20 +8216,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -8752,20 +8284,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -8833,20 +8352,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -11569,20 +11075,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "a string", - "kind": "text" - } - ] + "text": "a a string" } ] }, diff --git a/tests/baselines/reference/completionsCommentsFunctionExpression.baseline b/tests/baselines/reference/completionsCommentsFunctionExpression.baseline index 2133879693c86..bc2ddeff0c2cf 100644 --- a/tests/baselines/reference/completionsCommentsFunctionExpression.baseline +++ b/tests/baselines/reference/completionsCommentsFunctionExpression.baseline @@ -95,20 +95,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -204,37 +191,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -302,20 +263,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -383,20 +331,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -464,20 +399,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -545,20 +467,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -626,20 +535,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -707,20 +603,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -820,20 +703,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -901,20 +771,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -982,20 +839,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -2900,55 +2744,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "param on expression", - "kind": "text" - } - ] + "text": "s param on expression" }, { "name": "returns", - "text": [ - { - "text": "return on expression", - "kind": "text" - } - ] + "text": "return on expression" }, { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "the first parameter!", - "kind": "text" - } - ] + "text": "s the first parameter!" }, { "name": "returns", - "text": [ - { - "text": "the parameter's length", - "kind": "text" - } - ] + "text": "the parameter's length" } ] }, @@ -3832,20 +3640,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -3941,37 +3736,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -4039,20 +3808,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -4120,20 +3876,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -4201,20 +3944,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -4282,20 +4012,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -4363,20 +4080,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -4444,20 +4148,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -4557,20 +4248,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -4638,20 +4316,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -4719,20 +4384,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -7604,55 +7256,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "param on expression", - "kind": "text" - } - ] + "text": "s param on expression" }, { "name": "returns", - "text": [ - { - "text": "return on expression", - "kind": "text" - } - ] + "text": "return on expression" }, { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "the first parameter!", - "kind": "text" - } - ] + "text": "s the first parameter!" }, { "name": "returns", - "text": [ - { - "text": "the parameter's length", - "kind": "text" - } - ] + "text": "the parameter's length" } ] }, @@ -8524,20 +8140,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -8633,37 +8236,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -8731,20 +8308,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -8812,20 +8376,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -8893,20 +8444,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -8974,20 +8512,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -9055,20 +8580,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -9136,20 +8648,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -9249,20 +8748,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -9330,20 +8816,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -9411,20 +8884,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -11329,55 +10789,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "param on expression", - "kind": "text" - } - ] + "text": "s param on expression" }, { "name": "returns", - "text": [ - { - "text": "return on expression", - "kind": "text" - } - ] + "text": "return on expression" }, { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "the first parameter!", - "kind": "text" - } - ] + "text": "s the first parameter!" }, { "name": "returns", - "text": [ - { - "text": "the parameter's length", - "kind": "text" - } - ] + "text": "the parameter's length" } ] }, @@ -12261,20 +11685,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] }, @@ -12370,37 +11781,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string to convert into a number.", - "kind": "text" - } - ] + "text": "string A string to convert into a number." }, { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal.", - "kind": "text" - } - ] + "text": "radix A value between 2 and 36 that specifies the base of the number in `string`.\r\nIf this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r\nAll other strings are considered decimal." } ] }, @@ -12468,20 +11853,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string that contains a floating-point number.", - "kind": "text" - } - ] + "text": "string A string that contains a floating-point number." } ] }, @@ -12549,20 +11921,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A numeric value.", - "kind": "text" - } - ] + "text": "number A numeric value." } ] }, @@ -12630,20 +11989,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "number", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Any numeric value.", - "kind": "text" - } - ] + "text": "number Any numeric value." } ] }, @@ -12711,20 +12057,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURI", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "encodedURI A value representing an encoded URI." } ] }, @@ -12792,20 +12125,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "encodedURIComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "encodedURIComponent A value representing an encoded URI component." } ] }, @@ -12873,20 +12193,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uri", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI.", - "kind": "text" - } - ] + "text": "uri A value representing an encoded URI." } ] }, @@ -12986,20 +12293,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "uriComponent", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value representing an encoded URI component.", - "kind": "text" - } - ] + "text": "uriComponent A value representing an encoded URI component." } ] }, @@ -13067,20 +12361,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -13148,20 +12429,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "string", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string value", - "kind": "text" - } - ] + "text": "string A string value" } ] }, @@ -16033,55 +15301,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "param on expression", - "kind": "text" - } - ] + "text": "s param on expression" }, { "name": "returns", - "text": [ - { - "text": "return on expression", - "kind": "text" - } - ] + "text": "return on expression" }, { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "the first parameter!", - "kind": "text" - } - ] + "text": "s the first parameter!" }, { "name": "returns", - "text": [ - { - "text": "the parameter's length", - "kind": "text" - } - ] + "text": "the parameter's length" } ] }, diff --git a/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline b/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline index 01c7bdd2ea960..2f79cc777318f 100644 --- a/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline +++ b/tests/baselines/reference/completionsSalsaMethodsOnAssignedFunctionExpressions.baseline @@ -405,20 +405,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Parameter definition.", - "kind": "text" - } - ] + "text": "a Parameter definition." } ] }, diff --git a/tests/baselines/reference/enumTagCircularReference.errors.txt b/tests/baselines/reference/enumTagCircularReference.errors.txt index 891434394f377..f42be3719f9af 100644 --- a/tests/baselines/reference/enumTagCircularReference.errors.txt +++ b/tests/baselines/reference/enumTagCircularReference.errors.txt @@ -3,7 +3,7 @@ tests/cases/conformance/jsdoc/bug27142.js(1,5): error TS2456: Type alias 'E' cir ==== tests/cases/conformance/jsdoc/bug27142.js (1 errors) ==== /** @enum {E} */ - ~~~~~~~~~~ + ~~~~~~~~~ !!! error TS2456: Type alias 'E' circularly references itself. const E = { x: 0 }; \ No newline at end of file diff --git a/tests/baselines/reference/findAllRefs_importType_js.1.baseline.jsonc b/tests/baselines/reference/findAllRefs_importType_js.1.baseline.jsonc index 072f0ac1ab936..e8b02bb4811b7 100644 --- a/tests/baselines/reference/findAllRefs_importType_js.1.baseline.jsonc +++ b/tests/baselines/reference/findAllRefs_importType_js.1.baseline.jsonc @@ -142,7 +142,7 @@ "fileName": "/b.js", "contextSpan": { "start": 4, - "length": 22 + "length": 21 }, "isWriteAccess": false, "isDefinition": false diff --git a/tests/baselines/reference/findAllRefs_importType_js.baseline.jsonc b/tests/baselines/reference/findAllRefs_importType_js.baseline.jsonc index 0f7a7aefb2b52..f87ee79a297ce 100644 --- a/tests/baselines/reference/findAllRefs_importType_js.baseline.jsonc +++ b/tests/baselines/reference/findAllRefs_importType_js.baseline.jsonc @@ -44,7 +44,7 @@ "fileName": "/b.js", "contextSpan": { "start": 4, - "length": 22 + "length": 21 }, "isWriteAccess": false, "isDefinition": false @@ -57,7 +57,7 @@ "fileName": "/b.js", "contextSpan": { "start": 46, - "length": 24 + "length": 23 }, "isWriteAccess": false, "isDefinition": false diff --git a/tests/baselines/reference/jsDeclarationsParameterTagReusesInputNodeInEmit1.errors.txt b/tests/baselines/reference/jsDeclarationsParameterTagReusesInputNodeInEmit1.errors.txt index 6d2f34fcc5847..882a221dfef9a 100644 --- a/tests/baselines/reference/jsDeclarationsParameterTagReusesInputNodeInEmit1.errors.txt +++ b/tests/baselines/reference/jsDeclarationsParameterTagReusesInputNodeInEmit1.errors.txt @@ -18,7 +18,7 @@ tests/cases/conformance/jsdoc/declarations/file.js(6,5): error TS4084: Exported ==== tests/cases/conformance/jsdoc/declarations/file.js (3 errors) ==== /** @typedef {import('./base')} BaseFactory */ - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS4084: Exported type alias 'BaseFactory' has or is using private name 'Base' from module "tests/cases/conformance/jsdoc/declarations/base". /** * @callback BaseFactoryFactory @@ -29,7 +29,7 @@ tests/cases/conformance/jsdoc/declarations/file.js(6,5): error TS4084: Exported ~ !!! error TS4084: Exported type alias 'BaseFactoryFactory' has or is using private name 'Base' from module "tests/cases/conformance/jsdoc/declarations/base". /** @enum {import('./base')} */ - ~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS4084: Exported type alias 'couldntThinkOfAny' has or is using private name 'Base' from module "tests/cases/conformance/jsdoc/declarations/base". const couldntThinkOfAny = {} diff --git a/tests/baselines/reference/jsDocAliasQuickInfo.baseline b/tests/baselines/reference/jsDocAliasQuickInfo.baseline index 1c41394a85610..00587320e3d35 100644 --- a/tests/baselines/reference/jsDocAliasQuickInfo.baseline +++ b/tests/baselines/reference/jsDocAliasQuickInfo.baseline @@ -55,12 +55,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{number}", - "kind": "text" - } - ] + "text": "{number}" } ] } @@ -121,12 +116,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{number}", - "kind": "text" - } - ] + "text": "{number}" } ] } @@ -167,12 +157,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{number}", - "kind": "text" - } - ] + "text": "{number}" } ] } diff --git a/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline b/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline index 3618b914c58c3..2ea08d0385685 100644 --- a/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline +++ b/tests/baselines/reference/jsDocDontBreakWithNamespaces.baseline @@ -52,12 +52,7 @@ "tags": [ { "name": "returns", - "text": [ - { - "text": "Websocket server object", - "kind": "text" - } - ] + "text": "Websocket server object" } ] } @@ -186,12 +181,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{function(module:xxxx, module:xxxx): module:xxxxx}", - "kind": "text" - } - ] + "text": "{function(module:xxxx, module:xxxx): module:xxxxx}" } ] } diff --git a/tests/baselines/reference/jsDocFunctionSignatures5.baseline b/tests/baselines/reference/jsDocFunctionSignatures5.baseline index cabdccbae4361..e24b57ba4496d 100644 --- a/tests/baselines/reference/jsDocFunctionSignatures5.baseline +++ b/tests/baselines/reference/jsDocFunctionSignatures5.baseline @@ -182,80 +182,23 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "basePath", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The base path where the search will be performed.", - "kind": "text" - } - ] + "text": "basePath The base path where the search will be performed." }, { "name": "param", - "text": [ - { - "text": "pattern", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A string defining a regexp of a glob pattern.", - "kind": "text" - } - ] + "text": "pattern A string defining a regexp of a glob pattern." }, { "name": "param", - "text": [ - { - "text": "type", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The search pattern type, can be a regexp or a glob.", - "kind": "text" - } - ] + "text": "type The search pattern type, can be a regexp or a glob." }, { "name": "param", - "text": [ - { - "text": "options", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A object containing options to the search.", - "kind": "text" - } - ] + "text": "options A object containing options to the search." }, { "name": "return", - "text": [ - { - "text": "A list containing the filtered paths.", - "kind": "text" - } - ] + "text": "A list containing the filtered paths." } ] } diff --git a/tests/baselines/reference/jsDocFunctionSignatures6.baseline b/tests/baselines/reference/jsDocFunctionSignatures6.baseline index 6703610328702..94ef27f867872 100644 --- a/tests/baselines/reference/jsDocFunctionSignatures6.baseline +++ b/tests/baselines/reference/jsDocFunctionSignatures6.baseline @@ -177,71 +177,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "p1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- A string param", - "kind": "text" - } - ] + "text": "p1 - A string param" }, { "name": "param", - "text": [ - { - "text": "p2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param", - "kind": "text" - } - ] + "text": "p2 - An optional param" }, { "name": "param", - "text": [ - { - "text": "p3", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- Another optional param", - "kind": "text" - } - ] + "text": "p3 - Another optional param" }, { "name": "param", - "text": [ - { - "text": "p4", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param with a default value", - "kind": "text" - } - ] + "text": "p4 - An optional param with a default value" } ] } @@ -433,71 +381,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "p1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- A string param", - "kind": "text" - } - ] + "text": "p1 - A string param" }, { "name": "param", - "text": [ - { - "text": "p2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param", - "kind": "text" - } - ] + "text": "p2 - An optional param" }, { "name": "param", - "text": [ - { - "text": "p3", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- Another optional param", - "kind": "text" - } - ] + "text": "p3 - Another optional param" }, { "name": "param", - "text": [ - { - "text": "p4", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param with a default value", - "kind": "text" - } - ] + "text": "p4 - An optional param with a default value" } ] } @@ -689,71 +585,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "p1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- A string param", - "kind": "text" - } - ] + "text": "p1 - A string param" }, { "name": "param", - "text": [ - { - "text": "p2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param", - "kind": "text" - } - ] + "text": "p2 - An optional param" }, { "name": "param", - "text": [ - { - "text": "p3", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- Another optional param", - "kind": "text" - } - ] + "text": "p3 - Another optional param" }, { "name": "param", - "text": [ - { - "text": "p4", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param with a default value", - "kind": "text" - } - ] + "text": "p4 - An optional param with a default value" } ] } @@ -945,71 +789,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "p1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- A string param", - "kind": "text" - } - ] + "text": "p1 - A string param" }, { "name": "param", - "text": [ - { - "text": "p2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param", - "kind": "text" - } - ] + "text": "p2 - An optional param" }, { "name": "param", - "text": [ - { - "text": "p3", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- Another optional param", - "kind": "text" - } - ] + "text": "p3 - Another optional param" }, { "name": "param", - "text": [ - { - "text": "p4", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- An optional param with a default value", - "kind": "text" - } - ] + "text": "p4 - An optional param with a default value" } ] } diff --git a/tests/baselines/reference/jsDocTags.baseline b/tests/baselines/reference/jsDocTags.baseline index 35b3cca0331a4..f316a9c42459d 100644 --- a/tests/baselines/reference/jsDocTags.baseline +++ b/tests/baselines/reference/jsDocTags.baseline @@ -70,12 +70,7 @@ "tags": [ { "name": "myjsdoctag", - "text": [ - { - "text": "this is a comment", - "kind": "text" - } - ] + "text": "this is a comment" } ] } @@ -121,12 +116,7 @@ "tags": [ { "name": "mytag", - "text": [ - { - "text": "comment1 comment2", - "kind": "text" - } - ] + "text": "comment1 comment2" } ] } @@ -202,12 +192,7 @@ "tags": [ { "name": "mytag", - "text": [ - { - "text": "comment1 comment2", - "kind": "text" - } - ] + "text": "comment1 comment2" } ] } @@ -360,12 +345,7 @@ "tags": [ { "name": "returns", - "text": [ - { - "text": "a value", - "kind": "text" - } - ] + "text": "a value" } ] } @@ -458,29 +438,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value.", - "kind": "text" - } - ] + "text": "foo A value." }, { "name": "returns", - "text": [ - { - "text": "Another value", - "kind": "text" - } - ] + "text": "Another value" }, { "name": "mytag" @@ -546,12 +508,7 @@ "tags": [ { "name": "mytag", - "text": [ - { - "text": "comment1 comment2", - "kind": "text" - } - ] + "text": "comment1 comment2" } ] } @@ -614,21 +571,11 @@ "tags": [ { "name": "mytag1", - "text": [ - { - "text": "some comments\nsome more comments about mytag1", - "kind": "text" - } - ] + "text": "some comments\nsome more comments about mytag1" }, { "name": "mytag2", - "text": [ - { - "text": "here all the comments are on a new line", - "kind": "text" - } - ] + "text": "here all the comments are on a new line" }, { "name": "mytag3" diff --git a/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline b/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline index 26cd8417670c6..0112176cee181 100644 --- a/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline +++ b/tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline @@ -42,12 +42,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{String}", - "kind": "text" - } - ] + "text": "{String}" } ] } @@ -95,12 +90,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Number}", - "kind": "text" - } - ] + "text": "{Number}" } ] } @@ -148,12 +138,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Boolean}", - "kind": "text" - } - ] + "text": "{Boolean}" } ] } @@ -201,12 +186,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Void}", - "kind": "text" - } - ] + "text": "{Void}" } ] } @@ -254,12 +234,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Undefined}", - "kind": "text" - } - ] + "text": "{Undefined}" } ] } @@ -307,12 +282,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Null}", - "kind": "text" - } - ] + "text": "{Null}" } ] } @@ -368,12 +338,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Array}", - "kind": "text" - } - ] + "text": "{Array}" } ] } @@ -433,12 +398,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Promise}", - "kind": "text" - } - ] + "text": "{Promise}" } ] } @@ -486,12 +446,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Object}", - "kind": "text" - } - ] + "text": "{Object}" } ] } @@ -539,12 +494,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{Function}", - "kind": "text" - } - ] + "text": "{Function}" } ] } @@ -592,12 +542,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{*}", - "kind": "text" - } - ] + "text": "{*}" } ] } @@ -645,12 +590,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{?}", - "kind": "text" - } - ] + "text": "{?}" } ] } @@ -714,12 +654,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{String|Number}", - "kind": "text" - } - ] + "text": "{String|Number}" } ] } diff --git a/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline b/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline index 3548af40911e8..1f6b8ca292c80 100644 --- a/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline +++ b/tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline @@ -42,12 +42,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{string}", - "kind": "text" - } - ] + "text": "{string}" } ] } @@ -95,12 +90,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{number}", - "kind": "text" - } - ] + "text": "{number}" } ] } @@ -148,12 +138,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{boolean}", - "kind": "text" - } - ] + "text": "{boolean}" } ] } @@ -201,12 +186,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{void}", - "kind": "text" - } - ] + "text": "{void}" } ] } @@ -254,12 +234,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{undefined}", - "kind": "text" - } - ] + "text": "{undefined}" } ] } @@ -307,12 +282,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{null}", - "kind": "text" - } - ] + "text": "{null}" } ] } @@ -368,12 +338,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{array}", - "kind": "text" - } - ] + "text": "{array}" } ] } @@ -433,12 +398,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{promise}", - "kind": "text" - } - ] + "text": "{promise}" } ] } @@ -486,12 +446,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{?number}", - "kind": "text" - } - ] + "text": "{?number}" } ] } @@ -539,12 +494,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{function}", - "kind": "text" - } - ] + "text": "{function}" } ] } @@ -628,12 +578,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{function (number): number}", - "kind": "text" - } - ] + "text": "{function (number): number}" } ] } @@ -697,12 +642,7 @@ "tags": [ { "name": "type", - "text": [ - { - "text": "{string | number}", - "kind": "text" - } - ] + "text": "{string | number}" } ] } diff --git a/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline b/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline index c37fbca418bec..8ccb52acdff4e 100644 --- a/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline +++ b/tests/baselines/reference/jsDocTypedefQuickInfo1.baseline @@ -50,12 +50,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "opts", - "kind": "text" - } - ] + "text": "opts" } ] } diff --git a/tests/baselines/reference/jsdocImportTypeNodeNamespace.errors.txt b/tests/baselines/reference/jsdocImportTypeNodeNamespace.errors.txt index 571c3f52cbbcb..40f0e3c974eab 100644 --- a/tests/baselines/reference/jsdocImportTypeNodeNamespace.errors.txt +++ b/tests/baselines/reference/jsdocImportTypeNodeNamespace.errors.txt @@ -12,7 +12,7 @@ tests/cases/compiler/Main.js(2,14): error TS2352: Conversion of type 'string' to ==== tests/cases/compiler/Main.js (1 errors) ==== export default function () { return /** @type {import('./GeometryType.js').default} */ ('Point'); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2352: Conversion of type 'string' to type 'typeof _default' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. } \ No newline at end of file diff --git a/tests/baselines/reference/jsdocLink1.baseline b/tests/baselines/reference/jsdocLink1.baseline deleted file mode 100644 index 3924cca14d7de..0000000000000 --- a/tests/baselines/reference/jsdocLink1.baseline +++ /dev/null @@ -1,208 +0,0 @@ -[ - { - "marker": { - "fileName": "/tests/cases/fourslash/jsdocLink1.ts", - "position": 189, - "name": "" - }, - "quickInfo": { - "kind": "function", - "kindModifiers": "", - "textSpan": { - "start": 189, - "length": 2 - }, - "displayParts": [ - { - "text": "function", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "CC", - "kind": "functionName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "void", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink1.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "}", - "kind": "link" - } - ], - "tags": [ - { - "name": "wat", - "text": [ - { - "text": "Makes a ", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink1.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "}", - "kind": "link" - }, - { - "text": ". A default one.\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink1.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "()", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - }, - { - "text": "\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink1.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "|postfix text", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - }, - { - "text": "\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "unformattedpostfix text", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - } - ] - }, - { - "name": "see", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink1.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "}", - "kind": "link" - }, - { - "text": " its great", - "kind": "text" - } - ] - } - ] - } - } -] \ No newline at end of file diff --git a/tests/baselines/reference/jsdocLink2.baseline b/tests/baselines/reference/jsdocLink2.baseline deleted file mode 100644 index 9111696d2d848..0000000000000 --- a/tests/baselines/reference/jsdocLink2.baseline +++ /dev/null @@ -1,208 +0,0 @@ -[ - { - "marker": { - "fileName": "/tests/cases/fourslash/script.ts", - "position": 177, - "name": "" - }, - "quickInfo": { - "kind": "function", - "kindModifiers": "", - "textSpan": { - "start": 177, - "length": 2 - }, - "displayParts": [ - { - "text": "function", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "CC", - "kind": "functionName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "void", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink2.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "}", - "kind": "link" - } - ], - "tags": [ - { - "name": "wat", - "text": [ - { - "text": "Makes a ", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink2.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "}", - "kind": "link" - }, - { - "text": ". A default one.\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink2.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "()", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - }, - { - "text": "\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink2.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "|postfix text", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - }, - { - "text": "\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "unformattedpostfix text", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - } - ] - }, - { - "name": "see", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/tests/cases/fourslash/jsdocLink2.ts", - "textSpan": { - "start": 0, - "length": 11 - } - } - }, - { - "text": "}", - "kind": "link" - }, - { - "text": " its great", - "kind": "text" - } - ] - } - ] - } - } -] \ No newline at end of file diff --git a/tests/baselines/reference/jsdocLink3.baseline b/tests/baselines/reference/jsdocLink3.baseline deleted file mode 100644 index 2d44f4f69cd56..0000000000000 --- a/tests/baselines/reference/jsdocLink3.baseline +++ /dev/null @@ -1,208 +0,0 @@ -[ - { - "marker": { - "fileName": "/module1.ts", - "position": 210, - "name": "" - }, - "quickInfo": { - "kind": "function", - "kindModifiers": "", - "textSpan": { - "start": 210, - "length": 2 - }, - "displayParts": [ - { - "text": "function", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "CC", - "kind": "functionName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "void", - "kind": "keyword" - } - ], - "documentation": [ - { - "text": "", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/jsdocLink3.ts", - "textSpan": { - "start": 0, - "length": 18 - } - } - }, - { - "text": "}", - "kind": "link" - } - ], - "tags": [ - { - "name": "wat", - "text": [ - { - "text": "Makes a ", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/jsdocLink3.ts", - "textSpan": { - "start": 0, - "length": 18 - } - } - }, - { - "text": "}", - "kind": "link" - }, - { - "text": ". A default one.\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/jsdocLink3.ts", - "textSpan": { - "start": 0, - "length": 18 - } - } - }, - { - "text": "()", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - }, - { - "text": "\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/jsdocLink3.ts", - "textSpan": { - "start": 0, - "length": 18 - } - } - }, - { - "text": "|postfix text", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - }, - { - "text": "\n", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "unformattedpostfix text", - "kind": "linkText" - }, - { - "text": "}", - "kind": "link" - } - ] - }, - { - "name": "see", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": "{@link ", - "kind": "link" - }, - { - "text": "C", - "kind": "linkName", - "target": { - "fileName": "/jsdocLink3.ts", - "textSpan": { - "start": 0, - "length": 18 - } - } - }, - { - "text": "}", - "kind": "link" - }, - { - "text": " its great", - "kind": "text" - } - ] - } - ] - } - } -] \ No newline at end of file diff --git a/tests/baselines/reference/jsdocLink_findAllReferences1.baseline.jsonc b/tests/baselines/reference/jsdocLink_findAllReferences1.baseline.jsonc deleted file mode 100644 index 8fc9184f886d2..0000000000000 --- a/tests/baselines/reference/jsdocLink_findAllReferences1.baseline.jsonc +++ /dev/null @@ -1,73 +0,0 @@ -// === /tests/cases/fourslash/jsdocLink_findAllReferences1.ts === -// interface [|A|] {} -// /** -// * {@link [|A|]()} is ok -// */ -// declare const a: [|A|] - -[ - { - "definition": { - "containerKind": "", - "containerName": "", - "fileName": "/tests/cases/fourslash/jsdocLink_findAllReferences1.ts", - "kind": "interface", - "name": "interface A", - "textSpan": { - "start": 10, - "length": 1 - }, - "displayParts": [ - { - "text": "interface", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A", - "kind": "interfaceName" - } - ], - "contextSpan": { - "start": 0, - "length": 14 - } - }, - "references": [ - { - "textSpan": { - "start": 10, - "length": 1 - }, - "fileName": "/tests/cases/fourslash/jsdocLink_findAllReferences1.ts", - "contextSpan": { - "start": 0, - "length": 14 - }, - "isWriteAccess": true, - "isDefinition": true - }, - { - "textSpan": { - "start": 29, - "length": 1 - }, - "fileName": "/tests/cases/fourslash/jsdocLink_findAllReferences1.ts", - "isWriteAccess": false, - "isDefinition": false - }, - { - "textSpan": { - "start": 61, - "length": 1 - }, - "fileName": "/tests/cases/fourslash/jsdocLink_findAllReferences1.ts", - "isWriteAccess": false, - "isDefinition": false - } - ] - } -] \ No newline at end of file diff --git a/tests/baselines/reference/jsdocLink_rename1.baseline b/tests/baselines/reference/jsdocLink_rename1.baseline deleted file mode 100644 index 42d9421881cfd..0000000000000 --- a/tests/baselines/reference/jsdocLink_rename1.baseline +++ /dev/null @@ -1,7 +0,0 @@ -/*====== /tests/cases/fourslash/jsdocLink_rename1.ts ======*/ - -interface [|RENAME|] {} -/** - * {@link RENAME()} is ok - */ -declare const a: RENAME diff --git a/tests/baselines/reference/jsdocReturnsTag.baseline b/tests/baselines/reference/jsdocReturnsTag.baseline index 1ab8b6a24399b..35366b2e59ba9 100644 --- a/tests/baselines/reference/jsdocReturnsTag.baseline +++ b/tests/baselines/reference/jsdocReturnsTag.baseline @@ -114,39 +114,19 @@ "tags": [ { "name": "template", - "text": [ - { - "text": "T", - "kind": "text" - } - ] + "text": "T" }, { "name": "param", - "text": [ - { - "text": "l", - "kind": "text" - } - ] + "text": "l" }, { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - } - ] + "text": "x" }, { "name": "returns", - "text": [ - { - "text": "The names of the found item(s).", - "kind": "text" - } - ] + "text": "The names of the found item(s)." } ] } diff --git a/tests/baselines/reference/jsdocTypeTagCast.errors.txt b/tests/baselines/reference/jsdocTypeTagCast.errors.txt index fb4487c036906..c82eabc65cd63 100644 --- a/tests/baselines/reference/jsdocTypeTagCast.errors.txt +++ b/tests/baselines/reference/jsdocTypeTagCast.errors.txt @@ -26,7 +26,7 @@ tests/cases/conformance/jsdoc/b.js(67,8): error TS2454: Variable 'numOrStr' is u var W = /** @type {string} */(/** @type {*} */ (4)); var W = /** @type {string} */(4); // Error - ~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~ !!! error TS2352: Conversion of type 'number' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. /** @type {*} */ @@ -69,7 +69,7 @@ tests/cases/conformance/jsdoc/b.js(67,8): error TS2454: Variable 'numOrStr' is u someBase = /** @type {SomeBase} */(someDerived); someBase = /** @type {SomeBase} */(someBase); someBase = /** @type {SomeBase} */(someOther); // Error - ~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~ !!! error TS2352: Conversion of type 'SomeOther' to type 'SomeBase' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. !!! error TS2352: Property 'p' is missing in type 'SomeOther' but required in type 'SomeBase'. !!! related TS2728 tests/cases/conformance/jsdoc/b.js:17:9: 'p' is declared here. @@ -77,17 +77,17 @@ tests/cases/conformance/jsdoc/b.js(67,8): error TS2454: Variable 'numOrStr' is u someDerived = /** @type {SomeDerived} */(someDerived); someDerived = /** @type {SomeDerived} */(someBase); someDerived = /** @type {SomeDerived} */(someOther); // Error - ~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~ !!! error TS2352: Conversion of type 'SomeOther' to type 'SomeDerived' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. !!! error TS2352: Type 'SomeOther' is missing the following properties from type 'SomeDerived': x, p someOther = /** @type {SomeOther} */(someDerived); // Error - ~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~ !!! error TS2352: Conversion of type 'SomeDerived' to type 'SomeOther' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. !!! error TS2352: Property 'q' is missing in type 'SomeDerived' but required in type 'SomeOther'. !!! related TS2728 tests/cases/conformance/jsdoc/b.js:28:9: 'q' is declared here. someOther = /** @type {SomeOther} */(someBase); // Error - ~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~ !!! error TS2352: Conversion of type 'SomeBase' to type 'SomeOther' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. !!! error TS2352: Property 'q' is missing in type 'SomeBase' but required in type 'SomeOther'. !!! related TS2728 tests/cases/conformance/jsdoc/b.js:28:9: 'q' is declared here. diff --git a/tests/baselines/reference/linkTagEmit1.js b/tests/baselines/reference/linkTagEmit1.js deleted file mode 100644 index 377fa211381c8..0000000000000 --- a/tests/baselines/reference/linkTagEmit1.js +++ /dev/null @@ -1,64 +0,0 @@ -//// [tests/cases/conformance/jsdoc/linkTagEmit1.ts] //// - -//// [declarations.d.ts] -declare namespace NS { - type R = number -} -//// [linkTagEmit1.js] -/** @typedef {number} N */ -/** - * @typedef {Object} D1 - * @property {1} e Just link to {@link NS.R} this time - * @property {1} m Wyatt Earp loved {@link N integers} I bet. - */ - -/** @typedef {number} Z @see N {@link N} */ - -/** - * @param {number} integer {@link Z} - */ -function computeCommonSourceDirectoryOfFilenames(integer) { - return integer + 1 // pls pls pls -} - - -//// [linkTagEmit1.js] -/** @typedef {number} N */ -/** - * @typedef {Object} D1 - * @property {1} e Just link to {@link NS.R} this time - * @property {1} m Wyatt Earp loved {@link N integers} I bet. - */ -/** @typedef {number} Z @see N {@link N} */ -/** - * @param {number} integer {@link Z} - */ -function computeCommonSourceDirectoryOfFilenames(integer) { - return integer + 1; // pls pls pls -} - - -//// [linkTagEmit1.d.ts] -/** @typedef {number} N */ -/** - * @typedef {Object} D1 - * @property {1} e Just link to {@link NS.R} this time - * @property {1} m Wyatt Earp loved {@link N integers} I bet. - */ -/** @typedef {number} Z @see N {@link N} */ -/** - * @param {number} integer {@link Z} - */ -declare function computeCommonSourceDirectoryOfFilenames(integer: number): number; -type N = number; -type D1 = { - /** - * Just link to {@link NS.R } this time - */ - e: 1; - /** - * Wyatt Earp loved {@link N integers} I bet. - */ - m: 1; -}; -type Z = number; diff --git a/tests/baselines/reference/linkTagEmit1.symbols b/tests/baselines/reference/linkTagEmit1.symbols deleted file mode 100644 index 30b7ab681f89b..0000000000000 --- a/tests/baselines/reference/linkTagEmit1.symbols +++ /dev/null @@ -1,28 +0,0 @@ -=== tests/cases/conformance/jsdoc/declarations.d.ts === -declare namespace NS { ->NS : Symbol(NS, Decl(declarations.d.ts, 0, 0)) - - type R = number ->R : Symbol(R, Decl(declarations.d.ts, 0, 22)) -} -=== tests/cases/conformance/jsdoc/linkTagEmit1.js === -/** @typedef {number} N */ -/** - * @typedef {Object} D1 - * @property {1} e Just link to {@link NS.R} this time - * @property {1} m Wyatt Earp loved {@link N integers} I bet. - */ - -/** @typedef {number} Z @see N {@link N} */ - -/** - * @param {number} integer {@link Z} - */ -function computeCommonSourceDirectoryOfFilenames(integer) { ->computeCommonSourceDirectoryOfFilenames : Symbol(computeCommonSourceDirectoryOfFilenames, Decl(linkTagEmit1.js, 0, 0)) ->integer : Symbol(integer, Decl(linkTagEmit1.js, 12, 49)) - - return integer + 1 // pls pls pls ->integer : Symbol(integer, Decl(linkTagEmit1.js, 12, 49)) -} - diff --git a/tests/baselines/reference/linkTagEmit1.types b/tests/baselines/reference/linkTagEmit1.types deleted file mode 100644 index a5456e3877f0b..0000000000000 --- a/tests/baselines/reference/linkTagEmit1.types +++ /dev/null @@ -1,28 +0,0 @@ -=== tests/cases/conformance/jsdoc/declarations.d.ts === -declare namespace NS { - type R = number ->R : number -} -=== tests/cases/conformance/jsdoc/linkTagEmit1.js === -/** @typedef {number} N */ -/** - * @typedef {Object} D1 - * @property {1} e Just link to {@link NS.R} this time - * @property {1} m Wyatt Earp loved {@link N integers} I bet. - */ - -/** @typedef {number} Z @see N {@link N} */ - -/** - * @param {number} integer {@link Z} - */ -function computeCommonSourceDirectoryOfFilenames(integer) { ->computeCommonSourceDirectoryOfFilenames : (integer: number) => number ->integer : number - - return integer + 1 // pls pls pls ->integer + 1 : number ->integer : number ->1 : 1 -} - diff --git a/tests/baselines/reference/quickInfoAlias.baseline b/tests/baselines/reference/quickInfoAlias.baseline index b295074dcd3e6..48872b59ff931 100644 --- a/tests/baselines/reference/quickInfoAlias.baseline +++ b/tests/baselines/reference/quickInfoAlias.baseline @@ -79,12 +79,7 @@ "tags": [ { "name": "tag", - "text": [ - { - "text": "Tag text", - "kind": "text" - } - ] + "text": "Tag text" } ] } @@ -169,12 +164,7 @@ "tags": [ { "name": "tag", - "text": [ - { - "text": "Tag text", - "kind": "text" - } - ] + "text": "Tag text" } ] } diff --git a/tests/baselines/reference/quickInfoCommentsClassMembers.baseline b/tests/baselines/reference/quickInfoCommentsClassMembers.baseline index 6306ede8fc434..f031ee57fe345 100644 --- a/tests/baselines/reference/quickInfoCommentsClassMembers.baseline +++ b/tests/baselines/reference/quickInfoCommentsClassMembers.baseline @@ -5585,20 +5585,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is first parameter a", - "kind": "text" - } - ] + "text": "a this is first parameter a" } ] } @@ -5759,20 +5746,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is first parameter a", - "kind": "text" - } - ] + "text": "a this is first parameter a" } ] } @@ -5841,20 +5815,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is first parameter a", - "kind": "text" - } - ] + "text": "a this is first parameter a" } ] } diff --git a/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline b/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline index c8988eca2542e..1d980ebdd6f1f 100644 --- a/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline +++ b/tests/baselines/reference/quickInfoCommentsCommentParsing.baseline @@ -800,20 +800,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" } ] } @@ -874,20 +861,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] } @@ -988,37 +962,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] } @@ -1079,20 +1027,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" } ] } @@ -1148,12 +1083,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" } ] } @@ -1209,12 +1139,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" } ] } @@ -1270,12 +1195,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" } ] } @@ -1336,20 +1256,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" } ] } @@ -1534,76 +1441,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -1811,20 +1672,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] } @@ -1929,20 +1777,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] } @@ -2053,20 +1888,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" } ] } @@ -2147,20 +1969,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" } ] } @@ -2241,20 +2050,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" } ] } @@ -2335,20 +2131,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" } ] } @@ -2711,97 +2494,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" }, { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": " { () => string; } } f this is optional param f" } ] } @@ -2862,20 +2575,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "a this is input number" } ] } @@ -2952,38 +2652,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] } @@ -3044,20 +2721,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" } ] } @@ -3118,20 +2782,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] } @@ -3232,46 +2883,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] } @@ -3332,20 +2952,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" } ] } @@ -3406,20 +3013,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] } @@ -3520,37 +3114,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] } @@ -3619,20 +3187,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" } ] } @@ -3748,20 +3303,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] } @@ -3960,37 +3502,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] } @@ -4161,20 +3677,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" } ] } @@ -4235,20 +3738,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" } ] } @@ -4309,20 +3799,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] } @@ -4447,54 +3924,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] } diff --git a/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline b/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline index 1fc21ef81faa5..eee453d18b898 100644 --- a/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline +++ b/tests/baselines/reference/quickInfoCommentsFunctionExpression.baseline @@ -387,20 +387,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "inner parameter", - "kind": "text" - } - ] + "text": "b inner parameter" } ] } @@ -461,20 +448,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "inner parameter", - "kind": "text" - } - ] + "text": "b inner parameter" } ] } @@ -635,20 +609,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "inner parameter", - "kind": "text" - } - ] + "text": "b inner parameter" } ] } @@ -753,20 +714,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "inner parameter", - "kind": "text" - } - ] + "text": "b inner parameter" } ] } @@ -863,55 +811,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "param on expression", - "kind": "text" - } - ] + "text": "s param on expression" }, { "name": "returns", - "text": [ - { - "text": "return on expression", - "kind": "text" - } - ] + "text": "return on expression" }, { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "the first parameter!", - "kind": "text" - } - ] + "text": "s the first parameter!" }, { "name": "returns", - "text": [ - { - "text": "the parameter's length", - "kind": "text" - } - ] + "text": "the parameter's length" } ] } @@ -1008,55 +920,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "param on expression", - "kind": "text" - } - ] + "text": "s param on expression" }, { "name": "returns", - "text": [ - { - "text": "return on expression", - "kind": "text" - } - ] + "text": "return on expression" }, { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "the first parameter!", - "kind": "text" - } - ] + "text": "s the first parameter!" }, { "name": "returns", - "text": [ - { - "text": "the parameter's length", - "kind": "text" - } - ] + "text": "the parameter's length" } ] } diff --git a/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline b/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline index 81f0458148a8e..b5ff4d0462617 100644 --- a/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline +++ b/tests/baselines/reference/quickInfoDisplayPartsParameters.baseline @@ -158,12 +158,7 @@ "tags": [ { "name": "return", - "text": [ - { - "text": "*crunch*", - "kind": "text" - } - ] + "text": "*crunch*" } ] } diff --git a/tests/baselines/reference/quickInfoForJSDocCodefence.baseline b/tests/baselines/reference/quickInfoForJSDocCodefence.baseline index 4b33d8699f928..c3e946f2f3228 100644 --- a/tests/baselines/reference/quickInfoForJSDocCodefence.baseline +++ b/tests/baselines/reference/quickInfoForJSDocCodefence.baseline @@ -50,12 +50,7 @@ "tags": [ { "name": "example", - "text": [ - { - "text": "```\n1 + 2\n```", - "kind": "text" - } - ] + "text": "```\n1 + 2\n```" } ] } @@ -111,12 +106,7 @@ "tags": [ { "name": "example", - "text": [ - { - "text": "``\n1 + 2\n`", - "kind": "text" - } - ] + "text": "``\n1 + 2\n`" } ] } diff --git a/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline b/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline index a74510299d1a1..d3663c91c580f 100644 --- a/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline +++ b/tests/baselines/reference/quickInfoForJSDocUnknownTag.baseline @@ -50,12 +50,7 @@ "tags": [ { "name": "example", - "text": [ - { - "text": "if (true) {\n foo()\n}", - "kind": "text" - } - ] + "text": "if (true) {\n foo()\n}" } ] } @@ -111,12 +106,7 @@ "tags": [ { "name": "example", - "text": [ - { - "text": "{\n foo()\n}", - "kind": "text" - } - ] + "text": "{\n foo()\n}" } ] } @@ -172,12 +162,7 @@ "tags": [ { "name": "example", - "text": [ - { - "text": " x y\n 12345\n b", - "kind": "text" - } - ] + "text": " x y\n 12345\n b" } ] } @@ -236,12 +221,7 @@ }, { "name": "example", - "text": [ - { - "text": " x y\n 12345\n b", - "kind": "text" - } - ] + "text": " x y\n 12345\n b" } ] } @@ -300,12 +280,7 @@ }, { "name": "example", - "text": [ - { - "text": "x y\n12345\n b", - "kind": "text" - } - ] + "text": "x y\n12345\n b" } ] } diff --git a/tests/baselines/reference/quickInfoJSDocTags.baseline b/tests/baselines/reference/quickInfoJSDocTags.baseline index aba5c894b474d..809251945cc42 100644 --- a/tests/baselines/reference/quickInfoJSDocTags.baseline +++ b/tests/baselines/reference/quickInfoJSDocTags.baseline @@ -71,12 +71,7 @@ "tags": [ { "name": "myjsdoctag", - "text": [ - { - "text": "this is a comment", - "kind": "text" - } - ] + "text": "this is a comment" } ] } @@ -124,12 +119,7 @@ "tags": [ { "name": "mytag", - "text": [ - { - "text": "comment1 comment2", - "kind": "text" - } - ] + "text": "comment1 comment2" } ] } @@ -206,12 +196,7 @@ "tags": [ { "name": "mytag", - "text": [ - { - "text": "comment1 comment2", - "kind": "text" - } - ] + "text": "comment1 comment2" } ] } @@ -368,12 +353,7 @@ "tags": [ { "name": "returns", - "text": [ - { - "text": "a value", - "kind": "text" - } - ] + "text": "a value" } ] } @@ -468,29 +448,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A value.", - "kind": "text" - } - ] + "text": "foo A value." }, { "name": "returns", - "text": [ - { - "text": "Another value", - "kind": "text" - } - ] + "text": "Another value" }, { "name": "mytag" @@ -557,12 +519,7 @@ "tags": [ { "name": "mytag", - "text": [ - { - "text": "comment1 comment2", - "kind": "text" - } - ] + "text": "comment1 comment2" } ] } @@ -626,21 +583,11 @@ "tags": [ { "name": "mytag1", - "text": [ - { - "text": "some comments\nsome more comments about mytag1", - "kind": "text" - } - ] + "text": "some comments\nsome more comments about mytag1" }, { "name": "mytag2", - "text": [ - { - "text": "here all the comments are on a new line", - "kind": "text" - } - ] + "text": "here all the comments are on a new line" }, { "name": "mytag3" diff --git a/tests/baselines/reference/quickInfoJsDocTags1.baseline b/tests/baselines/reference/quickInfoJsDocTags1.baseline index 45f63f8435580..dede494d0e9fa 100644 --- a/tests/baselines/reference/quickInfoJsDocTags1.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags1.baseline @@ -71,124 +71,39 @@ "tags": [ { "name": "author", - "text": [ - { - "text": "Me ", - "kind": "text" - } - ] + "text": "Me " }, { "name": "augments", - "text": [ - { - "text": "C", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Augments it", - "kind": "text" - } - ] + "text": "C Augments it" }, { "name": "template", - "text": [ - { - "text": "T", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A template", - "kind": "text" - } - ] + "text": "T A template" }, { "name": "type", - "text": [ - { - "text": "{number | string}", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A type", - "kind": "text" - } - ] + "text": "{number | string} A type" }, { "name": "typedef", - "text": [ - { - "text": "NumOrStr", - "kind": "text" - } - ] + "text": "NumOrStr" }, { "name": "property", - "text": [ - { - "text": "{number} x The prop", - "kind": "text" - } - ] + "text": "{number} x The prop" }, { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The param", - "kind": "text" - } - ] + "text": "x The param" }, { "name": "returns", - "text": [ - { - "text": "The result", - "kind": "text" - } - ] + "text": "The result" }, { "name": "see", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(the parameter)", - "kind": "text" - } - ] + "text": "x (the parameter)" } ] } diff --git a/tests/baselines/reference/quickInfoJsDocTags3.baseline b/tests/baselines/reference/quickInfoJsDocTags3.baseline index edcbc2eeaaa99..a32ce25f1098c 100644 --- a/tests/baselines/reference/quickInfoJsDocTags3.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags3.baseline @@ -71,72 +71,23 @@ "tags": [ { "name": "author", - "text": [ - { - "text": "Me ", - "kind": "text" - } - ] + "text": "Me " }, { "name": "see", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(the parameter)", - "kind": "text" - } - ] + "text": "x (the parameter)" }, { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- x comment", - "kind": "text" - } - ] + "text": "x - x comment" }, { "name": "param", - "text": [ - { - "text": "y", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- y comment", - "kind": "text" - } - ] + "text": "y - y comment" }, { "name": "throws", - "text": [ - { - "text": "{Error} comment", - "kind": "text" - } - ] + "text": "{Error} comment" } ] } diff --git a/tests/baselines/reference/quickInfoJsDocTags4.baseline b/tests/baselines/reference/quickInfoJsDocTags4.baseline index 23e3b8e953636..49ace4416489b 100644 --- a/tests/baselines/reference/quickInfoJsDocTags4.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags4.baseline @@ -111,72 +111,23 @@ "tags": [ { "name": "author", - "text": [ - { - "text": "Me ", - "kind": "text" - } - ] + "text": "Me " }, { "name": "see", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(the parameter)", - "kind": "text" - } - ] + "text": "x (the parameter)" }, { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- x comment", - "kind": "text" - } - ] + "text": "x - x comment" }, { "name": "param", - "text": [ - { - "text": "y", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- y comment", - "kind": "text" - } - ] + "text": "y - y comment" }, { "name": "returns", - "text": [ - { - "text": "The result", - "kind": "text" - } - ] + "text": "The result" } ] } diff --git a/tests/baselines/reference/quickInfoJsDocTags5.baseline b/tests/baselines/reference/quickInfoJsDocTags5.baseline index bae9bb50771f2..833d07785b3b0 100644 --- a/tests/baselines/reference/quickInfoJsDocTags5.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags5.baseline @@ -111,72 +111,23 @@ "tags": [ { "name": "author", - "text": [ - { - "text": "Me ", - "kind": "text" - } - ] + "text": "Me " }, { "name": "see", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(the parameter)", - "kind": "text" - } - ] + "text": "x (the parameter)" }, { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- x comment", - "kind": "text" - } - ] + "text": "x - x comment" }, { "name": "param", - "text": [ - { - "text": "y", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- y comment", - "kind": "text" - } - ] + "text": "y - y comment" }, { "name": "returns", - "text": [ - { - "text": "The result", - "kind": "text" - } - ] + "text": "The result" } ] } diff --git a/tests/baselines/reference/quickInfoJsDocTags6.baseline b/tests/baselines/reference/quickInfoJsDocTags6.baseline index dda3750dcfd49..20eca6733d239 100644 --- a/tests/baselines/reference/quickInfoJsDocTags6.baseline +++ b/tests/baselines/reference/quickInfoJsDocTags6.baseline @@ -111,72 +111,23 @@ "tags": [ { "name": "author", - "text": [ - { - "text": "Me ", - "kind": "text" - } - ] + "text": "Me " }, { "name": "see", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "(the parameter)", - "kind": "text" - } - ] + "text": "x (the parameter)" }, { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- x comment", - "kind": "text" - } - ] + "text": "x - x comment" }, { "name": "param", - "text": [ - { - "text": "y", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "- y comment", - "kind": "text" - } - ] + "text": "y - y comment" }, { "name": "returns", - "text": [ - { - "text": "The result", - "kind": "text" - } - ] + "text": "The result" }, { "name": "inheritDoc" diff --git a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline index cc8957dc9b181..035e225d0b196 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload01.baseline @@ -182,12 +182,7 @@ "tags": [ { "name": "tag", - "text": [ - { - "text": "Tag text", - "kind": "text" - } - ] + "text": "Tag text" } ] } diff --git a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline index a119b5b0d0b61..bad9a67c3db53 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload03.baseline @@ -177,12 +177,7 @@ "tags": [ { "name": "tag", - "text": [ - { - "text": "Tag text", - "kind": "text" - } - ] + "text": "Tag text" } ] } diff --git a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline index 718528d3008c0..547c712574584 100644 --- a/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline +++ b/tests/baselines/reference/quickInfoJsDocTagsFunctionOverload05.baseline @@ -172,12 +172,7 @@ "tags": [ { "name": "tag", - "text": [ - { - "text": "Tag text", - "kind": "text" - } - ] + "text": "Tag text" } ] } diff --git a/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline b/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline index 2cdb8c5676e09..24f7be4aa0312 100644 --- a/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline +++ b/tests/baselines/reference/quickInfoJsDocTextFormatting1.baseline @@ -111,37 +111,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "var1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "**Highlighted text**", - "kind": "text" - } - ] + "text": "var1 **Highlighted text**" }, { "name": "param", - "text": [ - { - "text": "var2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Another **Highlighted text**", - "kind": "text" - } - ] + "text": "var2 Another **Highlighted text**" } ] } @@ -267,37 +241,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "var1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "*Regular text with an asterisk", - "kind": "text" - } - ] + "text": "var1 *Regular text with an asterisk" }, { "name": "param", - "text": [ - { - "text": "var2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Another *Regular text with an asterisk", - "kind": "text" - } - ] + "text": "var2 Another *Regular text with an asterisk" } ] } @@ -423,37 +371,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "var1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "*Regular text with an asterisk", - "kind": "text" - } - ] + "text": "var1 *Regular text with an asterisk" }, { "name": "param", - "text": [ - { - "text": "var2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Another *Regular text with an asterisk", - "kind": "text" - } - ] + "text": "var2 Another *Regular text with an asterisk" } ] } @@ -579,37 +501,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "var1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "**Highlighted text**", - "kind": "text" - } - ] + "text": "var1 **Highlighted text**" }, { "name": "param", - "text": [ - { - "text": "var2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Another **Highlighted text**", - "kind": "text" - } - ] + "text": "var2 Another **Highlighted text**" } ] } @@ -735,37 +631,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "var1", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "**Highlighted text**", - "kind": "text" - } - ] + "text": "var1 **Highlighted text**" }, { "name": "param", - "text": [ - { - "text": "var2", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "Another **Highlighted text**", - "kind": "text" - } - ] + "text": "var2 Another **Highlighted text**" } ] } diff --git a/tests/baselines/reference/signatureHelpCommentsClass.baseline b/tests/baselines/reference/signatureHelpCommentsClass.baseline index a61ef94a79132..a8b78e7b0b574 100644 --- a/tests/baselines/reference/signatureHelpCommentsClass.baseline +++ b/tests/baselines/reference/signatureHelpCommentsClass.baseline @@ -412,20 +412,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is my a", - "kind": "text" - } - ] + "text": "a this is my a" } ] } diff --git a/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline b/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline index 0455ed71ed381..1c08e91a056cc 100644 --- a/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline +++ b/tests/baselines/reference/signatureHelpCommentsCommentParsing.baseline @@ -1029,37 +1029,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] } @@ -1190,37 +1164,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "second number", - "kind": "text" - } - ] + "text": "b second number" } ] } @@ -1435,76 +1383,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -1722,76 +1624,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -2009,76 +1865,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -2296,76 +2106,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -2583,76 +2347,30 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "first number", - "kind": "text" - } - ] + "text": "a first number" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - } - ] + "text": "b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - } - ] + "text": "c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - } - ] + "text": "d" }, { "name": "anotherTag" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "LastParam", - "kind": "text" - } - ] + "text": "e LastParam" }, { "name": "anotherTag" @@ -2752,20 +2470,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -2931,20 +2636,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "about b", - "kind": "text" - } - ] + "text": "b about b" } ] }, @@ -3346,97 +3038,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" }, { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": " { () => string; } } f this is optional param f" } ] } @@ -3769,97 +3391,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" }, { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": " { () => string; } } f this is optional param f" } ] } @@ -4192,97 +3744,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" }, { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": " { () => string; } } f this is optional param f" } ] } @@ -4615,97 +4097,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" }, { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": " { () => string; } } f this is optional param f" } ] } @@ -5038,97 +4450,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" }, { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": " { () => string; } } f this is optional param f" } ] } @@ -5461,97 +4803,27 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - } - ] + "text": "" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is about b", - "kind": "text" - } - ] + "text": "b this is about b" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param c", - "kind": "text" - } - ] + "text": "c this is optional param c" }, { "name": "param", - "text": [ - { - "text": "d", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param d", - "kind": "text" - } - ] + "text": "d this is optional param d" }, { "name": "param", - "text": [ - { - "text": "e", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is optional param e", - "kind": "text" - } - ] + "text": "e this is optional param e" }, { "name": "param", - "text": [ - { - "text": "", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "{ () => string; } } f this is optional param f", - "kind": "text" - } - ] + "text": " { () => string; } } f this is optional param f" } ] } @@ -5653,38 +4925,15 @@ "tags": [ { "name": "paramTag", - "text": [ - { - "text": "{ number } a this is input number of paramTag", - "kind": "text" - } - ] + "text": "{ number } a this is input number of paramTag" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is input number", - "kind": "text" - } - ] + "text": "a this is input number" }, { "name": "returnType", - "text": [ - { - "text": "{ number } it is return type", - "kind": "text" - } - ] + "text": "{ number } it is return type" } ] } @@ -5815,46 +5064,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] + "text": "a this is a" }, { "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "{ number } g this is optional param g" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "text": "b this is b" } ] } @@ -5985,46 +5203,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is a", - "kind": "text" - } - ] - }, - { - "name": "paramTag", - "text": [ - { - "text": "{ number } g this is optional param g", - "kind": "text" - } - ] + "text": "a this is a" }, { - "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is b", - "kind": "text" - } - ] + "name": "paramTag", + "text": "{ number } g this is optional param g" + }, + { + "name": "param", + "text": "b this is b" } ] } @@ -6155,37 +5342,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] } @@ -6316,37 +5477,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "foo", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is string", - "kind": "text" - } - ] + "text": "foo is string" }, { "name": "param", - "text": [ - { - "text": "bar", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "is second string", - "kind": "text" - } - ] + "text": "bar is second string" } ] } @@ -6545,37 +5680,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] } @@ -6767,37 +5876,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] } @@ -6989,37 +6072,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] } @@ -7211,37 +6268,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is first parameter", - "kind": "text" - } - ] + "text": "a it is first parameter" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "it is third parameter", - "kind": "text" - } - ] + "text": "c it is third parameter" } ] } @@ -7535,54 +6566,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] } @@ -7742,54 +6734,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] } @@ -7949,54 +6902,15 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about a\nspanning on two lines and aligned perfectly", - "kind": "text" - } - ] + "text": "a this is info about a\nspanning on two lines and aligned perfectly" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin", - "kind": "text" - } - ] + "text": "b this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" }, { "name": "param", - "text": [ - { - "text": "c", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "this is info about b\nnot aligned text about parameter will eat only one space", - "kind": "text" - } - ] + "text": "c this is info about b\nnot aligned text about parameter will eat only one space" } ] } diff --git a/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline b/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline index b2f6a0c141d9b..66af6c08827f1 100644 --- a/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline +++ b/tests/baselines/reference/signatureHelpCommentsFunctionDeclaration.baseline @@ -406,20 +406,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "a string", - "kind": "text" - } - ] + "text": "a a string" } ] } diff --git a/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline b/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline index e816216e1d48d..b1ce387a4fe54 100644 --- a/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline +++ b/tests/baselines/reference/signatureHelpCommentsFunctionExpression.baseline @@ -379,55 +379,19 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "param on expression", - "kind": "text" - } - ] + "text": "s param on expression" }, { "name": "returns", - "text": [ - { - "text": "return on expression", - "kind": "text" - } - ] + "text": "return on expression" }, { "name": "param", - "text": [ - { - "text": "s", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "the first parameter!", - "kind": "text" - } - ] + "text": "s the first parameter!" }, { "name": "returns", - "text": [ - { - "text": "the parameter's length", - "kind": "text" - } - ] + "text": "the parameter's length" } ] } diff --git a/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline b/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline index 34c4fce1b992a..2cecc06b9dbeb 100644 --- a/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline +++ b/tests/baselines/reference/signatureHelpConstructorCallParamProperties.baseline @@ -87,20 +87,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "radius", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The radius of the circle.", - "kind": "text" - } - ] + "text": "radius The radius of the circle." } ] } diff --git a/tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline b/tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline deleted file mode 100644 index 640c0c7dc1e79..0000000000000 --- a/tests/baselines/reference/signatureHelpJSDocCallbackTag.baseline +++ /dev/null @@ -1,548 +0,0 @@ -[ - { - "marker": { - "fileName": "/tests/cases/fourslash/server/jsdocCallbackTag.js", - "position": 480, - "name": "4" - }, - "signatureHelp": { - "items": [ - { - "isVariadic": false, - "prefixDisplayParts": [ - { - "text": "t", - "kind": "localName" - }, - { - "text": "(", - "kind": "punctuation" - } - ], - "suffixDisplayParts": [ - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "separatorDisplayParts": [ - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - } - ], - "parameters": [ - { - "name": "eventName", - "documentation": [ - { - "text": "- So many words", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - }, - { - "name": "eventName2", - "documentation": [ - { - "text": "- Silence is golden", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName2", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - }, - { - "name": "eventName3", - "documentation": [ - { - "text": "- Osterreich mos def", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName3", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - } - ], - "documentation": [], - "tags": [ - { - "name": "type", - "text": [ - { - "text": "{FooHandler} callback", - "kind": "text" - } - ] - } - ] - } - ], - "applicableSpan": { - "start": { - "line": 22, - "offset": 3 - }, - "end": { - "line": 22, - "offset": 17 - } - }, - "selectedItemIndex": 0, - "argumentIndex": 0, - "argumentCount": 3 - } - }, - { - "marker": { - "fileName": "/tests/cases/fourslash/server/jsdocCallbackTag.js", - "position": 485, - "name": "5" - }, - "signatureHelp": { - "items": [ - { - "isVariadic": false, - "prefixDisplayParts": [ - { - "text": "t", - "kind": "localName" - }, - { - "text": "(", - "kind": "punctuation" - } - ], - "suffixDisplayParts": [ - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "separatorDisplayParts": [ - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - } - ], - "parameters": [ - { - "name": "eventName", - "documentation": [ - { - "text": "- So many words", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - }, - { - "name": "eventName2", - "documentation": [ - { - "text": "- Silence is golden", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName2", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - }, - { - "name": "eventName3", - "documentation": [ - { - "text": "- Osterreich mos def", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName3", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - } - ], - "documentation": [], - "tags": [ - { - "name": "type", - "text": [ - { - "text": "{FooHandler} callback", - "kind": "text" - } - ] - } - ] - } - ], - "applicableSpan": { - "start": { - "line": 22, - "offset": 3 - }, - "end": { - "line": 22, - "offset": 17 - } - }, - "selectedItemIndex": 0, - "argumentIndex": 1, - "argumentCount": 3 - } - }, - { - "marker": { - "fileName": "/tests/cases/fourslash/server/jsdocCallbackTag.js", - "position": 489, - "name": "6" - }, - "signatureHelp": { - "items": [ - { - "isVariadic": false, - "prefixDisplayParts": [ - { - "text": "t", - "kind": "localName" - }, - { - "text": "(", - "kind": "punctuation" - } - ], - "suffixDisplayParts": [ - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "separatorDisplayParts": [ - { - "text": ",", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - } - ], - "parameters": [ - { - "name": "eventName", - "documentation": [ - { - "text": "- So many words", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - }, - { - "name": "eventName2", - "documentation": [ - { - "text": "- Silence is golden", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName2", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "|", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - }, - { - "name": "eventName3", - "documentation": [ - { - "text": "- Osterreich mos def", - "kind": "text" - } - ], - "displayParts": [ - { - "text": "eventName3", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "any", - "kind": "keyword" - } - ], - "isOptional": false, - "isRest": false - } - ], - "documentation": [], - "tags": [ - { - "name": "type", - "text": [ - { - "text": "{FooHandler} callback", - "kind": "text" - } - ] - } - ] - } - ], - "applicableSpan": { - "start": { - "line": 22, - "offset": 3 - }, - "end": { - "line": 22, - "offset": 17 - } - }, - "selectedItemIndex": 0, - "argumentIndex": 2, - "argumentCount": 3 - } - } -] \ No newline at end of file diff --git a/tests/baselines/reference/signatureHelpJSDocTags.baseline b/tests/baselines/reference/signatureHelpJSDocTags.baseline index aa9108406a593..d8d7f53f3d024 100644 --- a/tests/baselines/reference/signatureHelpJSDocTags.baseline +++ b/tests/baselines/reference/signatureHelpJSDocTags.baseline @@ -82,12 +82,7 @@ "tags": [ { "name": "myjsdoctag", - "text": [ - { - "text": "this is a comment", - "kind": "text" - } - ] + "text": "this is a comment" } ] } @@ -159,12 +154,7 @@ "tags": [ { "name": "mytag", - "text": [ - { - "text": "comment1 comment2", - "kind": "text" - } - ] + "text": "comment1 comment2" } ] } @@ -297,12 +287,7 @@ "tags": [ { "name": "returns", - "text": [ - { - "text": "a value", - "kind": "text" - } - ] + "text": "a value" } ] } diff --git a/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline b/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline index 4e7c06b0639cc..0c70fab97f360 100644 --- a/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline +++ b/tests/baselines/reference/signatureHelpJSMissingPropertyAccess.baseline @@ -280,37 +280,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "predicate", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.", - "kind": "text" - } - ] + "text": "predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array." }, { "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] + "text": "thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value." } ] }, @@ -543,37 +517,11 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "predicate", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.", - "kind": "text" - } - ] + "text": "predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array." }, { "name": "param", - "text": [ - { - "text": "thisArg", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.", - "kind": "text" - } - ] + "text": "thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value." } ] } diff --git a/tests/baselines/reference/signatureHelpTypeArguments2.baseline b/tests/baselines/reference/signatureHelpTypeArguments2.baseline index e79ddcba49d2c..cc640c86df268 100644 --- a/tests/baselines/reference/signatureHelpTypeArguments2.baseline +++ b/tests/baselines/reference/signatureHelpTypeArguments2.baseline @@ -193,80 +193,23 @@ "tags": [ { "name": "template", - "text": [ - { - "text": "T", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "some documentation 2", - "kind": "text" - } - ] + "text": "T some documentation 2" }, { "name": "template", - "text": [ - { - "text": "W", - "kind": "text" - } - ] + "text": "W" }, { "name": "template", - "text": [ - { - "text": "U, V", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "others", - "kind": "text" - } - ] + "text": "U, V others" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ok", - "kind": "text" - } - ] + "text": "a ok" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "not ok", - "kind": "text" - } - ] + "text": "b not ok" } ] } @@ -474,80 +417,23 @@ "tags": [ { "name": "template", - "text": [ - { - "text": "T", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "some documentation 2", - "kind": "text" - } - ] + "text": "T some documentation 2" }, { "name": "template", - "text": [ - { - "text": "W", - "kind": "text" - } - ] + "text": "W" }, { "name": "template", - "text": [ - { - "text": "U, V", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "others", - "kind": "text" - } - ] + "text": "U, V others" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ok", - "kind": "text" - } - ] + "text": "a ok" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "not ok", - "kind": "text" - } - ] + "text": "b not ok" } ] } @@ -755,80 +641,23 @@ "tags": [ { "name": "template", - "text": [ - { - "text": "T", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "some documentation 2", - "kind": "text" - } - ] + "text": "T some documentation 2" }, { "name": "template", - "text": [ - { - "text": "W", - "kind": "text" - } - ] + "text": "W" }, { "name": "template", - "text": [ - { - "text": "U, V", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "others", - "kind": "text" - } - ] + "text": "U, V others" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ok", - "kind": "text" - } - ] + "text": "a ok" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "not ok", - "kind": "text" - } - ] + "text": "b not ok" } ] } @@ -1036,80 +865,23 @@ "tags": [ { "name": "template", - "text": [ - { - "text": "T", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "some documentation 2", - "kind": "text" - } - ] + "text": "T some documentation 2" }, { "name": "template", - "text": [ - { - "text": "W", - "kind": "text" - } - ] + "text": "W" }, { "name": "template", - "text": [ - { - "text": "U, V", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "others", - "kind": "text" - } - ] + "text": "U, V others" }, { "name": "param", - "text": [ - { - "text": "a", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "ok", - "kind": "text" - } - ] + "text": "a ok" }, { "name": "param", - "text": [ - { - "text": "b", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "not ok", - "kind": "text" - } - ] + "text": "b not ok" } ] } diff --git a/tests/baselines/reference/signatureHelpWithUnknown.baseline b/tests/baselines/reference/signatureHelpWithUnknown.baseline index 79436405c215a..29b7572023e83 100644 --- a/tests/baselines/reference/signatureHelpWithUnknown.baseline +++ b/tests/baselines/reference/signatureHelpWithUnknown.baseline @@ -87,20 +87,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "x", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "A String value that contains valid JavaScript code.", - "kind": "text" - } - ] + "text": "x A String value that contains valid JavaScript code." } ] } diff --git a/tests/baselines/reference/smartSelection_JSDocTags1.baseline b/tests/baselines/reference/smartSelection_JSDocTags1.baseline index 26c5fb2e9b3bb..0e390bc2fef6e 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags1.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags1.baseline @@ -16,8 +16,7 @@ function foo() { return [] } Array<{ value: string }> - @returns {Array<{ value: string }>}↲ -• + @returns {Array<{ value: string }>} /** diff --git a/tests/baselines/reference/smartSelection_JSDocTags2.baseline b/tests/baselines/reference/smartSelection_JSDocTags2.baseline index e7c80be468838..8177bd36144c2 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags2.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags2.baseline @@ -7,8 +7,7 @@ const foo; string - @type {string}↲ -• + @type {string} /** diff --git a/tests/baselines/reference/smartSelection_JSDocTags9.baseline b/tests/baselines/reference/smartSelection_JSDocTags9.baseline index 9192ca8fdc22e..0d4bdc8eced5c 100644 --- a/tests/baselines/reference/smartSelection_JSDocTags9.baseline +++ b/tests/baselines/reference/smartSelection_JSDocTags9.baseline @@ -8,7 +8,7 @@ const Foo = { number - @enum {number}• + @enum {number} /** @enum {number} */ diff --git a/tests/baselines/reference/trailingCommaSignatureHelp.baseline b/tests/baselines/reference/trailingCommaSignatureHelp.baseline index 6b4243453eeca..043fc9e6b70d8 100644 --- a/tests/baselines/reference/trailingCommaSignatureHelp.baseline +++ b/tests/baselines/reference/trailingCommaSignatureHelp.baseline @@ -180,20 +180,7 @@ "tags": [ { "name": "param", - "text": [ - { - "text": "radix", - "kind": "text" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "The radix", - "kind": "text" - } - ] + "text": "radix The radix" } ] } diff --git a/tests/baselines/reference/unusedTypeParameters_templateTag.errors.txt b/tests/baselines/reference/unusedTypeParameters_templateTag.errors.txt index 9f815287ff8d3..46f6b6b2fd35c 100644 --- a/tests/baselines/reference/unusedTypeParameters_templateTag.errors.txt +++ b/tests/baselines/reference/unusedTypeParameters_templateTag.errors.txt @@ -3,7 +3,7 @@ ==== /a.js (1 errors) ==== /** @template T */ - ~~~~~~~~~~~~ + ~~~~~~~~~~~ !!! error TS6133: 'T' is declared but its value is never read. function f() {} \ No newline at end of file diff --git a/tests/baselines/reference/unusedTypeParameters_templateTag2.errors.txt b/tests/baselines/reference/unusedTypeParameters_templateTag2.errors.txt index 63378f0485ad3..9f9ef45f88d47 100644 --- a/tests/baselines/reference/unusedTypeParameters_templateTag2.errors.txt +++ b/tests/baselines/reference/unusedTypeParameters_templateTag2.errors.txt @@ -9,9 +9,8 @@ * @template T * @template V ~~~~~~~~~~~ - */ - ~ !!! error TS6133: 'V' is declared but its value is never read. + */ class C1 { constructor() { /** @type {T} */ @@ -22,9 +21,8 @@ /** * @template T,V ~~~~~~~~~~~~~ - */ - ~ !!! error TS6205: All type parameters are unused. + */ class C2 { constructor() { } } diff --git a/tests/cases/compiler/APISample_jsdoc.ts b/tests/cases/compiler/APISample_jsdoc.ts index 22f98f4797f36..1ca3c88e5507a 100644 --- a/tests/cases/compiler/APISample_jsdoc.ts +++ b/tests/cases/compiler/APISample_jsdoc.ts @@ -39,7 +39,7 @@ function parseCommentsIntoDefinition(this: any, } // jsdocs are separate from comments - const jsdocs = symbol.getJsDocTags(this.checker); + const jsdocs = symbol.getJsDocTags(); jsdocs.forEach(doc => { // if we have @TJS-... annotations, we have to parse them const { name, text } = doc; @@ -63,7 +63,7 @@ function getAnnotations(this: any, node: ts.Node): Annotations | undefined { return undefined; } - const jsDocTags: ts.JSDocTagInfo[] = symbol.getJsDocTags(this.checker); + const jsDocTags: ts.JSDocTagInfo[] = symbol.getJsDocTags(); if (!jsDocTags || !jsDocTags.length) { return undefined; } diff --git a/tests/cases/conformance/jsdoc/linkTagEmit1.ts b/tests/cases/conformance/jsdoc/linkTagEmit1.ts deleted file mode 100644 index 3c35376414618..0000000000000 --- a/tests/cases/conformance/jsdoc/linkTagEmit1.ts +++ /dev/null @@ -1,23 +0,0 @@ -// @checkJs: true -// @outdir: foo -// @declaration: true -// @filename: declarations.d.ts -declare namespace NS { - type R = number -} -// @filename: linkTagEmit1.js -/** @typedef {number} N */ -/** - * @typedef {Object} D1 - * @property {1} e Just link to {@link NS.R} this time - * @property {1} m Wyatt Earp loved {@link N integers} I bet. - */ - -/** @typedef {number} Z @see N {@link N} */ - -/** - * @param {number} integer {@link Z} - */ -function computeCommonSourceDirectoryOfFilenames(integer) { - return integer + 1 // pls pls pls -} diff --git a/tests/cases/fourslash/codeFixInferFromUsageJS.ts b/tests/cases/fourslash/codeFixInferFromUsageJS.ts index dea3fec2d529c..be36fec5825ed 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageJS.ts @@ -9,4 +9,4 @@ //// foo += 2; ////} -verify.rangeAfterCodeFix("/**\n * @type {number}\n*/\nvar foo;",/*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0); +verify.rangeAfterCodeFix("/** @type {number} */\nvar foo;",/*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0); diff --git a/tests/cases/fourslash/codeFixInferFromUsageMemberJS.ts b/tests/cases/fourslash/codeFixInferFromUsageMemberJS.ts index 15b81c687ba36..f53c89b6fccbd 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageMemberJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageMemberJS.ts @@ -30,9 +30,7 @@ verify.codeFixAll({ * @type {number[] | undefined} */ this.p = undefined; - /** - * @type {number[] | undefined} - */ + /** @type {number[] | undefined} */ this.q = undefined } method() { diff --git a/tests/cases/fourslash/codeFixInferFromUsageVariable2JS.ts b/tests/cases/fourslash/codeFixInferFromUsageVariable2JS.ts index 2d96438e68d39..27482acf37713 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageVariable2JS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageVariable2JS.ts @@ -10,9 +10,7 @@ //// x++; ////}|] -verify.rangeAfterCodeFix(`/** - * @type {number} - */ +verify.rangeAfterCodeFix(`/** @type {number} */ var x; function f() { x++; diff --git a/tests/cases/fourslash/codeFixInferFromUsageVariableJS.ts b/tests/cases/fourslash/codeFixInferFromUsageVariableJS.ts index ee74512e5f71a..bbd5409a25ca3 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageVariableJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageVariableJS.ts @@ -11,4 +11,4 @@ //// x++; ////} -verify.rangeAfterCodeFix("/**\n * @type {number}\n*/\nvar x;", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0); +verify.rangeAfterCodeFix("/** @type {number } */\nvar x;", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0); diff --git a/tests/cases/fourslash/codeFixInferFromUsage_allJS.ts b/tests/cases/fourslash/codeFixInferFromUsage_allJS.ts index f85461c4f4de5..00e44660a9848 100644 --- a/tests/cases/fourslash/codeFixInferFromUsage_allJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsage_allJS.ts @@ -40,9 +40,7 @@ function g(z) { return z * 2; } -/** - * @type {number | null} - */ +/** @type {number | null} */ let x = null; function h() { if (!x) x = 2; diff --git a/tests/cases/fourslash/codeFixUnusedIdentifier_all_delete_js.ts b/tests/cases/fourslash/codeFixUnusedIdentifier_all_delete_js.ts index cd9a2138f727c..7920810cacf50 100644 --- a/tests/cases/fourslash/codeFixUnusedIdentifier_all_delete_js.ts +++ b/tests/cases/fourslash/codeFixUnusedIdentifier_all_delete_js.ts @@ -40,29 +40,35 @@ verify.codeFixAll({ fixId: "unusedIdentifier_delete", fixAllDescription: ts.Diagnostics.Delete_all_unused_declarations.message, newFileContent: -`/** */ +`/** Parameter doc comment */ function f() {} /** * Doc - * */ + * Comment + */ function g() {} /** * Doc - * */ + * Comment + * Comment + */ function h() {} /** * Doc - * */ + * Comment + */ function h2() {} -/** @return {void} */ +/** Comment @return {void} */ function i() {} /** Doc +comment +comment @param {number} x */ function j(x) { return x; }`, diff --git a/tests/cases/fourslash/codeFixUnusedIdentifier_delete_templateTag.ts b/tests/cases/fourslash/codeFixUnusedIdentifier_delete_templateTag.ts index 5c0dae5b521dd..01ab6985d8374 100644 --- a/tests/cases/fourslash/codeFixUnusedIdentifier_delete_templateTag.ts +++ b/tests/cases/fourslash/codeFixUnusedIdentifier_delete_templateTag.ts @@ -55,6 +55,7 @@ verify.codeFix({ description: "Remove template tag", newFileContent: `/** - * */ + * Comment + */ function both() {}`, }); diff --git a/tests/cases/fourslash/completionEntryForUnionMethod.ts b/tests/cases/fourslash/completionEntryForUnionMethod.ts index 2804a373fd2a0..b309d453f16e2 100644 --- a/tests/cases/fourslash/completionEntryForUnionMethod.ts +++ b/tests/cases/fourslash/completionEntryForUnionMethod.ts @@ -7,4 +7,15 @@ const text = "(method) Array.map(callbackfn: ((value: string, index: const documentation = "Calls a defined callback function on each element of an array, and returns an array that contains the results."; verify.quickInfoAt("", text, documentation); -verify.baselineCompletions() +verify.completions({ + marker: "", + includes: { + name: "map", + text, + documentation, + tags: [ + { name: "param", text: "callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array." }, + { name: "param", text: "thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value." } + ], + }, +}); diff --git a/tests/cases/fourslash/findAllRefsJsDocTypeDef_js.ts b/tests/cases/fourslash/findAllRefsJsDocTypeDef_js.ts index 844c2532775c6..fb3cdf5bc33a3 100644 --- a/tests/cases/fourslash/findAllRefsJsDocTypeDef_js.ts +++ b/tests/cases/fourslash/findAllRefsJsDocTypeDef_js.ts @@ -5,7 +5,7 @@ // @allowJs: true // @Filename: /a.js -/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|] |]*/ +/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|]|] */ //// /////** //// * @return {[|T|]} diff --git a/tests/cases/fourslash/findAllRefsTypedef_importType.ts b/tests/cases/fourslash/findAllRefsTypedef_importType.ts index f84632d729d74..4816406d518f3 100644 --- a/tests/cases/fourslash/findAllRefsTypedef_importType.ts +++ b/tests/cases/fourslash/findAllRefsTypedef_importType.ts @@ -4,7 +4,7 @@ // @Filename: /a.js ////module.exports = 0; -/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}Foo|] |]*/ +/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}Foo|]|] */ ////const dummy = 0; // @Filename: /b.js diff --git a/tests/cases/fourslash/fourslash.ts b/tests/cases/fourslash/fourslash.ts index f9b111dc31f11..80e00b42183f8 100644 --- a/tests/cases/fourslash/fourslash.ts +++ b/tests/cases/fourslash/fourslash.ts @@ -745,7 +745,7 @@ declare namespace FourSlashInterface { interface JSDocTagInfo { readonly name: string; - readonly text: string | ts.SymbolDisplayPart[] | undefined; + readonly text: string | undefined; } interface GenerateTypesOptions { diff --git a/tests/cases/fourslash/getJavaScriptCompletions16.ts b/tests/cases/fourslash/getJavaScriptCompletions16.ts index a61e4681b62eb..112bef3c24b97 100644 --- a/tests/cases/fourslash/getJavaScriptCompletions16.ts +++ b/tests/cases/fourslash/getJavaScriptCompletions16.ts @@ -30,7 +30,7 @@ edit.backspace(); verify.signatureHelp({ marker: "sig", text: "Something(a: number, b: any): Something", - tags: [{ name: "param", text: [{ kind: "text", text: "a" }] }], + tags: [{ name: "param", text: "a" }], }); goTo.marker('method'); diff --git a/tests/cases/fourslash/gotoDefinitionLinkTag1.ts b/tests/cases/fourslash/gotoDefinitionLinkTag1.ts deleted file mode 100644 index 26033e7260753..0000000000000 --- a/tests/cases/fourslash/gotoDefinitionLinkTag1.ts +++ /dev/null @@ -1,56 +0,0 @@ -/// - -// @Filename: foo.ts -//// interface [|/*def1*/Foo|] { -//// foo: string -//// } - -//// namespace NS { -//// export interface [|/*def2*/Bar|] { -//// baz: Foo -//// } -//// } - -//// /** {@link /*use1*/[|Foo|]} foooo*/ -//// const a = "" - -//// /** {@link NS./*use2*/[|Bar|]} ns.bar*/ -//// const b = "" - -//// /** {@link /*use3*/[|Foo|] f1}*/ -//// const c = "" - -//// /** {@link NS./*use4*/[|Bar|] ns.bar}*/ -//// const [|/*def3*/d|] = "" - -//// /** {@link /*use5*/[|d|] }dd*/ -//// const e = "" - -// Without lookahead, ambiguous between suffix type and link tag -//// /** @param x {@link /*use6*/[|Foo|]} */ -//// function foo(x) { } - -// @Filename: bar.ts -//// /** {@link /*use7*/[|Foo|] }dd*/ -//// const f = "" - -goTo.marker("use1"); -verify.goToDefinitionIs("def1"); - -goTo.marker("use2"); -verify.goToDefinitionIs("def2"); - -goTo.marker("use3"); -verify.goToDefinitionIs("def1"); - -goTo.marker("use4"); -verify.goToDefinitionIs("def2"); - -goTo.marker("use5"); -verify.goToDefinitionIs("def3"); - -goTo.marker("use6"); -verify.goToDefinitionIs("def1"); - -goTo.marker("use7"); -verify.goToDefinitionIs("def1"); diff --git a/tests/cases/fourslash/importJsNodeModule3.ts b/tests/cases/fourslash/importJsNodeModule3.ts index 3551a574a34a6..4f3777724e1a6 100644 --- a/tests/cases/fourslash/importJsNodeModule3.ts +++ b/tests/cases/fourslash/importJsNodeModule3.ts @@ -37,7 +37,7 @@ verify.signatureHelp({ text: "z(a: number | boolean, b: string[]): string", parameterDocComment: "The first param", tags: [ - { name: "param", text: [{ kind: "text", text: "a" }, { kind: "space", text: " " }, { kind: "text", text: "The first param" }] }, - { name: "param", text: [{ kind: "text", text: "b" }, { kind: "space", text: " " }, { kind: "text", text: "The second param" }] }, + { name: "param", text: "a The first param" }, + { name: "param", text: "b The second param" }, ], }); diff --git a/tests/cases/fourslash/jsDocDontBreakWithNamespaces.ts b/tests/cases/fourslash/jsDocDontBreakWithNamespaces.ts index 0fd89194f99d4..fbbb93cdb6d06 100644 --- a/tests/cases/fourslash/jsDocDontBreakWithNamespaces.ts +++ b/tests/cases/fourslash/jsDocDontBreakWithNamespaces.ts @@ -19,3 +19,30 @@ // #31298 verify.baselineSignatureHelp() + + +verify.signatureHelp({ + marker: "foo", + text: "foo(): any", + docComment: "", + tags: [ + { name: "returns", text: "Websocket server object" }, + ], +}); + +verify.signatureHelp({ + marker: "bar", + text: "bar(): void", + docComment: "", + tags: [], +}); + + +verify.signatureHelp({ + marker: "zee", + text: "zee(): any", + docComment: "", + tags: [ + { name: "type", text: "{function(module:xxxx, module:xxxx): module:xxxxx}" }, + ], +}); diff --git a/tests/cases/fourslash/jsdocLink1.ts b/tests/cases/fourslash/jsdocLink1.ts deleted file mode 100644 index df42c496a9bed..0000000000000 --- a/tests/cases/fourslash/jsdocLink1.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// - -//// class C { -//// } -//// /** -//// * {@link C} -//// * @wat Makes a {@link C}. A default one. -//// * {@link C()} -//// * {@link C|postfix text} -//// * {@link unformatted postfix text} -//// * @see {@link C} its great -//// */ -//// function /**/CC() { -//// } - -verify.baselineQuickInfo(); diff --git a/tests/cases/fourslash/jsdocLink2.ts b/tests/cases/fourslash/jsdocLink2.ts deleted file mode 100644 index 35151957d126a..0000000000000 --- a/tests/cases/fourslash/jsdocLink2.ts +++ /dev/null @@ -1,18 +0,0 @@ -/// - -// @Filename: jsdocLink2.ts -//// class C { -//// } -// @Filename: script.ts -//// /** -//// * {@link C} -//// * @wat Makes a {@link C}. A default one. -//// * {@link C()} -//// * {@link C|postfix text} -//// * {@link unformatted postfix text} -//// * @see {@link C} its great -//// */ -//// function /**/CC() { -//// } - -verify.baselineQuickInfo(); diff --git a/tests/cases/fourslash/jsdocLink3.ts b/tests/cases/fourslash/jsdocLink3.ts deleted file mode 100644 index f31363a834210..0000000000000 --- a/tests/cases/fourslash/jsdocLink3.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// - -// @Filename: /jsdocLink3.ts -//// export class C { -//// } -// @Filename: /module1.ts -//// import { C } from './jsdocLink3' -//// /** -//// * {@link C} -//// * @wat Makes a {@link C}. A default one. -//// * {@link C()} -//// * {@link C|postfix text} -//// * {@link unformatted postfix text} -//// * @see {@link C} its great -//// */ -//// function /**/CC() { -//// } - -verify.baselineQuickInfo(); diff --git a/tests/cases/fourslash/jsdocLink_findAllReferences1.ts b/tests/cases/fourslash/jsdocLink_findAllReferences1.ts deleted file mode 100644 index 656ae3fe7934c..0000000000000 --- a/tests/cases/fourslash/jsdocLink_findAllReferences1.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -//// interface A/**/ {} -//// /** -//// * {@link A()} is ok -//// */ -//// declare const a: A - -verify.baselineFindAllReferences(""); diff --git a/tests/cases/fourslash/jsdocLink_rename1.ts b/tests/cases/fourslash/jsdocLink_rename1.ts deleted file mode 100644 index e49fd5c124bf1..0000000000000 --- a/tests/cases/fourslash/jsdocLink_rename1.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -//// interface A/**/ {} -//// /** -//// * {@link A()} is ok -//// */ -//// declare const a: A - -verify.baselineRename('', {}) diff --git a/tests/cases/fourslash/jsdocTypedefTagSemanticMeaning0.ts b/tests/cases/fourslash/jsdocTypedefTagSemanticMeaning0.ts index 4d4bb63058f5c..44156116d2f83 100644 --- a/tests/cases/fourslash/jsdocTypedefTagSemanticMeaning0.ts +++ b/tests/cases/fourslash/jsdocTypedefTagSemanticMeaning0.ts @@ -3,7 +3,7 @@ // @allowJs: true // @Filename: a.js -/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|] |]*/ +/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|]|] */ ////[|const [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}T|] = 1;|] diff --git a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts index 6d4324adb8877..16b6b80c59d9e 100644 --- a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts +++ b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts @@ -14,15 +14,7 @@ //// import a = require("./a"); //// a.fo/*2*/ -const entry = (text: string): FourSlashInterface.ExpectedCompletionEntry => ({ - name: "foo", - text, - documentation: "Modify the parameter", - tags: [{ - name: "param", - text: "p1", - }] -}); +const entry = (text: string): FourSlashInterface.ExpectedCompletionEntry => ({ name: "foo", text, documentation: "Modify the parameter", tags: [{ name: "param", text: "p1" }] }); verify.completions( { marker: "1", includes: entry("var foo: (p1: string) => void") }, { marker: "2", exact: entry("(alias) var foo: (p1: string) => void\nimport a.foo") }, diff --git a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts index fb131ce5d7ace..03aeee3b0ed1f 100644 --- a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts +++ b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts @@ -15,16 +15,6 @@ //// a.fo/*2*/ verify.completions( - { marker: "1", includes: { - name: "foo", - text: "var foo: (p1: string) => void", - documentation: "Modify the parameter", - tags: [{ name: "param", text: "p1" }] - } }, - { marker: "2", exact: { - name: "foo", - text: "(alias) var foo: (p1: string) => void\nimport a.foo", - documentation: "Modify the parameter", - tags: [{ name: "param", text: "p1" }] - } }, + { marker: "1", includes: { name: "foo", text: "var foo: (p1: string) => void", documentation: "Modify the parameter", tags: [{ name: "param", text: "p1" }] } }, + { marker: "2", exact: { name: "foo", text: "(alias) var foo: (p1: string) => void\nimport a.foo", documentation: "Modify the parameter", tags: [{ name: "param", text: "p1" }] } }, ); diff --git a/tests/cases/fourslash/server/completions02.ts b/tests/cases/fourslash/server/completions02.ts index 603d2079d66c1..8e44edd8225c1 100644 --- a/tests/cases/fourslash/server/completions02.ts +++ b/tests/cases/fourslash/server/completions02.ts @@ -10,9 +10,9 @@ const sortedFunctionMembers = completion.functionMembersWithPrototype.slice().sort((a, b) => a.name.localeCompare(b.name)); const exact: ReadonlyArray = [ ...sortedFunctionMembers.map(e => - e.name === "arguments" ? { ...e, kind: "property", kindModifiers: "declare", tags: [] } : + e.name === "arguments" ? { ...e, kind: "property", kindModifiers: "declare" } : e.name === "prototype" ? { ...e, kindModifiers: undefined } : e), - { name: "x", text: "var Foo.x: number", tags: [] }, + { name: "x", text: "var Foo.x: number" }, ]; verify.completions({ marker: "", exact }); diff --git a/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts b/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts index 2532b09d2c8fb..16dd9d7fb1dce 100644 --- a/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts +++ b/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts @@ -21,8 +21,7 @@ verify.completions({ kind: "const", kindModifiers: "export", hasAction: true, - sortText: completion.SortText.AutoImportSuggestions, - tags: [] + sortText: completion.SortText.AutoImportSuggestions }, { name: "someModule", @@ -32,8 +31,7 @@ verify.completions({ kind: "property", kindModifiers: "export", hasAction: true, - sortText: completion.SortText.AutoImportSuggestions, - tags: [] + sortText: completion.SortText.AutoImportSuggestions }, ], preferences: { diff --git a/tests/cases/fourslash/server/jsdocCallbackTag.ts b/tests/cases/fourslash/server/jsdocCallbackTag.ts index df1b9e1296919..315ad0ee1735e 100644 --- a/tests/cases/fourslash/server/jsdocCallbackTag.ts +++ b/tests/cases/fourslash/server/jsdocCallbackTag.ts @@ -33,3 +33,19 @@ goTo.marker("3"); verify.quickInfoIs("type FooHandler2 = (eventName?: string | undefined, eventName2?: string) => any", "- What, another one?"); goTo.marker("8"); verify.quickInfoIs("type FooHandler = (eventName: string, eventName2: number | string, eventName3: any) => number", "- A kind of magic"); +verify.signatureHelp({ + marker: '4', + text: "t(eventName: string, eventName2: string | number, eventName3: any): number", + parameterDocComment: "- So many words", + tags: [{ name: "type", text: "{FooHandler} callback" }] +}); +verify.signatureHelp({ + marker: '5', + parameterDocComment: "- Silence is golden", + tags: [{ name: "type", text: "{FooHandler} callback" }] +}); +verify.signatureHelp({ + marker: '6', + parameterDocComment: "- Osterreich mos def", + tags: [{ name: "type", text: "{FooHandler} callback" }] +}); diff --git a/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts b/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts index 45bfd871aea5c..30c99deb0a86c 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts @@ -3,7 +3,7 @@ // @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js //// -//// /** [|@typedef {(string | number)} [|{| "contextRangeIndex": 0 |}NumberLike|] |]*/ +//// /** [|@typedef {(string | number)} [|{| "contextRangeIndex": 0 |}NumberLike|]|] */ //// //// /** @type {[|NumberLike|]} */ //// var numberLike; diff --git a/tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts b/tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts deleted file mode 100644 index 65a831ebd5598..0000000000000 --- a/tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// - -// @allowNonTsExtensions: true -// @Filename: jsdocCallbackTag.js -//// /** -//// * @callback FooHandler - A kind of magic -//// * @param {string} eventName - So many words -//// * @param eventName2 {number | string} - Silence is golden -//// * @param eventName3 - Osterreich mos def -//// * @return {number} - DIVEKICK -//// */ -//// /** -//// * @type {FooHandler} callback -//// */ -//// var t; -//// -//// /** -//// * @callback FooHandler2 - What, another one? -//// * @param {string=} eventName - it keeps happening -//// * @param {string} [eventName2] - i WARNED you dog -//// */ -//// /** -//// * @type {FooHandler2} callback -//// */ -//// var t2; -//// t(/*4*/"!", /*5*/12, /*6*/false); - -verify.baselineSignatureHelp() diff --git a/tests/cases/fourslash/signatureHelpWhenEditingCallExpression.ts b/tests/cases/fourslash/signatureHelpWhenEditingCallExpression.ts index 64da8e16b2e07..334a6f30058b4 100644 --- a/tests/cases/fourslash/signatureHelpWhenEditingCallExpression.ts +++ b/tests/cases/fourslash/signatureHelpWhenEditingCallExpression.ts @@ -10,8 +10,8 @@ ////fo/*1*/ const tags: ReadonlyArray = [ - { name: "param", text: [{ kind: "text", text: "start" }, { kind: "space", text: " " }, { kind: "text", text: "The start" }] }, - { name: "param", text: [{ kind: "text", text: "end" }, { kind: "space", text: " " }, { kind: "text", text: "The end\nMore text" }] }, + { name: "param", text: "start The start" }, + { name: "param", text: "end The end\nMore text" }, ]; verify.noSignatureHelp("1"); edit.insert("o"); diff --git a/tests/cases/fourslash/syntacticClassificationForJSDocTemplateTag.ts b/tests/cases/fourslash/syntacticClassificationForJSDocTemplateTag.ts index 4ee90fd376068..0f8169828b30d 100644 --- a/tests/cases/fourslash/syntacticClassificationForJSDocTemplateTag.ts +++ b/tests/cases/fourslash/syntacticClassificationForJSDocTemplateTag.ts @@ -1,6 +1,6 @@ /// -/////** @template T baring strait */ +/////** @template T */ ////function ident: T { ////} @@ -10,8 +10,7 @@ verify.syntacticClassificationsAre( c.punctuation("@"), c.docCommentTagName("template"), c.typeParameterName("T"), - c.comment("baring strait "), - c.comment("*/"), + c.comment(" */"), c.keyword("function"), c.identifier("ident"), c.punctuation("<"), diff --git a/tests/cases/fourslash/syntacticClassificationsDocComment1.ts b/tests/cases/fourslash/syntacticClassificationsDocComment1.ts index 88f75610a1b65..5a0194e8c5ad2 100644 --- a/tests/cases/fourslash/syntacticClassificationsDocComment1.ts +++ b/tests/cases/fourslash/syntacticClassificationsDocComment1.ts @@ -11,7 +11,7 @@ verify.syntacticClassificationsAre( c.punctuation("{"), c.keyword("number"), c.punctuation("}"), - c.comment("*/"), + c.comment(" */"), c.keyword("var"), c.identifier("v"), c.punctuation(";"));