From 219e30097de4f333a536d006f7a9b2426fbe5df9 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 31 Aug 2025 07:18:33 -0700 Subject: [PATCH 01/18] Add missing ast.IsVariableDeclarationList test --- internal/ls/hover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ls/hover.go b/internal/ls/hover.go index 548228d0a9..a608fdf024 100644 --- a/internal/ls/hover.go +++ b/internal/ls/hover.go @@ -355,7 +355,7 @@ func getJSDocOrTag(node *ast.Node) *ast.Node { return getMatchingJSDocTag(node.Parent, node.Name().Text(), isMatchingParameterTag) case ast.IsTypeParameterDeclaration(node): return getMatchingJSDocTag(node.Parent, node.Name().Text(), isMatchingTemplateTag) - case ast.IsVariableDeclaration(node) && core.FirstOrNil(node.Parent.AsVariableDeclarationList().Declarations.Nodes) == node: + case ast.IsVariableDeclaration(node) && ast.IsVariableDeclarationList(node.Parent) && core.FirstOrNil(node.Parent.AsVariableDeclarationList().Declarations.Nodes) == node: return getJSDocOrTag(node.Parent.Parent) case (ast.IsFunctionExpressionOrArrowFunction(node) || ast.IsClassExpression(node)) && (ast.IsVariableDeclaration(node.Parent) || ast.IsPropertyDeclaration(node.Parent) || ast.IsPropertyAssignment(node.Parent)) && node.Parent.Initializer() == node: From 1288cdc13b02f133c6dfd8e486e2043514fca409 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 3 Sep 2025 13:51:12 -0700 Subject: [PATCH 02/18] Handle rename in fourslash converter + skeleton verification functions --- .../fourslash/_scripts/convertFourslash.mts | 45 ++++++++++++++++++- internal/fourslash/fourslash.go | 12 +++++ 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/internal/fourslash/_scripts/convertFourslash.mts b/internal/fourslash/_scripts/convertFourslash.mts index 3d0743a40b..9d4113c030 100644 --- a/internal/fourslash/_scripts/convertFourslash.mts +++ b/internal/fourslash/_scripts/convertFourslash.mts @@ -182,6 +182,10 @@ function parseFourslashStatement(statement: ts.Statement): Cmd[] | undefined { // - `verify.baselineGetDefinitionAtPosition(...)` called getDefinitionAtPosition // LSP doesn't have two separate commands though. It's unclear how we would model bound spans though. return parseBaselineGoToDefinitionArgs(callExpression.arguments); + case "baselineRename": + case "baselineRenameAtRangesWithText": + // `verify.baselineRename...(...)` + return parseBaselineRenameArgs(func.text, callExpression.arguments); } } // `goTo....` @@ -793,6 +797,27 @@ function parseBaselineGoToDefinitionArgs(args: readonly ts.Expression[]): [Verif }]; } +function parseBaselineRenameArgs(funcName: string, args: readonly ts.Expression[]): [VerifyBaselineRenameCmd] | undefined { + let newArgs: string[] = [] + for (const arg of args) { + let typedArg; + if (ts.isStringLiteral(arg)) { + newArgs.push(getGoStringLiteral(arg.text)) + } + else if ((typedArg = getArrayLiteralExpression(arg)) && typedArg.elements.every(ts.isStringLiteral)) { + newArgs = newArgs.concat(typedArg.elements.map(e => getGoStringLiteral((e as ts.StringLiteral).text))) + } + else { + console.error(`Unrecognized argument in verify.baselineRename: ${arg.getText()}`); + return undefined; + } + } + return [{ + kind: funcName === "baselineRenameAtRangesWithText" ? "verifyBaselineRenameAtRangesWithText" : "verifyBaselineRename", + args: newArgs + }] +} + function parseBaselineQuickInfo(args: ts.NodeArray): VerifyBaselineQuickInfoCmd { if (args.length !== 0) { // All calls are currently empty! @@ -1097,6 +1122,11 @@ interface VerifyBaselineSignatureHelpCmd { kind: "verifyBaselineSignatureHelp"; } +interface VerifyBaselineRenameCmd { + kind: "verifyBaselineRename" | "verifyBaselineRenameAtRangesWithText"; + args: string[]; +} + interface GoToCmd { kind: "goTo"; // !!! `selectRange` and `rangeStart` require parsing variables and `test.ranges()[n]` @@ -1124,7 +1154,8 @@ type Cmd = | VerifyBaselineSignatureHelpCmd | GoToCmd | EditCmd - | VerifyQuickInfoCmd; + | VerifyQuickInfoCmd + | VerifyBaselineRenameCmd; function generateVerifyCompletions({ marker, args, isNewIdentifierLocation }: VerifyCompletionsCmd): string { let expectedList: string; @@ -1185,6 +1216,15 @@ function generateQuickInfoCommand({ kind, marker, text, docs }: VerifyQuickInfoC } } +function generateBaselineRename({ kind, args }: VerifyBaselineRenameCmd): string { + switch (kind) { + case "verifyBaselineRename": + return `f.VerifyBaselineRename(t, ${args.join(", ")})`; + case "verifyBaselineRenameAtRangesWithText": + return `f.VerifyBaselineRenameAtRangesWithText(t, ${args.join(", ")})`; + } +} + function generateCmd(cmd: Cmd): string { switch (cmd.kind) { case "verifyCompletions": @@ -1207,6 +1247,9 @@ function generateCmd(cmd: Cmd): string { case "quickInfoExists": case "notQuickInfoExists": return generateQuickInfoCommand(cmd); + case "verifyBaselineRename": + case "verifyBaselineRenameAtRangesWithText": + return generateBaselineRename(cmd) default: let neverCommand: never = cmd; throw new Error(`Unknown command kind: ${neverCommand as Cmd["kind"]}`); diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index c64cd1f72d..e3fef0ba2a 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1535,3 +1535,15 @@ func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames } baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) } + +func (f *FourslashTest) VerifyBaselineRename( + t *testing.T, + markers ...string, +) { +} + +func (f *FourslashTest) VerifyBaselineRenameAtRangesWithText( + t *testing.T, + texts ...string, +) { +} From fc64898fc2ce748499d61ae7d4f2dd9f466600de Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Thu, 4 Sep 2025 10:30:49 -0700 Subject: [PATCH 03/18] WIP: baselineRename --- internal/fourslash/fourslash.go | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index e3fef0ba2a..2d91aec282 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1540,6 +1540,57 @@ func (f *FourslashTest) VerifyBaselineRename( t *testing.T, markers ...string, ) { + markerOrRanges := f.lookupMarkersOrGetRanges(t, markers) + + if f.baseline != nil { + t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) + } else { + f.baseline = &baselineFromTest{ + content: &strings.Builder{}, + baselineName: "rename/" + strings.TrimPrefix(t.Name(), "Test"), + ext: ".baseline.jsonc", + } + } + + defer func() { + f.baseline = nil + }() + + for _, markerOrRange := range markerOrRanges { + f.GoToMarkerOrRange(t, markerOrRange) + + // !!! options + params := &lsproto.RenameParams{ + TextDocument: lsproto.TextDocumentIdentifier{ + Uri: ls.FileNameToDocumentURI(f.activeFilename), + }, + Position: f.currentCaretPosition, + NewName: "?", + } + + prefix := f.getCurrentPositionPrefix() + resMsg, result, resultOk := sendRequest(t, f, lsproto.TextDocumentRenameInfo, params) + if resMsg == nil { + t.Fatalf(prefix+"Nil response received for rename request at pos %v", f.currentCaretPosition) + } + if !resultOk { + t.Fatalf(prefix+"Unexpected rename response type at pos %v: %T", f.currentCaretPosition, resMsg.AsResponse().Result) + } + + // !!! include options in string? + // !!! HERE: use already-grouped by document version + f.baseline.addResult( + "findRenameLocations", + f.getBaselineForLocationsWithFileContents( + result, + baselineFourslashLocationsOptions{ + marker: markerOrRange.GetMarker(), + markerName: "/*RENAME*/", + endMarker: "RENAME|]", + }, + ), + ) + } } func (f *FourslashTest) VerifyBaselineRenameAtRangesWithText( From 9118e60663eb1955946d43ca6fa2940c2f2f8133 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Fri, 5 Sep 2025 13:39:55 -0700 Subject: [PATCH 04/18] port baseline rename tests --- .../fourslash/_scripts/convertFourslash.mts | 86 +++++++++-- internal/fourslash/baselineutil.go | 136 ++++-------------- internal/fourslash/fourslash.go | 90 ++++++++++-- .../tests/gen/doubleUnderscoreRenames_test.go | 24 ++++ .../findAllReferencesDynamicImport2_test.go | 23 +++ .../findAllReferencesDynamicImport3_test.go | 20 +++ ...ndAllRefsClassWithStaticThisAccess_test.go | 28 ++++ .../gen/findAllRefsOnImportAliases2_test.go | 24 ++++ ...ghlightsForExportFromUnfoundModule_test.go | 27 ++++ .../tests/gen/javaScriptClass2_test.go | 27 ++++ .../tests/gen/jsDocSee_rename1_test.go | 22 +++ ...bjectDefinePropertyRenameLocations_test.go | 29 ++++ .../gen/jsdocCallbackTagRename01_test.go | 26 ++++ .../tests/gen/jsdocLink_rename1_test.go | 21 +++ .../tests/gen/jsdocSatisfiesTagRename_test.go | 27 ++++ .../tests/gen/jsdocThrowsTag_rename_test.go | 21 +++ .../tests/gen/jsdocTypedefTagRename01_test.go | 27 ++++ .../tests/gen/jsdocTypedefTagRename02_test.go | 24 ++++ .../tests/gen/jsdocTypedefTagRename03_test.go | 30 ++++ .../tests/gen/jsxSpreadReference_test.go | 33 +++++ .../tests/gen/processInvalidSyntax1_test.go | 29 ++++ internal/fourslash/tests/gen/rename01_test.go | 21 +++ .../gen/renameAcrossMultipleProjects_test.go | 24 ++++ .../fourslash/tests/gen/renameAlias2_test.go | 19 +++ .../fourslash/tests/gen/renameAlias3_test.go | 19 +++ .../gen/renameAliasExternalModule2_test.go | 22 +++ .../gen/renameAliasExternalModule3_test.go | 22 +++ .../gen/renameAliasExternalModule_test.go | 22 +++ .../fourslash/tests/gen/renameAlias_test.go | 19 +++ ...eBindingElementInitializerExternal_test.go | 29 ++++ ...eBindingElementInitializerProperty_test.go | 22 +++ .../gen/renameCommentsAndStrings1_test.go | 21 +++ .../gen/renameCommentsAndStrings2_test.go | 21 +++ .../gen/renameCommentsAndStrings3_test.go | 21 +++ .../gen/renameCommentsAndStrings4_test.go | 26 ++++ ...renameContextuallyTypedProperties2_test.go | 70 +++++++++ .../renameContextuallyTypedProperties_test.go | 70 +++++++++ .../tests/gen/renameCrossJsTs01_test.go | 22 +++ .../gen/renameDeclarationKeywords_test.go | 31 ++++ .../gen/renameDefaultLibDontWork_test.go | 19 +++ ...ringAssignmentNestedInArrayLiteral_test.go | 23 +++ ...tructuringAssignmentNestedInForOf2_test.go | 30 ++++ .../gen/renameDestructuringAssignment_test.go | 22 +++ .../renameDestructuringClassProperty_test.go | 31 ++++ ...ameDestructuringDeclarationInForOf_test.go | 27 ++++ ...enameDestructuringDeclarationInFor_test.go | 28 ++++ ...nameDestructuringFunctionParameter_test.go | 19 +++ ...eDestructuringNestedBindingElement_test.go | 30 ++++ .../tests/gen/renameExportCrash_test.go | 21 +++ .../tests/gen/renameExportSpecifier2_test.go | 22 +++ .../tests/gen/renameExportSpecifier_test.go | 22 +++ .../tests/gen/renameForStringLiteral_test.go | 26 ++++ .../gen/renameFunctionParameter1_test.go | 24 ++++ .../gen/renameFunctionParameter2_test.go | 22 +++ .../renameImportAndExportInDiffFiles_test.go | 22 +++ .../tests/gen/renameImportAndExport_test.go | 18 +++ .../gen/renameImportAndShorthand_test.go | 18 +++ .../renameImportNamespaceAndShorthand_test.go | 18 +++ .../gen/renameImportOfExportEquals_test.go | 35 +++++ .../tests/gen/renameImportRequire_test.go | 24 ++++ .../renameImportSpecifierPropertyName_test.go | 20 +++ .../gen/renameInConfiguredProject_test.go | 23 +++ .../gen/renameInheritedProperties1_test.go | 22 +++ .../gen/renameInheritedProperties2_test.go | 22 +++ .../gen/renameInheritedProperties3_test.go | 22 +++ .../gen/renameInheritedProperties4_test.go | 22 +++ .../gen/renameInheritedProperties5_test.go | 24 ++++ .../gen/renameInheritedProperties6_test.go | 24 ++++ .../gen/renameInheritedProperties7_test.go | 26 ++++ .../gen/renameInheritedProperties8_test.go | 26 ++++ .../tests/gen/renameJSDocNamepath_test.go | 22 +++ .../tests/gen/renameJsDocImportTag_test.go | 29 ++++ .../tests/gen/renameJsDocTypeLiteral_test.go | 26 ++++ .../tests/gen/renameJsExports01_test.go | 23 +++ ...enameJsOverloadedFunctionParameter_test.go | 34 +++++ .../gen/renameJsPropertyAssignment2_test.go | 22 +++ .../gen/renameJsPropertyAssignment3_test.go | 22 +++ .../gen/renameJsPropertyAssignment4_test.go | 23 +++ .../gen/renameJsPropertyAssignment_test.go | 22 +++ .../gen/renameJsPrototypeProperty01_test.go | 23 +++ .../gen/renameJsPrototypeProperty02_test.go | 23 +++ .../gen/renameJsSpecialAssignmentRhs1_test.go | 26 ++++ .../gen/renameJsSpecialAssignmentRhs2_test.go | 26 ++++ .../tests/gen/renameJsThisProperty01_test.go | 23 +++ .../tests/gen/renameJsThisProperty03_test.go | 25 ++++ .../tests/gen/renameJsThisProperty05_test.go | 26 ++++ .../tests/gen/renameJsThisProperty06_test.go | 26 ++++ .../fourslash/tests/gen/renameLabel1_test.go | 19 +++ .../fourslash/tests/gen/renameLabel2_test.go | 19 +++ .../fourslash/tests/gen/renameLabel3_test.go | 22 +++ .../fourslash/tests/gen/renameLabel4_test.go | 22 +++ .../fourslash/tests/gen/renameLabel5_test.go | 22 +++ .../fourslash/tests/gen/renameLabel6_test.go | 22 +++ ...enameLocationsForClassExpression01_test.go | 35 +++++ ...meLocationsForFunctionExpression01_test.go | 19 +++ ...meLocationsForFunctionExpression02_test.go | 25 ++++ .../tests/gen/renameModifiers_test.go | 27 ++++ .../renameModuleExportsProperties1_test.go | 18 +++ .../renameModuleExportsProperties2_test.go | 18 +++ .../renameModuleExportsProperties3_test.go | 20 +++ .../tests/gen/renameNamedImport_test.go | 30 ++++ .../tests/gen/renameNamespaceImport_test.go | 30 ++++ .../renameNumericalIndexSingleQuoted_test.go | 18 +++ .../tests/gen/renameNumericalIndex_test.go | 18 +++ ...ObjectBindingElementPropertyName01_test.go | 23 +++ .../gen/renameObjectSpreadAssignment_test.go | 21 +++ .../tests/gen/renameObjectSpread_test.go | 22 +++ ...enameParameterPropertyDeclaration1_test.go | 22 +++ ...enameParameterPropertyDeclaration2_test.go | 22 +++ ...enameParameterPropertyDeclaration3_test.go | 22 +++ ...enameParameterPropertyDeclaration4_test.go | 21 +++ ...enameParameterPropertyDeclaration5_test.go | 21 +++ .../tests/gen/renamePrivateAccessor_test.go | 24 ++++ .../tests/gen/renamePrivateFields1_test.go | 23 +++ .../tests/gen/renamePrivateMethod_test.go | 23 +++ ...ertyAccessExpressionHeritageClause_test.go | 22 +++ .../tests/gen/renameReExportDefault_test.go | 26 ++++ .../gen/renameReferenceFromLinkTag1_test.go | 20 +++ .../gen/renameReferenceFromLinkTag2_test.go | 24 ++++ .../gen/renameReferenceFromLinkTag3_test.go | 25 ++++ .../gen/renameReferenceFromLinkTag4_test.go | 21 +++ .../gen/renameReferenceFromLinkTag5_test.go | 20 +++ .../gen/renameRestBindingElement_test.go | 24 ++++ .../fourslash/tests/gen/renameRest_test.go | 24 ++++ .../tests/gen/renameStringLiteralOk1_test.go | 23 +++ .../tests/gen/renameStringLiteralOk_test.go | 23 +++ .../gen/renameStringLiteralTypes1_test.go | 25 ++++ .../gen/renameStringLiteralTypes2_test.go | 34 +++++ .../gen/renameStringLiteralTypes3_test.go | 29 ++++ .../gen/renameStringLiteralTypes4_test.go | 23 +++ .../gen/renameStringLiteralTypes5_test.go | 23 +++ .../gen/renameStringPropertyNames2_test.go | 24 ++++ .../gen/renameStringPropertyNames_test.go | 27 ++++ ...TemplateLiteralsComputedProperties_test.go | 52 +++++++ ...meTemplateLiteralsDefinePropertyJs_test.go | 30 ++++ .../tests/gen/renameUMDModuleAlias1_test.go | 23 +++ .../fourslash/tests/gen/tsxRename1_test.go | 28 ++++ .../fourslash/tests/gen/tsxRename2_test.go | 28 ++++ .../fourslash/tests/gen/tsxRename3_test.go | 31 ++++ .../fourslash/tests/gen/tsxRename5_test.go | 31 ++++ .../fourslash/tests/gen/tsxRename6_test.go | 36 +++++ .../fourslash/tests/gen/tsxRename7_test.go | 35 +++++ .../fourslash/tests/gen/tsxRename8_test.go | 36 +++++ .../fourslash/tests/gen/tsxRename9_test.go | 44 ++++++ internal/fourslash/tests/util/util.go | 4 + 145 files changed, 3741 insertions(+), 130 deletions(-) create mode 100644 internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go create mode 100644 internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go create mode 100644 internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go create mode 100644 internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go create mode 100644 internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go create mode 100644 internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go create mode 100644 internal/fourslash/tests/gen/javaScriptClass2_test.go create mode 100644 internal/fourslash/tests/gen/jsDocSee_rename1_test.go create mode 100644 internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go create mode 100644 internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go create mode 100644 internal/fourslash/tests/gen/jsdocLink_rename1_test.go create mode 100644 internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go create mode 100644 internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go create mode 100644 internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go create mode 100644 internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go create mode 100644 internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go create mode 100644 internal/fourslash/tests/gen/jsxSpreadReference_test.go create mode 100644 internal/fourslash/tests/gen/processInvalidSyntax1_test.go create mode 100644 internal/fourslash/tests/gen/rename01_test.go create mode 100644 internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go create mode 100644 internal/fourslash/tests/gen/renameAlias2_test.go create mode 100644 internal/fourslash/tests/gen/renameAlias3_test.go create mode 100644 internal/fourslash/tests/gen/renameAliasExternalModule2_test.go create mode 100644 internal/fourslash/tests/gen/renameAliasExternalModule3_test.go create mode 100644 internal/fourslash/tests/gen/renameAliasExternalModule_test.go create mode 100644 internal/fourslash/tests/gen/renameAlias_test.go create mode 100644 internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go create mode 100644 internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go create mode 100644 internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go create mode 100644 internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go create mode 100644 internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go create mode 100644 internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go create mode 100644 internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go create mode 100644 internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go create mode 100644 internal/fourslash/tests/gen/renameCrossJsTs01_test.go create mode 100644 internal/fourslash/tests/gen/renameDeclarationKeywords_test.go create mode 100644 internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringAssignment_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go create mode 100644 internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go create mode 100644 internal/fourslash/tests/gen/renameExportCrash_test.go create mode 100644 internal/fourslash/tests/gen/renameExportSpecifier2_test.go create mode 100644 internal/fourslash/tests/gen/renameExportSpecifier_test.go create mode 100644 internal/fourslash/tests/gen/renameForStringLiteral_test.go create mode 100644 internal/fourslash/tests/gen/renameFunctionParameter1_test.go create mode 100644 internal/fourslash/tests/gen/renameFunctionParameter2_test.go create mode 100644 internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go create mode 100644 internal/fourslash/tests/gen/renameImportAndExport_test.go create mode 100644 internal/fourslash/tests/gen/renameImportAndShorthand_test.go create mode 100644 internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go create mode 100644 internal/fourslash/tests/gen/renameImportOfExportEquals_test.go create mode 100644 internal/fourslash/tests/gen/renameImportRequire_test.go create mode 100644 internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go create mode 100644 internal/fourslash/tests/gen/renameInConfiguredProject_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties1_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties2_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties3_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties4_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties5_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties6_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties7_test.go create mode 100644 internal/fourslash/tests/gen/renameInheritedProperties8_test.go create mode 100644 internal/fourslash/tests/gen/renameJSDocNamepath_test.go create mode 100644 internal/fourslash/tests/gen/renameJsDocImportTag_test.go create mode 100644 internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go create mode 100644 internal/fourslash/tests/gen/renameJsExports01_test.go create mode 100644 internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go create mode 100644 internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go create mode 100644 internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go create mode 100644 internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go create mode 100644 internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go create mode 100644 internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go create mode 100644 internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go create mode 100644 internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go create mode 100644 internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go create mode 100644 internal/fourslash/tests/gen/renameJsThisProperty01_test.go create mode 100644 internal/fourslash/tests/gen/renameJsThisProperty03_test.go create mode 100644 internal/fourslash/tests/gen/renameJsThisProperty05_test.go create mode 100644 internal/fourslash/tests/gen/renameJsThisProperty06_test.go create mode 100644 internal/fourslash/tests/gen/renameLabel1_test.go create mode 100644 internal/fourslash/tests/gen/renameLabel2_test.go create mode 100644 internal/fourslash/tests/gen/renameLabel3_test.go create mode 100644 internal/fourslash/tests/gen/renameLabel4_test.go create mode 100644 internal/fourslash/tests/gen/renameLabel5_test.go create mode 100644 internal/fourslash/tests/gen/renameLabel6_test.go create mode 100644 internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go create mode 100644 internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go create mode 100644 internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go create mode 100644 internal/fourslash/tests/gen/renameModifiers_test.go create mode 100644 internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go create mode 100644 internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go create mode 100644 internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go create mode 100644 internal/fourslash/tests/gen/renameNamedImport_test.go create mode 100644 internal/fourslash/tests/gen/renameNamespaceImport_test.go create mode 100644 internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go create mode 100644 internal/fourslash/tests/gen/renameNumericalIndex_test.go create mode 100644 internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go create mode 100644 internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go create mode 100644 internal/fourslash/tests/gen/renameObjectSpread_test.go create mode 100644 internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go create mode 100644 internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go create mode 100644 internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go create mode 100644 internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go create mode 100644 internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go create mode 100644 internal/fourslash/tests/gen/renamePrivateAccessor_test.go create mode 100644 internal/fourslash/tests/gen/renamePrivateFields1_test.go create mode 100644 internal/fourslash/tests/gen/renamePrivateMethod_test.go create mode 100644 internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go create mode 100644 internal/fourslash/tests/gen/renameReExportDefault_test.go create mode 100644 internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go create mode 100644 internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go create mode 100644 internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go create mode 100644 internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go create mode 100644 internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go create mode 100644 internal/fourslash/tests/gen/renameRestBindingElement_test.go create mode 100644 internal/fourslash/tests/gen/renameRest_test.go create mode 100644 internal/fourslash/tests/gen/renameStringLiteralOk1_test.go create mode 100644 internal/fourslash/tests/gen/renameStringLiteralOk_test.go create mode 100644 internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go create mode 100644 internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go create mode 100644 internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go create mode 100644 internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go create mode 100644 internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go create mode 100644 internal/fourslash/tests/gen/renameStringPropertyNames2_test.go create mode 100644 internal/fourslash/tests/gen/renameStringPropertyNames_test.go create mode 100644 internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go create mode 100644 internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go create mode 100644 internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename1_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename2_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename3_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename5_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename6_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename7_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename8_test.go create mode 100644 internal/fourslash/tests/gen/tsxRename9_test.go diff --git a/internal/fourslash/_scripts/convertFourslash.mts b/internal/fourslash/_scripts/convertFourslash.mts index 9d4113c030..bc1d925639 100644 --- a/internal/fourslash/_scripts/convertFourslash.mts +++ b/internal/fourslash/_scripts/convertFourslash.mts @@ -798,24 +798,89 @@ function parseBaselineGoToDefinitionArgs(args: readonly ts.Expression[]): [Verif } function parseBaselineRenameArgs(funcName: string, args: readonly ts.Expression[]): [VerifyBaselineRenameCmd] | undefined { - let newArgs: string[] = [] + let newArgs: string[] = []; for (const arg of args) { let typedArg; - if (ts.isStringLiteral(arg)) { - newArgs.push(getGoStringLiteral(arg.text)) + if ((typedArg = getArrayLiteralExpression(arg))) { + for (const elem of typedArg.elements) { + const newArg = parseBaselineRenameArg(elem); + if (!newArg) { + return undefined; + } + newArgs.push(newArg); + } + } + else if (ts.isObjectLiteralExpression(arg)) { + // !!! TODO: parse options + continue; } - else if ((typedArg = getArrayLiteralExpression(arg)) && typedArg.elements.every(ts.isStringLiteral)) { - newArgs = newArgs.concat(typedArg.elements.map(e => getGoStringLiteral((e as ts.StringLiteral).text))) + else if (typedArg = parseBaselineRenameArg(arg)) { + newArgs.push(typedArg); } else { - console.error(`Unrecognized argument in verify.baselineRename: ${arg.getText()}`); return undefined; } } return [{ kind: funcName === "baselineRenameAtRangesWithText" ? "verifyBaselineRenameAtRangesWithText" : "verifyBaselineRename", - args: newArgs - }] + args: newArgs, + }]; +} + +function parseBaselineRenameArg(arg: ts.Expression): string | undefined { + if (ts.isStringLiteral(arg)) { + return getGoStringLiteral(arg.text); + } + else if (ts.isIdentifier(arg) || (ts.isElementAccessExpression(arg) && ts.isIdentifier(arg.expression))) { + const argName = ts.isIdentifier(arg) ? arg.text : (arg.expression as ts.Identifier).text; + const file = arg.getSourceFile(); + const varStmts = file.statements.filter(ts.isVariableStatement); + for (const varStmt of varStmts) { + for (const decl of varStmt.declarationList.declarations) { + if (ts.isArrayBindingPattern(decl.name) && decl.initializer?.getText().includes("ranges")) { + for (let i = 0; i < decl.name.elements.length; i++) { + const elem = decl.name.elements[i]; + if (ts.isBindingElement(elem) && ts.isIdentifier(elem.name) && elem.name.text === argName) { + // `const [range_0, ..., range_n, ...] = test.ranges();` and arg is `range_n` + if (elem.dotDotDotToken === undefined) { + return `f.Ranges()[${i}]`; + } + // `const [range_0, ..., ...rest] = test.ranges();` and arg is `rest[n]` + if (ts.isElementAccessExpression(arg)) { + return `f.Ranges()[${i + parseInt(arg.argumentExpression!.getText())}]`; + } + // `const [range_0, ..., ...rest] = test.ranges();` and arg is `rest` + return `ToAny(f.Ranges()[${i}:])...`; + } + } + } + } + } + const init = getNodeOfKind(arg, ts.isCallExpression); + if (init) { + const result = getRangesByTextArg(init); + if (result) { + return result; + } + } + } + else if (ts.isCallExpression(arg)) { + const result = getRangesByTextArg(arg); + if (result) { + return result; + } + } + console.error(`Unrecognized argument in verify.baselineRename: ${arg.getText()}`); + return undefined; +} + +function getRangesByTextArg(arg: ts.CallExpression): string | undefined { + if (arg.getText().startsWith("test.rangesByText()")) { + if (ts.isStringLiteralLike(arg.arguments[0])) { + return `ToAny(f.GetRangesByText().Get(${getGoStringLiteral(arg.arguments[0].text)}))...`; + } + } + return undefined; } function parseBaselineQuickInfo(args: ts.NodeArray): VerifyBaselineQuickInfoCmd { @@ -1249,7 +1314,7 @@ function generateCmd(cmd: Cmd): string { return generateQuickInfoCommand(cmd); case "verifyBaselineRename": case "verifyBaselineRenameAtRangesWithText": - return generateBaselineRename(cmd) + return generateBaselineRename(cmd); default: let neverCommand: never = cmd; throw new Error(`Unknown command kind: ${neverCommand as Cmd["kind"]}`); @@ -1310,7 +1375,8 @@ function usesHelper(goTxt: string): boolean { } return goTxt.includes("Ignored") || goTxt.includes("DefaultCommitCharacters") - || goTxt.includes("PtrTo"); + || goTxt.includes("PtrTo") + || goTxt.includes("ToAny"); } function getNodeOfKind(node: ts.Node, hasKind: (n: ts.Node) => n is T): T | undefined { diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index d9c625f69d..fc352bebd1 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -12,7 +12,6 @@ import ( "github.com/microsoft/typescript-go/internal/collections" "github.com/microsoft/typescript-go/internal/core" - "github.com/microsoft/typescript-go/internal/debug" "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/lsp/lsproto" "github.com/microsoft/typescript-go/internal/vfs" @@ -41,22 +40,27 @@ type baselineFourslashLocationsOptions struct { marker *Marker // location markerName string // name of the marker to be printed in baseline - documentSpanId func(span *documentSpan) string - skipDocumentSpanDetails core.Tristate - skipDocumentContainingOnlyMarker core.Tristate - endMarker core.Tristate + endMarker string - startMarkerPrefix func(span lsproto.Location) string - endMarkerSuffix func(span lsproto.Location) string - ignoredDocumentSpanProperties []string - additionalSpan *lsproto.Location + startMarkerPrefix func(span lsproto.Location) string + endMarkerSuffix func(span lsproto.Location) string } func (f *FourslashTest) getBaselineForLocationsWithFileContents(spans []lsproto.Location, options baselineFourslashLocationsOptions) string { - return f.getBaselineForGroupedLocationsWithFileContents(collections.GroupBy(spans, func(span lsproto.Location) lsproto.DocumentUri { return span.Uri }), options) + locationsByFile := collections.GroupBy(spans, func(span lsproto.Location) lsproto.DocumentUri { return span.Uri }) + rangesByFile := collections.MultiMap[lsproto.DocumentUri, lsproto.Range]{} + for file, locs := range locationsByFile.M { + for _, loc := range locs { + rangesByFile.Add(file, loc.Range) + } + } + return f.getBaselineForGroupedLocationsWithFileContents( + &rangesByFile, + options, + ) } -func (f *FourslashTest) getBaselineForGroupedLocationsWithFileContents(groupedLocations *collections.MultiMap[lsproto.DocumentUri, lsproto.Location], options baselineFourslashLocationsOptions) string { +func (f *FourslashTest) getBaselineForGroupedLocationsWithFileContents(groupedRanges *collections.MultiMap[lsproto.DocumentUri, lsproto.Range], options baselineFourslashLocationsOptions) string { // We must always print the file containing the marker, // but don't want to print it twice at the end if it already // found in a file with ranges. @@ -73,8 +77,8 @@ func (f *FourslashTest) getBaselineForGroupedLocationsWithFileContents(groupedLo } fileName := ls.FileNameToDocumentURI(path) - locations := groupedLocations.Get(fileName) - if len(locations) == 0 { + ranges := groupedRanges.Get(fileName) + if len(ranges) == 0 { return nil } @@ -88,12 +92,7 @@ func (f *FourslashTest) getBaselineForGroupedLocationsWithFileContents(groupedLo foundMarker = true } - documentSpans := core.Map(locations, func(location lsproto.Location) *documentSpan { - return &documentSpan{ - Location: location, - } - }) - baselineEntries = append(baselineEntries, f.getBaselineContentForFile(path, content, documentSpans, nil, options)) + baselineEntries = append(baselineEntries, f.getBaselineContentForFile(path, content, ranges, nil, options)) return nil }) @@ -115,101 +114,34 @@ func (f *FourslashTest) getBaselineForGroupedLocationsWithFileContents(groupedLo return strings.Join(baselineEntries, "\n\n") } -type documentSpan struct { - lsproto.Location - - // If the span represents a location that was remapped (e.g. via a .d.ts.map file), - // then the original filename and span will be specified here - originalLocation *lsproto.Location - - // If DocumentSpan.textSpan is the span for name of the declaration, - // then this is the span for relevant declaration - contextSpan *lsproto.Location - originalContextSpan *lsproto.Location -} - type baselineDetail struct { pos lsproto.Position positionMarker string - span *documentSpan + span *lsproto.Range kind string } func (f *FourslashTest) getBaselineContentForFile( fileName string, content string, - spansInFile []*documentSpan, - spanToContextId map[documentSpan]int, + spansInFile []lsproto.Range, + spanToContextId map[lsproto.Range]int, options baselineFourslashLocationsOptions, ) string { details := []*baselineDetail{} detailPrefixes := map[baselineDetail]string{} detailSuffixes := map[baselineDetail]string{} canDetermineContextIdInline := true - var groupedSpanForAdditionalSpan *documentSpan if options.marker != nil && options.marker.FileName() == fileName { details = append(details, &baselineDetail{pos: options.marker.LSPosition, positionMarker: options.markerName}) } for _, span := range spansInFile { - contextSpanIndex := len(details) - if span.contextSpan != nil { - details = append(details, &baselineDetail{pos: span.contextSpan.Range.Start, positionMarker: "<|", span: span, kind: "contextStart"}) - if canDetermineContextIdInline && ls.ComparePositions(span.contextSpan.Range.Start, span.Range.Start) > 0 { - // Need to do explicit pass to determine contextId since contextId starts after textStart - canDetermineContextIdInline = false - } - } - - textSpanIndex := len(details) - textSpanEnd := span.Range.End details = append(details, - &baselineDetail{pos: span.Range.Start, positionMarker: "[|", span: span, kind: "textStart"}, - &baselineDetail{pos: span.Range.End, positionMarker: "|]", span: span, kind: "textEnd"}, + &baselineDetail{pos: span.Start, positionMarker: "[|", span: &span, kind: "textStart"}, + &baselineDetail{pos: span.End, positionMarker: core.OrElse(options.endMarker, "|]"), span: &span, kind: "textEnd"}, ) - - var contextSpanEnd *lsproto.Position - if span.contextSpan != nil { - contextSpanEnd = &span.contextSpan.Range.End - details = append(details, &baselineDetail{pos: span.contextSpan.Range.End, positionMarker: "|>", span: span, kind: "contextEnd"}) - } - - if options.additionalSpan != nil && span.Location == *options.additionalSpan { - groupedSpanForAdditionalSpan = span - } - - if options.startMarkerPrefix != nil { - if startPrefix := options.startMarkerPrefix(span.Location); startPrefix != "" { - if fileName == options.marker.FileName() && span.Range.Start == options.marker.LSPosition { - _, ok := detailPrefixes[*details[0]] - debug.Assert(!ok, "Expected only single prefix at marker location") - detailPrefixes[*details[0]] = startPrefix - } else if span.contextSpan.Range.Start == span.Range.Start { - // Write it at contextSpan instead of textSpan - detailPrefixes[*details[contextSpanIndex]] = startPrefix - } else { - // At textSpan - detailPrefixes[*details[textSpanIndex]] = startPrefix - } - } - } - - if options.endMarkerSuffix != nil { - if endSuffix := options.endMarkerSuffix(span.Location); endSuffix != "" { - if fileName == options.marker.FileName() && textSpanEnd == options.marker.LSPosition { - _, ok := detailSuffixes[*details[0]] - debug.Assert(!ok, "Expected only single suffix at marker location") - detailSuffixes[*details[0]] = endSuffix - } else if *contextSpanEnd == textSpanEnd { - // Write it at contextSpan instead of textSpan - detailSuffixes[*details[textSpanIndex+2]] = endSuffix - } else { - // At textSpan - detailSuffixes[*details[textSpanIndex+1]] = endSuffix - } - } - } } slices.SortStableFunc(details, func(d1, d2 *baselineDetail) int { return ls.ComparePositions(d1.pos, d2.pos) @@ -225,9 +157,6 @@ func (f *FourslashTest) getBaselineContentForFile( // Stable sort should handle first two cases but with that marker will be before rangeEnd if locations match // So we will defer writing marker in this case by checking and finding index of rangeEnd if same var deferredMarkerIndex *int - if options.documentSpanId == nil { - options.documentSpanId = func(span *documentSpan) string { return "" } - } for index, detail := range details { if detail.span == nil && deferredMarkerIndex == nil { @@ -256,19 +185,7 @@ func (f *FourslashTest) getBaselineContentForFile( if detail.span != nil { switch detail.kind { case "textStart": - var text string - if options.skipDocumentSpanDetails.IsTrue() { - text = options.documentSpanId(detail.span) - } else { - text = convertDocumentSpanToString(detail.span, options.documentSpanId(detail.span), options.ignoredDocumentSpanProperties) - } - if groupedSpanForAdditionalSpan != nil && *(detail.span) == *groupedSpanForAdditionalSpan { - if text == "" { - text = `textSpan: true` - } else { - text = `textSpan: true` + `, ` + text - } - } + text := prefix if contextId, ok := spanToContextId[*detail.span]; ok { isAfterContextStart := false for textStartIndex := index - 1; textStartIndex >= 0; textStartIndex-- { @@ -319,11 +236,6 @@ func (f *FourslashTest) getBaselineContentForFile( return textWithContext.readableContents.String() } -func convertDocumentSpanToString(location *documentSpan, prefix string, ignoredProperties []string) string { - // !!! - return prefix -} - var lineSplitter = regexp.MustCompile(`\r?\n`) type textWithContext struct { diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 2d91aec282..fe97847414 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -13,6 +13,7 @@ import ( "github.com/go-json-experiment/json" "github.com/google/go-cmp/cmp" "github.com/microsoft/typescript-go/internal/bundled" + "github.com/microsoft/typescript-go/internal/collections" "github.com/microsoft/typescript-go/internal/core" "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/lsp" @@ -43,6 +44,8 @@ type FourslashTest struct { lastKnownMarkerName *string activeFilename string selectionEnd *lsproto.Position + + rangesByText *collections.MultiMap[string, *RangeMarker] } type scriptInfo struct { @@ -1235,7 +1238,7 @@ func (f *FourslashTest) editScriptAndUpdateMarkers(t *testing.T, fileName string rangeMarker.LSRange = f.converters.ToLSPRange(script, rangeMarker.Range) } } - // !!! clean up ranges by text + f.rangesByText = nil } func updatePosition(pos int, editStart int, editEnd int, newText string) int { @@ -1536,18 +1539,47 @@ func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) } +// string | *Marker | *RangeMarker +type MarkerOrRangeOrName = any + func (f *FourslashTest) VerifyBaselineRename( t *testing.T, - markers ...string, + markerOrNameOrRanges ...MarkerOrRangeOrName, ) { - markerOrRanges := f.lookupMarkersOrGetRanges(t, markers) + var markerOrRanges []MarkerOrRange + for _, markerOrNameOrRange := range markerOrNameOrRanges { + switch markerOrNameOrRange := markerOrNameOrRange.(type) { + case string: + marker, ok := f.testData.MarkerPositions[markerOrNameOrRange] + if !ok { + t.Fatalf("Marker '%s' not found", markerOrNameOrRange) + } + markerOrRanges = append(markerOrRanges, marker) + case *Marker: + markerOrRanges = append(markerOrRanges, markerOrNameOrRange) + case *RangeMarker: + markerOrRanges = append(markerOrRanges, markerOrNameOrRange) + default: + t.Fatalf("Invalid marker or range type: %T. Expected string, *Marker, or *RangeMarker.", markerOrNameOrRange) + } + } + f.verifyBaselineRename(t, markerOrRanges) +} + +func (f *FourslashTest) verifyBaselineRename( + t *testing.T, + markerOrRanges []MarkerOrRange, +) { if f.baseline != nil { t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) } else { + testName := strings.TrimPrefix(t.Name(), "Test") + _, size := utf8.DecodeRuneInString(testName) + testName = strings.ToLower(testName[:size]) + testName[size:] f.baseline = &baselineFromTest{ content: &strings.Builder{}, - baselineName: "rename/" + strings.TrimPrefix(t.Name(), "Test"), + baselineName: "rename/" + testName, ext: ".baseline.jsonc", } } @@ -1577,12 +1609,21 @@ func (f *FourslashTest) VerifyBaselineRename( t.Fatalf(prefix+"Unexpected rename response type at pos %v: %T", f.currentCaretPosition, resMsg.AsResponse().Result) } - // !!! include options in string? - // !!! HERE: use already-grouped by document version + var changes map[lsproto.DocumentUri][]*lsproto.TextEdit + if result.WorkspaceEdit != nil && result.WorkspaceEdit.Changes != nil { + changes = *result.WorkspaceEdit.Changes + } + fileToRange := collections.MultiMap[lsproto.DocumentUri, lsproto.Range]{} + for uri, edits := range changes { + for _, edit := range edits { + fileToRange.Add(uri, edit.Range) + } + } + // !!! TODO include options in string? f.baseline.addResult( "findRenameLocations", - f.getBaselineForLocationsWithFileContents( - result, + f.getBaselineForGroupedLocationsWithFileContents( + &fileToRange, baselineFourslashLocationsOptions{ marker: markerOrRange.GetMarker(), markerName: "/*RENAME*/", @@ -1591,10 +1632,43 @@ func (f *FourslashTest) VerifyBaselineRename( ), ) } + + var baselineContent string + if f.baseline.content.Len() == 0 { + baselineContent = baseline.NoContent + } else { + baselineContent = f.baseline.content.String() + } + + baseline.Run(t, f.baseline.getBaselineFileName(), baselineContent, baseline.Options{}) } func (f *FourslashTest) VerifyBaselineRenameAtRangesWithText( t *testing.T, texts ...string, ) { + var markerOrRanges []MarkerOrRange + for _, text := range texts { + ranges := core.Map(f.GetRangesByText().Get(text), func(r *RangeMarker) MarkerOrRange { return r }) + markerOrRanges = append(markerOrRanges, ranges...) + } + f.verifyBaselineRename(t, markerOrRanges) +} + +func (f *FourslashTest) GetRangesByText() *collections.MultiMap[string, *RangeMarker] { + if f.rangesByText != nil { + return f.rangesByText + } + rangesByText := collections.MultiMap[string, *RangeMarker]{} + for _, r := range f.testData.Ranges { + rangeText := f.getRangeText(r) + rangesByText.Add(rangeText, r) + } + f.rangesByText = &rangesByText + return &rangesByText +} + +func (f *FourslashTest) getRangeText(r *RangeMarker) string { + script := f.getScriptInfo(r.FileName()) + return script.content[r.Range.Pos():r.Range.End()] } diff --git a/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go b/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go new file mode 100644 index 0000000000..60cb50e64d --- /dev/null +++ b/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestDoubleUnderscoreRenames(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: fileA.ts + [|export function [|{| "contextRangeIndex": 0 |}__foo|]() { + }|] + +// @Filename: fileB.ts + [|import { [|{| "contextRangeIndex": 2 |}__foo|] as bar } from "./fileA";|] + + bar();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "__foo") +} diff --git a/internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go b/internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go new file mode 100644 index 0000000000..bcb1c37b9d --- /dev/null +++ b/internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestFindAllReferencesDynamicImport2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +[|export function /*1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}bar|]() { return "bar"; }|] +var x = import("./foo"); +x.then(foo => { + foo./*2*/[|bar|](); +})` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineFindAllReferences(t, "1", "2") + f.VerifyBaselineRenameAtRangesWithText(t, "bar") +} diff --git a/internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go b/internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go new file mode 100644 index 0000000000..fb5dc01719 --- /dev/null +++ b/internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go @@ -0,0 +1,20 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestFindAllReferencesDynamicImport3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +[|export function /*0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}bar|]() { return "bar"; }|] +import('./foo').then(([|{ /*1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}bar|] }|]) => undefined);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineFindAllReferences(t, "0", "1") + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3]) +} diff --git a/internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go b/internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go new file mode 100644 index 0000000000..a1b55ac6a1 --- /dev/null +++ b/internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestFindAllRefsClassWithStaticThisAccess(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|class /*0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}C|] { + static s() { + /*1*/[|this|]; + } + static get f() { + return /*2*/[|this|]; + + function inner() { this; } + class Inner { x = this; } + } +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineFindAllReferences(t, "0", "1", "2") + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go b/internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go new file mode 100644 index 0000000000..b227a9f171 --- /dev/null +++ b/internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestFindAllRefsOnImportAliases2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: a.ts +[|export class /*class0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}Class|] {}|] +//@Filename: b.ts +[|import { /*class1*/[|{| "contextRangeIndex": 2 |}Class|] as /*c2_0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}C2|] } from "./a";|] +var c = new /*c2_1*/[|C2|](); +//@Filename: c.ts +[|export { /*class2*/[|{| "contextRangeIndex": 6 |}Class|] as /*c3*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 6 |}C3|] } from "./a";|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineFindAllReferences(t, "class0", "class1", "class2", "c2_0", "c2_1", "c3") + f.VerifyBaselineRenameAtRangesWithText(t, "Class", "C2", "C3") +} diff --git a/internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go b/internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go new file mode 100644 index 0000000000..dc46988dfa --- /dev/null +++ b/internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestHighlightsForExportFromUnfoundModule(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +import foo from 'unfound'; +export { + foo, +}; +// @Filename: b.js +export { + /**/foo +} from './a';` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/javaScriptClass2_test.go b/internal/fourslash/tests/gen/javaScriptClass2_test.go new file mode 100644 index 0000000000..b3265f88ac --- /dev/null +++ b/internal/fourslash/tests/gen/javaScriptClass2_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJavaScriptClass2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowNonTsExtensions: true +// @Filename: Foo.js +class Foo { + constructor() { + [|this.[|{| "contextRangeIndex": 0 |}union|] = 'foo';|] + [|this.[|{| "contextRangeIndex": 2 |}union|] = 100;|] + } + method() { return this.[|union|]; } +} +var x = new Foo(); +x.[|union|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "union") +} diff --git a/internal/fourslash/tests/gen/jsDocSee_rename1_test.go b/internal/fourslash/tests/gen/jsDocSee_rename1_test.go new file mode 100644 index 0000000000..3639908376 --- /dev/null +++ b/internal/fourslash/tests/gen/jsDocSee_rename1_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsDocSee_rename1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|interface [|{| "contextRangeIndex": 0 |}A|] {}|] +/** + * @see {[|A|]} + */ +declare const a: [|A|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) +} diff --git a/internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go b/internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go new file mode 100644 index 0000000000..ec1e5b437b --- /dev/null +++ b/internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go @@ -0,0 +1,29 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsObjectDefinePropertyRenameLocations(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @checkJs: true +// @noEmit: true +// @Filename: index.js +var CircularList = (function () { + var CircularList = function() {}; + Object.defineProperty(CircularList.prototype, "[|maxLength|]", { value: 0, writable: true }); + CircularList.prototype.push = function (value) { + // ... + this.[|maxLength|] + this.[|maxLength|] + } + return CircularList; +})()` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t) +} diff --git a/internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go b/internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go new file mode 100644 index 0000000000..5772f3219a --- /dev/null +++ b/internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsdocCallbackTagRename01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowNonTsExtensions: true +// @Filename: jsDocCallback.js + +/** + * [|@callback [|{| "contextRangeIndex": 0 |}FooCallback|] + * @param {string} eventName - Rename should work + |]*/ + +/** @type {/*1*/[|FooCallback|]} */ +var t;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/jsdocLink_rename1_test.go b/internal/fourslash/tests/gen/jsdocLink_rename1_test.go new file mode 100644 index 0000000000..f40890acd9 --- /dev/null +++ b/internal/fourslash/tests/gen/jsdocLink_rename1_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsdocLink_rename1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface A/**/ {} +/** + * {@link A()} is ok + */ +declare const a: A` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go b/internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go new file mode 100644 index 0000000000..6c6336b4e5 --- /dev/null +++ b/internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsdocSatisfiesTagRename(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @noEmit: true +// @allowJS: true +// @checkJs: true +// @filename: /a.js +/** + * @typedef {Object} T + * @property {number} a + */ + +/** @satisfies {/**/T} comment */ +const foo = { a: 1 };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go b/internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go new file mode 100644 index 0000000000..bdf64aa956 --- /dev/null +++ b/internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsdocThrowsTag_rename(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class /**/E extends Error {} +/** + * @throws {E} + */ +function f() {}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go new file mode 100644 index 0000000000..851e1bbce9 --- /dev/null +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsdocTypedefTagRename01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowNonTsExtensions: true +// @Filename: jsDocTypedef_form1.js + + /** @typedef {(string | number)} */ + [|var [|{| "contextRangeIndex": 0 |}NumberLike|];|] + + [|NumberLike|] = 10; + + /** @type {[|NumberLike|]} */ + var numberLike;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) +} diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go new file mode 100644 index 0000000000..9407594117 --- /dev/null +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsdocTypedefTagRename02(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowNonTsExtensions: true +// @Filename: jsDocTypedef_form2.js + + /** [|@typedef {(string | number)} [|{| "contextRangeIndex": 0 |}NumberLike|]|] */ + + /** @type {[|NumberLike|]} */ + var numberLike;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) +} diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go new file mode 100644 index 0000000000..66d47a8d33 --- /dev/null +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go @@ -0,0 +1,30 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsdocTypedefTagRename03(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowNonTsExtensions: true +// @Filename: jsDocTypedef_form3.js + + /** + * [|@typedef /*1*/[|{| "contextRangeIndex": 0 |}Person|] + * @type {Object} + * @property {number} age + * @property {string} name + |]*/ + + /** @type {/*2*/[|Person|]} */ + var person;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToFile(t, "jsDocTypedef_form3.js") + f.VerifyBaselineRename(t, ToAny(f.GetRangesByText().Get("Person"))...) +} diff --git a/internal/fourslash/tests/gen/jsxSpreadReference_test.go b/internal/fourslash/tests/gen/jsxSpreadReference_test.go new file mode 100644 index 0000000000..c89f900571 --- /dev/null +++ b/internal/fourslash/tests/gen/jsxSpreadReference_test.go @@ -0,0 +1,33 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestJsxSpreadReference(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } + } + class MyClass { + props: { + name?: string; + size?: number; + } + } + + [|var [|/*dst*/{| "contextRangeIndex": 0 |}nn|]: {name?: string; size?: number};|] + var x = ;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "nn") + f.VerifyBaselineGoToDefinition(t, "src") +} diff --git a/internal/fourslash/tests/gen/processInvalidSyntax1_test.go b/internal/fourslash/tests/gen/processInvalidSyntax1_test.go new file mode 100644 index 0000000000..45db8f7a00 --- /dev/null +++ b/internal/fourslash/tests/gen/processInvalidSyntax1_test.go @@ -0,0 +1,29 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestProcessInvalidSyntax1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: decl.js +var obj = {}; +// @Filename: unicode1.js +obj.𝒜 ; +// @Filename: unicode2.js +obj.¬ ; +// @Filename: unicode3.js +obj¬ +// @Filename: forof.js +for (obj/**/.prop of arr) { + +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/rename01_test.go b/internal/fourslash/tests/gen/rename01_test.go new file mode 100644 index 0000000000..7fdf8ffa5d --- /dev/null +++ b/internal/fourslash/tests/gen/rename01_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRename01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/// +[|function [|{| "contextRangeIndex": 0 |}Bar|]() { + // This is a reference to [|Bar|] in a comment. + "this is a reference to [|Bar|] in a string" +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go b/internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go new file mode 100644 index 0000000000..5c18881662 --- /dev/null +++ b/internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameAcrossMultipleProjects(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: a.ts +[|var [|{| "contextRangeIndex": 0 |}x|]: number;|] +//@Filename: b.ts +/// +[|x|]++; +//@Filename: c.ts +/// +[|x|]++;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "x") +} diff --git a/internal/fourslash/tests/gen/renameAlias2_test.go b/internal/fourslash/tests/gen/renameAlias2_test.go new file mode 100644 index 0000000000..c6c34721a5 --- /dev/null +++ b/internal/fourslash/tests/gen/renameAlias2_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameAlias2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|module [|{| "contextRangeIndex": 0 |}SomeModule|] { export class SomeClass { } }|] +import M = [|SomeModule|]; +import C = M.SomeClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "SomeModule") +} diff --git a/internal/fourslash/tests/gen/renameAlias3_test.go b/internal/fourslash/tests/gen/renameAlias3_test.go new file mode 100644 index 0000000000..d8f733e51f --- /dev/null +++ b/internal/fourslash/tests/gen/renameAlias3_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameAlias3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `module SomeModule { [|export class [|{| "contextRangeIndex": 0 |}SomeClass|] { }|] } +import M = SomeModule; +import C = M.[|SomeClass|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "SomeClass") +} diff --git a/internal/fourslash/tests/gen/renameAliasExternalModule2_test.go b/internal/fourslash/tests/gen/renameAliasExternalModule2_test.go new file mode 100644 index 0000000000..934202089c --- /dev/null +++ b/internal/fourslash/tests/gen/renameAliasExternalModule2_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameAliasExternalModule2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: a.ts +[|module [|{| "contextRangeIndex": 0 |}SomeModule|] { export class SomeClass { } }|] +[|export = [|{| "contextRangeIndex": 2 |}SomeModule|];|] +// @Filename: b.ts +[|import [|{| "contextRangeIndex": 4 |}M|] = require("./a");|] +import C = [|M|].SomeClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) +} diff --git a/internal/fourslash/tests/gen/renameAliasExternalModule3_test.go b/internal/fourslash/tests/gen/renameAliasExternalModule3_test.go new file mode 100644 index 0000000000..ba20c13613 --- /dev/null +++ b/internal/fourslash/tests/gen/renameAliasExternalModule3_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameAliasExternalModule3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: a.ts +module SomeModule { [|export class [|{| "contextRangeIndex": 0 |}SomeClass|] { }|] } +export = SomeModule; +// @Filename: b.ts +import M = require("./a"); +import C = M.[|SomeClass|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "SomeClass") +} diff --git a/internal/fourslash/tests/gen/renameAliasExternalModule_test.go b/internal/fourslash/tests/gen/renameAliasExternalModule_test.go new file mode 100644 index 0000000000..a179459161 --- /dev/null +++ b/internal/fourslash/tests/gen/renameAliasExternalModule_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameAliasExternalModule(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: a.ts +module SomeModule { export class SomeClass { } } +export = SomeModule; +// @Filename: b.ts +[|import [|{| "contextRangeIndex": 0 |}M|] = require("./a");|] +import C = [|M|].SomeClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "M") +} diff --git a/internal/fourslash/tests/gen/renameAlias_test.go b/internal/fourslash/tests/gen/renameAlias_test.go new file mode 100644 index 0000000000..161ac2c87c --- /dev/null +++ b/internal/fourslash/tests/gen/renameAlias_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameAlias(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `module SomeModule { export class SomeClass { } } +[|import [|{| "contextRangeIndex": 0 |}M|] = SomeModule;|] +import C = [|M|].SomeClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "M") +} diff --git a/internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go b/internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go new file mode 100644 index 0000000000..cef6968a1c --- /dev/null +++ b/internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go @@ -0,0 +1,29 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameBindingElementInitializerExternal(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|const [|{| "contextRangeIndex": 0 |}external|] = true;|] + +function f({ + lvl1 = [|external|], + nested: { lvl2 = [|external|]}, + oldName: newName = [|external|] +}) {} + +const { + lvl1 = [|external|], + nested: { lvl2 = [|external|]}, + oldName: newName = [|external|] +} = obj;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "external") +} diff --git a/internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go b/internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go new file mode 100644 index 0000000000..ae2d1b57b4 --- /dev/null +++ b/internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameBindingElementInitializerProperty(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `function f([|{[|{| "contextRangeIndex": 0 |}required|], optional = [|required|]}: {[|[|{| "contextRangeIndex": 3 |}required|]: number,|] optional?: number}|]) { + console.log("required", [|required|]); + console.log("optional", optional); +} + +f({[|[|{| "contextRangeIndex": 6 |}required|]: 10|]});` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2], f.Ranges()[5], f.Ranges()[4], f.Ranges()[7]) +} diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go new file mode 100644 index 0000000000..f82cc7ceab --- /dev/null +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameCommentsAndStrings1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/// +[|function [|{| "contextRangeIndex": 0 |}Bar|]() { + // This is a reference to Bar in a comment. + "this is a reference to Bar in a string" +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "Bar") +} diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go new file mode 100644 index 0000000000..72dd9aeacd --- /dev/null +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameCommentsAndStrings2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/// +[|function [|{| "contextRangeIndex": 0 |}Bar|]() { + // This is a reference to Bar in a comment. + "this is a reference to [|Bar|] in a string" +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go new file mode 100644 index 0000000000..b843b5106c --- /dev/null +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameCommentsAndStrings3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/// +[|function [|{| "contextRangeIndex": 0 |}Bar|]() { + // This is a reference to [|Bar|] in a comment. + "this is a reference to Bar in a string" +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go new file mode 100644 index 0000000000..ffe3821638 --- /dev/null +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameCommentsAndStrings4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/// +[|function [|{| "contextRangeIndex": 0 |}Bar|]() { + // This is a reference to [|Bar|] in a comment. + "this is a reference to [|Bar|] in a string"; + ` + "`" + `Foo [|Bar|] Baz.` + "`" + `; + { + const Bar = 0; + ` + "`" + `[|Bar|] ba ${Bar} bara [|Bar|] berbobo ${Bar} araura [|Bar|] ara!` + "`" + `; + } +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go b/internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go new file mode 100644 index 0000000000..f8346cf8af --- /dev/null +++ b/internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go @@ -0,0 +1,70 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameContextuallyTypedProperties2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + prop1: () => void; + [|[|{| "contextRangeIndex": 0 |}prop2|](): void;|] +} + +var o1: I = { + prop1() { }, + [|[|{| "contextRangeIndex": 2 |}prop2|]() { }|] +}; + +var o2: I = { + prop1: () => { }, + [|[|{| "contextRangeIndex": 4 |}prop2|]: () => { }|] +}; + +var o3: I = { + get prop1() { return () => { }; }, + [|get [|{| "contextRangeIndex": 6 |}prop2|]() { return () => { }; }|] +}; + +var o4: I = { + set prop1(v) { }, + [|set [|{| "contextRangeIndex": 8 |}prop2|](v) { }|] +}; + +var o5: I = { + "prop1"() { }, + [|"[|{| "contextRangeIndex": 10 |}prop2|]"() { }|] +}; + +var o6: I = { + "prop1": function () { }, + [|"[|{| "contextRangeIndex": 12 |}prop2|]": function () { }|] +}; + +var o7: I = { + ["prop1"]: function () { }, + [|["[|{| "contextRangeIndex": 14 |}prop2|]"]: function () { }|] +}; + +var o8: I = { + ["prop1"]() { }, + [|["[|{| "contextRangeIndex": 16 |}prop2|]"]() { }|] +}; + +var o9: I = { + get ["prop1"]() { return () => { }; }, + [|get ["[|{| "contextRangeIndex": 18 |}prop2|]"]() { return () => { }; }|] +}; + +var o10: I = { + set ["prop1"](v) { }, + [|set ["[|{| "contextRangeIndex": 20 |}prop2|]"](v) { }|] +};` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "prop2") +} diff --git a/internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go b/internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go new file mode 100644 index 0000000000..90d8181349 --- /dev/null +++ b/internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go @@ -0,0 +1,70 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameContextuallyTypedProperties(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + [|[|{| "contextRangeIndex": 0 |}prop1|]: () => void;|] + prop2(): void; +} + +var o1: I = { + [|[|{| "contextRangeIndex": 2 |}prop1|]() { }|], + prop2() { } +}; + +var o2: I = { + [|[|{| "contextRangeIndex": 4 |}prop1|]: () => { }|], + prop2: () => { } +}; + +var o3: I = { + [|get [|{| "contextRangeIndex": 6 |}prop1|]() { return () => { }; }|], + get prop2() { return () => { }; } +}; + +var o4: I = { + [|set [|{| "contextRangeIndex": 8 |}prop1|](v) { }|], + set prop2(v) { } +}; + +var o5: I = { + [|"[|{| "contextRangeIndex": 10 |}prop1|]"() { }|], + "prop2"() { } +}; + +var o6: I = { + [|"[|{| "contextRangeIndex": 12 |}prop1|]": function () { }|], + "prop2": function () { } +}; + +var o7: I = { + [|["[|{| "contextRangeIndex": 14 |}prop1|]"]: function () { }|], + ["prop2"]: function () { } +}; + +var o8: I = { + [|["[|{| "contextRangeIndex": 16 |}prop1|]"]() { }|], + ["prop2"]() { } +}; + +var o9: I = { + [|get ["[|{| "contextRangeIndex": 18 |}prop1|]"]() { return () => { }; }|], + get ["prop2"]() { return () => { }; } +}; + +var o10: I = { + [|set ["[|{| "contextRangeIndex": 20 |}prop1|]"](v) { }|], + set ["prop2"](v) { } +};` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "prop1") +} diff --git a/internal/fourslash/tests/gen/renameCrossJsTs01_test.go b/internal/fourslash/tests/gen/renameCrossJsTs01_test.go new file mode 100644 index 0000000000..df64099f3c --- /dev/null +++ b/internal/fourslash/tests/gen/renameCrossJsTs01_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameCrossJsTs01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +[|exports.[|{| "contextRangeIndex": 0 |}area|] = function (r) { return r * r; }|] +// @Filename: b.ts +[|import { [|{| "contextRangeIndex": 2 |}area|] } from './a';|] +var t = [|area|](10);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[4]) +} diff --git a/internal/fourslash/tests/gen/renameDeclarationKeywords_test.go b/internal/fourslash/tests/gen/renameDeclarationKeywords_test.go new file mode 100644 index 0000000000..9f7e4e831a --- /dev/null +++ b/internal/fourslash/tests/gen/renameDeclarationKeywords_test.go @@ -0,0 +1,31 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDeclarationKeywords(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|{| "id": "baseDecl" |}class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "baseDecl" |}Base|] {}|] +[|{| "id": "implemented1Decl" |}interface [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "implemented1Decl" |}Implemented1|] {}|] +[|{| "id": "classDecl1" |}[|class|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "classDecl1" |}C1|] [|extends|] [|Base|] [|implements|] [|Implemented1|] { + [|{| "id": "getDecl" |}[|get|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "getDecl" |}e|]() { return 1; }|] + [|{| "id": "setDecl" |}[|set|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "setDecl" |}e|](v) {}|] +}|] +[|{| "id": "interfaceDecl1" |}[|interface|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "interfaceDecl1" |}I1|] [|extends|] [|Base|] { }|] +[|{| "id": "typeDecl" |}[|type|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "typeDecl" |}T|] = { }|] +[|{| "id": "enumDecl" |}[|enum|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "enumDecl" |}E|] { }|] +[|{| "id": "namespaceDecl" |}[|namespace|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "namespaceDecl" |}N|] { }|] +[|{| "id": "moduleDecl" |}[|module|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "moduleDecl" |}M|] { }|] +[|{| "id": "functionDecl" |}[|function|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "functionDecl" |}fn|]() {}|] +[|{| "id": "varDecl" |}[|var|] [|{| "isWriteAccess": false, "isDefinition": true, "contextRangeId": "varDecl" |}x|];|] +[|{| "id": "letDecl" |}[|let|] [|{| "isWriteAccess": false, "isDefinition": true, "contextRangeId": "letDecl" |}y|];|] +[|{| "id": "constDecl" |}[|const|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "constDecl" |}z|] = 1;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[5], f.Ranges()[7], f.Ranges()[9], f.Ranges()[12], f.Ranges()[15], f.Ranges()[18], f.Ranges()[20], f.Ranges()[23], f.Ranges()[26], f.Ranges()[29], f.Ranges()[32], f.Ranges()[35], f.Ranges()[38], f.Ranges()[41], f.Ranges()[44]) +} diff --git a/internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go b/internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go new file mode 100644 index 0000000000..405cadfc61 --- /dev/null +++ b/internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDefaultLibDontWork(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: file1.ts +[|var [|{| "contextRangeIndex": 0 |}test|] = "foo";|] +console.log([|test|]);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go new file mode 100644 index 0000000000..7dff050cc7 --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringAssignmentNestedInArrayLiteral(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] + property2: string; +} +var elems: I[], p1: number, [|[|{| "contextRangeIndex": 2 |}property1|]: number|]; +[|[{ [|{| "contextRangeIndex": 4 |}property1|]: p1 }] = elems;|] +[|[{ [|{| "contextRangeIndex": 6 |}property1|] }] = elems;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7]) +} diff --git a/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go new file mode 100644 index 0000000000..f355cc27ad --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go @@ -0,0 +1,30 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringAssignmentNestedInForOf2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface MultiRobot { + name: string; + skills: { + [|[|{| "contextRangeIndex": 0 |}primary|]: string;|] + secondary: string; + }; +} +let multiRobots: MultiRobot[], [|[|{| "contextRangeIndex": 2 |}primary|]: string|]; +for ([|{ skills: { [|{| "contextRangeIndex": 4 |}primary|]: primaryA, secondary: secondaryA } } of multiRobots|]) { + console.log(primaryA); +} +for ([|{ skills: { [|{| "contextRangeIndex": 6 |}primary|], secondary } } of multiRobots|]) { + console.log([|primary|]); +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7], f.Ranges()[8]) +} diff --git a/internal/fourslash/tests/gen/renameDestructuringAssignment_test.go b/internal/fourslash/tests/gen/renameDestructuringAssignment_test.go new file mode 100644 index 0000000000..7332cd2555 --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringAssignment_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringAssignment(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + [|[|{| "contextRangeIndex": 0 |}x|]: number;|] +} +var a: I; +var x; +([|{ [|{| "contextRangeIndex": 2 |}x|]: x } = a|]);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "x") +} diff --git a/internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go b/internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go new file mode 100644 index 0000000000..0c7845d14d --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go @@ -0,0 +1,31 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringClassProperty(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class A { + [|[|{| "contextRangeIndex": 0 |}foo|]: string;|] +} +class B { + syntax1(a: A): void { + [|let { [|{| "contextRangeIndex": 2 |}foo|] } = a;|] + } + syntax2(a: A): void { + [|let { [|{| "contextRangeIndex": 4 |}foo|]: foo } = a;|] + } + syntax11(a: A): void { + [|let { [|{| "contextRangeIndex": 6 |}foo|] } = a;|] + [|foo|] = "newString"; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7], f.Ranges()[8]) +} diff --git a/internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go b/internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go new file mode 100644 index 0000000000..5c52639c60 --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringDeclarationInForOf(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] + property2: string; +} +var elems: I[]; + +for ([|let { [|{| "contextRangeIndex": 2 |}property1|] } of elems|]) { + [|property1|]++; +} +for ([|let { [|{| "contextRangeIndex": 5 |}property1|]: p2 } of elems|]) { +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[6], f.Ranges()[3], f.Ranges()[4]) +} diff --git a/internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go b/internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go new file mode 100644 index 0000000000..833c133d1c --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringDeclarationInFor(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] + property2: string; +} +var elems: I[]; + +var p2: number, property1: number; +for ([|let { [|{| "contextRangeIndex": 2 |}property1|]: p2 } = elems[0]|]; p2 < 100; p2++) { +} +for ([|let { [|{| "contextRangeIndex": 4 |}property1|] } = elems[0]|]; p2 < 100; p2++) { + [|property1|] = p2; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) +} diff --git a/internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go b/internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go new file mode 100644 index 0000000000..b7bb6c7d4a --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringFunctionParameter(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `function f([|{[|{| "contextRangeIndex": 0 |}a|]}: {[|a|]}|]) { + f({[|a|]}); +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[2]) +} diff --git a/internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go b/internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go new file mode 100644 index 0000000000..642e36f56d --- /dev/null +++ b/internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go @@ -0,0 +1,30 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameDestructuringNestedBindingElement(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface MultiRobot { + name: string; + skills: { + [|[|{| "contextRangeIndex": 0|}primary|]: string;|] + secondary: string; + }; +} +let multiRobots: MultiRobot[]; +for ([|let { skills: {[|{| "contextRangeIndex": 2|}primary|]: primaryA, secondary: secondaryA } } of multiRobots|]) { + console.log(primaryA); +} +for ([|let { skills: {[|{| "contextRangeIndex": 4|}primary|], secondary } } of multiRobots|]) { + console.log([|primary|]); +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) +} diff --git a/internal/fourslash/tests/gen/renameExportCrash_test.go b/internal/fourslash/tests/gen/renameExportCrash_test.go new file mode 100644 index 0000000000..a4da822721 --- /dev/null +++ b/internal/fourslash/tests/gen/renameExportCrash_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameExportCrash(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowNonTsExtensions: true +// @Filename: Foo.js +let a; +module.exports = /**/a; +exports["foo"] = a;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameExportSpecifier2_test.go b/internal/fourslash/tests/gen/renameExportSpecifier2_test.go new file mode 100644 index 0000000000..151da4d0c0 --- /dev/null +++ b/internal/fourslash/tests/gen/renameExportSpecifier2_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameExportSpecifier2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: a.ts +const name = {}; +export { name/**/ }; +// @Filename: b.ts +import { name } from './a'; +const x = name.toString();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameExportSpecifier_test.go b/internal/fourslash/tests/gen/renameExportSpecifier_test.go new file mode 100644 index 0000000000..66db070953 --- /dev/null +++ b/internal/fourslash/tests/gen/renameExportSpecifier_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameExportSpecifier(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: a.ts +const name = {}; +export { name as name/**/ }; +// @Filename: b.ts +import { name } from './a'; +const x = name.toString();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameForStringLiteral_test.go b/internal/fourslash/tests/gen/renameForStringLiteral_test.go new file mode 100644 index 0000000000..fe740b906e --- /dev/null +++ b/internal/fourslash/tests/gen/renameForStringLiteral_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForStringLiteral(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @filename: /a.ts +interface Foo { + property: /**/"foo"; +} +/** + * @type {{ property: "foo"}} + */ +const obj: Foo = { + property: "foo", +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameFunctionParameter1_test.go b/internal/fourslash/tests/gen/renameFunctionParameter1_test.go new file mode 100644 index 0000000000..045ddaf4df --- /dev/null +++ b/internal/fourslash/tests/gen/renameFunctionParameter1_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameFunctionParameter1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `function Foo() { + /** + * @param {number} p + */ + this.foo = function foo(p/**/) { + return p; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameFunctionParameter2_test.go b/internal/fourslash/tests/gen/renameFunctionParameter2_test.go new file mode 100644 index 0000000000..54bac302e2 --- /dev/null +++ b/internal/fourslash/tests/gen/renameFunctionParameter2_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameFunctionParameter2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/** + * @param {number} p + */ +const foo = function foo(p/**/) { + return p; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go b/internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go new file mode 100644 index 0000000000..97b2785c8a --- /dev/null +++ b/internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameImportAndExportInDiffFiles(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: a.ts +[|export var /*1*/[|{| "isDefinition": true, "contextRangeIndex": 0 |}a|];|] +// @Filename: b.ts +[|import { /*2*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}a|] } from './a';|] +[|export { /*3*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}a|] };|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineFindAllReferences(t, "1", "2", "3") + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5]) +} diff --git a/internal/fourslash/tests/gen/renameImportAndExport_test.go b/internal/fourslash/tests/gen/renameImportAndExport_test.go new file mode 100644 index 0000000000..9dc86e60bd --- /dev/null +++ b/internal/fourslash/tests/gen/renameImportAndExport_test.go @@ -0,0 +1,18 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameImportAndExport(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|import [|{| "contextRangeIndex": 0 |}a|] from "module";|] +[|export { [|{| "contextRangeIndex": 2 |}a|] };|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3]) +} diff --git a/internal/fourslash/tests/gen/renameImportAndShorthand_test.go b/internal/fourslash/tests/gen/renameImportAndShorthand_test.go new file mode 100644 index 0000000000..572d68ce69 --- /dev/null +++ b/internal/fourslash/tests/gen/renameImportAndShorthand_test.go @@ -0,0 +1,18 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameImportAndShorthand(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|import [|{| "contextRangeIndex": 0 |}foo|] from 'bar';|] +const bar = { [|foo|] };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) +} diff --git a/internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go b/internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go new file mode 100644 index 0000000000..2bf70faa85 --- /dev/null +++ b/internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go @@ -0,0 +1,18 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameImportNamespaceAndShorthand(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|import * as [|{| "contextRangeIndex": 0 |}foo|] from 'bar';|] +const bar = { [|foo|] };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) +} diff --git a/internal/fourslash/tests/gen/renameImportOfExportEquals_test.go b/internal/fourslash/tests/gen/renameImportOfExportEquals_test.go new file mode 100644 index 0000000000..c57356d30e --- /dev/null +++ b/internal/fourslash/tests/gen/renameImportOfExportEquals_test.go @@ -0,0 +1,35 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameImportOfExportEquals(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|declare namespace /*N*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}N|] { + [|export var /*x*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}x|]: number;|] +}|] +declare module "mod" { + [|export = [|{| "contextRangeIndex": 4 |}N|];|] +} +declare module "a" { + [|import * as /*a*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 6 |}N|] from "mod";|] + [|export { [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 8 |}N|] };|] // Renaming N here would rename +} +declare module "b" { + [|import { /*b*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 10 |}N|] } from "a";|] + export const y: typeof [|N|].[|x|]; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineFindAllReferences(t, "N", "a", "b", "x") + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5]) + f.VerifyBaselineRename(t, f.Ranges()[7]) + f.VerifyBaselineRename(t, f.Ranges()[9]) + f.VerifyBaselineRename(t, f.Ranges()[11], f.Ranges()[12]) + f.VerifyBaselineRename(t, f.Ranges()[3], f.Ranges()[13]) +} diff --git a/internal/fourslash/tests/gen/renameImportRequire_test.go b/internal/fourslash/tests/gen/renameImportRequire_test.go new file mode 100644 index 0000000000..0d96c90d60 --- /dev/null +++ b/internal/fourslash/tests/gen/renameImportRequire_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameImportRequire(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /a.ts +[|import [|{| "contextRangeIndex": 0 |}e|] = require("mod4");|] +[|e|]; +a = { [|e|] }; +[|export { [|{| "contextRangeIndex": 4 |}e|] };|] +// @Filename: /b.ts +[|import { [|{| "contextRangeIndex": 6 |}e|] } from "./a";|] +[|export { [|{| "contextRangeIndex": 8 |}e|] };|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2], f.Ranges()[3], f.Ranges()[5], f.Ranges()[7], f.Ranges()[9]) +} diff --git a/internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go b/internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go new file mode 100644 index 0000000000..c00b49bb3a --- /dev/null +++ b/internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go @@ -0,0 +1,20 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameImportSpecifierPropertyName(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: canada.ts +export interface /**/Ginger {} +// @Filename: dry.ts +import { Ginger as Ale } from './canada';` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameInConfiguredProject_test.go b/internal/fourslash/tests/gen/renameInConfiguredProject_test.go new file mode 100644 index 0000000000..71f8c176d4 --- /dev/null +++ b/internal/fourslash/tests/gen/renameInConfiguredProject_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInConfiguredProject(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: referencesForGlobals_1.ts +[|var [|{| "contextRangeIndex": 0 |}globalName|] = 0;|] +// @Filename: referencesForGlobals_2.ts +var y = [|globalName|]; +// @Filename: tsconfig.json +{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] }` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties1_test.go b/internal/fourslash/tests/gen/renameInheritedProperties1_test.go new file mode 100644 index 0000000000..8d8508f05d --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties1_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = ` class class1 extends class1 { + [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] + } + + var v: class1; + v.[|propName|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "propName") +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties2_test.go b/internal/fourslash/tests/gen/renameInheritedProperties2_test.go new file mode 100644 index 0000000000..d4736474da --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties2_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = ` class class1 extends class1 { + [|[|{| "contextRangeIndex": 0 |}doStuff|]() { }|] + } + + var v: class1; + v.[|doStuff|]();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "doStuff") +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties3_test.go b/internal/fourslash/tests/gen/renameInheritedProperties3_test.go new file mode 100644 index 0000000000..15e214952b --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties3_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = ` interface interface1 extends interface1 { + [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] + } + + var v: interface1; + v.[|propName|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "propName") +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties4_test.go b/internal/fourslash/tests/gen/renameInheritedProperties4_test.go new file mode 100644 index 0000000000..621d0f675a --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties4_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = ` interface interface1 extends interface1 { + [|[|{| "contextRangeIndex": 0 |}doStuff|](): string;|] + } + + var v: interface1; + v.[|doStuff|]();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "doStuff") +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties5_test.go b/internal/fourslash/tests/gen/renameInheritedProperties5_test.go new file mode 100644 index 0000000000..1201d1a1b9 --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties5_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties5(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface C extends D { + propC: number; +} +interface D extends C { + [|[|{| "contextRangeIndex": 0 |}propD|]: string;|] +} +var d: D; +d.[|propD|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "propD") +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties6_test.go b/internal/fourslash/tests/gen/renameInheritedProperties6_test.go new file mode 100644 index 0000000000..a903f1b023 --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties6_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties6(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface C extends D { + propD: number; +} +interface D extends C { + [|[|{| "contextRangeIndex": 0 |}propC|]: number;|] +} +var d: D; +d.[|propC|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "propC") +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties7_test.go b/internal/fourslash/tests/gen/renameInheritedProperties7_test.go new file mode 100644 index 0000000000..7b62aeda39 --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties7_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties7(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = ` class C extends D { + [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] + } + + class D extends C { + prop1: string; + } + + var c: C; + c.[|prop1|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "prop1") +} diff --git a/internal/fourslash/tests/gen/renameInheritedProperties8_test.go b/internal/fourslash/tests/gen/renameInheritedProperties8_test.go new file mode 100644 index 0000000000..ae8de2485c --- /dev/null +++ b/internal/fourslash/tests/gen/renameInheritedProperties8_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInheritedProperties8(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = ` class C implements D { + [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] + } + + interface D extends C { + [|[|{| "contextRangeIndex": 2 |}prop1|]: string;|] + } + + var c: C; + c.[|prop1|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "prop1") +} diff --git a/internal/fourslash/tests/gen/renameJSDocNamepath_test.go b/internal/fourslash/tests/gen/renameJSDocNamepath_test.go new file mode 100644 index 0000000000..7e1595ba8b --- /dev/null +++ b/internal/fourslash/tests/gen/renameJSDocNamepath_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJSDocNamepath(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @noLib: true +/** + * @type {module:foo/A} x + */ +var x = 1 +var /*0*/A = 0;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "0") +} diff --git a/internal/fourslash/tests/gen/renameJsDocImportTag_test.go b/internal/fourslash/tests/gen/renameJsDocImportTag_test.go new file mode 100644 index 0000000000..9aa5bea248 --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsDocImportTag_test.go @@ -0,0 +1,29 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsDocImportTag(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJS: true +// @checkJs: true +// @Filename: /b.ts +export interface A { } +// @Filename: /a.js +/** + * @import { A } from "./b"; + */ + +/** + * @param { [|A/**/|] } a + */ +function f(a) {}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go b/internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go new file mode 100644 index 0000000000..e5f9e1cc56 --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsDocTypeLiteral(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @checkJs: true +// @filename: /a.js +/** + * @param {Object} options + * @param {string} options.foo + * @param {number} options.bar + */ +function foo(/**/options) {}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToFile(t, "/a.js") + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameJsExports01_test.go b/internal/fourslash/tests/gen/renameJsExports01_test.go new file mode 100644 index 0000000000..56c9b860f5 --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsExports01_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsExports01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +[|exports.[|{| "contextRangeIndex": 0 |}area|] = function (r) { return r * r; }|] +// @Filename: b.js +var mod = require('./a'); +var t = mod./*1*/[|area|](10);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineFindAllReferences(t, "1") + f.VerifyBaselineRenameAtRangesWithText(t, "area") +} diff --git a/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go b/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go new file mode 100644 index 0000000000..b6f3a4df1f --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go @@ -0,0 +1,34 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsOverloadedFunctionParameter(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @checkJs: true +// @Filename: foo.js +/** + * @overload + * @param {number} x + * @returns {number} + * + * @overload + * @param {string} x + * @returns {string} + * + * @param {unknown} x + * @returns {unknown} + */ +function foo(x/**/) { + return x; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go new file mode 100644 index 0000000000..b73bad72b1 --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsPropertyAssignment2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +class Minimatch { +} +[|Minimatch.[|{| "contextRangeIndex": 0 |}staticProperty|] = "string";|] +console.log(Minimatch.[|staticProperty|]);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "staticProperty") +} diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go new file mode 100644 index 0000000000..e1f2fe8df3 --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsPropertyAssignment3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +var C = class { +} +[|C.[|{| "contextRangeIndex": 0 |}staticProperty|] = "string";|] +console.log(C.[|staticProperty|]);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "staticProperty") +} diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go new file mode 100644 index 0000000000..acf4241838 --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsPropertyAssignment4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: /a.js +function f() { + var /*1*/foo = this; + /*2*/foo.x = 1; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToFile(t, "/a.js") + f.VerifyBaselineRename(t, "1", "2") +} diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go new file mode 100644 index 0000000000..741780406c --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsPropertyAssignment(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +function bar() { +} +[|bar.[|{| "contextRangeIndex": 0 |}foo|] = "foo";|] +console.log(bar.[|foo|]);` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "foo") +} diff --git a/internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go b/internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go new file mode 100644 index 0000000000..318dd99aee --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsPrototypeProperty01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +function bar() { +} +[|bar.prototype.[|{| "contextRangeIndex": 0 |}x|] = 10;|] +var t = new bar(); +[|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "x") +} diff --git a/internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go b/internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go new file mode 100644 index 0000000000..b7cf71717c --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsPrototypeProperty02(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +function bar() { +} +[|bar.prototype.[|{| "contextRangeIndex": 0 |}x|] = 10;|] +var t = new bar(); +[|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "x") +} diff --git a/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go new file mode 100644 index 0000000000..d004b3805a --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsSpecialAssignmentRhs1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +const foo = { + set: function (x) { + this._x = x; + }, + copy: function ([|x|]) { + this._x = [|x|].prop; + } +};` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t) +} diff --git a/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go new file mode 100644 index 0000000000..8a9731edeb --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsSpecialAssignmentRhs2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +const foo = { + set: function (x) { + this._x = x; + }, + copy: function ([|x|]) { + this._x = [|x|].prop; + } +};` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t) +} diff --git a/internal/fourslash/tests/gen/renameJsThisProperty01_test.go b/internal/fourslash/tests/gen/renameJsThisProperty01_test.go new file mode 100644 index 0000000000..ca7248c81e --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsThisProperty01_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsThisProperty01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +function bar() { + [|this.[|{| "contextRangeIndex": 0 |}x|] = 10;|] +} +var t = new bar(); +[|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "x") +} diff --git a/internal/fourslash/tests/gen/renameJsThisProperty03_test.go b/internal/fourslash/tests/gen/renameJsThisProperty03_test.go new file mode 100644 index 0000000000..60fdb72724 --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsThisProperty03_test.go @@ -0,0 +1,25 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsThisProperty03(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +class C { + constructor(y) { + [|this.[|{| "contextRangeIndex": 0 |}x|] = y;|] + } +} +var t = new C(12); +[|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "x") +} diff --git a/internal/fourslash/tests/gen/renameJsThisProperty05_test.go b/internal/fourslash/tests/gen/renameJsThisProperty05_test.go new file mode 100644 index 0000000000..352267718b --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsThisProperty05_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsThisProperty05(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +class C { + constructor(y) { + this.x = y; + } +} +[|C.prototype.[|{| "contextRangeIndex": 0 |}z|] = 1;|] +var t = new C(12); +[|t.[|{| "contextRangeIndex": 2 |}z|] = 11;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "z") +} diff --git a/internal/fourslash/tests/gen/renameJsThisProperty06_test.go b/internal/fourslash/tests/gen/renameJsThisProperty06_test.go new file mode 100644 index 0000000000..2396e895df --- /dev/null +++ b/internal/fourslash/tests/gen/renameJsThisProperty06_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameJsThisProperty06(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +var C = class { + constructor(y) { + this.x = y; + } +} +[|C.prototype.[|{| "contextRangeIndex": 0 |}z|] = 1;|] +var t = new C(12); +[|t.[|{| "contextRangeIndex": 2 |}z|] = 11;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "z") +} diff --git a/internal/fourslash/tests/gen/renameLabel1_test.go b/internal/fourslash/tests/gen/renameLabel1_test.go new file mode 100644 index 0000000000..274f6dc6e9 --- /dev/null +++ b/internal/fourslash/tests/gen/renameLabel1_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLabel1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `foo: { + break /**/foo; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameLabel2_test.go b/internal/fourslash/tests/gen/renameLabel2_test.go new file mode 100644 index 0000000000..d615ed6403 --- /dev/null +++ b/internal/fourslash/tests/gen/renameLabel2_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLabel2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/**/foo: { + break foo; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameLabel3_test.go b/internal/fourslash/tests/gen/renameLabel3_test.go new file mode 100644 index 0000000000..05020c80da --- /dev/null +++ b/internal/fourslash/tests/gen/renameLabel3_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLabel3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `/**/loop: +for (let i = 0; i <= 10; i++) { + if (i === 0) continue loop; + if (i === 1) continue loop; + if (i === 10) break loop; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameLabel4_test.go b/internal/fourslash/tests/gen/renameLabel4_test.go new file mode 100644 index 0000000000..eacfc7668a --- /dev/null +++ b/internal/fourslash/tests/gen/renameLabel4_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLabel4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `loop: +for (let i = 0; i <= 10; i++) { + if (i === 0) continue loop; + if (i === 1) continue /**/loop; + if (i === 10) break loop; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameLabel5_test.go b/internal/fourslash/tests/gen/renameLabel5_test.go new file mode 100644 index 0000000000..bb443c6950 --- /dev/null +++ b/internal/fourslash/tests/gen/renameLabel5_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLabel5(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `loop1: for (let i = 0; i <= 10; i++) { + loop2: for (let j = 0; j <= 10; j++) { + if (i === 5) continue /**/loop1; + if (j === 5) break loop2; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameLabel6_test.go b/internal/fourslash/tests/gen/renameLabel6_test.go new file mode 100644 index 0000000000..e90db67e61 --- /dev/null +++ b/internal/fourslash/tests/gen/renameLabel6_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLabel6(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `loop1: for (let i = 0; i <= 10; i++) { + loop2: for (let j = 0; j <= 10; j++) { + if (i === 5) continue loop1; + if (j === 5) break /**/loop2; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go b/internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go new file mode 100644 index 0000000000..828ffd6987 --- /dev/null +++ b/internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go @@ -0,0 +1,35 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLocationsForClassExpression01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { +} + +var x = [|class [|{| "contextRangeIndex": 0 |}Foo|] { + doIt() { + return [|Foo|]; + } + + static doItStatically() { + return [|Foo|].y; + } +}|] + +var y = class { + getSomeName() { + return Foo + } +} +var z = class Foo {}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "Foo") +} diff --git a/internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go new file mode 100644 index 0000000000..2a19d4d7ac --- /dev/null +++ b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go @@ -0,0 +1,19 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLocationsForFunctionExpression01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `var x = [|function [|{| "contextRangeIndex": 0 |}f|](g: any, h: any) { + [|f|]([|f|], g); +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "f") +} diff --git a/internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go new file mode 100644 index 0000000000..c353a69d7c --- /dev/null +++ b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go @@ -0,0 +1,25 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameLocationsForFunctionExpression02(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `function f() { + +} +var x = [|function [|{| "contextRangeIndex": 0 |}f|](g: any, h: any) { + + let helper = function f(): any { f(); } + + let foo = () => [|f|]([|f|], g); +}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "f") +} diff --git a/internal/fourslash/tests/gen/renameModifiers_test.go b/internal/fourslash/tests/gen/renameModifiers_test.go new file mode 100644 index 0000000000..04e887fbfb --- /dev/null +++ b/internal/fourslash/tests/gen/renameModifiers_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameModifiers(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|[|declare|] [|abstract|] class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -3 |}C1|] { + [|[|static|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}a|];|] + [|[|readonly|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}b|];|] + [|[|public|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}c|];|] + [|[|protected|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}d|];|] + [|[|private|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}e|];|] +}|] +[|[|const|] enum [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}E|] { +}|] +[|[|async|] function [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}fn|]() {}|] +[|[|export|] [|default|] class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -3 |}C2|] {}|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2], f.Ranges()[5], f.Ranges()[8], f.Ranges()[11], f.Ranges()[14], f.Ranges()[17], f.Ranges()[20], f.Ranges()[23], f.Ranges()[26], f.Ranges()[27]) +} diff --git a/internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go b/internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go new file mode 100644 index 0000000000..d7edccce9a --- /dev/null +++ b/internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go @@ -0,0 +1,18 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameModuleExportsProperties1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|class [|{| "contextRangeIndex": 0 |}A|] {}|] +module.exports = { [|A|] }` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) +} diff --git a/internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go b/internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go new file mode 100644 index 0000000000..c02a8c5669 --- /dev/null +++ b/internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go @@ -0,0 +1,18 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameModuleExportsProperties2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|class [|{| "contextRangeIndex": 0 |}A|] {}|] +module.exports = { B: [|A|] }` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) +} diff --git a/internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go b/internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go new file mode 100644 index 0000000000..d00db08a37 --- /dev/null +++ b/internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go @@ -0,0 +1,20 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameModuleExportsProperties3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +[|class [|{| "contextRangeIndex": 0 |}A|] {}|] +module.exports = { [|A|] }` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) +} diff --git a/internal/fourslash/tests/gen/renameNamedImport_test.go b/internal/fourslash/tests/gen/renameNamedImport_test.go new file mode 100644 index 0000000000..dbbc9c08fc --- /dev/null +++ b/internal/fourslash/tests/gen/renameNamedImport_test.go @@ -0,0 +1,30 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameNamedImport(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /home/src/workspaces/project/lib/tsconfig.json +{} +// @Filename: /home/src/workspaces/project/lib/index.ts +const unrelatedLocalVariable = 123; +export const someExportedVariable = unrelatedLocalVariable; +// @Filename: /home/src/workspaces/project/src/tsconfig.json +{} +// @Filename: /home/src/workspaces/project/src/index.ts +import { /*i*/someExportedVariable } from '../lib/index'; +someExportedVariable; +// @Filename: /home/src/workspaces/project/tsconfig.json +{}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToFile(t, "/home/src/workspaces/project/lib/index.ts") + f.GoToFile(t, "/home/src/workspaces/project/src/index.ts") + f.VerifyBaselineRename(t, "i") +} diff --git a/internal/fourslash/tests/gen/renameNamespaceImport_test.go b/internal/fourslash/tests/gen/renameNamespaceImport_test.go new file mode 100644 index 0000000000..80d1ff0b5b --- /dev/null +++ b/internal/fourslash/tests/gen/renameNamespaceImport_test.go @@ -0,0 +1,30 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameNamespaceImport(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /home/src/workspaces/project/lib/tsconfig.json +{} +// @Filename: /home/src/workspaces/project/lib/index.ts +const unrelatedLocalVariable = 123; +export const someExportedVariable = unrelatedLocalVariable; +// @Filename: /home/src/workspaces/project/src/tsconfig.json +{} +// @Filename: /home/src/workspaces/project/src/index.ts +import * as /*i*/lib from '../lib/index'; +lib.someExportedVariable; +// @Filename: /home/src/workspaces/project/tsconfig.json +{}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToFile(t, "/home/src/workspaces/project/lib/index.ts") + f.GoToFile(t, "/home/src/workspaces/project/src/index.ts") + f.VerifyBaselineRename(t, "i") +} diff --git a/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go b/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go new file mode 100644 index 0000000000..43110d9df8 --- /dev/null +++ b/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go @@ -0,0 +1,18 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameNumericalIndexSingleQuoted(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `const foo = { [|0|]: true }; +foo[[|0|]];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "0") +} diff --git a/internal/fourslash/tests/gen/renameNumericalIndex_test.go b/internal/fourslash/tests/gen/renameNumericalIndex_test.go new file mode 100644 index 0000000000..25a1f47be2 --- /dev/null +++ b/internal/fourslash/tests/gen/renameNumericalIndex_test.go @@ -0,0 +1,18 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameNumericalIndex(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `const foo = { [|0|]: true }; +foo[[|0|]];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "0") +} diff --git a/internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go b/internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go new file mode 100644 index 0000000000..b836ba86e5 --- /dev/null +++ b/internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameObjectBindingElementPropertyName01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] + property2: string; +} + +var foo: I; +[|var { [|{| "contextRangeIndex": 2 |}property1|]: prop1 } = foo;|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "property1") +} diff --git a/internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go b/internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go new file mode 100644 index 0000000000..78464c0207 --- /dev/null +++ b/internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameObjectSpreadAssignment(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface A1 { a: number }; +interface A2 { a?: number }; +[|let [|{| "contextRangeIndex": 0 |}a1|]: A1;|] +[|let [|{| "contextRangeIndex": 2 |}a2|]: A2;|] +let a12 = { ...[|a1|], ...[|a2|] };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[4], f.Ranges()[3], f.Ranges()[5]) +} diff --git a/internal/fourslash/tests/gen/renameObjectSpread_test.go b/internal/fourslash/tests/gen/renameObjectSpread_test.go new file mode 100644 index 0000000000..5ac31871df --- /dev/null +++ b/internal/fourslash/tests/gen/renameObjectSpread_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameObjectSpread(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface A1 { [|[|{| "contextRangeIndex": 0 |}a|]: number|] }; +interface A2 { [|[|{| "contextRangeIndex": 2 |}a|]?: number|] }; +let a1: A1; +let a2: A2; +let a12 = { ...a1, ...a2 }; +a12.[|a|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[4]) +} diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go new file mode 100644 index 0000000000..9c82888d7f --- /dev/null +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameParameterPropertyDeclaration1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + constructor([|private [|{| "contextRangeIndex": 0 |}privateParam|]: number|]) { + let localPrivate = [|privateParam|]; + this.[|privateParam|] += 10; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "privateParam") +} diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go new file mode 100644 index 0000000000..c726830596 --- /dev/null +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameParameterPropertyDeclaration2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + constructor([|public [|{| "contextRangeIndex": 0 |}publicParam|]: number|]) { + let publicParam = [|publicParam|]; + this.[|publicParam|] += 10; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "publicParam") +} diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go new file mode 100644 index 0000000000..65206e4662 --- /dev/null +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameParameterPropertyDeclaration3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + constructor([|protected [|{| "contextRangeIndex": 0 |}protectedParam|]: number|]) { + let protectedParam = [|protectedParam|]; + this.[|protectedParam|] += 10; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "protectedParam") +} diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go new file mode 100644 index 0000000000..7529e613bf --- /dev/null +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameParameterPropertyDeclaration4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + constructor([|protected { [|{| "contextRangeIndex": 0 |}protectedParam|] }|]) { + let myProtectedParam = [|protectedParam|]; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) +} diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go new file mode 100644 index 0000000000..dedeb8b04d --- /dev/null +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameParameterPropertyDeclaration5(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + constructor([|protected [ [|{| "contextRangeIndex": 0 |}protectedParam|] ]|]) { + let myProtectedParam = [|protectedParam|]; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "protectedParam") +} diff --git a/internal/fourslash/tests/gen/renamePrivateAccessor_test.go b/internal/fourslash/tests/gen/renamePrivateAccessor_test.go new file mode 100644 index 0000000000..b831672463 --- /dev/null +++ b/internal/fourslash/tests/gen/renamePrivateAccessor_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenamePrivateAccessor(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + [|get [|{| "contextRangeIndex": 0 |}#foo|]() { return 1 }|] + [|set [|{| "contextRangeIndex": 2 |}#foo|](value: number) { }|] + retFoo() { + return this.[|#foo|]; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, ToAny(f.GetRangesByText().Get("#foo"))...) +} diff --git a/internal/fourslash/tests/gen/renamePrivateFields1_test.go b/internal/fourslash/tests/gen/renamePrivateFields1_test.go new file mode 100644 index 0000000000..24bd99a5d7 --- /dev/null +++ b/internal/fourslash/tests/gen/renamePrivateFields1_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenamePrivateFields1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + [|[|{| "contextRangeIndex": 0 |}#foo|] = 1;|] + + getFoo() { + return this.[|#foo|]; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "#foo") +} diff --git a/internal/fourslash/tests/gen/renamePrivateMethod_test.go b/internal/fourslash/tests/gen/renamePrivateMethod_test.go new file mode 100644 index 0000000000..f07f13d15d --- /dev/null +++ b/internal/fourslash/tests/gen/renamePrivateMethod_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenamePrivateMethod(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + [|[|{| "contextRangeIndex": 0 |}#foo|]() { }|] + callFoo() { + return this.[|#foo|](); + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, ToAny(f.GetRangesByText().Get("#foo"))...) +} diff --git a/internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go b/internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go new file mode 100644 index 0000000000..9c278761d1 --- /dev/null +++ b/internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go @@ -0,0 +1,22 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenamePropertyAccessExpressionHeritageClause(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class B {} +function foo() { + return {[|[|{| "contextRangeIndex": 0 |}B|]: B|]}; +} +class C extends (foo()).[|B|] {} +class C1 extends foo().[|B|] {}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "B") +} diff --git a/internal/fourslash/tests/gen/renameReExportDefault_test.go b/internal/fourslash/tests/gen/renameReExportDefault_test.go new file mode 100644 index 0000000000..28a18a8315 --- /dev/null +++ b/internal/fourslash/tests/gen/renameReExportDefault_test.go @@ -0,0 +1,26 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameReExportDefault(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /a.ts +export { default } from "./b"; +[|export { default as [|{| "contextRangeIndex": 0 |}b|] } from "./b";|] +export { default as bee } from "./b"; +[|import { default as [|{| "contextRangeIndex": 2 |}b|] } from "./b";|] +import { default as bee } from "./b"; +[|import [|{| "contextRangeIndex": 4 |}b|] from "./b";|] +// @Filename: /b.ts +[|const [|{| "contextRangeIndex": 6 |}b|] = 0;|] +[|export default [|{| "contextRangeIndex": 8 |}b|];|]` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[7], f.Ranges()[9]) +} diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go new file mode 100644 index 0000000000..1122216ab8 --- /dev/null +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go @@ -0,0 +1,20 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameReferenceFromLinkTag1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `enum E { + /** {@link /**/A} */ + A +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go new file mode 100644 index 0000000000..2224349514 --- /dev/null +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameReferenceFromLinkTag2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /a.ts +enum E { + /** {@link /**/Foo} */ + Foo +} +interface Foo { + foo: E.Foo; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go new file mode 100644 index 0000000000..5806255c9c --- /dev/null +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go @@ -0,0 +1,25 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameReferenceFromLinkTag3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @filename: a.ts +interface Foo { + foo: E.Foo; +} +// @Filename: b.ts +enum E { + /** {@link /**/Foo} */ + Foo +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go new file mode 100644 index 0000000000..053a374bde --- /dev/null +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameReferenceFromLinkTag4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `enum E { + /** {@link /**/B} */ + A, + B +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go new file mode 100644 index 0000000000..3c942601c1 --- /dev/null +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go @@ -0,0 +1,20 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameReferenceFromLinkTag5(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `enum E { + /** {@link E./**/A} */ + A +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameRestBindingElement_test.go b/internal/fourslash/tests/gen/renameRestBindingElement_test.go new file mode 100644 index 0000000000..ec6ef0f6cb --- /dev/null +++ b/internal/fourslash/tests/gen/renameRestBindingElement_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameRestBindingElement(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + a: number; + b: number; + c: number; +} +function foo([|{ a, ...[|{| "contextRangeIndex": 0 |}rest|] }: I|]) { + [|rest|]; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, f.Ranges()[1]) +} diff --git a/internal/fourslash/tests/gen/renameRest_test.go b/internal/fourslash/tests/gen/renameRest_test.go new file mode 100644 index 0000000000..8fd75b587d --- /dev/null +++ b/internal/fourslash/tests/gen/renameRest_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameRest(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface Gen { + x: number; + [|[|{| "contextRangeIndex": 0 |}parent|]: Gen;|] + millenial: string; +} +let t: Gen; +var { x, ...rest } = t; +rest.[|parent|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "parent") +} diff --git a/internal/fourslash/tests/gen/renameStringLiteralOk1_test.go b/internal/fourslash/tests/gen/renameStringLiteralOk1_test.go new file mode 100644 index 0000000000..86469792ac --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringLiteralOk1_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringLiteralOk1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `declare function f(): '[|foo|]' | 'bar' +class Foo { + f = f() +} +const d: 'foo' = 'foo' +declare const ff: Foo +ff.f = '[|foo|]'` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "foo") +} diff --git a/internal/fourslash/tests/gen/renameStringLiteralOk_test.go b/internal/fourslash/tests/gen/renameStringLiteralOk_test.go new file mode 100644 index 0000000000..74294a5c77 --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringLiteralOk_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringLiteralOk(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface Foo { + f: '[|foo|]' | 'bar' +} +const d: 'foo' = 'foo' +declare const f: Foo +f.f = '[|foo|]' +f.f = ` + "`" + `[|foo|]` + "`" + `` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "foo") +} diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go new file mode 100644 index 0000000000..9bb96680d9 --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go @@ -0,0 +1,25 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringLiteralTypes1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface AnimationOptions { + deltaX: number; + deltaY: number; + easing: "ease-in" | "ease-out" | "[|ease-in-out|]"; +} + +function animate(o: AnimationOptions) { } + +animate({ deltaX: 100, deltaY: 100, easing: "[|ease-in-out|]" });` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "ease-in-out") +} diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go new file mode 100644 index 0000000000..552222b5c2 --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go @@ -0,0 +1,34 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringLiteralTypes2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `type Foo = "[|a|]" | "b"; + +class C { + p: Foo = "[|a|]"; + m() { + if (this.p === "[|a|]") {} + if ("[|a|]" === this.p) {} + + if (this.p !== "[|a|]") {} + if ("[|a|]" !== this.p) {} + + if (this.p == "[|a|]") {} + if ("[|a|]" == this.p) {} + + if (this.p != "[|a|]") {} + if ("[|a|]" != this.p) {} + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "a") +} diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go new file mode 100644 index 0000000000..4f77ee0b13 --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go @@ -0,0 +1,29 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringLiteralTypes3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `type Foo = "[|a|]" | "b"; + +class C { + p: Foo = "[|a|]"; + m() { + switch (this.p) { + case "[|a|]": + return 1; + case "b": + return 2; + } + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "a") +} diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go new file mode 100644 index 0000000000..67b57fa0df --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringLiteralTypes4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `interface I { + "Prop 1": string; +} + +declare const fn: (p: K) => void + +fn("Prop 1"/**/)` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go new file mode 100644 index 0000000000..f60c682d08 --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringLiteralTypes5(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `type T = { + "Prop 1": string; +} + +declare const fn: (p: K) => void + +fn("Prop 1"/**/)` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameStringPropertyNames2_test.go b/internal/fourslash/tests/gen/renameStringPropertyNames2_test.go new file mode 100644 index 0000000000..0eb5ad4103 --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringPropertyNames2_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringPropertyNames2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `type Props = { + foo: boolean; +} + +let { foo }: Props = null as any; +foo; + +let asd: Props = { "foo"/**/: true }; // rename foo here` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t, "") +} diff --git a/internal/fourslash/tests/gen/renameStringPropertyNames_test.go b/internal/fourslash/tests/gen/renameStringPropertyNames_test.go new file mode 100644 index 0000000000..00ca8ee9a0 --- /dev/null +++ b/internal/fourslash/tests/gen/renameStringPropertyNames_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameStringPropertyNames(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `var o = { + [|[|{| "contextRangeIndex": 0 |}prop|]: 0|] +}; + +o = { + [|"[|{| "contextRangeIndex": 2 |}prop|]": 1|] +}; + +o["[|prop|]"]; +o['[|prop|]']; +o.[|prop|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "prop") +} diff --git a/internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go b/internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go new file mode 100644 index 0000000000..7d7be517a5 --- /dev/null +++ b/internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go @@ -0,0 +1,52 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameTemplateLiteralsComputedProperties(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: a.ts +interface Obj { + [|[` + "`" + `[|{| "contextRangeIndex": 0 |}num|]` + "`" + `]: number;|] + [|['[|{| "contextRangeIndex": 2 |}bool|]']: boolean;|] +} + +let o: Obj = { + [|[` + "`" + `[|{| "contextRangeIndex": 4 |}num|]` + "`" + `]: 0|], + [|['[|{| "contextRangeIndex": 6 |}bool|]']: true|], +}; + +o = { + [|['[|{| "contextRangeIndex": 8 |}num|]']: 1|], + [|[` + "`" + `[|{| "contextRangeIndex": 10 |}bool|]` + "`" + `]: false|], +}; + +o.[|num|]; +o['[|num|]']; +o["[|num|]"]; +o[` + "`" + `[|num|]` + "`" + `]; + +o.[|bool|]; +o['[|bool|]']; +o["[|bool|]"]; +o[` + "`" + `[|bool|]` + "`" + `]; + +export { o }; +// @allowJs: true +// @Filename: b.js +import { o as obj } from './a'; + +obj.[|num|]; +obj[` + "`" + `[|num|]` + "`" + `]; + +obj.[|bool|]; +obj[` + "`" + `[|bool|]` + "`" + `];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "num", "bool") +} diff --git a/internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go b/internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go new file mode 100644 index 0000000000..7667e4f555 --- /dev/null +++ b/internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go @@ -0,0 +1,30 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameTemplateLiteralsDefinePropertyJs(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @allowJs: true +// @Filename: a.js +let obj = {}; + +Object.defineProperty(obj, ` + "`" + `[|prop|]` + "`" + `, { value: 0 }); + +obj = { + [|[` + "`" + `[|{| "contextRangeIndex": 1 |}prop|]` + "`" + `]: 1|] +}; + +obj.[|prop|]; +obj['[|prop|]']; +obj["[|prop|]"]; +obj[` + "`" + `[|prop|]` + "`" + `];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "prop") +} diff --git a/internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go b/internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go new file mode 100644 index 0000000000..21b10863b4 --- /dev/null +++ b/internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameUMDModuleAlias1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: 0.d.ts +export function doThing(): string; +export function doTheOtherThing(): void; +[|export as namespace [|{| "contextRangeIndex": 0 |}myLib|];|] +// @Filename: 1.ts +/// +[|myLib|].doThing();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "myLib") +} diff --git a/internal/fourslash/tests/gen/tsxRename1_test.go b/internal/fourslash/tests/gen/tsxRename1_test.go new file mode 100644 index 0000000000..f3caf97354 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename1_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx + declare module JSX { + interface Element { } + interface IntrinsicElements { + [|[|{| "contextRangeIndex": 0 |}div|]: { + name?: string; + isOpen?: boolean; + };|] + span: { n: string; }; + } + } + var x = [|<[|{| "contextRangeIndex": 2 |}div|] />|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "div") +} diff --git a/internal/fourslash/tests/gen/tsxRename2_test.go b/internal/fourslash/tests/gen/tsxRename2_test.go new file mode 100644 index 0000000000..19c8d8d568 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename2_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx + declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { + [|[|{| "contextRangeIndex": 0 |}name|]?: string;|] + isOpen?: boolean; + }; + span: { n: string; }; + } + } + var x =
;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "name") +} diff --git a/internal/fourslash/tests/gen/tsxRename3_test.go b/internal/fourslash/tests/gen/tsxRename3_test.go new file mode 100644 index 0000000000..eaf30dd492 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename3_test.go @@ -0,0 +1,31 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } + } + class MyClass { + props: { + [|[|{| "contextRangeIndex": 0 |}name|]?: string;|] + size?: number; + } + + + var x = ;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "name") +} diff --git a/internal/fourslash/tests/gen/tsxRename5_test.go b/internal/fourslash/tests/gen/tsxRename5_test.go new file mode 100644 index 0000000000..10870eaa78 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename5_test.go @@ -0,0 +1,31 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename5(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } + } + class MyClass { + props: { + name?: string; + size?: number; + } + + [|var [|{| "contextRangeIndex": 0 |}nn|]: string;|] + var x = ;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "nn") +} diff --git a/internal/fourslash/tests/gen/tsxRename6_test.go b/internal/fourslash/tests/gen/tsxRename6_test.go new file mode 100644 index 0000000000..6aa4cc41c0 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename6_test.go @@ -0,0 +1,36 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename6(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx +// @jsx: preserve +// @noLib: true + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } + } + interface OptionPropBag { + propx: number + propString: string + optional?: boolean + } + [|declare function [|{| "contextRangeIndex": 0 |}Opt|](attributes: OptionPropBag): JSX.Element;|] + let opt = [|<[|{| "contextRangeIndex": 2 |}Opt|] />|]; + let opt1 = [|<[|{| "contextRangeIndex": 4 |}Opt|] propx={100} propString />|]; + let opt2 = [|<[|{| "contextRangeIndex": 6 |}Opt|] propx={100} optional/>|]; + let opt3 = [|<[|{| "contextRangeIndex": 8 |}Opt|] wrong />|]; + let opt4 = [|<[|{| "contextRangeIndex": 10 |}Opt|] propx={100} propString="hi" />|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "Opt") +} diff --git a/internal/fourslash/tests/gen/tsxRename7_test.go b/internal/fourslash/tests/gen/tsxRename7_test.go new file mode 100644 index 0000000000..bfb1c6e839 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename7_test.go @@ -0,0 +1,35 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename7(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx +// @jsx: preserve +// @noLib: true + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } + } + interface OptionPropBag { + [|[|{| "contextRangeIndex": 0 |}propx|]: number|] + propString: string + optional?: boolean + } + declare function Opt(attributes: OptionPropBag): JSX.Element; + let opt = ; + let opt1 = ; + let opt2 = ; + let opt3 = ;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "propx") +} diff --git a/internal/fourslash/tests/gen/tsxRename8_test.go b/internal/fourslash/tests/gen/tsxRename8_test.go new file mode 100644 index 0000000000..31c42f30a0 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename8_test.go @@ -0,0 +1,36 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename8(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx +// @jsx: preserve +// @noLib: true + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } + } + interface OptionPropBag { + propx: number + propString: string + optional?: boolean + } + declare function Opt(attributes: OptionPropBag): JSX.Element; + let opt = ; + let opt1 = ; + let opt2 = ; + let opt3 = ; + let opt4 = ;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRename(t) +} diff --git a/internal/fourslash/tests/gen/tsxRename9_test.go b/internal/fourslash/tests/gen/tsxRename9_test.go new file mode 100644 index 0000000000..252ac142c0 --- /dev/null +++ b/internal/fourslash/tests/gen/tsxRename9_test.go @@ -0,0 +1,44 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestTsxRename9(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `//@Filename: file.tsx +// @jsx: preserve +// @noLib: true + declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } + } + interface ClickableProps { + children?: string; + className?: string; + } + interface ButtonProps extends ClickableProps { + [|[|{| "contextRangeIndex": 0 |}onClick|](event?: React.MouseEvent): void;|] + } + interface LinkProps extends ClickableProps { + [|[|{| "contextRangeIndex": 2 |}goTo|]: string;|] + } + [|declare function [|{| "contextRangeIndex": 4 |}MainButton|](buttonProps: ButtonProps): JSX.Element;|] + [|declare function [|{| "contextRangeIndex": 6 |}MainButton|](linkProps: LinkProps): JSX.Element;|] + [|declare function [|{| "contextRangeIndex": 8 |}MainButton|](props: ButtonProps | LinkProps): JSX.Element;|] + let opt = [|<[|{| "contextRangeIndex": 10 |}MainButton|] />|]; + let opt = [|<[|{| "contextRangeIndex": 12 |}MainButton|] children="chidlren" />|]; + let opt = [|<[|{| "contextRangeIndex": 14 |}MainButton|] [|[|{| "contextRangeIndex": 16 |}onClick|]={()=>{}}|] />|]; + let opt = [|<[|{| "contextRangeIndex": 18 |}MainButton|] [|[|{| "contextRangeIndex": 20 |}onClick|]={()=>{}}|] [|ignore-prop|] />|]; + let opt = [|<[|{| "contextRangeIndex": 23 |}MainButton|] [|[|{| "contextRangeIndex": 25 |}goTo|]="goTo"|] />|]; + let opt = [|<[|{| "contextRangeIndex": 27 |}MainButton|] [|wrong|] />|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.VerifyBaselineRenameAtRangesWithText(t, "onClick", "goTo", "MainButton", "ignore-prop", "wrong") +} diff --git a/internal/fourslash/tests/util/util.go b/internal/fourslash/tests/util/util.go index 0df83e295f..ad44075f5f 100644 --- a/internal/fourslash/tests/util/util.go +++ b/internal/fourslash/tests/util/util.go @@ -13479,3 +13479,7 @@ var CompletionTypeAssertionKeywords = CompletionGlobalTypesPlus([]fourslash.Comp SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)), }, }) + +func ToAny[T any](items []T) []any { + return core.Map(items, func(item T) any { return item }) +} From 719ae9bf400f016b5bdbe73c17e0aad7e50f20ba Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Fri, 5 Sep 2025 13:53:46 -0700 Subject: [PATCH 05/18] temporarily accept all baselines --- ...AllReferencesDynamicImport2.baseline.jsonc | 20 + ...AllReferencesDynamicImport3.baseline.jsonc | 14 + ...indAllReferencesTripleSlash.baseline.jsonc | 14 + ...fsClassWithStaticThisAccess.baseline.jsonc | 44 ++ ...FindAllRefsOnImportAliases2.baseline.jsonc | 79 ++++ .../FindAllRefsReExport_broken.baseline.jsonc | 12 + .../FindReferencesAfterEdit.baseline.jsonc | 36 ++ ...eImportAndExportInDiffFiles.baseline.jsonc | 38 ++ .../RenameImportOfExportEquals.baseline.jsonc | 76 ++++ .../RenameJsExports01.baseline.jsonc | 10 + .../goToDef/JsxSpreadReference.baseline.jsonc | 9 + .../doubleUnderscoreRenames.baseline.jsonc | 30 ++ ...AllReferencesDynamicImport2.baseline.jsonc | 20 + ...AllReferencesDynamicImport3.baseline.jsonc | 14 + ...fsClassWithStaticThisAccess.baseline.jsonc | 8 + ...findAllRefsOnImportAliases2.baseline.jsonc | 79 ++++ ...sForExportFromUnfoundModule.baseline.jsonc | 6 + .../rename/javaScriptClass2.baseline.jsonc | 52 +++ .../rename/jsDocSee_rename1.baseline.jsonc | 32 ++ .../jsdocCallbackTagRename01.baseline.jsonc | 8 + .../jsdocSatisfiesTagRename.baseline.jsonc | 10 + .../jsdocThrowsTag_rename.baseline.jsonc | 8 + .../jsdocTypedefTagRename01.baseline.jsonc | 32 ++ .../jsdocTypedefTagRename02.baseline.jsonc | 18 + .../jsdocTypedefTagRename03.baseline.jsonc | 21 + .../rename/jsxSpreadReference.baseline.jsonc | 22 + .../processInvalidSyntax1.baseline.jsonc | 21 + .../fourslash/rename/rename01.baseline.jsonc | 8 + ...enameAcrossMultipleProjects.baseline.jsonc | 34 ++ .../rename/renameAlias.baseline.jsonc | 16 + .../rename/renameAlias2.baseline.jsonc | 16 + .../rename/renameAlias3.baseline.jsonc | 16 + .../renameAliasExternalModule.baseline.jsonc | 14 + .../renameAliasExternalModule2.baseline.jsonc | 32 ++ .../renameAliasExternalModule3.baseline.jsonc | 14 + ...gElementInitializerExternal.baseline.jsonc | 80 ++++ ...gElementInitializerProperty.baseline.jsonc | 61 +++ .../renameCommentsAndStrings1.baseline.jsonc | 8 + .../renameCommentsAndStrings2.baseline.jsonc | 8 + .../renameCommentsAndStrings3.baseline.jsonc | 8 + .../renameCommentsAndStrings4.baseline.jsonc | 8 + ...ContextuallyTypedProperties.baseline.jsonc | 395 ++++++++++++++++++ ...ontextuallyTypedProperties2.baseline.jsonc | 394 +++++++++++++++++ .../renameDeclarationKeywords.baseline.jsonc | 212 ++++++++++ .../renameDefaultLibDontWork.baseline.jsonc | 5 + ...nameDestructuringAssignment.baseline.jsonc | 22 + ...ignmentNestedInArrayLiteral.baseline.jsonc | 44 ++ ...ingAssignmentNestedInForOf2.baseline.jsonc | 56 +++ ...eDestructuringClassProperty.baseline.jsonc | 56 +++ ...structuringDeclarationInFor.baseline.jsonc | 44 ++ ...ructuringDeclarationInForOf.baseline.jsonc | 44 ++ ...tructuringFunctionParameter.baseline.jsonc | 26 ++ ...cturingNestedBindingElement.baseline.jsonc | 44 ++ .../rename/renameExportCrash.baseline.jsonc | 6 + .../renameExportSpecifier.baseline.jsonc | 5 + .../renameExportSpecifier2.baseline.jsonc | 5 + .../renameForStringLiteral.baseline.jsonc | 9 + .../renameFunctionParameter1.baseline.jsonc | 11 + .../renameFunctionParameter2.baseline.jsonc | 9 + .../renameImportAndExport.baseline.jsonc | 14 + ...eImportAndExportInDiffFiles.baseline.jsonc | 28 ++ .../renameImportAndShorthand.baseline.jsonc | 14 + ...ImportNamespaceAndShorthand.baseline.jsonc | 14 + .../renameImportOfExportEquals.baseline.jsonc | 27 ++ .../rename/renameImportRequire.baseline.jsonc | 58 +++ ...ImportSpecifierPropertyName.baseline.jsonc | 4 + .../renameInConfiguredProject.baseline.jsonc | 12 + .../renameInheritedProperties1.baseline.jsonc | 22 + .../renameInheritedProperties2.baseline.jsonc | 22 + .../renameInheritedProperties3.baseline.jsonc | 22 + .../renameInheritedProperties4.baseline.jsonc | 22 + .../renameInheritedProperties5.baseline.jsonc | 23 + .../renameInheritedProperties6.baseline.jsonc | 23 + .../renameInheritedProperties7.baseline.jsonc | 25 ++ .../renameInheritedProperties8.baseline.jsonc | 42 ++ .../rename/renameJSDocNamepath.baseline.jsonc | 8 + .../renameJsDocImportTag.baseline.jsonc | 11 + .../renameJsDocTypeLiteral.baseline.jsonc | 9 + .../rename/renameJsExports01.baseline.jsonc | 13 + ...OverloadedFunctionParameter.baseline.jsonc | 10 + .../renameJsPropertyAssignment.baseline.jsonc | 18 + ...renameJsPropertyAssignment2.baseline.jsonc | 18 + ...renameJsPropertyAssignment3.baseline.jsonc | 18 + ...renameJsPropertyAssignment4.baseline.jsonc | 18 + ...renameJsPrototypeProperty01.baseline.jsonc | 20 + ...renameJsPrototypeProperty02.baseline.jsonc | 20 + .../renameJsThisProperty01.baseline.jsonc | 20 + .../renameJsThisProperty03.baseline.jsonc | 24 ++ .../renameJsThisProperty05.baseline.jsonc | 23 + .../renameJsThisProperty06.baseline.jsonc | 23 + .../rename/renameLabel1.baseline.jsonc | 6 + .../rename/renameLabel2.baseline.jsonc | 6 + .../rename/renameLabel3.baseline.jsonc | 9 + .../rename/renameLabel4.baseline.jsonc | 9 + .../rename/renameLabel5.baseline.jsonc | 9 + .../rename/renameLabel6.baseline.jsonc | 9 + ...cationsForClassExpression01.baseline.jsonc | 41 ++ ...ionsForFunctionExpression01.baseline.jsonc | 26 ++ ...ionsForFunctionExpression02.baseline.jsonc | 36 ++ .../rename/renameModifiers.baseline.jsonc | 132 ++++++ ...ameModuleExportsProperties1.baseline.jsonc | 14 + ...ameModuleExportsProperties2.baseline.jsonc | 14 + ...ameModuleExportsProperties3.baseline.jsonc | 14 + .../rename/renameNamedImport.baseline.jsonc | 5 + .../renameNamespaceImport.baseline.jsonc | 5 + .../renameNumericalIndex.baseline.jsonc | 14 + ...eNumericalIndexSingleQuoted.baseline.jsonc | 14 + ...indingElementPropertyName01.baseline.jsonc | 24 ++ .../rename/renameObjectSpread.baseline.jsonc | 35 ++ ...enameObjectSpreadAssignment.baseline.jsonc | 44 ++ ...rameterPropertyDeclaration1.baseline.jsonc | 35 ++ ...rameterPropertyDeclaration2.baseline.jsonc | 35 ++ ...rameterPropertyDeclaration3.baseline.jsonc | 35 ++ ...rameterPropertyDeclaration4.baseline.jsonc | 20 + ...rameterPropertyDeclaration5.baseline.jsonc | 20 + .../renamePrivateAccessor.baseline.jsonc | 36 ++ .../renamePrivateFields1.baseline.jsonc | 22 + .../rename/renamePrivateMethod.baseline.jsonc | 22 + ...essExpressionHeritageClause.baseline.jsonc | 35 ++ .../renameReExportDefault.baseline.jsonc | 53 +++ ...renameReferenceFromLinkTag1.baseline.jsonc | 7 + ...renameReferenceFromLinkTag2.baseline.jsonc | 10 + ...renameReferenceFromLinkTag3.baseline.jsonc | 14 + ...renameReferenceFromLinkTag4.baseline.jsonc | 8 + ...renameReferenceFromLinkTag5.baseline.jsonc | 7 + .../rename/renameRest.baseline.jsonc | 23 + .../renameRestBindingElement.baseline.jsonc | 8 + .../renameStringLiteralOk.baseline.jsonc | 32 ++ .../renameStringLiteralOk1.baseline.jsonc | 20 + .../renameStringLiteralTypes1.baseline.jsonc | 20 + .../renameStringLiteralTypes2.baseline.jsonc | 116 +++++ .../renameStringLiteralTypes3.baseline.jsonc | 32 ++ .../renameStringLiteralTypes4.baseline.jsonc | 8 + .../renameStringLiteralTypes5.baseline.jsonc | 8 + .../renameStringPropertyNames.baseline.jsonc | 68 +++ .../renameStringPropertyNames2.baseline.jsonc | 8 + ...eLiteralsComputedProperties.baseline.jsonc | 231 ++++++++++ ...ateLiteralsDefinePropertyJs.baseline.jsonc | 73 ++++ .../renameUMDModuleAlias1.baseline.jsonc | 21 + .../rename/tsxRename1.baseline.jsonc | 32 ++ .../rename/tsxRename2.baseline.jsonc | 24 ++ .../rename/tsxRename3.baseline.jsonc | 25 ++ .../rename/tsxRename5.baseline.jsonc | 21 + .../rename/tsxRename6.baseline.jsonc | 98 +++++ .../rename/tsxRename7.baseline.jsonc | 39 ++ .../rename/tsxRename9.baseline.jsonc | 274 ++++++++++++ 146 files changed, 5074 insertions(+) create mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassWithStaticThisAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/RenameImportAndExportInDiffFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/RenameImportOfExportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRef/RenameJsExports01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDef/JsxSpreadReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/findAllRefsClassWithStaticThisAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/findAllRefsOnImportAliases2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/jsxSpreadReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/rename01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameAcrossMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameAlias2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameAlias3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameAliasExternalModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameAliasExternalModule2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameAliasExternalModule3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerExternal.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDeclarationKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDefaultLibDontWork.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringClassProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInFor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInForOf.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameDestructuringNestedBindingElement.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameExportCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameExportSpecifier.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameExportSpecifier2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameForStringLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameFunctionParameter1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameFunctionParameter2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameImportAndExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameImportAndExportInDiffFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameImportAndShorthand.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameImportNamespaceAndShorthand.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameImportRequire.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameImportSpecifierPropertyName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInConfiguredProject.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameInheritedProperties8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJSDocNamepath.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsDocImportTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsDocTypeLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsExports01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsOverloadedFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsThisProperty01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsThisProperty03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsThisProperty05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameJsThisProperty06.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLabel1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLabel2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLabel3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLabel4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLabel5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLabel6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLocationsForClassExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameNamedImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameNamespaceImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameNumericalIndex.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameNumericalIndexSingleQuoted.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameObjectBindingElementPropertyName01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameObjectSpread.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameObjectSpreadAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renamePrivateAccessor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renamePrivateFields1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renamePrivateMethod.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renamePropertyAccessExpressionHeritageClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameReExportDefault.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameRest.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameRestBindingElement.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringLiteralOk.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringLiteralOk1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringPropertyNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameStringPropertyNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsComputedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/renameUMDModuleAlias1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/tsxRename1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/tsxRename2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/tsxRename3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/tsxRename5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/tsxRename6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/tsxRename7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename/tsxRename9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..33d82f72a8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport2.baseline.jsonc @@ -0,0 +1,20 @@ +// === findAllReferences === +// === /foo.ts === + +// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.[|bar|](); +// }) + + + + +// === findAllReferences === +// === /foo.ts === + +// export function [|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo./*FIND ALL REFS*/[|bar|](); +// }) diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..cf1da00565 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /foo.ts === + +// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } +// import('./foo').then(({ [|bar|] }) => undefined); + + + + +// === findAllReferences === +// === /foo.ts === + +// export function [|bar|]() { return "bar"; } +// import('./foo').then(({ /*FIND ALL REFS*/[|bar|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc new file mode 100644 index 0000000000..ff21e68ef0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /a.ts === + +// /// +// /// + + + + +// === findAllReferences === +// === /a.ts === + +// /// +// /// diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassWithStaticThisAccess.baseline.jsonc new file mode 100644 index 0000000000..acfe23a637 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// class /*FIND ALL REFS*/[|C|] { +// static s() { +// this; +// } +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// class C { +// static s() { +// /*FIND ALL REFS*/[|this|]; +// } +// static get f() { +// return [|this|]; +// +// function inner() { this; } +// class Inner { x = this; } +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// class C { +// static s() { +// [|this|]; +// } +// static get f() { +// return /*FIND ALL REFS*/[|this|]; +// +// function inner() { this; } +// class Inner { x = this; } +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases2.baseline.jsonc new file mode 100644 index 0000000000..66c937b02d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases2.baseline.jsonc @@ -0,0 +1,79 @@ +// === findAllReferences === +// === /a.ts === + +// export class /*FIND ALL REFS*/[|Class|] {} + + +// === /b.ts === + +// import { [|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + + +// === /c.ts === + +// export { [|Class|] as C3 } from "./a"; + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|Class|] {} + + +// === /b.ts === + +// import { /*FIND ALL REFS*/[|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + + +// === /c.ts === + +// export { [|Class|] as C3 } from "./a"; + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|Class|] {} + + +// === /b.ts === + +// import { [|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + + +// === /c.ts === + +// export { /*FIND ALL REFS*/[|Class|] as C3 } from "./a"; + + + + +// === findAllReferences === +// === /b.ts === + +// import { Class as /*FIND ALL REFS*/[|C2|] } from "./a"; +// var c = new [|C2|](); + + + + +// === findAllReferences === +// === /b.ts === + +// import { Class as [|C2|] } from "./a"; +// var c = new /*FIND ALL REFS*/[|C2|](); + + + + +// === findAllReferences === +// === /c.ts === + +// export { Class as /*FIND ALL REFS*/C3 } from "./a"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc new file mode 100644 index 0000000000..3f5ad70a2c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/export { x }; + + + + +// === findAllReferences === +// === /a.ts === + +// export { /*FIND ALL REFS*/x }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc new file mode 100644 index 0000000000..9123c0f239 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /a.ts === + +// interface A { +// /*FIND ALL REFS*/[|foo|]: string; +// } + + +// === /b.ts === + +// /// +// +// +// function foo(x: A) { +// x.[|foo|] +// } + + + + +// === findAllReferences === +// === /a.ts === + +// interface A { +// [|foo|]: string; +// } + + +// === /b.ts === + +// /// +// +// +// function foo(x: A) { +// x./*FIND ALL REFS*/[|foo|] +// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/RenameImportAndExportInDiffFiles.baseline.jsonc new file mode 100644 index 0000000000..0c28d589e7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/RenameImportAndExportInDiffFiles.baseline.jsonc @@ -0,0 +1,38 @@ +// === findAllReferences === +// === /a.ts === + +// export var /*FIND ALL REFS*/[|a|]; + + +// === /b.ts === + +// import { [|a|] } from './a'; +// export { a }; + + + + +// === findAllReferences === +// === /a.ts === + +// export var [|a|]; + + +// === /b.ts === + +// import { /*FIND ALL REFS*/[|a|] } from './a'; +// export { a }; + + + + +// === findAllReferences === +// === /a.ts === + +// export var [|a|]; + + +// === /b.ts === + +// import { [|a|] } from './a'; +// export { /*FIND ALL REFS*/a }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/RenameImportOfExportEquals.baseline.jsonc new file mode 100644 index 0000000000..8eae3bf171 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/RenameImportOfExportEquals.baseline.jsonc @@ -0,0 +1,76 @@ +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace /*FIND ALL REFS*/[|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as [|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace [|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as /*FIND ALL REFS*/[|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace [|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as [|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { /*FIND ALL REFS*/[|N|] } from "a"; +// export const y: typeof [|N|].x; +// } + + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace N { +// export var /*FIND ALL REFS*/[|x|]: number; +// } +// declare module "mod" { +// export = N; +// // --- (line: 6) skipped --- + + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.[|x|]; +// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports01.baseline.jsonc new file mode 100644 index 0000000000..440acb8c06 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports01.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /a.js === + +// exports.[|area|] = function (r) { return r * r; } + + +// === /b.js === + +// var mod = require('./a'); +// var t = mod./*FIND ALL REFS*/area(10); diff --git a/testdata/baselines/reference/fourslash/goToDef/JsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/JsxSpreadReference.baseline.jsonc new file mode 100644 index 0000000000..193ca46176 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDef/JsxSpreadReference.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// } +// +// var [|nn|]: {name?: string; size?: number}; +// var x = ; diff --git a/testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc new file mode 100644 index 0000000000..4eb3200eb5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc @@ -0,0 +1,30 @@ +// === findRenameLocations === +// === /fileA.ts === + +// export function /*RENAME*/[|__fooRENAME|]() { +// } +// + + +// === /fileB.ts === + +// import { [|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); + + + + +// === findRenameLocations === +// === /fileA.ts === + +// export function [|__fooRENAME|]() { +// } +// + + +// === /fileB.ts === + +// import { /*RENAME*/[|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); diff --git a/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..f8fc9d5a19 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport2.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /foo.ts === + +// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.[|barRENAME|](); +// }) + + + + +// === findRenameLocations === +// === /foo.ts === + +// /*RENAME*/export function bar() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.bar(); +// }) diff --git a/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..f71be95c5c --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /foo.ts === + +// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +// import('./foo').then(({ [|barRENAME|] }) => undefined); + + + + +// === findRenameLocations === +// === /foo.ts === + +// export function bar() { return "bar"; } +// import('./foo').then(({ /*RENAME*/[|barRENAME|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/rename/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/findAllRefsClassWithStaticThisAccess.baseline.jsonc new file mode 100644 index 0000000000..a212fad747 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// /*RENAME*/class C { +// static s() { +// this; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/findAllRefsOnImportAliases2.baseline.jsonc new file mode 100644 index 0000000000..cbd9a27190 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/findAllRefsOnImportAliases2.baseline.jsonc @@ -0,0 +1,79 @@ +// === findRenameLocations === +// === /a.ts === + +// export class /*RENAME*/[|ClassRENAME|] {} + + +// === /b.ts === + +// import { [|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + + +// === /c.ts === + +// export { [|ClassRENAME|] as C3 } from "./a"; + + + + +// === findRenameLocations === +// === /a.ts === + +// export class [|ClassRENAME|] {} + + +// === /b.ts === + +// import { /*RENAME*/[|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + + +// === /c.ts === + +// export { [|ClassRENAME|] as C3 } from "./a"; + + + + +// === findRenameLocations === +// === /a.ts === + +// export class [|ClassRENAME|] {} + + +// === /b.ts === + +// import { [|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + + +// === /c.ts === + +// export { /*RENAME*/[|ClassRENAME|] as C3 } from "./a"; + + + + +// === findRenameLocations === +// === /b.ts === + +// import { Class as /*RENAME*/[|C2RENAME|] } from "./a"; +// var c = new [|C2RENAME|](); + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import { Class as C2 } from "./a"; +// var c = new C2(); + + + + +// === findRenameLocations === +// === /c.ts === + +// export { Class as /*RENAME*/C3 } from "./a"; diff --git a/testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc new file mode 100644 index 0000000000..7cc641abc3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /b.js === + +// export { +// /*RENAME*/foo +// } from './a'; diff --git a/testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc new file mode 100644 index 0000000000..5fbb88135f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc @@ -0,0 +1,52 @@ +// === findRenameLocations === +// === /Foo.js === + +// class Foo { +// constructor() { +// this./*RENAME*/[|unionRENAME|] = 'foo'; +// this.[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; + + + + +// === findRenameLocations === +// === /Foo.js === + +// class Foo { +// constructor() { +// this.[|unionRENAME|] = 'foo'; +// this./*RENAME*/[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; + + + + +// === findRenameLocations === +// === /Foo.js === + +// /*RENAME*/class Foo { +// constructor() { +// this.union = 'foo'; +// this.union = 100; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /Foo.js === + +// /*RENAME*/class Foo { +// constructor() { +// this.union = 'foo'; +// this.union = 100; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc new file mode 100644 index 0000000000..8e0893f09d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /jsDocSee_rename1.ts === + +// /*RENAME*/interface A {} +// /** +// * @see {A} +// */ +// declare const a: A + + + + +// === findRenameLocations === +// === /jsDocSee_rename1.ts === + +// /*RENAME*/interface A {} +// /** +// * @see {A} +// */ +// declare const a: A + + + + +// === findRenameLocations === +// === /jsDocSee_rename1.ts === + +// /*RENAME*/interface A {} +// /** +// * @see {A} +// */ +// declare const a: A diff --git a/testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc new file mode 100644 index 0000000000..3ea25fe3e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /jsDocCallback.js === + +// /*RENAME*//** +// * @callback FooCallback +// * @param {string} eventName - Rename should work +// */ +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc new file mode 100644 index 0000000000..80905d9ea4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc @@ -0,0 +1,10 @@ +// === findRenameLocations === +// === /a.js === + +// /** +// * @typedef {Object} T +// * @property {number} a +// */ +// +// /** @satisfies {/*RENAME*/[|TRENAME|]} comment */ +// const foo = { a: 1 }; diff --git a/testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc new file mode 100644 index 0000000000..48c5f89b0b --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /jsdocThrowsTag_rename.ts === + +// class /*RENAME*/[|ERENAME|] extends Error {} +// /** +// * @throws {E} +// */ +// function f() {} diff --git a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc new file mode 100644 index 0000000000..0f300f8817 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /jsDocTypedef_form1.js === + +// /*RENAME*/ /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === + +// /*RENAME*/ /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === + +// /*RENAME*/ /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc new file mode 100644 index 0000000000..e4be88e7bf --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /jsDocTypedef_form2.js === + +// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ +// +// /** @type {NumberLike} */ +// var numberLike; + + + + +// === findRenameLocations === +// === /jsDocTypedef_form2.js === + +// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ +// +// /** @type {NumberLike} */ +// var numberLike; diff --git a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc new file mode 100644 index 0000000000..2c983f0fba --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /jsDocTypedef_form3.js === + +// /** +// * @typedef /*RENAME*/Person +// * @type {Object} +// * @property {number} age +// * @property {string} name +// // --- (line: 6) skipped --- + + + + +// === findRenameLocations === +// === /jsDocTypedef_form3.js === + +// /*RENAME*/ /** +// * @typedef Person +// * @type {Object} +// * @property {number} age +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsxSpreadReference.baseline.jsonc new file mode 100644 index 0000000000..85c7443e3e --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/jsxSpreadReference.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// } +// +// var /*RENAME*/[|nnRENAME|]: {name?: string; size?: number}; +// var x = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// } +// +// var [|nnRENAME|]: {name?: string; size?: number}; +// var x = ; diff --git a/testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc new file mode 100644 index 0000000000..f95d303132 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /decl.js === + +// var [|objRENAME|] = {}; + + +// === /forof.js === + +// for (obj/*RENAME*/[|objRENAME|].prop of arr) { +// +// } + + +// === /unicode1.js === + +// [|objRENAME|].𝒜 ; + + +// === /unicode2.js === + +// [|objRENAME|].¬ ; diff --git a/testdata/baselines/reference/fourslash/rename/rename01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/rename01.baseline.jsonc new file mode 100644 index 0000000000..95c9953d73 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/rename01.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /rename01.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..0159527d42 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,34 @@ +// === findRenameLocations === +// === /a.ts === + +// var /*RENAME*/[|xRENAME|]: number; + + +// === /b.ts === + +// /// +// [|xRENAME|]++; + + +// === /c.ts === + +// /// +// [|xRENAME|]++; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*//// +// x++; + + + + +// === findRenameLocations === +// === /c.ts === + +// /*RENAME*//// +// x++; diff --git a/testdata/baselines/reference/fourslash/rename/renameAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameAlias.baseline.jsonc new file mode 100644 index 0000000000..6a90b4e50a --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameAlias.baseline.jsonc @@ -0,0 +1,16 @@ +// === findRenameLocations === +// === /renameAlias.ts === + +// module SomeModule { export class SomeClass { } } +// import /*RENAME*/[|MRENAME|] = SomeModule; +// import C = [|MRENAME|].SomeClass; + + + + +// === findRenameLocations === +// === /renameAlias.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// import M = SomeModule; +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/rename/renameAlias2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameAlias2.baseline.jsonc new file mode 100644 index 0000000000..3f204cb766 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameAlias2.baseline.jsonc @@ -0,0 +1,16 @@ +// === findRenameLocations === +// === /renameAlias2.ts === + +// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } +// import M = [|SomeModuleRENAME|]; +// import C = M.SomeClass; + + + + +// === findRenameLocations === +// === /renameAlias2.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// import M = SomeModule; +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/rename/renameAlias3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameAlias3.baseline.jsonc new file mode 100644 index 0000000000..06968d0843 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameAlias3.baseline.jsonc @@ -0,0 +1,16 @@ +// === findRenameLocations === +// === /renameAlias3.ts === + +// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } +// import M = SomeModule; +// import C = M.SomeClass; + + + + +// === findRenameLocations === +// === /renameAlias3.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// import M = SomeModule; +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule.baseline.jsonc new file mode 100644 index 0000000000..2a9bff9aad --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /b.ts === + +// import /*RENAME*/[|MRENAME|] = require("./a"); +// import C = [|MRENAME|].SomeClass; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule2.baseline.jsonc new file mode 100644 index 0000000000..cdd53ab6ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule2.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// export = SomeModule; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// export = SomeModule; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule3.baseline.jsonc new file mode 100644 index 0000000000..7e751429c2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /a.ts === + +// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } +// export = SomeModule; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerExternal.baseline.jsonc new file mode 100644 index 0000000000..1f55b894bb --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerExternal.baseline.jsonc @@ -0,0 +1,80 @@ +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// const /*RENAME*/[|externalRENAME|] = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerProperty.baseline.jsonc new file mode 100644 index 0000000000..cbba4347b8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerProperty.baseline.jsonc @@ -0,0 +1,61 @@ +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// function f({required, optional = required}: {/*RENAME*/[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({[|requiredRENAME|]: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings1.baseline.jsonc new file mode 100644 index 0000000000..096caa9e1d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings1.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings1.ts === + +// /// +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings2.baseline.jsonc new file mode 100644 index 0000000000..5fdc3f76ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings2.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings3.baseline.jsonc new file mode 100644 index 0000000000..ace93735f1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings3.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings3.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings4.baseline.jsonc new file mode 100644 index 0000000000..35d778a150 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings4.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties.baseline.jsonc new file mode 100644 index 0000000000..8363ebb904 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties.baseline.jsonc @@ -0,0 +1,395 @@ +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// /*RENAME*/[|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// /*RENAME*/[|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// /*RENAME*/[|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get /*RENAME*/[|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set /*RENAME*/[|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 23) skipped --- +// }; +// +// var o5: I = { +// "/*RENAME*/prop1"() { }, +// "prop2"() { } +// }; +// +// // --- (line: 31) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 28) skipped --- +// }; +// +// var o6: I = { +// "/*RENAME*/prop1": function () { }, +// "prop2": function () { } +// }; +// +// // --- (line: 36) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 33) skipped --- +// }; +// +// var o7: I = { +// ["/*RENAME*/prop1"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// // --- (line: 41) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 38) skipped --- +// }; +// +// var o8: I = { +// ["/*RENAME*/prop1"]() { }, +// ["prop2"]() { } +// }; +// +// // --- (line: 46) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 43) skipped --- +// }; +// +// var o9: I = { +// get ["/*RENAME*/prop1"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// // --- (line: 51) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 48) skipped --- +// }; +// +// var o10: I = { +// set ["/*RENAME*/prop1"](v) { }, +// set ["prop2"](v) { } +// }; diff --git a/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties2.baseline.jsonc new file mode 100644 index 0000000000..e9c6610faf --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties2.baseline.jsonc @@ -0,0 +1,394 @@ +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// /*RENAME*/[|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// /*RENAME*/[|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// /*RENAME*/[|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get /*RENAME*/[|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set /*RENAME*/[|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 24) skipped --- +// +// var o5: I = { +// "prop1"() { }, +// "/*RENAME*/prop2"() { } +// }; +// +// var o6: I = { +// // --- (line: 32) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 29) skipped --- +// +// var o6: I = { +// "prop1": function () { }, +// "/*RENAME*/prop2": function () { } +// }; +// +// var o7: I = { +// // --- (line: 37) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 34) skipped --- +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["/*RENAME*/prop2"]: function () { } +// }; +// +// var o8: I = { +// // --- (line: 42) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 39) skipped --- +// +// var o8: I = { +// ["prop1"]() { }, +// ["/*RENAME*/prop2"]() { } +// }; +// +// var o9: I = { +// // --- (line: 47) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 44) skipped --- +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["/*RENAME*/prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// // --- (line: 52) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 49) skipped --- +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["/*RENAME*/prop2"](v) { } +// }; diff --git a/testdata/baselines/reference/fourslash/rename/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDeclarationKeywords.baseline.jsonc new file mode 100644 index 0000000000..19ba7ab61d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDeclarationKeywords.baseline.jsonc @@ -0,0 +1,212 @@ +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class /*RENAME*/[|C1RENAME|] extends Base implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// /*RENAME*/class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// /*RENAME*/class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// /*RENAME*/get e() { return 1; } +// set e(v) {} +// } +// interface I1 extends Base { } +// // --- (line: 8) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// /*RENAME*/set e(v) {} +// } +// interface I1 extends Base { } +// type T = { } +// // --- (line: 9) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 3) skipped --- +// get e() { return 1; } +// set e(v) {} +// } +// interface /*RENAME*/[|I1RENAME|] extends Base { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// /*RENAME*/class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 4) skipped --- +// set e(v) {} +// } +// interface I1 extends Base { } +// type /*RENAME*/[|TRENAME|] = { } +// enum E { } +// namespace N { } +// module M { } +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 5) skipped --- +// } +// interface I1 extends Base { } +// type T = { } +// enum /*RENAME*/[|ERENAME|] { } +// namespace N { } +// module M { } +// function fn() {} +// // --- (line: 13) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 6) skipped --- +// interface I1 extends Base { } +// type T = { } +// enum E { } +// namespace /*RENAME*/[|NRENAME|] { } +// module M { } +// function fn() {} +// var x; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 7) skipped --- +// type T = { } +// enum E { } +// namespace N { } +// module /*RENAME*/[|MRENAME|] { } +// function fn() {} +// var x; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 8) skipped --- +// enum E { } +// namespace N { } +// module M { } +// function /*RENAME*/[|fnRENAME|]() {} +// var x; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 9) skipped --- +// namespace N { } +// module M { } +// function fn() {} +// var /*RENAME*/[|xRENAME|]; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 10) skipped --- +// module M { } +// function fn() {} +// var x; +// let /*RENAME*/[|yRENAME|]; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 11) skipped --- +// function fn() {} +// var x; +// let y; +// const /*RENAME*/[|zRENAME|] = 1; diff --git a/testdata/baselines/reference/fourslash/rename/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDefaultLibDontWork.baseline.jsonc new file mode 100644 index 0000000000..401eb0406f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDefaultLibDontWork.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /file1.ts === + +// /*RENAME*/var test = "foo"; +// console.log(test); diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignment.baseline.jsonc new file mode 100644 index 0000000000..44420f1298 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignment.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameDestructuringAssignment.ts === + +// interface I { +// /*RENAME*/[|xRENAME|]: number; +// } +// var a: I; +// var x; +// ({ [|xRENAME|]: x } = a); + + + + +// === findRenameLocations === +// === /renameDestructuringAssignment.ts === + +// interface I { +// [|xRENAME|]: number; +// } +// var a: I; +// var x; +// ({ /*RENAME*/[|xRENAME|]: x } = a); diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc new file mode 100644 index 0000000000..0e8448e012 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc new file mode 100644 index 0000000000..77f28ace03 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc @@ -0,0 +1,56 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringClassProperty.baseline.jsonc new file mode 100644 index 0000000000..452c7c75e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringClassProperty.baseline.jsonc @@ -0,0 +1,56 @@ +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInFor.baseline.jsonc new file mode 100644 index 0000000000..1ac4ed6b4c --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInFor.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInForOf.baseline.jsonc new file mode 100644 index 0000000000..b4daf047b3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInForOf.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..edd4f72fd9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringFunctionParameter.baseline.jsonc @@ -0,0 +1,26 @@ +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === + +// /*RENAME*/function f({a}: {a}) { +// f({a}); +// } + + + + +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === + +// /*RENAME*/function f({a}: {a}) { +// f({a}); +// } + + + + +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === + +// /*RENAME*/function f({a}: {a}) { +// f({a}); +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameDestructuringNestedBindingElement.baseline.jsonc new file mode 100644 index 0000000000..987e2f3613 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameDestructuringNestedBindingElement.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameExportCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameExportCrash.baseline.jsonc new file mode 100644 index 0000000000..292ef092c5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameExportCrash.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /Foo.js === + +// let [|aRENAME|]; +// module.exports = /*RENAME*/[|aRENAME|]; +// exports["foo"] = [|aRENAME|]; diff --git a/testdata/baselines/reference/fourslash/rename/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameExportSpecifier.baseline.jsonc new file mode 100644 index 0000000000..3a1676e6cb --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameExportSpecifier.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /a.ts === + +// const name = {}; +// export { name as name/*RENAME*/ }; diff --git a/testdata/baselines/reference/fourslash/rename/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameExportSpecifier2.baseline.jsonc new file mode 100644 index 0000000000..49da7e7525 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameExportSpecifier2.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /a.ts === + +// const [|nameRENAME|] = {}; +// export { name/*RENAME*/ }; diff --git a/testdata/baselines/reference/fourslash/rename/renameForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameForStringLiteral.baseline.jsonc new file mode 100644 index 0000000000..7b556fb8a6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameForStringLiteral.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /a.ts === + +// interface Foo { +// property: /*RENAME*/"foo"; +// } +// /** +// * @type {{ property: "foo"}} +// // --- (line: 6) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameFunctionParameter1.baseline.jsonc new file mode 100644 index 0000000000..21df074896 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameFunctionParameter1.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /renameFunctionParameter1.ts === + +// function Foo() { +// /** +// * @param {number} p +// */ +// this.foo = function foo(p/*RENAME*/[|pRENAME|]) { +// return [|pRENAME|]; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameFunctionParameter2.baseline.jsonc new file mode 100644 index 0000000000..e21a2c619c --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameFunctionParameter2.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameFunctionParameter2.ts === + +// /** +// * @param {number} p +// */ +// const foo = function foo(p/*RENAME*/[|pRENAME|]) { +// return [|pRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportAndExport.baseline.jsonc new file mode 100644 index 0000000000..55c2ecc84f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameImportAndExport.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameImportAndExport.ts === + +// /*RENAME*/import a from "module"; +// export { a }; + + + + +// === findRenameLocations === +// === /renameImportAndExport.ts === + +// /*RENAME*/import a from "module"; +// export { a }; diff --git a/testdata/baselines/reference/fourslash/rename/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportAndExportInDiffFiles.baseline.jsonc new file mode 100644 index 0000000000..ac138a8abb --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameImportAndExportInDiffFiles.baseline.jsonc @@ -0,0 +1,28 @@ +// === findRenameLocations === +// === /a.ts === + +// export var /*RENAME*/[|aRENAME|]; + + +// === /b.ts === + +// import { [|aRENAME|] } from './a'; +// export { a }; + + + + +// === findRenameLocations === +// === /b.ts === + +// import { /*RENAME*/[|aRENAME|] } from './a'; +// export { a }; + + + + +// === findRenameLocations === +// === /b.ts === + +// import { [|aRENAME|] } from './a'; +// export { /*RENAME*/a }; diff --git a/testdata/baselines/reference/fourslash/rename/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportAndShorthand.baseline.jsonc new file mode 100644 index 0000000000..c5c9238f13 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameImportAndShorthand.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameImportAndShorthand.ts === + +// /*RENAME*/import foo from 'bar'; +// const bar = { foo }; + + + + +// === findRenameLocations === +// === /renameImportAndShorthand.ts === + +// /*RENAME*/import foo from 'bar'; +// const bar = { foo }; diff --git a/testdata/baselines/reference/fourslash/rename/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportNamespaceAndShorthand.baseline.jsonc new file mode 100644 index 0000000000..550de3d42f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameImportNamespaceAndShorthand.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameImportNamespaceAndShorthand.ts === + +// /*RENAME*/import * as foo from 'bar'; +// const bar = { foo }; + + + + +// === findRenameLocations === +// === /renameImportNamespaceAndShorthand.ts === + +// /*RENAME*/import * as foo from 'bar'; +// const bar = { foo }; diff --git a/testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc new file mode 100644 index 0000000000..7e55516a9b --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc @@ -0,0 +1,27 @@ +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// declare namespace /*RENAME*/[|NRENAME|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|NRENAME|]; +// } +// declare module "a" { +// import * as [|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// /*RENAME*/declare namespace N { +// export var x: number; +// } +// declare module "mod" { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportRequire.baseline.jsonc new file mode 100644 index 0000000000..df7e7c6868 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameImportRequire.baseline.jsonc @@ -0,0 +1,58 @@ +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import { e } from "./a"; +// export { e }; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import { e } from "./a"; +// export { e }; diff --git a/testdata/baselines/reference/fourslash/rename/renameImportSpecifierPropertyName.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportSpecifierPropertyName.baseline.jsonc new file mode 100644 index 0000000000..b6d213a13f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameImportSpecifierPropertyName.baseline.jsonc @@ -0,0 +1,4 @@ +// === findRenameLocations === +// === /canada.ts === + +// export interface /*RENAME*/[|GingerRENAME|] {} diff --git a/testdata/baselines/reference/fourslash/rename/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInConfiguredProject.baseline.jsonc new file mode 100644 index 0000000000..c28a20b58d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInConfiguredProject.baseline.jsonc @@ -0,0 +1,12 @@ +// === findRenameLocations === +// === /referencesForGlobals_1.ts === + +// /*RENAME*/var globalName = 0; + + + + +// === findRenameLocations === +// === /referencesForGlobals_2.ts === + +// /*RENAME*/var y = globalName; diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties1.baseline.jsonc new file mode 100644 index 0000000000..3ff816acc3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties1.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties1.ts === + +// class class1 extends class1 { +// /*RENAME*/[|propNameRENAME|]: string; +// } +// +// var v: class1; +// v.[|propNameRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties1.ts === + +// /*RENAME*/ class class1 extends class1 { +// propName: string; +// } +// +// var v: class1; +// v.propName; diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..08b679b79d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties2.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties2.ts === + +// class class1 extends class1 { +// /*RENAME*/[|doStuffRENAME|]() { } +// } +// +// var v: class1; +// v.[|doStuffRENAME|](); + + + + +// === findRenameLocations === +// === /renameInheritedProperties2.ts === + +// /*RENAME*/ class class1 extends class1 { +// doStuff() { } +// } +// +// var v: class1; +// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..0b64ed73fa --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties3.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties3.ts === + +// interface interface1 extends interface1 { +// /*RENAME*/[|propNameRENAME|]: string; +// } +// +// var v: interface1; +// v.[|propNameRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties3.ts === + +// /*RENAME*/ interface interface1 extends interface1 { +// propName: string; +// } +// +// var v: interface1; +// v.propName; diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..692b84192b --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties4.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties4.ts === + +// interface interface1 extends interface1 { +// /*RENAME*/[|doStuffRENAME|](): string; +// } +// +// var v: interface1; +// v.[|doStuffRENAME|](); + + + + +// === findRenameLocations === +// === /renameInheritedProperties4.ts === + +// /*RENAME*/ interface interface1 extends interface1 { +// doStuff(): string; +// } +// +// var v: interface1; +// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties5.baseline.jsonc new file mode 100644 index 0000000000..5be0e9682c --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties5.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /renameInheritedProperties5.ts === + +// interface C extends D { +// propC: number; +// } +// interface D extends C { +// /*RENAME*/[|propDRENAME|]: string; +// } +// var d: D; +// d.[|propDRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties5.ts === + +// /*RENAME*/interface C extends D { +// propC: number; +// } +// interface D extends C { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties6.baseline.jsonc new file mode 100644 index 0000000000..b396aa45a6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties6.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /renameInheritedProperties6.ts === + +// interface C extends D { +// propD: number; +// } +// interface D extends C { +// /*RENAME*/[|propCRENAME|]: number; +// } +// var d: D; +// d.[|propCRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties6.ts === + +// /*RENAME*/interface C extends D { +// propD: number; +// } +// interface D extends C { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties7.baseline.jsonc new file mode 100644 index 0000000000..2450b2c01d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties7.baseline.jsonc @@ -0,0 +1,25 @@ +// === findRenameLocations === +// === /renameInheritedProperties7.ts === + +// class C extends D { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// class D extends C { +// prop1: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties7.ts === + +// /*RENAME*/ class C extends D { +// prop1: string; +// } +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties8.baseline.jsonc new file mode 100644 index 0000000000..6f4a7034db --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameInheritedProperties8.baseline.jsonc @@ -0,0 +1,42 @@ +// === findRenameLocations === +// === /renameInheritedProperties8.ts === + +// class C implements D { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// interface D extends C { +// [|prop1RENAME|]: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties8.ts === + +// class C implements D { +// [|prop1RENAME|]: string; +// } +// +// interface D extends C { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties8.ts === + +// /*RENAME*/ class C implements D { +// prop1: string; +// } +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameJSDocNamepath.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJSDocNamepath.baseline.jsonc new file mode 100644 index 0000000000..8f16494b3d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJSDocNamepath.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameJSDocNamepath.ts === + +// /** +// * @type {module:foo/A} x +// */ +// var x = 1 +// var /*RENAME*/[|ARENAME|] = 0; diff --git a/testdata/baselines/reference/fourslash/rename/renameJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsDocImportTag.baseline.jsonc new file mode 100644 index 0000000000..5cc0363b6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsDocImportTag.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /a.js === + +// /** +// * @import { A } from "./b"; +// */ +// +// /** +// * @param { A/*RENAME*/[|ARENAME|] } a +// */ +// function f(a) {} diff --git a/testdata/baselines/reference/fourslash/rename/renameJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsDocTypeLiteral.baseline.jsonc new file mode 100644 index 0000000000..e308039562 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsDocTypeLiteral.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /a.js === + +// /** +// * @param {Object} options +// * @param {string} options.foo +// * @param {number} options.bar +// */ +// function foo(/*RENAME*/[|optionsRENAME|]) {} diff --git a/testdata/baselines/reference/fourslash/rename/renameJsExports01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsExports01.baseline.jsonc new file mode 100644 index 0000000000..9505881e0a --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsExports01.baseline.jsonc @@ -0,0 +1,13 @@ +// === findRenameLocations === +// === /a.js === + +// exports./*RENAME*/[|areaRENAME|] = function (r) { return r * r; } + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/var mod = require('./a'); +// var t = mod.area(10); diff --git a/testdata/baselines/reference/fourslash/rename/renameJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsOverloadedFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..310f80d7b9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsOverloadedFunctionParameter.baseline.jsonc @@ -0,0 +1,10 @@ +// === findRenameLocations === +// === /foo.js === + +// --- (line: 9) skipped --- +// * @param {unknown} x +// * @returns {unknown} +// */ +// function foo(x/*RENAME*/[|xRENAME|]) { +// return [|xRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..cd3317c84f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar./*RENAME*/[|fooRENAME|] = "foo"; +// console.log(bar.[|fooRENAME|]); + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/function bar() { +// } +// bar.foo = "foo"; +// console.log(bar.foo); diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment2.baseline.jsonc new file mode 100644 index 0000000000..b52fc08b65 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment2.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// class Minimatch { +// } +// Minimatch./*RENAME*/[|staticPropertyRENAME|] = "string"; +// console.log(Minimatch.[|staticPropertyRENAME|]); + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/class Minimatch { +// } +// Minimatch.staticProperty = "string"; +// console.log(Minimatch.staticProperty); diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment3.baseline.jsonc new file mode 100644 index 0000000000..da6fe0055e --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment3.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// var C = class { +// } +// C./*RENAME*/[|staticPropertyRENAME|] = "string"; +// console.log(C.[|staticPropertyRENAME|]); + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/var C = class { +// } +// C.staticProperty = "string"; +// console.log(C.staticProperty); diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment4.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment4.baseline.jsonc new file mode 100644 index 0000000000..00aebe58bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment4.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// function f() { +// var /*RENAME*/[|fooRENAME|] = this; +// [|fooRENAME|].x = 1; +// } + + + + +// === findRenameLocations === +// === /a.js === + +// function f() { +// var [|fooRENAME|] = this; +// /*RENAME*/[|fooRENAME|].x = 1; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty01.baseline.jsonc new file mode 100644 index 0000000000..0607885f53 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty01.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype./*RENAME*/x = 10; +// var t = new bar(); +// t.x = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype.x = 10; +// var t = new bar(); +// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty02.baseline.jsonc new file mode 100644 index 0000000000..0607885f53 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty02.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype./*RENAME*/x = 10; +// var t = new bar(); +// t.x = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype.x = 10; +// var t = new bar(); +// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty01.baseline.jsonc new file mode 100644 index 0000000000..5d46b7840b --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty01.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// this./*RENAME*/x = 10; +// } +// var t = new bar(); +// t.x = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// function bar() { +// this.x = 10; +// } +// var t = new bar(); +// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty03.baseline.jsonc new file mode 100644 index 0000000000..61b25a2d6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty03.baseline.jsonc @@ -0,0 +1,24 @@ +// === findRenameLocations === +// === /a.js === + +// class C { +// constructor(y) { +// this./*RENAME*/[|xRENAME|] = y; +// } +// } +// var t = new C(12); +// t.[|xRENAME|] = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// class C { +// constructor(y) { +// this.[|xRENAME|] = y; +// } +// } +// var t = new C(12); +// t./*RENAME*/[|xRENAME|] = 11; diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty05.baseline.jsonc new file mode 100644 index 0000000000..0975429736 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty05.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /a.js === + +// class C { +// constructor(y) { +// this.x = y; +// } +// } +// C.prototype./*RENAME*/z = 1; +// var t = new C(12); +// t.z = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// --- (line: 4) skipped --- +// } +// C.prototype.z = 1; +// var t = new C(12); +// t./*RENAME*/z = 11; diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty06.baseline.jsonc new file mode 100644 index 0000000000..a4df38f6dd --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameJsThisProperty06.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /a.js === + +// var C = class { +// constructor(y) { +// this.x = y; +// } +// } +// C.prototype./*RENAME*/z = 1; +// var t = new C(12); +// t.z = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// --- (line: 4) skipped --- +// } +// C.prototype.z = 1; +// var t = new C(12); +// t./*RENAME*/z = 11; diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLabel1.baseline.jsonc new file mode 100644 index 0000000000..8052de8b13 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLabel1.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /renameLabel1.ts === + +// [|fooRENAME|]: { +// break /*RENAME*/[|fooRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLabel2.baseline.jsonc new file mode 100644 index 0000000000..90e5de9a9e --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLabel2.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /renameLabel2.ts === + +// /*RENAME*/[|fooRENAME|]: { +// break [|fooRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLabel3.baseline.jsonc new file mode 100644 index 0000000000..0fddfa042b --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLabel3.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel3.ts === + +// /*RENAME*/[|loopRENAME|]: +// for (let i = 0; i <= 10; i++) { +// if (i === 0) continue [|loopRENAME|]; +// if (i === 1) continue [|loopRENAME|]; +// if (i === 10) break [|loopRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLabel4.baseline.jsonc new file mode 100644 index 0000000000..9a92975063 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLabel4.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel4.ts === + +// [|loopRENAME|]: +// for (let i = 0; i <= 10; i++) { +// if (i === 0) continue [|loopRENAME|]; +// if (i === 1) continue /*RENAME*/[|loopRENAME|]; +// if (i === 10) break [|loopRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLabel5.baseline.jsonc new file mode 100644 index 0000000000..d9fabf7505 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLabel5.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel5.ts === + +// [|loop1RENAME|]: for (let i = 0; i <= 10; i++) { +// loop2: for (let j = 0; j <= 10; j++) { +// if (i === 5) continue /*RENAME*/[|loop1RENAME|]; +// if (j === 5) break loop2; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLabel6.baseline.jsonc new file mode 100644 index 0000000000..eb521ed370 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLabel6.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel6.ts === + +// loop1: for (let i = 0; i <= 10; i++) { +// [|loop2RENAME|]: for (let j = 0; j <= 10; j++) { +// if (i === 5) continue loop1; +// if (j === 5) break /*RENAME*/[|loop2RENAME|]; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameLocationsForClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLocationsForClassExpression01.baseline.jsonc new file mode 100644 index 0000000000..25f1ddbcaf --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLocationsForClassExpression01.baseline.jsonc @@ -0,0 +1,41 @@ +// === findRenameLocations === +// === /renameLocationsForClassExpression01.ts === + +// class Foo { +// } +// +// var x = class /*RENAME*/[|FooRENAME|] { +// doIt() { +// return [|FooRENAME|]; +// } +// +// static doItStatically() { +// return [|FooRENAME|].y; +// } +// } +// +// // --- (line: 14) skipped --- + + + + +// === findRenameLocations === +// === /renameLocationsForClassExpression01.ts === + +// /*RENAME*/class Foo { +// } +// +// var x = class Foo { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameLocationsForClassExpression01.ts === + +// /*RENAME*/class Foo { +// } +// +// var x = class Foo { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression01.baseline.jsonc new file mode 100644 index 0000000000..f0dfea41e6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression01.baseline.jsonc @@ -0,0 +1,26 @@ +// === findRenameLocations === +// === /renameLocationsForFunctionExpression01.ts === + +// var x = function /*RENAME*/[|fRENAME|](g: any, h: any) { +// [|fRENAME|]([|fRENAME|], g); +// } + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression01.ts === + +// /*RENAME*/var x = function f(g: any, h: any) { +// f(f, g); +// } + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression01.ts === + +// /*RENAME*/var x = function f(g: any, h: any) { +// f(f, g); +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression02.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression02.baseline.jsonc new file mode 100644 index 0000000000..0842391fc6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression02.baseline.jsonc @@ -0,0 +1,36 @@ +// === findRenameLocations === +// === /renameLocationsForFunctionExpression02.ts === + +// function f() { +// +// } +// var x = function /*RENAME*/[|fRENAME|](g: any, h: any) { +// +// let helper = function f(): any { f(); } +// +// let foo = () => [|fRENAME|]([|fRENAME|], g); +// } + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression02.ts === + +// /*RENAME*/function f() { +// +// } +// var x = function f(g: any, h: any) { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression02.ts === + +// /*RENAME*/function f() { +// +// } +// var x = function f(g: any, h: any) { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameModifiers.baseline.jsonc new file mode 100644 index 0000000000..842d23609f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameModifiers.baseline.jsonc @@ -0,0 +1,132 @@ +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// declare abstract class /*RENAME*/[|C1RENAME|] { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// --- (line: 4) skipped --- +// protected d; +// private e; +// } +// const enum /*RENAME*/[|ERENAME|] { +// } +// async function fn() {} +// export default class C2 {} + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// --- (line: 6) skipped --- +// } +// const enum E { +// } +// async function /*RENAME*/[|fnRENAME|]() {} +// export default class C2 {} + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// --- (line: 7) skipped --- +// const enum E { +// } +// async function fn() {} +// export default class /*RENAME*/[|C2RENAME|] {} diff --git a/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties1.baseline.jsonc new file mode 100644 index 0000000000..4c234f33c1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties1.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameModuleExportsProperties1.ts === + +// /*RENAME*/class A {} +// module.exports = { A } + + + + +// === findRenameLocations === +// === /renameModuleExportsProperties1.ts === + +// /*RENAME*/class A {} +// module.exports = { A } diff --git a/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties2.baseline.jsonc new file mode 100644 index 0000000000..1dcc985090 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties2.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameModuleExportsProperties2.ts === + +// /*RENAME*/class A {} +// module.exports = { B: A } + + + + +// === findRenameLocations === +// === /renameModuleExportsProperties2.ts === + +// /*RENAME*/class A {} +// module.exports = { B: A } diff --git a/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties3.baseline.jsonc new file mode 100644 index 0000000000..1a76495d46 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/class A {} +// module.exports = { A } + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/class A {} +// module.exports = { A } diff --git a/testdata/baselines/reference/fourslash/rename/renameNamedImport.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameNamedImport.baseline.jsonc new file mode 100644 index 0000000000..c3cbf98e5f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameNamedImport.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /home/src/workspaces/project/src/index.ts === + +// import { /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; +// [|someExportedVariableRENAME|]; diff --git a/testdata/baselines/reference/fourslash/rename/renameNamespaceImport.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameNamespaceImport.baseline.jsonc new file mode 100644 index 0000000000..29f6081e21 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameNamespaceImport.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /home/src/workspaces/project/src/index.ts === + +// import * as /*RENAME*/[|libRENAME|] from '../lib/index'; +// [|libRENAME|].someExportedVariable; diff --git a/testdata/baselines/reference/fourslash/rename/renameNumericalIndex.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameNumericalIndex.baseline.jsonc new file mode 100644 index 0000000000..56d118f523 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameNumericalIndex.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameNumericalIndex.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; + + + + +// === findRenameLocations === +// === /renameNumericalIndex.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; diff --git a/testdata/baselines/reference/fourslash/rename/renameNumericalIndexSingleQuoted.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameNumericalIndexSingleQuoted.baseline.jsonc new file mode 100644 index 0000000000..060d984c32 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameNumericalIndexSingleQuoted.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameNumericalIndexSingleQuoted.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; + + + + +// === findRenameLocations === +// === /renameNumericalIndexSingleQuoted.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; diff --git a/testdata/baselines/reference/fourslash/rename/renameObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameObjectBindingElementPropertyName01.baseline.jsonc new file mode 100644 index 0000000000..16eef71662 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameObjectBindingElementPropertyName01.baseline.jsonc @@ -0,0 +1,24 @@ +// === findRenameLocations === +// === /renameObjectBindingElementPropertyName01.ts === + +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// +// var foo: I; +// var { [|property1RENAME|]: prop1 } = foo; + + + + +// === findRenameLocations === +// === /renameObjectBindingElementPropertyName01.ts === + +// interface I { +// [|property1RENAME|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*RENAME*/[|property1RENAME|]: prop1 } = foo; diff --git a/testdata/baselines/reference/fourslash/rename/renameObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameObjectSpread.baseline.jsonc new file mode 100644 index 0000000000..0184684b36 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameObjectSpread.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameObjectSpread.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a; + + + + +// === findRenameLocations === +// === /renameObjectSpread.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a; + + + + +// === findRenameLocations === +// === /renameObjectSpread.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a; diff --git a/testdata/baselines/reference/fourslash/rename/renameObjectSpreadAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameObjectSpreadAssignment.baseline.jsonc new file mode 100644 index 0000000000..361b508fd3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameObjectSpreadAssignment.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; + + + + +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; + + + + +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; + + + + +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration1.baseline.jsonc new file mode 100644 index 0000000000..22ff061a1d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration1.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration1.ts === + +// class Foo { +// constructor(private /*RENAME*/[|privateParamRENAME|]: number) { +// let localPrivate = [|privateParamRENAME|]; +// this.[|privateParamRENAME|] += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration1.ts === + +// /*RENAME*/class Foo { +// constructor(private privateParam: number) { +// let localPrivate = privateParam; +// this.privateParam += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration1.ts === + +// /*RENAME*/class Foo { +// constructor(private privateParam: number) { +// let localPrivate = privateParam; +// this.privateParam += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration2.baseline.jsonc new file mode 100644 index 0000000000..3ef54137ed --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration2.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration2.ts === + +// class Foo { +// constructor(public /*RENAME*/[|publicParamRENAME|]: number) { +// let publicParam = [|publicParamRENAME|]; +// this.[|publicParamRENAME|] += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration2.ts === + +// /*RENAME*/class Foo { +// constructor(public publicParam: number) { +// let publicParam = publicParam; +// this.publicParam += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration2.ts === + +// /*RENAME*/class Foo { +// constructor(public publicParam: number) { +// let publicParam = publicParam; +// this.publicParam += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration3.baseline.jsonc new file mode 100644 index 0000000000..86b2967ef6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration3.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration3.ts === + +// class Foo { +// constructor(protected /*RENAME*/[|protectedParamRENAME|]: number) { +// let protectedParam = [|protectedParamRENAME|]; +// this.[|protectedParamRENAME|] += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration3.ts === + +// /*RENAME*/class Foo { +// constructor(protected protectedParam: number) { +// let protectedParam = protectedParam; +// this.protectedParam += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration3.ts === + +// /*RENAME*/class Foo { +// constructor(protected protectedParam: number) { +// let protectedParam = protectedParam; +// this.protectedParam += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration4.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration4.baseline.jsonc new file mode 100644 index 0000000000..cfe486d4a5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration4.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration4.ts === + +// /*RENAME*/class Foo { +// constructor(protected { protectedParam }) { +// let myProtectedParam = protectedParam; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration4.ts === + +// /*RENAME*/class Foo { +// constructor(protected { protectedParam }) { +// let myProtectedParam = protectedParam; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration5.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration5.baseline.jsonc new file mode 100644 index 0000000000..94775fef82 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration5.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration5.ts === + +// class Foo { +// constructor(protected [ /*RENAME*/[|protectedParamRENAME|] ]) { +// let myProtectedParam = [|protectedParamRENAME|]; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration5.ts === + +// /*RENAME*/class Foo { +// constructor(protected [ protectedParam ]) { +// let myProtectedParam = protectedParam; +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renamePrivateAccessor.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renamePrivateAccessor.baseline.jsonc new file mode 100644 index 0000000000..3fb81dd12c --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renamePrivateAccessor.baseline.jsonc @@ -0,0 +1,36 @@ +// === findRenameLocations === +// === /renamePrivateAccessor.ts === + +// class Foo { +// get /*RENAME*/#foo() { return 1 } +// set #foo(value: number) { } +// retFoo() { +// return this.#foo; +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateAccessor.ts === + +// class Foo { +// get #foo() { return 1 } +// set /*RENAME*/#foo(value: number) { } +// retFoo() { +// return this.#foo; +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateAccessor.ts === + +// /*RENAME*/class Foo { +// get #foo() { return 1 } +// set #foo(value: number) { } +// retFoo() { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renamePrivateFields1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renamePrivateFields1.baseline.jsonc new file mode 100644 index 0000000000..8467bc25b6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renamePrivateFields1.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renamePrivateFields1.ts === + +// class Foo { +// /*RENAME*/#foo = 1; +// +// getFoo() { +// return this.#foo; +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateFields1.ts === + +// /*RENAME*/class Foo { +// #foo = 1; +// +// getFoo() { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renamePrivateMethod.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renamePrivateMethod.baseline.jsonc new file mode 100644 index 0000000000..50f1136d57 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renamePrivateMethod.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renamePrivateMethod.ts === + +// class Foo { +// /*RENAME*/#foo() { } +// callFoo() { +// return this.#foo(); +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateMethod.ts === + +// /*RENAME*/class Foo { +// #foo() { } +// callFoo() { +// return this.#foo(); +// } +// } diff --git a/testdata/baselines/reference/fourslash/rename/renamePropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renamePropertyAccessExpressionHeritageClause.baseline.jsonc new file mode 100644 index 0000000000..26666e85bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renamePropertyAccessExpressionHeritageClause.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renamePropertyAccessExpressionHeritageClause.ts === + +// class B {} +// function foo() { +// return {/*RENAME*/[|BRENAME|]: B}; +// } +// class C extends (foo()).[|BRENAME|] {} +// class C1 extends foo().[|BRENAME|] {} + + + + +// === findRenameLocations === +// === /renamePropertyAccessExpressionHeritageClause.ts === + +// /*RENAME*/class B {} +// function foo() { +// return {B: B}; +// } +// class C extends (foo()).B {} +// class C1 extends foo().B {} + + + + +// === findRenameLocations === +// === /renamePropertyAccessExpressionHeritageClause.ts === + +// /*RENAME*/class B {} +// function foo() { +// return {B: B}; +// } +// class C extends (foo()).B {} +// class C1 extends foo().B {} diff --git a/testdata/baselines/reference/fourslash/rename/renameReExportDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameReExportDefault.baseline.jsonc new file mode 100644 index 0000000000..a3d425fedf --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameReExportDefault.baseline.jsonc @@ -0,0 +1,53 @@ +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as b } from "./b"; +// import { default as bee } from "./b"; +// import b from "./b"; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as b } from "./b"; +// import { default as bee } from "./b"; +// import b from "./b"; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as b } from "./b"; +// import { default as bee } from "./b"; +// import b from "./b"; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/const b = 0; +// export default b; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/const b = 0; +// export default b; diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag1.baseline.jsonc new file mode 100644 index 0000000000..e8d98ace55 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag1.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /renameReferenceFromLinkTag1.ts === + +// enum E { +// /** {@link /*RENAME*/[|ARENAME|]} */ +// [|ARENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag2.baseline.jsonc new file mode 100644 index 0000000000..95e0419a90 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag2.baseline.jsonc @@ -0,0 +1,10 @@ +// === findRenameLocations === +// === /a.ts === + +// enum E { +// /** {@link /*RENAME*/[|FooRENAME|]} */ +// [|FooRENAME|] +// } +// interface Foo { +// foo: E.[|FooRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag3.baseline.jsonc new file mode 100644 index 0000000000..9ae1143321 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /a.ts === + +// interface Foo { +// foo: E.[|FooRENAME|]; +// } + + +// === /b.ts === + +// enum E { +// /** {@link /*RENAME*/[|FooRENAME|]} */ +// [|FooRENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag4.baseline.jsonc new file mode 100644 index 0000000000..cdce4f1722 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameReferenceFromLinkTag4.ts === + +// enum E { +// /** {@link /*RENAME*/[|BRENAME|]} */ +// A, +// [|BRENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag5.baseline.jsonc new file mode 100644 index 0000000000..09fe5ebbc3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag5.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /renameReferenceFromLinkTag5.ts === + +// enum E { +// /** {@link E./*RENAME*/[|ARENAME|]} */ +// [|ARENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/rename/renameRest.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameRest.baseline.jsonc new file mode 100644 index 0000000000..a38db9c1da --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameRest.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /renameRest.ts === + +// interface Gen { +// x: number; +// /*RENAME*/[|parentRENAME|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest.[|parentRENAME|]; + + + + +// === findRenameLocations === +// === /renameRest.ts === + +// /*RENAME*/interface Gen { +// x: number; +// parent: Gen; +// millenial: string; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameRestBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameRestBindingElement.baseline.jsonc new file mode 100644 index 0000000000..069823071c --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameRestBindingElement.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameRestBindingElement.ts === + +// /*RENAME*/interface I { +// a: number; +// b: number; +// c: number; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk.baseline.jsonc new file mode 100644 index 0000000000..ee096940ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /renameStringLiteralOk.ts === + +// /*RENAME*/interface Foo { +// f: 'foo' | 'bar' +// } +// const d: 'foo' = 'foo' +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralOk.ts === + +// /*RENAME*/interface Foo { +// f: 'foo' | 'bar' +// } +// const d: 'foo' = 'foo' +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralOk.ts === + +// /*RENAME*/interface Foo { +// f: 'foo' | 'bar' +// } +// const d: 'foo' = 'foo' +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk1.baseline.jsonc new file mode 100644 index 0000000000..8e83ee0395 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk1.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameStringLiteralOk1.ts === + +// /*RENAME*/declare function f(): 'foo' | 'bar' +// class Foo { +// f = f() +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralOk1.ts === + +// /*RENAME*/declare function f(): 'foo' | 'bar' +// class Foo { +// f = f() +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes1.baseline.jsonc new file mode 100644 index 0000000000..bbcf860952 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes1.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes1.ts === + +// /*RENAME*/interface AnimationOptions { +// deltaX: number; +// deltaY: number; +// easing: "ease-in" | "ease-out" | "ease-in-out"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes1.ts === + +// /*RENAME*/interface AnimationOptions { +// deltaX: number; +// deltaY: number; +// easing: "ease-in" | "ease-out" | "ease-in-out"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes2.baseline.jsonc new file mode 100644 index 0000000000..e171de1553 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes2.baseline.jsonc @@ -0,0 +1,116 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes3.baseline.jsonc new file mode 100644 index 0000000000..d7a7f4218e --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes3.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes4.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes4.baseline.jsonc new file mode 100644 index 0000000000..4eb7404ce2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes4.ts === + +// --- (line: 3) skipped --- +// +// declare const fn: (p: K) => void +// +// fn("Prop 1"/*RENAME*/) diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes5.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes5.baseline.jsonc new file mode 100644 index 0000000000..e1a505609f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes5.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes5.ts === + +// --- (line: 3) skipped --- +// +// declare const fn: (p: K) => void +// +// fn("Prop 1"/*RENAME*/) diff --git a/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames.baseline.jsonc new file mode 100644 index 0000000000..1ec338da15 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames.baseline.jsonc @@ -0,0 +1,68 @@ +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// var o = { +// /*RENAME*/[|propRENAME|]: 0 +// }; +// +// o = { +// "[|propRENAME|]": 1 +// }; +// +// o["[|propRENAME|]"]; +// o['[|propRENAME|]']; +// o.[|propRENAME|]; + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// var o = { +// prop: 0 +// }; +// +// o = { +// "/*RENAME*/prop": 1 +// }; +// +// o["prop"]; +// o['prop']; +// o.prop; + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// /*RENAME*/var o = { +// prop: 0 +// }; +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// /*RENAME*/var o = { +// prop: 0 +// }; +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// /*RENAME*/var o = { +// prop: 0 +// }; +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames2.baseline.jsonc new file mode 100644 index 0000000000..655994e633 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameStringPropertyNames2.ts === + +// --- (line: 4) skipped --- +// let { foo }: Props = null as any; +// foo; +// +// let asd: Props = { "foo"/*RENAME*/: true }; // rename foo here diff --git a/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsComputedProperties.baseline.jsonc new file mode 100644 index 0000000000..4f507d328d --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsComputedProperties.baseline.jsonc @@ -0,0 +1,231 @@ +// === findRenameLocations === +// === /a.ts === + +// interface Obj { +// [`/*RENAME*/num`]: number; +// ['bool']: boolean; +// } +// +// // --- (line: 6) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 3) skipped --- +// } +// +// let o: Obj = { +// [`/*RENAME*/num`]: 0, +// ['bool']: true, +// }; +// +// // --- (line: 11) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 8) skipped --- +// }; +// +// o = { +// ['/*RENAME*/num']: 1, +// [`bool`]: false, +// }; +// +// // --- (line: 16) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// interface Obj { +// [`num`]: number; +// ['/*RENAME*/bool']: boolean; +// } +// +// let o: Obj = { +// // --- (line: 7) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 4) skipped --- +// +// let o: Obj = { +// [`num`]: 0, +// ['/*RENAME*/bool']: true, +// }; +// +// o = { +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 9) skipped --- +// +// o = { +// ['num']: 1, +// [`/*RENAME*/bool`]: false, +// }; +// +// o.num; +// // --- (line: 17) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc new file mode 100644 index 0000000000..738e7f4598 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc @@ -0,0 +1,73 @@ +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// obj = { +// [`/*RENAME*/prop`]: 1 +// }; +// +// obj.prop; +// // --- (line: 10) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/renameUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameUMDModuleAlias1.baseline.jsonc new file mode 100644 index 0000000000..e3b5f1b76a --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/renameUMDModuleAlias1.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /0.d.ts === + +// export function doThing(): string; +// export function doTheOtherThing(): void; +// export as namespace /*RENAME*/[|myLibRENAME|]; + + +// === /1.ts === + +// /// +// [|myLibRENAME|].doThing(); + + + + +// === findRenameLocations === +// === /1.ts === + +// /*RENAME*//// +// myLib.doThing(); diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/tsxRename1.baseline.jsonc new file mode 100644 index 0000000000..c7d52d86ff --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/tsxRename1.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// /*RENAME*/[|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = <[|divRENAME|] />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/tsxRename2.baseline.jsonc new file mode 100644 index 0000000000..ff27b9a654 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/tsxRename2.baseline.jsonc @@ -0,0 +1,24 @@ +// === findRenameLocations === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// /*RENAME*/[|nameRENAME|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// // --- (line: 9) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 7) skipped --- +// span: { n: string; }; +// } +// } +// var x =
; diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename3.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/tsxRename3.baseline.jsonc new file mode 100644 index 0000000000..706e37cefe --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/tsxRename3.baseline.jsonc @@ -0,0 +1,25 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 5) skipped --- +// } +// class MyClass { +// props: { +// /*RENAME*/[|nameRENAME|]?: string; +// size?: number; +// } +// +// +// var x = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// +// +// var x = ; diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename5.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/tsxRename5.baseline.jsonc new file mode 100644 index 0000000000..64441c8ff3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/tsxRename5.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 9) skipped --- +// size?: number; +// } +// +// var /*RENAME*/[|nnRENAME|]: string; +// var x = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// /*RENAME*/ declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename6.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/tsxRename6.baseline.jsonc new file mode 100644 index 0000000000..ccbeed823f --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/tsxRename6.baseline.jsonc @@ -0,0 +1,98 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function /*RENAME*/[|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = ; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = ; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = ; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = ; diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename7.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/tsxRename7.baseline.jsonc new file mode 100644 index 0000000000..9f4bae05e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/tsxRename7.baseline.jsonc @@ -0,0 +1,39 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// /*RENAME*/[|propxRENAME|]: number +// propString: string +// optional?: boolean +// } +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 11) skipped --- +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename9.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/tsxRename9.baseline.jsonc new file mode 100644 index 0000000000..257d1b6d88 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename/tsxRename9.baseline.jsonc @@ -0,0 +1,274 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// className?: string; +// } +// interface ButtonProps extends ClickableProps { +// /*RENAME*/[|onClickRENAME|](event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// goTo: string; +// // --- (line: 16) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 18) skipped --- +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 11) skipped --- +// onClick(event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// /*RENAME*/[|goToRENAME|]: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// // --- (line: 19) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 20) skipped --- +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function /*RENAME*/[|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = {}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = {}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// /*RENAME*/ declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// /*RENAME*/ declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// } +// // --- (line: 5) skipped --- From 5c32809a22fa48fdefc2055e2f6eec2bae0cd38c Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Mon, 8 Sep 2025 13:00:22 -0700 Subject: [PATCH 06/18] WIP: verify baselines during cleanup to handle multiple baseline calls --- .../fourslash/_scripts/convertFourslash.mts | 11 +- internal/fourslash/baselineutil.go | 1 - internal/fourslash/fourslash.go | 158 +- .../tests/gen/getRenameInfoTests1_test.go | 20 + .../gen/renameForAliasingExport01_test.go | 21 + .../gen/renameForAliasingExport02_test.go | 21 + .../gen/renameForDefaultExport04_test.go | 27 + .../gen/renameForDefaultExport05_test.go | 27 + .../gen/renameForDefaultExport06_test.go | 27 + .../gen/renameForDefaultExport07_test.go | 28 + .../gen/renameForDefaultExport08_test.go | 28 + .../gen/renameForDefaultExport09_test.go | 34 + .../gen/renameFromNodeModulesDep3_test.go | 32 + .../renameInfoForFunctionExpression01_test.go | 20 + .../tests/gen/renameNameOnEnumMember_test.go | 23 + .../tests/gen/renameNoDefaultLib_test.go | 23 + .../tests/gen/renamePrivateFields_test.go | 24 + .../tests/gen/renameUMDModuleAlias2_test.go | 24 + ...ambientShorthandFindAllRefs.baseline.jsonc | 12 + ...ortProvider_referencesCrash.baseline.jsonc | 12 + ...xtSensitiveParameterNoCrash.baseline.jsonc | 114 + ...nstructorFindAllReferences1.baseline.jsonc | 9 + ...nstructorFindAllReferences2.baseline.jsonc | 9 + ...nstructorFindAllReferences3.baseline.jsonc | 9 + ...nstructorFindAllReferences4.baseline.jsonc | 9 + ...eclarationMapGoToDefinition.baseline.jsonc | 17 + ...efinitionRelativeSourceRoot.baseline.jsonc | 17 + ...nSameNameDifferentDirectory.baseline.jsonc | 46 + ...arationMapsOutOfDateMapping.baseline.jsonc | 12 + .../fourslash/definition.baseline.jsonc | 10 + .../fourslash/definition01.baseline.jsonc | 10 + .../definitionNameOnEnumMember.baseline.jsonc | 9 + ...catedInheritedJSDocOverload.baseline.jsonc | 53 + .../doubleUnderscoreRenames.baseline.jsonc | 30 + ...uleInteropFindAllReferences.baseline.jsonc | 38 + ...leInteropFindAllReferences2.baseline.jsonc | 35 + ...sNodeNextWithTypesReference.baseline.jsonc | 6 + ...essExpressionHeritageClause.baseline.jsonc | 35 + ...AllReferencesDynamicImport2.baseline.jsonc | 44 + ...AllReferencesDynamicImport3.baseline.jsonc | 32 + ...FilteringMappedTypeProperty.baseline.jsonc | 26 + ...rencesFromLinkTagReference1.baseline.jsonc | 7 + ...rencesFromLinkTagReference2.baseline.jsonc | 10 + ...rencesFromLinkTagReference3.baseline.jsonc | 14 + ...rencesFromLinkTagReference4.baseline.jsonc | 8 + ...rencesFromLinkTagReference5.baseline.jsonc | 7 + ...findAllReferencesImportMeta.baseline.jsonc | 6 + ...lReferencesJSDocFunctionNew.baseline.jsonc | 5 + ...ReferencesJSDocFunctionThis.baseline.jsonc | 5 + ...lReferencesJsDocTypeLiteral.baseline.jsonc | 24 + ...OverloadedFunctionParameter.baseline.jsonc | 10 + ...encesJsRequireDestructuring.baseline.jsonc | 4 + ...ncesJsRequireDestructuring1.baseline.jsonc | 4 + .../findAllReferencesLinkTag1.baseline.jsonc | 176 ++ .../findAllReferencesLinkTag2.baseline.jsonc | 106 + .../findAllReferencesLinkTag3.baseline.jsonc | 110 + ...cesNonExistentExportBinding.baseline.jsonc | 4 + ...dAllReferencesOfConstructor.baseline.jsonc | 137 + ...esOfConstructor_badOverload.baseline.jsonc | 18 + ...ndAllReferencesOfJsonModule.baseline.jsonc | 23 + .../findAllReferencesUndefined.baseline.jsonc | 11 + .../findAllRefsBadImport.baseline.jsonc | 12 + .../findAllRefsCatchClause.baseline.jsonc | 18 + ...findAllRefsClassExpression0.baseline.jsonc | 60 + ...findAllRefsClassExpression1.baseline.jsonc | 22 + ...findAllRefsClassExpression2.baseline.jsonc | 38 + ...indAllRefsClassStaticBlocks.baseline.jsonc | 39 + ...fsClassWithStaticThisAccess.baseline.jsonc | 56 + ...AllRefsConstructorFunctions.baseline.jsonc | 64 + .../findAllRefsDeclareClass.baseline.jsonc | 16 + .../findAllRefsDefaultImport.baseline.jsonc | 22 + .../findAllRefsDefinition.baseline.jsonc | 14 + ...ndAllRefsDestructureGeneric.baseline.jsonc | 20 + ...indAllRefsDestructureGetter.baseline.jsonc | 80 + .../findAllRefsEnumAsNamespace.baseline.jsonc | 23 + .../findAllRefsEnumMember.baseline.jsonc | 23 + ...RefsExportConstEqualToClass.baseline.jsonc | 24 + ...portDefaultClassConstructor.baseline.jsonc | 6 + ...dAllRefsExportNotAtTopLevel.baseline.jsonc | 29 + ...llRefsForComputedProperties.baseline.jsonc | 50 + ...lRefsForComputedProperties2.baseline.jsonc | 50 + ...findAllRefsForDefaultExport.baseline.jsonc | 33 + ...ndAllRefsForDefaultExport01.baseline.jsonc | 48 + ...ndAllRefsForDefaultExport02.baseline.jsonc | 102 + ...ndAllRefsForDefaultExport04.baseline.jsonc | 53 + ...ndAllRefsForDefaultExport09.baseline.jsonc | 106 + ...sForDefaultExport_anonymous.baseline.jsonc | 4 + ...fsForDefaultExport_reExport.baseline.jsonc | 30 + ...indAllRefsForDefaultKeyword.baseline.jsonc | 67 + ...RefsForFunctionExpression01.baseline.jsonc | 66 + .../findAllRefsForImportCall.baseline.jsonc | 17 + ...indAllRefsForImportCallType.baseline.jsonc | 11 + .../findAllRefsForMappedType.baseline.jsonc | 8 + ...sForObjectLiteralProperties.baseline.jsonc | 50 + .../findAllRefsForObjectSpread.baseline.jsonc | 52 + .../findAllRefsForRest.baseline.jsonc | 26 + ...icInstanceMethodInheritance.baseline.jsonc | 100 + ...InstancePropertyInheritance.baseline.jsonc | 232 ++ ...findAllRefsForStringLiteral.baseline.jsonc | 9 + ...llRefsForStringLiteralTypes.baseline.jsonc | 14 + ...ndAllRefsForUMDModuleAlias1.baseline.jsonc | 38 + ...orVariableInExtendsClause01.baseline.jsonc | 23 + ...orVariableInExtendsClause02.baseline.jsonc | 32 + ...ariableInImplementsClause01.baseline.jsonc | 5 + ...fsGlobalThisKeywordInModule.baseline.jsonc | 5 + .../findAllRefsImportEquals.baseline.jsonc | 5 + .../findAllRefsImportType.baseline.jsonc | 27 + ...indAllRefsInClassExpression.baseline.jsonc | 18 + ...ndAllRefsIndexedAccessTypes.baseline.jsonc | 56 + ...AllRefsInheritedProperties1.baseline.jsonc | 56 + ...AllRefsInheritedProperties2.baseline.jsonc | 56 + ...AllRefsInheritedProperties3.baseline.jsonc | 178 ++ ...AllRefsInheritedProperties4.baseline.jsonc | 79 + ...AllRefsInheritedProperties5.baseline.jsonc | 69 + ...findAllRefsInsideTemplates1.baseline.jsonc | 32 + ...findAllRefsInsideTemplates2.baseline.jsonc | 41 + .../findAllRefsInsideWithBlock.baseline.jsonc | 53 + .../findAllRefsIsDefinition.baseline.jsonc | 115 + .../findAllRefsJsDocImportTag.baseline.jsonc | 11 + .../findAllRefsJsDocImportTag2.baseline.jsonc | 30 + .../findAllRefsJsDocImportTag3.baseline.jsonc | 30 + .../findAllRefsJsDocImportTag4.baseline.jsonc | 9 + .../findAllRefsJsDocImportTag5.baseline.jsonc | 12 + ...lRefsJsDocTemplateTag_class.baseline.jsonc | 14 + ...fsJsDocTemplateTag_function.baseline.jsonc | 14 + .../findAllRefsJsDocTypeDef.baseline.jsonc | 5 + ...efsJsThisPropertyAssignment.baseline.jsonc | 30 + ...fsJsThisPropertyAssignment2.baseline.jsonc | 64 + .../findAllRefsMappedType.baseline.jsonc | 35 + ...fsMappedType_nonHomomorphic.baseline.jsonc | 18 + ...odulesOverlappingSpecifiers.baseline.jsonc | 16 + .../findAllRefsNoImportClause.baseline.jsonc | 12 + ...tionTemplateLiteralNoCrash1.baseline.jsonc | 4 + .../findAllRefsNonModule.baseline.jsonc | 22 + ...NonexistentPropertyNoCrash1.baseline.jsonc | 12 + ...indingElementPropertyName01.baseline.jsonc | 36 + ...indingElementPropertyName02.baseline.jsonc | 36 + ...indingElementPropertyName03.baseline.jsonc | 24 + ...indingElementPropertyName04.baseline.jsonc | 66 + ...indingElementPropertyName05.baseline.jsonc | 11 + ...indingElementPropertyName06.baseline.jsonc | 106 + ...indingElementPropertyName07.baseline.jsonc | 6 + ...indingElementPropertyName10.baseline.jsonc | 52 + ...sOfConstructor_withModifier.baseline.jsonc | 7 + .../findAllRefsOnDecorators.baseline.jsonc | 107 + .../findAllRefsOnDefinition.baseline.jsonc | 62 + .../findAllRefsOnDefinition2.baseline.jsonc | 51 + .../findAllRefsOnImportAliases.baseline.jsonc | 44 + ...findAllRefsOnImportAliases2.baseline.jsonc | 162 ++ ...OnPrivateParameterProperty1.baseline.jsonc | 39 + ...rameterPropertyDeclaration1.baseline.jsonc | 9 + ...rameterPropertyDeclaration2.baseline.jsonc | 35 + ...rameterPropertyDeclaration3.baseline.jsonc | 35 + ...ertyDeclaration_inheritance.baseline.jsonc | 61 + .../findAllRefsPrimitiveJsDoc.baseline.jsonc | 44 + ...AllRefsPrivateNameAccessors.baseline.jsonc | 155 ++ ...ndAllRefsPrivateNameMethods.baseline.jsonc | 58 + ...llRefsPrivateNameProperties.baseline.jsonc | 76 + ...textuallyTypedByTypeParam01.baseline.jsonc | 19 + ...findAllRefsReExport_broken2.baseline.jsonc | 12 + ...dPropertyInDerivedInterface.baseline.jsonc | 56 + .../findAllRefsRootSymbols.baseline.jsonc | 40 + .../findAllRefsThisKeyword.baseline.jsonc | 170 ++ ...efsThisKeywordMultipleFiles.baseline.jsonc | 70 + ...eParameterInMergedInterface.baseline.jsonc | 32 + .../findAllRefsTypedef.baseline.jsonc | 38 + ...ndAllRefsTypedef_importType.baseline.jsonc | 25 + .../findAllRefsTypeofImport.baseline.jsonc | 26 + .../findAllRefsUnionProperty.baseline.jsonc | 167 ++ ...ndAllRefsUnresolvedSymbols1.baseline.jsonc | 126 + ...ndAllRefsUnresolvedSymbols2.baseline.jsonc | 155 ++ ...ndAllRefsUnresolvedSymbols3.baseline.jsonc | 155 ++ ...WithLeadingUnderscoreNames1.baseline.jsonc | 35 + ...WithLeadingUnderscoreNames2.baseline.jsonc | 35 + ...WithLeadingUnderscoreNames3.baseline.jsonc | 35 + ...WithLeadingUnderscoreNames4.baseline.jsonc | 35 + ...WithLeadingUnderscoreNames5.baseline.jsonc | 49 + ...WithLeadingUnderscoreNames6.baseline.jsonc | 48 + ...WithLeadingUnderscoreNames7.baseline.jsonc | 26 + ...WithLeadingUnderscoreNames8.baseline.jsonc | 26 + ...WithLeadingUnderscoreNames9.baseline.jsonc | 26 + ...ShorthandPropertyAssignment.baseline.jsonc | 56 + ...horthandPropertyAssignment2.baseline.jsonc | 53 + .../findAllRefsWriteAccess.baseline.jsonc | 20 + .../findAllRefs_importType_js4.baseline.jsonc | 9 + ...mportType_meaningAtLocation.baseline.jsonc | 74 + ...indAllRefs_importType_named.baseline.jsonc | 74 + .../findAllRefs_jsEnum.baseline.jsonc | 56 + ...encesAcrossMultipleProjects.baseline.jsonc | 64 + ...encesDefinitionDisplayParts.baseline.jsonc | 50 + .../findReferencesJSXTagName.baseline.jsonc | 32 + .../findReferencesJSXTagName2.baseline.jsonc | 23 + .../findReferencesSeeTagInTs.baseline.jsonc | 8 + ...IsDefinitionOfArrowFunction.baseline.jsonc | 23 + ...sDefinitionOfBindingPattern.baseline.jsonc | 23 + ...urrencesIsDefinitionOfClass.baseline.jsonc | 36 + ...efinitionOfComputedProperty.baseline.jsonc | 36 + ...currencesIsDefinitionOfEnum.baseline.jsonc | 32 + ...rrencesIsDefinitionOfExport.baseline.jsonc | 24 + ...encesIsDefinitionOfFunction.baseline.jsonc | 26 + ...ncesIsDefinitionOfInterface.baseline.jsonc | 29 + ...nitionOfInterfaceClassMerge.baseline.jsonc | 139 + ...ncesIsDefinitionOfNamespace.baseline.jsonc | 29 + ...nitionOfNumberNamedProperty.baseline.jsonc | 14 + ...ncesIsDefinitionOfParameter.baseline.jsonc | 16 + ...nitionOfStringNamedProperty.baseline.jsonc | 23 + ...ncesIsDefinitionOfTypeAlias.baseline.jsonc | 23 + ...encesIsDefinitionOfVariable.baseline.jsonc | 368 +++ ...itionAcrossMultipleProjects.baseline.jsonc | 28 + .../goToDefinitionAlias.baseline.jsonc | 72 + .../goToDefinitionAmbiants.baseline.jsonc | 96 + ...itionApparentTypeProperties.baseline.jsonc | 24 + .../goToDefinitionAwait1.baseline.jsonc | 22 + .../goToDefinitionAwait2.baseline.jsonc | 4 + .../goToDefinitionAwait3.baseline.jsonc | 26 + .../goToDefinitionAwait4.baseline.jsonc | 8 + .../goToDefinitionBuiltInTypes.baseline.jsonc | 40 + ...goToDefinitionBuiltInValues.baseline.jsonc | 56 + ...tionCSSPatternAmbientModule.baseline.jsonc | 12 + ...DefinitionClassConstructors.baseline.jsonc | 76 + ...DefinitionClassStaticBlocks.baseline.jsonc | 39 + ...structorOfClassExpression01.baseline.jsonc | 152 ++ ...lassIsPrecededByNamespace01.baseline.jsonc | 13 + ...initionConstructorOverloads.baseline.jsonc | 90 + .../goToDefinitionDecorator.baseline.jsonc | 40 + ...efinitionDecoratorOverloads.baseline.jsonc | 32 + ...initionDestructuredRequire1.baseline.jsonc | 11 + ...initionDestructuredRequire2.baseline.jsonc | 11 + ...goToDefinitionDifferentFile.baseline.jsonc | 101 + ...tionDifferentFileIndirectly.baseline.jsonc | 101 + ...oToDefinitionDynamicImport1.baseline.jsonc | 16 + ...oToDefinitionDynamicImport2.baseline.jsonc | 8 + ...oToDefinitionDynamicImport3.baseline.jsonc | 5 + ...oToDefinitionDynamicImport4.baseline.jsonc | 5 + ...goToDefinitionExpandoClass1.baseline.jsonc | 10 + ...goToDefinitionExpandoClass2.baseline.jsonc | 12 + ...initionExpandoElementAccess.baseline.jsonc | 6 + ...efinitionExternalModuleName.baseline.jsonc | 10 + ...finitionExternalModuleName2.baseline.jsonc | 11 + ...finitionExternalModuleName3.baseline.jsonc | 12 + ...finitionExternalModuleName4.baseline.jsonc | 4 + ...finitionExternalModuleName5.baseline.jsonc | 6 + ...finitionExternalModuleName6.baseline.jsonc | 11 + ...finitionExternalModuleName7.baseline.jsonc | 11 + ...finitionExternalModuleName8.baseline.jsonc | 11 + ...finitionExternalModuleName9.baseline.jsonc | 11 + ...DefinitionFunctionOverloads.baseline.jsonc | 52 + ...ionFunctionOverloadsInClass.baseline.jsonc | 28 + .../goToDefinitionFunctionType.baseline.jsonc | 40 + ...finitionImplicitConstructor.baseline.jsonc | 6 + .../goToDefinitionImport1.baseline.jsonc | 9 + .../goToDefinitionImport2.baseline.jsonc | 4 + .../goToDefinitionImport3.baseline.jsonc | 4 + ...goToDefinitionImportedNames.baseline.jsonc | 16 + ...ToDefinitionImportedNames10.baseline.jsonc | 13 + ...ToDefinitionImportedNames11.baseline.jsonc | 13 + ...oToDefinitionImportedNames2.baseline.jsonc | 16 + ...oToDefinitionImportedNames3.baseline.jsonc | 38 + ...oToDefinitionImportedNames4.baseline.jsonc | 16 + ...oToDefinitionImportedNames5.baseline.jsonc | 16 + ...oToDefinitionImportedNames6.baseline.jsonc | 16 + ...oToDefinitionImportedNames7.baseline.jsonc | 12 + ...oToDefinitionImportedNames8.baseline.jsonc | 12 + ...oToDefinitionImportedNames9.baseline.jsonc | 13 + .../goToDefinitionImports.baseline.jsonc | 70 + ...finitionInMemberDeclaration.baseline.jsonc | 171 ++ ...oToDefinitionInTypeArgument.baseline.jsonc | 20 + ...oToDefinitionIndexSignature.baseline.jsonc | 109 + ...ToDefinitionIndexSignature2.baseline.jsonc | 5 + .../goToDefinitionInstanceof1.baseline.jsonc | 7 + .../goToDefinitionInstanceof2.baseline.jsonc | 8 + ...tionInterfaceAfterImplement.baseline.jsonc | 13 + ...ToDefinitionJsDocImportTag1.baseline.jsonc | 6 + ...ToDefinitionJsDocImportTag2.baseline.jsonc | 6 + ...ToDefinitionJsDocImportTag3.baseline.jsonc | 6 + ...ToDefinitionJsDocImportTag4.baseline.jsonc | 6 + ...ToDefinitionJsDocImportTag5.baseline.jsonc | 16 + ...ToDefinitionJsModuleExports.baseline.jsonc | 18 + .../goToDefinitionJsModuleName.baseline.jsonc | 9 + ...ionJsModuleNameAtImportName.baseline.jsonc | 68 + .../goToDefinitionJsxCall.baseline.jsonc | 9 + .../goToDefinitionJsxNotSet.baseline.jsonc | 13 + .../goToDefinitionLabels.baseline.jsonc | 56 + .../goToDefinitionMember.baseline.jsonc | 6 + .../goToDefinitionMetaProperty.baseline.jsonc | 59 + ...ToDefinitionMethodOverloads.baseline.jsonc | 117 + .../goToDefinitionModifiers.baseline.jsonc | 230 ++ ...finitionMultipleDefinitions.baseline.jsonc | 41 + ...NewExpressionTargetNotClass.baseline.jsonc | 26 + ...indingElementPropertyName01.baseline.jsonc | 10 + ...tionObjectLiteralProperties.baseline.jsonc | 96 + ...ionObjectLiteralProperties1.baseline.jsonc | 32 + .../goToDefinitionObjectSpread.baseline.jsonc | 9 + ...sInMultiplePropertyAccesses.baseline.jsonc | 11 + ...DefinitionOverriddenMember1.baseline.jsonc | 9 + ...efinitionOverriddenMember10.baseline.jsonc | 8 + ...efinitionOverriddenMember11.baseline.jsonc | 66 + ...efinitionOverriddenMember12.baseline.jsonc | 9 + ...efinitionOverriddenMember13.baseline.jsonc | 9 + ...efinitionOverriddenMember14.baseline.jsonc | 10 + ...efinitionOverriddenMember15.baseline.jsonc | 10 + ...efinitionOverriddenMember16.baseline.jsonc | 10 + ...DefinitionOverriddenMember2.baseline.jsonc | 10 + ...DefinitionOverriddenMember3.baseline.jsonc | 10 + ...DefinitionOverriddenMember4.baseline.jsonc | 11 + ...DefinitionOverriddenMember5.baseline.jsonc | 8 + ...DefinitionOverriddenMember6.baseline.jsonc | 9 + ...DefinitionOverriddenMember7.baseline.jsonc | 6 + ...DefinitionOverriddenMember8.baseline.jsonc | 14 + ...DefinitionOverriddenMember9.baseline.jsonc | 12 + ...nitionPartialImplementation.baseline.jsonc | 19 + .../goToDefinitionPrimitives.baseline.jsonc | 4 + .../goToDefinitionPrivateName.baseline.jsonc | 50 + ...efinitionPropertyAssignment.baseline.jsonc | 22 + .../goToDefinitionRest.baseline.jsonc | 11 + .../goToDefinitionReturn1.baseline.jsonc | 6 + .../goToDefinitionReturn2.baseline.jsonc | 8 + .../goToDefinitionReturn3.baseline.jsonc | 8 + .../goToDefinitionReturn4.baseline.jsonc | 4 + .../goToDefinitionReturn5.baseline.jsonc | 8 + .../goToDefinitionReturn6.baseline.jsonc | 8 + .../goToDefinitionReturn7.baseline.jsonc | 8 + .../goToDefinitionSameFile.baseline.jsonc | 91 + ...initionSatisfiesExpression1.baseline.jsonc | 22 + .../goToDefinitionScriptImport.baseline.jsonc | 14 + ...efinitionScriptImportServer.baseline.jsonc | 26 + ...oToDefinitionShadowVariable.baseline.jsonc | 8 + ...nShadowVariableInsideModule.baseline.jsonc | 7 + ...finitionShorthandProperty01.baseline.jsonc | 48 + ...finitionShorthandProperty02.baseline.jsonc | 6 + ...finitionShorthandProperty03.baseline.jsonc | 22 + ...finitionShorthandProperty04.baseline.jsonc | 10 + ...finitionShorthandProperty05.baseline.jsonc | 10 + ...finitionShorthandProperty06.baseline.jsonc | 10 + ...itionSignatureAlias_require.baseline.jsonc | 24 + .../goToDefinitionSimple.baseline.jsonc | 24 + .../goToDefinitionSourceUnit.baseline.jsonc | 25 + .../goToDefinitionSwitchCase1.baseline.jsonc | 6 + .../goToDefinitionSwitchCase2.baseline.jsonc | 6 + .../goToDefinitionSwitchCase3.baseline.jsonc | 24 + .../goToDefinitionSwitchCase4.baseline.jsonc | 10 + .../goToDefinitionSwitchCase5.baseline.jsonc | 4 + .../goToDefinitionSwitchCase6.baseline.jsonc | 26 + .../goToDefinitionSwitchCase7.baseline.jsonc | 6 + ...tionTaggedTemplateOverloads.baseline.jsonc | 22 + .../goToDefinitionThis.baseline.jsonc | 38 + ...oToDefinitionTypeOnlyImport.baseline.jsonc | 11 + ...goToDefinitionTypePredicate.baseline.jsonc | 18 + ...itionTypeReferenceDirective.baseline.jsonc | 5 + .../goToDefinitionTypeofThis.baseline.jsonc | 38 + ...oDefinitionUndefinedSymbols.baseline.jsonc | 40 + ...efinitionUnionTypeProperty1.baseline.jsonc | 17 + ...efinitionUnionTypeProperty2.baseline.jsonc | 19 + ...efinitionUnionTypeProperty3.baseline.jsonc | 11 + ...efinitionUnionTypeProperty4.baseline.jsonc | 20 + ...nTypeProperty_discriminated.baseline.jsonc | 102 + ...efinitionVariableAssignment.baseline.jsonc | 7 + ...finitionVariableAssignment1.baseline.jsonc | 6 + ...finitionVariableAssignment2.baseline.jsonc | 7 + ...finitionVariableAssignment3.baseline.jsonc | 6 + .../goToDefinitionYield1.baseline.jsonc | 24 + .../goToDefinitionYield2.baseline.jsonc | 9 + .../goToDefinitionYield3.baseline.jsonc | 26 + .../goToDefinitionYield4.baseline.jsonc | 6 + ..._filteringGenericMappedType.baseline.jsonc | 16 + ...inition_filteringMappedType.baseline.jsonc | 6 + .../goToDefinition_mappedType.baseline.jsonc | 6 + .../goToDefinition_super.baseline.jsonc | 51 + ...oToDefinition_untypedModule.baseline.jsonc | 5 + .../goToModuleAliasDefinition.baseline.jsonc | 5 + ...finitionConstructorFunction.baseline.jsonc | 11 + ...tionInObjectBindingPattern1.baseline.jsonc | 8 + ...tionInObjectBindingPattern2.baseline.jsonc | 23 + .../gotoDefinitionLinkTag1.baseline.jsonc | 99 + .../gotoDefinitionLinkTag2.baseline.jsonc | 7 + .../gotoDefinitionLinkTag3.baseline.jsonc | 10 + .../gotoDefinitionLinkTag4.baseline.jsonc | 7 + .../gotoDefinitionLinkTag5.baseline.jsonc | 8 + .../gotoDefinitionLinkTag6.baseline.jsonc | 7 + ...essExpressionHeritageClause.baseline.jsonc | 22 + .../gotoDefinitionSatisfiesTag.baseline.jsonc | 10 + .../gotoDefinitionThrowsTag.baseline.jsonc | 9 + ...sForExportFromUnfoundModule.baseline.jsonc | 6 + ...mportTypeNodeGoToDefinition.baseline.jsonc | 122 + .../indirectJsRequireRename.baseline.jsonc | 9 + ...initionAcrossGlobalProjects.baseline.jsonc | 138 + ...initionAcrossModuleProjects.baseline.jsonc | 254 ++ ...tionInterfaceImplementation.baseline.jsonc | 30 + .../isDefinitionOverloads.baseline.jsonc | 35 + ...DefinitionShorthandProperty.baseline.jsonc | 23 + .../isDefinitionSingleImport.baseline.jsonc | 22 + ...isDefinitionSingleReference.baseline.jsonc | 14 + .../fourslash/javaScriptClass2.baseline.jsonc | 52 + .../fourslash/javaScriptClass3.baseline.jsonc | 30 + .../jsDocAliasQuickInfo.baseline.jsonc | 61 + ...sDocDontBreakWithNamespaces.baseline.jsonc | 94 + .../jsDocFunctionSignatures5.baseline.jsonc | 54 + .../jsDocFunctionSignatures6.baseline.jsonc | 164 ++ .../fourslash/jsDocSee1.baseline.jsonc | 73 + .../fourslash/jsDocSee2.baseline.jsonc | 99 + .../fourslash/jsDocSee3.baseline.jsonc | 10 + .../fourslash/jsDocSee4.baseline.jsonc | 52 + .../fourslash/jsDocSee_rename1.baseline.jsonc | 32 + .../jsDocSignature_43394.baseline.jsonc | 25 + .../jsDocTypeTagQuickInfo1.baseline.jsonc | 342 +++ .../jsDocTypeTagQuickInfo2.baseline.jsonc | 316 +++ .../jsDocTypedefQuickInfo1.baseline.jsonc | 78 + .../jsdocCallbackTagRename01.baseline.jsonc | 8 + .../fourslash/jsdocLink1.baseline.jsonc | 48 + .../fourslash/jsdocLink4.baseline.jsonc | 92 + .../fourslash/jsdocLink5.baseline.jsonc | 37 + .../jsdocOnInheritedMembers1.baseline.jsonc | 41 + .../jsdocOnInheritedMembers2.baseline.jsonc | 41 + .../fourslash/jsdocReturnsTag.baseline.jsonc | 46 + ...tisfiesTagFindAllReferences.baseline.jsonc | 10 + .../jsdocSatisfiesTagRename.baseline.jsonc | 10 + ...ThrowsTag_findAllReferences.baseline.jsonc | 8 + .../jsdocThrowsTag_rename.baseline.jsonc | 8 + ...docTypedefTagGoToDefinition.baseline.jsonc | 37 + .../jsdocTypedefTagRename01.baseline.jsonc | 32 + .../jsdocTypedefTagRename02.baseline.jsonc | 18 + .../jsdocTypedefTagRename03.baseline.jsonc | 21 + ...cTypedefTagSemanticMeaning0.baseline.jsonc | 62 + ...cTypedefTagSemanticMeaning1.baseline.jsonc | 40 + .../jsxSpreadReference.baseline.jsonc | 35 + .../processInvalidSyntax1.baseline.jsonc | 21 + ...pWithAmbientDeclarationInJs.baseline.jsonc | 29 + ...ularInstantiationExpression.baseline.jsonc | 30 + .../quickInfoCommentsClass.baseline.jsonc | 685 +++++ ...ickInfoCommentsClassMembers.baseline.jsonc | 2346 +++++++++++++++++ ...kInfoCommentsCommentParsing.baseline.jsonc | 1630 ++++++++++++ ...CommentsFunctionDeclaration.baseline.jsonc | 141 + ...oCommentsFunctionExpression.baseline.jsonc | 310 +++ ...artsArrowFunctionExpression.baseline.jsonc | 200 ++ .../quickInfoDisplayPartsClass.baseline.jsonc | 128 + ...oDisplayPartsClassAccessors.baseline.jsonc | 807 ++++++ ...playPartsClassAutoAccessors.baseline.jsonc | 657 +++++ ...isplayPartsClassConstructor.baseline.jsonc | 665 +++++ ...yPartsClassDefaultAnonymous.baseline.jsonc | 70 + ...splayPartsClassDefaultNamed.baseline.jsonc | 94 + ...DisplayPartsClassIncomplete.baseline.jsonc | 38 + ...InfoDisplayPartsClassMethod.baseline.jsonc | 407 +++ ...foDisplayPartsClassProperty.baseline.jsonc | 407 +++ .../quickInfoDisplayPartsConst.baseline.jsonc | 409 +++ .../quickInfoDisplayPartsEnum1.baseline.jsonc | 742 ++++++ .../quickInfoDisplayPartsEnum2.baseline.jsonc | 742 ++++++ .../quickInfoDisplayPartsEnum3.baseline.jsonc | 742 ++++++ .../quickInfoDisplayPartsEnum4.baseline.jsonc | 58 + ...layPartsExternalModuleAlias.baseline.jsonc | 104 + ...DisplayPartsExternalModules.baseline.jsonc | 416 +++ ...ickInfoDisplayPartsFunction.baseline.jsonc | 370 +++ ...playPartsFunctionExpression.baseline.jsonc | 156 ++ ...playPartsFunctionIncomplete.baseline.jsonc | 72 + ...ckInfoDisplayPartsInterface.baseline.jsonc | 79 + ...isplayPartsInterfaceMembers.baseline.jsonc | 230 ++ ...layPartsInternalModuleAlias.baseline.jsonc | 210 ++ .../quickInfoDisplayPartsLet.baseline.jsonc | 409 +++ ...playPartsLiteralLikeNames01.baseline.jsonc | 257 ++ ...foDisplayPartsLocalFunction.baseline.jsonc | 421 +++ ...uickInfoDisplayPartsModules.baseline.jsonc | 416 +++ ...kInfoDisplayPartsParameters.baseline.jsonc | 229 ++ ...ckInfoDisplayPartsTypeAlias.baseline.jsonc | 152 ++ ...ayPartsTypeParameterInClass.baseline.jsonc | 1008 +++++++ ...artsTypeParameterInFunction.baseline.jsonc | 300 +++ ...erInFunctionLikeInTypeAlias.baseline.jsonc | 78 + ...rtsTypeParameterInInterface.baseline.jsonc | 1582 +++++++++++ ...rtsTypeParameterInTypeAlias.baseline.jsonc | 150 ++ .../quickInfoDisplayPartsUsing.baseline.jsonc | 56 + .../quickInfoDisplayPartsVar.baseline.jsonc | 355 +++ ...ayPartsVarWithStringTypes01.baseline.jsonc | 79 + ...umentsPropertyNameInJsMode1.baseline.jsonc | 61 + ...umentsPropertyNameInJsMode2.baseline.jsonc | 57 + ...quickInfoForConstAssertions.baseline.jsonc | 104 + .../quickInfoForJSDocCodefence.baseline.jsonc | 81 + ...quickInfoForJSDocUnknownTag.baseline.jsonc | 199 ++ ...ckInfoForJSDocWithHttpLinks.baseline.jsonc | 146 + ...SDocWithUnresolvedHttpLinks.baseline.jsonc | 59 + ...rObjectBindingElementName03.baseline.jsonc | 38 + ...rObjectBindingElementName04.baseline.jsonc | 68 + ...rObjectBindingElementName05.baseline.jsonc | 41 + ...rObjectBindingElementName06.baseline.jsonc | 46 + .../quickInfoImportMeta.baseline.jsonc | 47 + .../quickInfoInheritDoc.baseline.jsonc | 149 ++ .../quickInfoInheritDoc2.baseline.jsonc | 45 + .../quickInfoInheritDoc3.baseline.jsonc | 46 + .../quickInfoInheritDoc4.baseline.jsonc | 40 + .../quickInfoInheritDoc5.baseline.jsonc | 40 + .../quickInfoInheritDoc6.baseline.jsonc | 38 + ...quickInfoJSDocAtBeforeSpace.baseline.jsonc | 99 + .../quickInfoJSDocTags.baseline.jsonc | 396 +++ .../fourslash/quickInfoJsDoc.baseline.jsonc | 363 +++ .../quickInfoJsDocAlias.baseline.jsonc | 22 + .../quickInfoJsDocGetterSetter.baseline.jsonc | 291 ++ .../quickInfoJsDocInheritage.baseline.jsonc | 684 +++++ .../quickInfoJsDocTags1.baseline.jsonc | 41 + .../quickInfoJsDocTags10.baseline.jsonc | 41 + .../quickInfoJsDocTags11.baseline.jsonc | 45 + .../quickInfoJsDocTags12.baseline.jsonc | 45 + .../quickInfoJsDocTags13.baseline.jsonc | 100 + .../quickInfoJsDocTags14.baseline.jsonc | 46 + .../quickInfoJsDocTags15.baseline.jsonc | 67 + .../quickInfoJsDocTags16.baseline.jsonc | 68 + .../quickInfoJsDocTags3.baseline.jsonc | 45 + .../quickInfoJsDocTags4.baseline.jsonc | 48 + .../quickInfoJsDocTags5.baseline.jsonc | 48 + .../quickInfoJsDocTags6.baseline.jsonc | 51 + .../quickInfoJsDocTags7.baseline.jsonc | 39 + .../quickInfoJsDocTags8.baseline.jsonc | 39 + .../quickInfoJsDocTags9.baseline.jsonc | 40 + .../quickInfoJsDocTagsCallback.baseline.jsonc | 55 + ...JsDocTagsFunctionOverload01.baseline.jsonc | 64 + ...JsDocTagsFunctionOverload03.baseline.jsonc | 61 + ...JsDocTagsFunctionOverload05.baseline.jsonc | 60 + .../quickInfoJsDocTagsTypedef.baseline.jsonc | 59 + ...ickInfoJsDocTextFormatting1.baseline.jsonc | 205 ++ .../quickInfoJsDocThisTag.baseline.jsonc | 34 + .../fourslash/quickInfoLink10.baseline.jsonc | 32 + .../fourslash/quickInfoLink11.baseline.jsonc | 40 + .../fourslash/quickInfoLink5.baseline.jsonc | 33 + .../fourslash/quickInfoLink6.baseline.jsonc | 33 + .../fourslash/quickInfoLink7.baseline.jsonc | 32 + .../fourslash/quickInfoLink8.baseline.jsonc | 33 + .../fourslash/quickInfoLink9.baseline.jsonc | 26 + ...tedExportEqualExportDefault.baseline.jsonc | 48 + ...singCatchCallIndexSignature.baseline.jsonc | 32 + ...mplateLiteralTypeSignatures.baseline.jsonc | 60 + ...uickInfoOnJsxNamespacedName.baseline.jsonc | 21 + ...ckInfoOnParameterProperties.baseline.jsonc | 77 + .../fourslash/quickInfoOnThis5.baseline.jsonc | 160 ++ ...ithIdenticalJSDocComments01.baseline.jsonc | 53 + ...AssignedFunctionExpressions.baseline.jsonc | 38 + .../quickInfoSatisfiesTag.baseline.jsonc | 32 + .../quickInfoTypedefTag.baseline.jsonc | 98 + .../quickInfoUniqueSymbolJsDoc.baseline.jsonc | 31 + .../fourslash/reallyLargeFile.baseline.jsonc | 8 + ...arameterPropertyDeclaration.baseline.jsonc | 58 + .../fourslash/referenceToClass.baseline.jsonc | 146 + .../referenceToEmptyObject.baseline.jsonc | 4 + .../fourslash/references01.baseline.jsonc | 12 + .../referencesBloomFilters.baseline.jsonc | 19 + .../referencesBloomFilters2.baseline.jsonc | 19 + .../referencesBloomFilters3.baseline.jsonc | 35 + .../referencesForAmbients.baseline.jsonc | 238 ++ .../referencesForClassLocal.baseline.jsonc | 77 + .../referencesForClassMembers.baseline.jsonc | 110 + ...mbersExtendingAbstractClass.baseline.jsonc | 110 + ...embersExtendingGenericClass.baseline.jsonc | 110 + ...referencesForClassParameter.baseline.jsonc | 82 + ...ypedObjectLiteralProperties.baseline.jsonc | 27 + ...xtuallyTypedUnionProperties.baseline.jsonc | 393 +++ ...tuallyTypedUnionProperties2.baseline.jsonc | 34 + ...encesForDeclarationKeywords.baseline.jsonc | 255 ++ .../referencesForEnums.baseline.jsonc | 149 ++ ...rencesForExpressionKeywords.baseline.jsonc | 140 + ...encesForExternalModuleNames.baseline.jsonc | 44 + ...erencesForFunctionOverloads.baseline.jsonc | 51 + ...erencesForFunctionParameter.baseline.jsonc | 38 + .../referencesForGlobals.baseline.jsonc | 128 + .../referencesForGlobals2.baseline.jsonc | 36 + .../referencesForGlobals3.baseline.jsonc | 36 + .../referencesForGlobals4.baseline.jsonc | 36 + .../referencesForGlobals5.baseline.jsonc | 42 + ...sForGlobalsInExternalModule.baseline.jsonc | 182 ++ ...erencesForIllegalAssignment.baseline.jsonc | 26 + .../referencesForImports.baseline.jsonc | 62 + .../referencesForIndexProperty.baseline.jsonc | 56 + ...referencesForIndexProperty2.baseline.jsonc | 5 + ...referencesForIndexProperty3.baseline.jsonc | 44 + ...encesForInheritedProperties.baseline.jsonc | 104 + ...ncesForInheritedProperties2.baseline.jsonc | 26 + ...ncesForInheritedProperties3.baseline.jsonc | 56 + ...ncesForInheritedProperties4.baseline.jsonc | 56 + ...ncesForInheritedProperties5.baseline.jsonc | 34 + ...ncesForInheritedProperties6.baseline.jsonc | 12 + ...ncesForInheritedProperties7.baseline.jsonc | 132 + ...ncesForInheritedProperties8.baseline.jsonc | 30 + ...ncesForInheritedProperties9.baseline.jsonc | 43 + .../referencesForLabel.baseline.jsonc | 80 + .../referencesForLabel2.baseline.jsonc | 8 + .../referencesForLabel3.baseline.jsonc | 6 + .../referencesForLabel4.baseline.jsonc | 32 + .../referencesForLabel5.baseline.jsonc | 118 + .../referencesForLabel6.baseline.jsonc | 40 + ...rencesForMergedDeclarations.baseline.jsonc | 154 ++ ...encesForMergedDeclarations2.baseline.jsonc | 56 + ...encesForMergedDeclarations3.baseline.jsonc | 44 + ...encesForMergedDeclarations4.baseline.jsonc | 259 ++ ...encesForMergedDeclarations5.baseline.jsonc | 44 + ...encesForMergedDeclarations6.baseline.jsonc | 41 + ...encesForMergedDeclarations7.baseline.jsonc | 58 + ...encesForMergedDeclarations8.baseline.jsonc | 44 + .../referencesForModifiers.baseline.jsonc | 148 ++ .../referencesForNoContext.baseline.jsonc | 58 + ...NumericLiteralPropertyNames.baseline.jsonc | 11 + ...sForObjectLiteralProperties.baseline.jsonc | 44 + .../referencesForOverrides.baseline.jsonc | 175 ++ ...sForPropertiesOfGenericType.baseline.jsonc | 44 + .../referencesForStatic.baseline.jsonc | 291 ++ ...ticsAndMembersWithSameNames.baseline.jsonc | 250 ++ ...rStringLiteralPropertyNames.baseline.jsonc | 12 + ...StringLiteralPropertyNames2.baseline.jsonc | 35 + ...StringLiteralPropertyNames3.baseline.jsonc | 66 + ...StringLiteralPropertyNames4.baseline.jsonc | 16 + ...StringLiteralPropertyNames5.baseline.jsonc | 16 + ...StringLiteralPropertyNames6.baseline.jsonc | 16 + ...StringLiteralPropertyNames7.baseline.jsonc | 16 + .../referencesForTypeKeywords.baseline.jsonc | 78 + ...eferencesForUnionProperties.baseline.jsonc | 72 + ...ferencesInConfiguredProject.baseline.jsonc | 11 + ...ptyFileWithMultipleProjects.baseline.jsonc | 13 + ...alValueWithMultipleProjects.baseline.jsonc | 13 + ...onPropertyNameStringLiteral.baseline.jsonc | 4 + ...erencesToStringLiteralValue.baseline.jsonc | 4 + .../remoteGetReferences.baseline.jsonc | 1941 ++++++++++++++ .../fourslash/rename01.baseline.jsonc | 8 + ...enameAcrossMultipleProjects.baseline.jsonc | 34 + .../fourslash/renameAlias.baseline.jsonc | 16 + .../fourslash/renameAlias2.baseline.jsonc | 16 + .../fourslash/renameAlias3.baseline.jsonc | 16 + .../renameAliasExternalModule.baseline.jsonc | 14 + .../renameAliasExternalModule2.baseline.jsonc | 32 + .../renameAliasExternalModule3.baseline.jsonc | 14 + ...gElementInitializerExternal.baseline.jsonc | 80 + ...gElementInitializerProperty.baseline.jsonc | 61 + .../renameCommentsAndStrings1.baseline.jsonc | 8 + .../renameCommentsAndStrings2.baseline.jsonc | 8 + .../renameCommentsAndStrings3.baseline.jsonc | 8 + .../renameCommentsAndStrings4.baseline.jsonc | 8 + ...ContextuallyTypedProperties.baseline.jsonc | 395 +++ ...ontextuallyTypedProperties2.baseline.jsonc | 394 +++ .../renameDeclarationKeywords.baseline.jsonc | 212 ++ .../renameDefaultLibDontWork.baseline.jsonc | 5 + ...nameDestructuringAssignment.baseline.jsonc | 22 + ...ignmentNestedInArrayLiteral.baseline.jsonc | 44 + ...ingAssignmentNestedInForOf2.baseline.jsonc | 56 + ...eDestructuringClassProperty.baseline.jsonc | 56 + ...structuringDeclarationInFor.baseline.jsonc | 44 + ...ructuringDeclarationInForOf.baseline.jsonc | 44 + ...tructuringFunctionParameter.baseline.jsonc | 26 + ...cturingNestedBindingElement.baseline.jsonc | 44 + .../renameExportCrash.baseline.jsonc | 6 + .../renameExportSpecifier.baseline.jsonc | 5 + .../renameExportSpecifier2.baseline.jsonc | 5 + .../renameForStringLiteral.baseline.jsonc | 9 + .../renameFunctionParameter1.baseline.jsonc | 11 + .../renameFunctionParameter2.baseline.jsonc | 9 + .../renameImportAndExport.baseline.jsonc | 14 + ...eImportAndExportInDiffFiles.baseline.jsonc | 70 + .../renameImportAndShorthand.baseline.jsonc | 14 + ...ImportNamespaceAndShorthand.baseline.jsonc | 14 + .../renameImportOfExportEquals.baseline.jsonc | 194 ++ .../renameImportRequire.baseline.jsonc | 58 + ...ImportSpecifierPropertyName.baseline.jsonc | 4 + .../renameInConfiguredProject.baseline.jsonc | 12 + .../renameInheritedProperties1.baseline.jsonc | 22 + .../renameInheritedProperties2.baseline.jsonc | 22 + .../renameInheritedProperties3.baseline.jsonc | 22 + .../renameInheritedProperties4.baseline.jsonc | 22 + .../renameInheritedProperties5.baseline.jsonc | 23 + .../renameInheritedProperties6.baseline.jsonc | 23 + .../renameInheritedProperties7.baseline.jsonc | 25 + .../renameInheritedProperties8.baseline.jsonc | 42 + .../renameJSDocNamepath.baseline.jsonc | 8 + .../renameJsDocImportTag.baseline.jsonc | 11 + .../renameJsDocTypeLiteral.baseline.jsonc | 9 + .../renameJsExports01.baseline.jsonc | 27 + .../renameJsExports02.baseline.jsonc | 12 + .../renameJsExports03.baseline.jsonc | 36 + ...OverloadedFunctionParameter.baseline.jsonc | 10 + .../renameJsPropertyAssignment.baseline.jsonc | 18 + ...renameJsPropertyAssignment2.baseline.jsonc | 18 + ...renameJsPropertyAssignment3.baseline.jsonc | 18 + ...renameJsPropertyAssignment4.baseline.jsonc | 18 + ...renameJsPrototypeProperty01.baseline.jsonc | 20 + ...renameJsPrototypeProperty02.baseline.jsonc | 20 + .../renameJsThisProperty01.baseline.jsonc | 20 + .../renameJsThisProperty03.baseline.jsonc | 24 + .../renameJsThisProperty05.baseline.jsonc | 23 + .../renameJsThisProperty06.baseline.jsonc | 23 + .../fourslash/renameLabel1.baseline.jsonc | 6 + .../fourslash/renameLabel2.baseline.jsonc | 6 + .../fourslash/renameLabel3.baseline.jsonc | 9 + .../fourslash/renameLabel4.baseline.jsonc | 9 + .../fourslash/renameLabel5.baseline.jsonc | 9 + .../fourslash/renameLabel6.baseline.jsonc | 9 + ...cationsForClassExpression01.baseline.jsonc | 41 + ...ionsForFunctionExpression01.baseline.jsonc | 26 + ...ionsForFunctionExpression02.baseline.jsonc | 36 + .../fourslash/renameModifiers.baseline.jsonc | 132 + ...ameModuleExportsProperties1.baseline.jsonc | 14 + ...ameModuleExportsProperties2.baseline.jsonc | 14 + ...ameModuleExportsProperties3.baseline.jsonc | 14 + .../renameNamedImport.baseline.jsonc | 5 + .../renameNamespaceImport.baseline.jsonc | 5 + .../renameNumericalIndex.baseline.jsonc | 14 + ...eNumericalIndexSingleQuoted.baseline.jsonc | 14 + ...indingElementPropertyName01.baseline.jsonc | 24 + .../renameObjectSpread.baseline.jsonc | 35 + ...enameObjectSpreadAssignment.baseline.jsonc | 44 + ...rameterPropertyDeclaration1.baseline.jsonc | 35 + ...rameterPropertyDeclaration2.baseline.jsonc | 35 + ...rameterPropertyDeclaration3.baseline.jsonc | 35 + ...rameterPropertyDeclaration4.baseline.jsonc | 20 + ...rameterPropertyDeclaration5.baseline.jsonc | 20 + .../renamePrivateAccessor.baseline.jsonc | 36 + .../renamePrivateFields1.baseline.jsonc | 22 + .../renamePrivateMethod.baseline.jsonc | 22 + ...essExpressionHeritageClause.baseline.jsonc | 35 + .../renameReExportDefault.baseline.jsonc | 53 + ...renameReferenceFromLinkTag1.baseline.jsonc | 7 + ...renameReferenceFromLinkTag2.baseline.jsonc | 10 + ...renameReferenceFromLinkTag3.baseline.jsonc | 14 + ...renameReferenceFromLinkTag4.baseline.jsonc | 8 + ...renameReferenceFromLinkTag5.baseline.jsonc | 7 + .../fourslash/renameRest.baseline.jsonc | 23 + .../renameRestBindingElement.baseline.jsonc | 8 + .../renameStringLiteralOk.baseline.jsonc | 32 + .../renameStringLiteralOk1.baseline.jsonc | 20 + .../renameStringLiteralTypes1.baseline.jsonc | 20 + .../renameStringLiteralTypes2.baseline.jsonc | 116 + .../renameStringLiteralTypes3.baseline.jsonc | 32 + .../renameStringLiteralTypes4.baseline.jsonc | 8 + .../renameStringLiteralTypes5.baseline.jsonc | 8 + .../renameStringPropertyNames.baseline.jsonc | 68 + .../renameStringPropertyNames2.baseline.jsonc | 8 + ...eLiteralsComputedProperties.baseline.jsonc | 231 ++ ...ateLiteralsDefinePropertyJs.baseline.jsonc | 73 + .../renameUMDModuleAlias1.baseline.jsonc | 21 + ...signatureHelpAfterParameter.baseline.jsonc | 428 +++ .../signatureHelpCommentsClass.baseline.jsonc | 215 ++ ...ureHelpCommentsClassMembers.baseline.jsonc | 624 +++++ ...eHelpCommentsCommentParsing.baseline.jsonc | 1658 ++++++++++++ ...CommentsFunctionDeclaration.baseline.jsonc | 139 + ...pCommentsFunctionExpression.baseline.jsonc | 123 + ...structorCallParamProperties.baseline.jsonc | 42 + ...andedRestTuplesLocalLabels1.baseline.jsonc | 1339 ++++++++++ .../signatureHelpIteratorNext.baseline.jsonc | 287 ++ ...gnatureHelpJSDocCallbackTag.baseline.jsonc | 131 + .../signatureHelpJSDocTags.baseline.jsonc | 166 ++ ...HelpJSMissingPropertyAccess.baseline.jsonc | 21 + .../signatureHelpRestArgs1.baseline.jsonc | 188 ++ .../signatureHelpRestArgs2.baseline.jsonc | 28 + .../signatureHelpRestArgs3.baseline.jsonc | 79 + .../signatureHelpSkippedArgs1.baseline.jsonc | 181 ++ ...signatureHelpTypeArguments2.baseline.jsonc | 168 ++ .../signatureHelpWithUnknown.baseline.jsonc | 34 + .../signatureHelp_unionType.baseline.jsonc | 107 + .../trailingCommaSignatureHelp.baseline.jsonc | 85 + .../tsxFindAllReferences1.baseline.jsonc | 44 + .../tsxFindAllReferences10.baseline.jsonc | 12 + .../tsxFindAllReferences11.baseline.jsonc | 8 + .../tsxFindAllReferences2.baseline.jsonc | 12 + .../tsxFindAllReferences3.baseline.jsonc | 13 + .../tsxFindAllReferences4.baseline.jsonc | 81 + .../tsxFindAllReferences5.baseline.jsonc | 185 ++ .../tsxFindAllReferences6.baseline.jsonc | 8 + .../tsxFindAllReferences7.baseline.jsonc | 12 + .../tsxFindAllReferences8.baseline.jsonc | 311 +++ .../tsxFindAllReferences9.baseline.jsonc | 12 + ...ReferencesUnionElementType1.baseline.jsonc | 47 + ...ReferencesUnionElementType2.baseline.jsonc | 47 + .../tsxGoToDefinitionClasses.baseline.jsonc | 53 + ...tsxGoToDefinitionIntrinsics.baseline.jsonc | 53 + ...efinitionStatelessFunction1.baseline.jsonc | 98 + ...efinitionStatelessFunction2.baseline.jsonc | 115 + ...DefinitionUnionElementType1.baseline.jsonc | 15 + ...DefinitionUnionElementType2.baseline.jsonc | 9 + .../fourslash/tsxRename1.baseline.jsonc | 32 + .../fourslash/tsxRename2.baseline.jsonc | 24 + .../fourslash/tsxRename3.baseline.jsonc | 25 + .../fourslash/tsxRename5.baseline.jsonc | 21 + .../fourslash/tsxRename6.baseline.jsonc | 98 + .../fourslash/tsxRename7.baseline.jsonc | 39 + .../fourslash/tsxRename9.baseline.jsonc | 274 ++ 774 files changed, 58980 insertions(+), 107 deletions(-) create mode 100644 internal/fourslash/tests/gen/getRenameInfoTests1_test.go create mode 100644 internal/fourslash/tests/gen/renameForAliasingExport01_test.go create mode 100644 internal/fourslash/tests/gen/renameForAliasingExport02_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport04_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport05_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport06_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport07_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport08_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport09_test.go create mode 100644 internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go create mode 100644 internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go create mode 100644 internal/fourslash/tests/gen/renameNameOnEnumMember_test.go create mode 100644 internal/fourslash/tests/gen/renameNoDefaultLib_test.go create mode 100644 internal/fourslash/tests/gen/renamePrivateFields_test.go create mode 100644 internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go create mode 100644 testdata/baselines/reference/fourslash/ambientShorthandFindAllRefs.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/autoImportProvider_referencesCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/completionDetailsOfContextSensitiveParameterNoCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/constructorFindAllReferences1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/constructorFindAllReferences2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/constructorFindAllReferences3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/constructorFindAllReferences4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/declarationMapGoToDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/declarationMapsOutOfDateMapping.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/definition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/definition01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/definitionNameOnEnumMember.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/deprecatedInheritedJSDocOverload.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/doubleUnderscoreRenames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/explainFilesNodeNextWithTypesReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesImportMeta.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionNew.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesJsDocTypeLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesLinkTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesLinkTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesLinkTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesNonExistentExportBinding.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesOfConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesOfConstructor_badOverload.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesOfJsonModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllReferencesUndefined.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsBadImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsCatchClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsClassExpression0.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsClassExpression1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsClassExpression2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsClassStaticBlocks.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsConstructorFunctions.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsDeclareClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsDefaultImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsDestructureGeneric.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsDestructureGetter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsEnumAsNamespace.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsEnumMember.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsExportConstEqualToClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsExportDefaultClassConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsExportNotAtTopLevel.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForComputedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForComputedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport09.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_anonymous.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_reExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultKeyword.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForFunctionExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForImportCall.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForImportCallType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForObjectSpread.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForRest.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForStringLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForStringLiteralTypes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForUMDModuleAlias1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsForVariableInImplementsClause01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsGlobalThisKeywordInModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsImportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsImportType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInClassExpression.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsIndexedAccessTypes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInheritedProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInheritedProperties4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInheritedProperties5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInsideTemplates1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInsideTemplates2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsInsideWithBlock.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsIsDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_class.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_function.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsDocTypeDef.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsMappedType_nonHomomorphic.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsNoImportClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsNonModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsOfConstructor_withModifier.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsOnDecorators.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsOnDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsOnDefinition2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsOnImportAliases.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsOnPrivateParameterProperty1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsPrimitiveJsDoc.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsPrivateNameAccessors.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsPrivateNameMethods.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsPrivateNameProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsReExport_broken2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsRootSymbols.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsThisKeyword.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsThisKeywordMultipleFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsTypeParameterInMergedInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsTypedef.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsTypedef_importType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsTypeofImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsUnionProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefsWriteAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefs_importType_js4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefs_importType_meaningAtLocation.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefs_importType_named.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findAllRefs_jsEnum.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findReferencesAcrossMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findReferencesDefinitionDisplayParts.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findReferencesJSXTagName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findReferencesJSXTagName2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/findReferencesSeeTagInTs.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfEnum.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfVariable.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionAcrossMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionAmbiants.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionApparentTypeProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionAwait1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionAwait2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionAwait3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionAwait4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionBuiltInTypes.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionBuiltInValues.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionCSSPatternAmbientModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionClassConstructors.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionClassStaticBlocks.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionConstructorOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDecorator.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDecoratorOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDifferentFile.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDifferentFileIndirectly.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDynamicImport1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDynamicImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionDynamicImport4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExpandoClass1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExpandoClass2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExpandoElementAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloadsInClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionFunctionType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImplicitConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImport1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImport2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImportedNames9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionImports.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionInMemberDeclaration.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionInTypeArgument.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionIndexSignature.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionIndexSignature2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionInstanceof1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionInstanceof2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionInterfaceAfterImplement.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsModuleExports.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsModuleName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsModuleNameAtImportName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsxCall.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionJsxNotSet.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionLabels.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionMember.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionMetaProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionMethodOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionMultipleDefinitions.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionObjectSpread.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember12.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember13.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember14.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember15.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember16.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionPartialImplementation.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionPrimitives.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionPrivateName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionRest.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionReturn1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionReturn2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionReturn3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionReturn4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionReturn5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionReturn6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionReturn7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSameFile.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSatisfiesExpression1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionScriptImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionScriptImportServer.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShadowVariable.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShadowVariableInsideModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty06.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSignatureAlias_require.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSimple.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSourceUnit.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSwitchCase1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSwitchCase2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSwitchCase3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSwitchCase4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSwitchCase5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSwitchCase6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionSwitchCase7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionTaggedTemplateOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionTypeOnlyImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionTypePredicate.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionTypeReferenceDirective.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionTypeofThis.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionUndefinedSymbols.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionYield1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionYield2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionYield3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinitionYield4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition_filteringGenericMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition_filteringMappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition_mappedType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition_super.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToDefinition_untypedModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/goToModuleAliasDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionConstructorFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionLinkTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionLinkTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionLinkTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionLinkTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionLinkTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionLinkTag6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionSatisfiesTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/gotoDefinitionThrowsTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/highlightsForExportFromUnfoundModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/importTypeNodeGoToDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/indirectJsRequireRename.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/isDefinitionAcrossGlobalProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/isDefinitionAcrossModuleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/isDefinitionInterfaceImplementation.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/isDefinitionOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/isDefinitionShorthandProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/isDefinitionSingleImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/isDefinitionSingleReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/javaScriptClass2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/javaScriptClass3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocDontBreakWithNamespaces.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocFunctionSignatures5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocFunctionSignatures6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocSee1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocSee2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocSee3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocSee4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocSee_rename1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocSignature_43394.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocCallbackTagRename01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocReturnsTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocSatisfiesTagFindAllReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocSatisfiesTagRename.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocThrowsTag_findAllReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocThrowsTag_rename.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocTypedefTagGoToDefinition.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocTypedefTagRename01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocTypedefTagRename02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocTypedefTagRename03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning0.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/processInvalidSyntax1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags13.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTextFormatting1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/reallyLargeFile.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referenceInParameterPropertyDeclaration.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referenceToClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referenceToEmptyObject.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/references01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesBloomFilters.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesBloomFilters2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesBloomFilters3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForAmbients.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForClassLocal.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForClassMembers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForClassMembersExtendingAbstractClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForClassMembersExtendingGenericClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForClassParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForDeclarationKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForEnums.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForExpressionKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForExternalModuleNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForFunctionOverloads.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForGlobals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForGlobals2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForGlobals3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForGlobals4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForGlobals5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForGlobalsInExternalModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForIllegalAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForImports.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForIndexProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForIndexProperty2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForIndexProperty3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForInheritedProperties9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForLabel.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForLabel2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForLabel3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForLabel4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForLabel5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForLabel6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForMergedDeclarations8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForNoContext.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForNumericLiteralPropertyNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForObjectLiteralProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForOverrides.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForPropertiesOfGenericType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStatic.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStaticsAndMembersWithSameNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForTypeKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesForUnionProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesInConfiguredProject.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesInEmptyFileWithMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesToNonPropertyNameStringLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/referencesToStringLiteralValue.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/remoteGetReferences.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/rename01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameImportOfExportEquals.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsExports02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsExports03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameRest.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences10.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences11.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences4.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences8.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferences9.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxGoToDefinitionClasses.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxGoToDefinitionIntrinsics.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc create mode 100644 testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc diff --git a/internal/fourslash/_scripts/convertFourslash.mts b/internal/fourslash/_scripts/convertFourslash.mts index bc1d925639..7b54259338 100644 --- a/internal/fourslash/_scripts/convertFourslash.mts +++ b/internal/fourslash/_scripts/convertFourslash.mts @@ -186,6 +186,8 @@ function parseFourslashStatement(statement: ts.Statement): Cmd[] | undefined { case "baselineRenameAtRangesWithText": // `verify.baselineRename...(...)` return parseBaselineRenameArgs(func.text, callExpression.arguments); + case "renameInfoSucceeded": + return [{ kind: "renameInfoSucceeded" }]; } } // `goTo....` @@ -1211,6 +1213,10 @@ interface VerifyQuickInfoCmd { docs?: string; } +interface VerifyRenameInfoSucceededCmd { + kind: "renameInfoSucceeded"; +} + type Cmd = | VerifyCompletionsCmd | VerifyBaselineFindAllReferencesCmd @@ -1220,7 +1226,8 @@ type Cmd = | GoToCmd | EditCmd | VerifyQuickInfoCmd - | VerifyBaselineRenameCmd; + | VerifyBaselineRenameCmd + | VerifyRenameInfoSucceededCmd; function generateVerifyCompletions({ marker, args, isNewIdentifierLocation }: VerifyCompletionsCmd): string { let expectedList: string; @@ -1315,6 +1322,8 @@ function generateCmd(cmd: Cmd): string { case "verifyBaselineRename": case "verifyBaselineRenameAtRangesWithText": return generateBaselineRename(cmd); + case "renameInfoSucceeded": + return `f.VerifyRenameSucceeded(t)`; default: let neverCommand: never = cmd; throw new Error(`Unknown command kind: ${neverCommand as Cmd["kind"]}`); diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index fc352bebd1..bcdf73d1f5 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -24,7 +24,6 @@ type baselineFromTest struct { } func (b *baselineFromTest) addResult(command, actual string) { - // state.baseline(command, actual) in strada if b.content.Len() != 0 { b.content.WriteString("\n\n\n\n") } diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index fe97847414..e3e2d7d72e 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -34,8 +34,9 @@ type FourslashTest struct { id int32 vfs vfs.FS - testData *TestData // !!! consolidate test files from test data and script info - baseline *baselineFromTest + testData *TestData // !!! consolidate test files from test data and script info + baseline *baselineFromTest + rangesByText *collections.MultiMap[string, *RangeMarker] scriptInfos map[string]*scriptInfo converters *ls.Converters @@ -44,8 +45,6 @@ type FourslashTest struct { lastKnownMarkerName *string activeFilename string selectionEnd *lsproto.Position - - rangesByText *collections.MultiMap[string, *RangeMarker] } type scriptInfo struct { @@ -127,7 +126,7 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten // Just skip this for now. t.Skip("bundled files are not embedded") } - fileName := getFileNameFromTest(t) + fileName := getBaseFileNameFromTest(t) + tspath.ExtensionTs testfs := make(map[string]string) scriptInfos := make(map[string]*scriptInfo) testData := ParseTestData(t, content, fileName) @@ -198,14 +197,15 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten t.Cleanup(func() { inputWriter.Close() + f.verifyBaselines(t) }) return f } -func getFileNameFromTest(t *testing.T) string { +func getBaseFileNameFromTest(t *testing.T) string { name := strings.TrimPrefix(t.Name(), "Test") char, size := utf8.DecodeRuneInString(name) - return string(unicode.ToLower(char)) + name[size:] + tspath.ExtensionTs + return string(unicode.ToLower(char)) + name[size:] } func (f *FourslashTest) nextID() int32 { @@ -767,21 +767,6 @@ func (f *FourslashTest) VerifyBaselineFindAllReferences( ) { referenceLocations := f.lookupMarkersOrGetRanges(t, markers) - if f.baseline != nil { - t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) - } else { - f.baseline = &baselineFromTest{ - content: &strings.Builder{}, - baselineName: "findAllRef/" + strings.TrimPrefix(t.Name(), "Test"), - ext: ".baseline.jsonc", - } - } - - // empty baseline after test completes - defer func() { - f.baseline = nil - }() - for _, markerOrRange := range referenceLocations { // worker in `baselineEachMarkerOrRange` f.GoToMarkerOrRange(t, markerOrRange) @@ -809,14 +794,12 @@ func (f *FourslashTest) VerifyBaselineFindAllReferences( } } - f.baseline.addResult("findAllReferences", f.getBaselineForLocationsWithFileContents(*result.Locations, baselineFourslashLocationsOptions{ + f.addToBaseline(t, "findAllReferences", f.getBaselineForLocationsWithFileContents(*result.Locations, baselineFourslashLocationsOptions{ marker: markerOrRange.GetMarker(), markerName: "/*FIND ALL REFS*/", })) } - - baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) } func (f *FourslashTest) VerifyBaselineGoToDefinition( @@ -825,21 +808,6 @@ func (f *FourslashTest) VerifyBaselineGoToDefinition( ) { referenceLocations := f.lookupMarkersOrGetRanges(t, markers) - if f.baseline != nil { - t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) - } else { - f.baseline = &baselineFromTest{ - content: &strings.Builder{}, - baselineName: "goToDef/" + strings.TrimPrefix(t.Name(), "Test"), - ext: ".baseline.jsonc", - } - } - - // empty baseline after test completes - defer func() { - f.baseline = nil - }() - for _, markerOrRange := range referenceLocations { // worker in `baselineEachMarkerOrRange` f.GoToMarkerOrRange(t, markerOrRange) @@ -876,31 +844,14 @@ func (f *FourslashTest) VerifyBaselineGoToDefinition( t.Fatalf("Unexpected definition response type at marker '%s': %T", *f.lastKnownMarkerName, result.DefinitionLinks) } - f.baseline.addResult("goToDefinition", f.getBaselineForLocationsWithFileContents(resultAsLocations, baselineFourslashLocationsOptions{ + f.addToBaseline(t, "goToDefinition", f.getBaselineForLocationsWithFileContents(resultAsLocations, baselineFourslashLocationsOptions{ marker: markerOrRange.GetMarker(), markerName: "/*GO TO DEFINITION*/", })) } - - baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) } func (f *FourslashTest) VerifyBaselineHover(t *testing.T) { - if f.baseline != nil { - t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) - } else { - f.baseline = &baselineFromTest{ - content: &strings.Builder{}, - baselineName: "hover/" + strings.TrimPrefix(t.Name(), "Test"), - ext: ".baseline", - } - } - - // empty baseline after test completes - defer func() { - f.baseline = nil - }() - markersAndItems := core.MapFiltered(f.Markers(), func(marker *Marker) (markerAndItem[*lsproto.Hover], bool) { if marker.Name == nil { return markerAndItem[*lsproto.Hover]{}, false @@ -956,13 +907,12 @@ func (f *FourslashTest) VerifyBaselineHover(t *testing.T) { return result } - f.baseline.addResult("QuickInfo", annotateContentWithTooltips(t, f, markersAndItems, "quickinfo", getRange, getTooltipLines)) + f.addToBaseline(t, "QuickInfo", annotateContentWithTooltips(t, f, markersAndItems, "quickinfo", getRange, getTooltipLines)) if jsonStr, err := core.StringifyJson(markersAndItems, "", " "); err == nil { f.baseline.content.WriteString(jsonStr) } else { t.Fatalf("Failed to stringify markers and items for baseline: %v", err) } - baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) } func appendLinesForMarkedStringWithLanguage(result []string, ms *lsproto.MarkedStringWithLanguage) []string { @@ -973,21 +923,6 @@ func appendLinesForMarkedStringWithLanguage(result []string, ms *lsproto.MarkedS } func (f *FourslashTest) VerifyBaselineSignatureHelp(t *testing.T) { - if f.baseline != nil { - t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) - } else { - f.baseline = &baselineFromTest{ - content: &strings.Builder{}, - baselineName: "signatureHelp/" + strings.TrimPrefix(t.Name(), "Test"), - ext: ".baseline", - } - } - - // empty baseline after test completes - defer func() { - f.baseline = nil - }() - markersAndItems := core.MapFiltered(f.Markers(), func(marker *Marker) (markerAndItem[*lsproto.SignatureHelp], bool) { if marker.Name == nil { return markerAndItem[*lsproto.SignatureHelp]{}, false @@ -1087,13 +1022,12 @@ func (f *FourslashTest) VerifyBaselineSignatureHelp(t *testing.T) { return result } - f.baseline.addResult("SignatureHelp", annotateContentWithTooltips(t, f, markersAndItems, "signaturehelp", getRange, getTooltipLines)) + f.addToBaseline(t, "SignatureHelp", annotateContentWithTooltips(t, f, markersAndItems, "signaturehelp", getRange, getTooltipLines)) if jsonStr, err := core.StringifyJson(markersAndItems, "", " "); err == nil { f.baseline.content.WriteString(jsonStr) } else { t.Fatalf("Failed to stringify markers and items for baseline: %v", err) } - baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) } // Collects all named markers if provided, or defaults to anonymous ranges @@ -1536,7 +1470,6 @@ func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames f.baseline.content.WriteString(codeFence(lang, newFileContent) + "\n\n") } } - baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) } // string | *Marker | *RangeMarker @@ -1571,23 +1504,6 @@ func (f *FourslashTest) verifyBaselineRename( t *testing.T, markerOrRanges []MarkerOrRange, ) { - if f.baseline != nil { - t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) - } else { - testName := strings.TrimPrefix(t.Name(), "Test") - _, size := utf8.DecodeRuneInString(testName) - testName = strings.ToLower(testName[:size]) + testName[size:] - f.baseline = &baselineFromTest{ - content: &strings.Builder{}, - baselineName: "rename/" + testName, - ext: ".baseline.jsonc", - } - } - - defer func() { - f.baseline = nil - }() - for _, markerOrRange := range markerOrRanges { f.GoToMarkerOrRange(t, markerOrRange) @@ -1603,10 +1519,10 @@ func (f *FourslashTest) verifyBaselineRename( prefix := f.getCurrentPositionPrefix() resMsg, result, resultOk := sendRequest(t, f, lsproto.TextDocumentRenameInfo, params) if resMsg == nil { - t.Fatalf(prefix+"Nil response received for rename request at pos %v", f.currentCaretPosition) + t.Fatal(prefix + "Nil response received for rename request") } if !resultOk { - t.Fatalf(prefix+"Unexpected rename response type at pos %v: %T", f.currentCaretPosition, resMsg.AsResponse().Result) + t.Fatalf(prefix+"Unexpected rename response type: %T", resMsg.AsResponse().Result) } var changes map[lsproto.DocumentUri][]*lsproto.TextEdit @@ -1619,8 +1535,8 @@ func (f *FourslashTest) verifyBaselineRename( fileToRange.Add(uri, edit.Range) } } - // !!! TODO include options in string? - f.baseline.addResult( + // !!! include options in string + f.addToBaseline(t, "findRenameLocations", f.getBaselineForGroupedLocationsWithFileContents( &fileToRange, @@ -1632,15 +1548,30 @@ func (f *FourslashTest) verifyBaselineRename( ), ) } +} - var baselineContent string - if f.baseline.content.Len() == 0 { - baselineContent = baseline.NoContent - } else { - baselineContent = f.baseline.content.String() +func (f *FourslashTest) VerifyRenameSucceeded(t *testing.T) { + // !!! options + params := &lsproto.RenameParams{ + TextDocument: lsproto.TextDocumentIdentifier{ + Uri: ls.FileNameToDocumentURI(f.activeFilename), + }, + Position: f.currentCaretPosition, + NewName: "?", + } + + prefix := f.getCurrentPositionPrefix() + resMsg, result, resultOk := sendRequest(t, f, lsproto.TextDocumentRenameInfo, params) + if resMsg == nil { + t.Fatal(prefix + "Nil response received for rename request") + } + if !resultOk { + t.Fatalf(prefix+"Unexpected rename response type: %T", resMsg.AsResponse().Result) } - baseline.Run(t, f.baseline.getBaselineFileName(), baselineContent, baseline.Options{}) + if result.WorkspaceEdit == nil || result.WorkspaceEdit.Changes == nil || len(*result.WorkspaceEdit.Changes) == 0 { + t.Fatal(prefix + "Expected rename to be succeed, but got no changes") + } } func (f *FourslashTest) VerifyBaselineRenameAtRangesWithText( @@ -1672,3 +1603,20 @@ func (f *FourslashTest) getRangeText(r *RangeMarker) string { script := f.getScriptInfo(r.FileName()) return script.content[r.Range.Pos():r.Range.End()] } + +func (f *FourslashTest) verifyBaselines(t *testing.T) { + if f.baseline != nil { + baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) // !!! options + } +} + +func (f *FourslashTest) addToBaseline(t *testing.T, command string, actual string) { + if f.baseline == nil { + f.baseline = &baselineFromTest{ + content: &strings.Builder{}, + baselineName: getBaseFileNameFromTest(t), + ext: ".baseline.jsonc", + } + } + f.baseline.addResult(command, actual) +} diff --git a/internal/fourslash/tests/gen/getRenameInfoTests1_test.go b/internal/fourslash/tests/gen/getRenameInfoTests1_test.go new file mode 100644 index 0000000000..6df94b1a4b --- /dev/null +++ b/internal/fourslash/tests/gen/getRenameInfoTests1_test.go @@ -0,0 +1,20 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestGetRenameInfoTests1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class [|/**/C|] { + +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForAliasingExport01_test.go b/internal/fourslash/tests/gen/renameForAliasingExport01_test.go new file mode 100644 index 0000000000..af7bd97bd9 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForAliasingExport01_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForAliasingExport01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +let x = 1; + +export { /**/[|x|] as y };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForAliasingExport02_test.go b/internal/fourslash/tests/gen/renameForAliasingExport02_test.go new file mode 100644 index 0000000000..ce01893df4 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForAliasingExport02_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForAliasingExport02(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +let x = 1; + +export { x as /**/[|y|] };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport04_test.go b/internal/fourslash/tests/gen/renameForDefaultExport04_test.go new file mode 100644 index 0000000000..375d156327 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport04_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport04(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default class /**/[|DefaultExportedClass|] { +} +/* + * Commenting DefaultExportedClass + */ + +var x: DefaultExportedClass; + +var y = new DefaultExportedClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport05_test.go b/internal/fourslash/tests/gen/renameForDefaultExport05_test.go new file mode 100644 index 0000000000..192540915f --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport05_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport05(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default class DefaultExportedClass { +} +/* + * Commenting DefaultExportedClass + */ + +var x: /**/[|DefaultExportedClass|]; + +var y = new DefaultExportedClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport06_test.go b/internal/fourslash/tests/gen/renameForDefaultExport06_test.go new file mode 100644 index 0000000000..f81fa1dce9 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport06_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport06(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default class DefaultExportedClass { +} +/* + * Commenting DefaultExportedClass + */ + +var x: DefaultExportedClass; + +var y = new /**/[|DefaultExportedClass|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport07_test.go b/internal/fourslash/tests/gen/renameForDefaultExport07_test.go new file mode 100644 index 0000000000..4c24dc0780 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport07_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport07(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default function /**/[|DefaultExportedFunction|]() { + return DefaultExportedFunction +} +/** + * Commenting DefaultExportedFunction + */ + +var x: typeof DefaultExportedFunction; + +var y = DefaultExportedFunction();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport08_test.go b/internal/fourslash/tests/gen/renameForDefaultExport08_test.go new file mode 100644 index 0000000000..b67dbd931b --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport08_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport08(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default function DefaultExportedFunction() { + return /**/[|DefaultExportedFunction|] +} +/** + * Commenting DefaultExportedFunction + */ + +var x: typeof DefaultExportedFunction; + +var y = DefaultExportedFunction();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport09_test.go b/internal/fourslash/tests/gen/renameForDefaultExport09_test.go new file mode 100644 index 0000000000..fd2001a3c7 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport09_test.go @@ -0,0 +1,34 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport09(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +function /**/[|f|]() { + return 100; +} + +export default f; + +var x: typeof f; + +var y = f(); + +/** + * Commenting f + */ +namespace f { + var local = 100; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go b/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go new file mode 100644 index 0000000000..3ee7b1ae02 --- /dev/null +++ b/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go @@ -0,0 +1,32 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameFromNodeModulesDep3(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /packages/first/index.d.ts +import { /*ok*/[|Foo|] } from "foo"; +declare type FooBar = Foo[/*ok2*/"[|bar|]"]; +// @Filename: /packages/foo/package.json + { "types": "index.d.ts" } +// @Filename: /packages/foo/index.d.ts +export interface Foo { + /*ok3*/[|bar|]: string; +} +// @link: /packages/foo -> /packages/first/node_modules/foo` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "ok") + f.VerifyRenameSucceeded(t) + f.VerifyRenameSucceeded(t) + f.GoToMarker(t, "ok2") + f.VerifyRenameSucceeded(t) + f.GoToMarker(t, "ok3") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go b/internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go new file mode 100644 index 0000000000..7666be616c --- /dev/null +++ b/internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go @@ -0,0 +1,20 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameInfoForFunctionExpression01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `var x = function /**/[|f|](g: any, h: any) { + f(f, g); +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go b/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go new file mode 100644 index 0000000000..23dd9dadd3 --- /dev/null +++ b/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameNameOnEnumMember(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `enum e { + firstMember, + secondMember, + thirdMember +} +var enumMember = e.[|/**/thirdMember|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameNoDefaultLib_test.go b/internal/fourslash/tests/gen/renameNoDefaultLib_test.go new file mode 100644 index 0000000000..ab51d5f972 --- /dev/null +++ b/internal/fourslash/tests/gen/renameNoDefaultLib_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameNoDefaultLib(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @checkJs: true +// @allowJs: true +// @Filename: /foo.js +// @ts-check +/// +const [|/**/foo|] = 1;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renamePrivateFields_test.go b/internal/fourslash/tests/gen/renamePrivateFields_test.go new file mode 100644 index 0000000000..3104397bdb --- /dev/null +++ b/internal/fourslash/tests/gen/renamePrivateFields_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenamePrivateFields(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `class Foo { + [|/**/#foo|] = 1; + + getFoo() { + return this.#foo; + } +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go b/internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go new file mode 100644 index 0000000000..66f9d11e13 --- /dev/null +++ b/internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go @@ -0,0 +1,24 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameUMDModuleAlias2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: 0.d.ts +export function doThing(): string; +export function doTheOtherThing(): void; +export as namespace /**/[|myLib|]; +// @Filename: 1.ts +/// +myLib.doThing();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t) +} diff --git a/testdata/baselines/reference/fourslash/ambientShorthandFindAllRefs.baseline.jsonc b/testdata/baselines/reference/fourslash/ambientShorthandFindAllRefs.baseline.jsonc new file mode 100644 index 0000000000..188cdbb005 --- /dev/null +++ b/testdata/baselines/reference/fourslash/ambientShorthandFindAllRefs.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /user.ts === + +// import {/*FIND ALL REFS*/[|x|]} from "jquery"; + + + + +// === findAllReferences === +// === /user2.ts === + +// import {/*FIND ALL REFS*/[|x|]} from "jquery"; diff --git a/testdata/baselines/reference/fourslash/autoImportProvider_referencesCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/autoImportProvider_referencesCrash.baseline.jsonc new file mode 100644 index 0000000000..fa07b16bfd --- /dev/null +++ b/testdata/baselines/reference/fourslash/autoImportProvider_referencesCrash.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/index.d.ts === + +// declare class [|A|] { +// } +// //# sourceMappingURL=index.d.ts.map + + +// === /home/src/workspaces/project/b/b.ts === + +// /// +// new A/*FIND ALL REFS*/[|A|](); diff --git a/testdata/baselines/reference/fourslash/completionDetailsOfContextSensitiveParameterNoCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/completionDetailsOfContextSensitiveParameterNoCrash.baseline.jsonc new file mode 100644 index 0000000000..2ffe5f140f --- /dev/null +++ b/testdata/baselines/reference/fourslash/completionDetailsOfContextSensitiveParameterNoCrash.baseline.jsonc @@ -0,0 +1,114 @@ +// === QuickInfo === +=== /completionDetailsOfContextSensitiveParameterNoCrash.ts === +// type __ = never; +// +// interface CurriedFunction1 { +// (): CurriedFunction1; +// (t1: T1): R; +// } +// interface CurriedFunction2 { +// (): CurriedFunction2; +// (t1: T1): CurriedFunction1; +// (t1: __, t2: T2): CurriedFunction1; +// (t1: T1, t2: T2): R; +// } +// +// interface CurriedFunction3 { +// (): CurriedFunction3; +// (t1: T1): CurriedFunction2; +// (t1: __, t2: T2): CurriedFunction2; +// (t1: T1, t2: T2): CurriedFunction1; +// (t1: __, t2: __, t3: T3): CurriedFunction2; +// (t1: T1, t2: __, t3: T3): CurriedFunction1; +// (t1: __, t2: T2, t3: T3): CurriedFunction1; +// (t1: T1, t2: T2, t3: T3): R; +// } +// +// interface CurriedFunction4 { +// (): CurriedFunction4; +// (t1: T1): CurriedFunction3; +// (t1: __, t2: T2): CurriedFunction3; +// (t1: T1, t2: T2): CurriedFunction2; +// (t1: __, t2: __, t3: T3): CurriedFunction3; +// (t1: __, t2: __, t3: T3): CurriedFunction2; +// (t1: __, t2: T2, t3: T3): CurriedFunction2; +// (t1: T1, t2: T2, t3: T3): CurriedFunction1; +// (t1: __, t2: __, t3: __, t4: T4): CurriedFunction3; +// (t1: T1, t2: __, t3: __, t4: T4): CurriedFunction2; +// (t1: __, t2: T2, t3: __, t4: T4): CurriedFunction2; +// (t1: __, t2: __, t3: T3, t4: T4): CurriedFunction2; +// (t1: T1, t2: T2, t3: __, t4: T4): CurriedFunction1; +// (t1: T1, t2: __, t3: T3, t4: T4): CurriedFunction1; +// (t1: __, t2: T2, t3: T3, t4: T4): CurriedFunction1; +// (t1: T1, t2: T2, t3: T3, t4: T4): R; +// } +// +// declare var curry: { +// (func: (t1: T1) => R, arity?: number): CurriedFunction1; +// (func: (t1: T1, t2: T2) => R, arity?: number): CurriedFunction2; +// (func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): CurriedFunction3; +// (func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): CurriedFunction4; +// (func: (...args: any[]) => any, arity?: number): (...args: any[]) => any; +// placeholder: __; +// }; +// +// export type StylingFunction = ( +// keys: (string | false | undefined) | (string | false | undefined)[], +// ...rest: unknown[] +// ) => object; +// +// declare const getStylingByKeys: ( +// mergedStyling: object, +// keys: (string | false | undefined) | (string | false | undefined)[], +// ...args: unknown[] +// ) => object; +// +// declare var mergedStyling: object; +// +// export const createStyling: CurriedFunction3< +// (base16Theme: object) => unknown, +// object | undefined, +// object | undefined, +// StylingFunction +// > = curry< +// (base16Theme: object) => unknown, +// object | undefined, +// object | undefined, +// StylingFunction +// >( +// ( +// getStylingFromBase16: (base16Theme: object) => unknown, +// options: object = {}, +// themeOrStyling: object = {}, +// ...args +// ): StylingFunction => { +// return curry(getStylingByKeys, 2)(mergedStyling, ...args); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) args: [] +// | ``` +// | +// | ---------------------------------------------------------------------- +// }, +// 3 +// ); +[ + { + "marker": { + "Position": 3101, + "LSPosition": { + "line": 82, + "character": 60 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) args: []\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/constructorFindAllReferences1.baseline.jsonc new file mode 100644 index 0000000000..2d3fb77015 --- /dev/null +++ b/testdata/baselines/reference/fourslash/constructorFindAllReferences1.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /constructorFindAllReferences1.ts === + +// export class C { +// /*FIND ALL REFS*/public constructor() { } +// public foo() { } +// } +// +// new C().foo(); diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/constructorFindAllReferences2.baseline.jsonc new file mode 100644 index 0000000000..e670a87db0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/constructorFindAllReferences2.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /constructorFindAllReferences2.ts === + +// export class C { +// /*FIND ALL REFS*/private constructor() { } +// public foo() { } +// } +// +// new C().foo(); diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/constructorFindAllReferences3.baseline.jsonc new file mode 100644 index 0000000000..eafd38c140 --- /dev/null +++ b/testdata/baselines/reference/fourslash/constructorFindAllReferences3.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /constructorFindAllReferences3.ts === + +// export class [|C|] { +// /*FIND ALL REFS*/constructor() { } +// public foo() { } +// } +// +// new [|C|]().foo(); diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/constructorFindAllReferences4.baseline.jsonc new file mode 100644 index 0000000000..8116716578 --- /dev/null +++ b/testdata/baselines/reference/fourslash/constructorFindAllReferences4.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /constructorFindAllReferences4.ts === + +// export class C { +// /*FIND ALL REFS*/protected constructor() { } +// public foo() { } +// } +// +// new C().foo(); diff --git a/testdata/baselines/reference/fourslash/declarationMapGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/declarationMapGoToDefinition.baseline.jsonc new file mode 100644 index 0000000000..2f6b197efc --- /dev/null +++ b/testdata/baselines/reference/fourslash/declarationMapGoToDefinition.baseline.jsonc @@ -0,0 +1,17 @@ +// === goToDefinition === +// === /indexdef.d.ts === + +// export declare class Foo { +// member: string; +// [|methodName|](propName: SomeType): void; +// otherMethod(): { +// x: number; +// y?: undefined; +// // --- (line: 7) skipped --- + + +// === /mymodule.ts === + +// import * as mod from "./indexdef"; +// const instance = new mod.Foo(); +// instance./*GO TO DEFINITION*/methodName({member: 12}); diff --git a/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc b/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc new file mode 100644 index 0000000000..222c09c7d5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc @@ -0,0 +1,17 @@ +// === goToDefinition === +// === /out/indexdef.d.ts === + +// export declare class Foo { +// member: string; +// [|methodName|](propName: SomeType): void; +// otherMethod(): { +// x: number; +// y?: undefined; +// // --- (line: 7) skipped --- + + +// === /mymodule.ts === + +// import * as mod from "./out/indexdef"; +// const instance = new mod.Foo(); +// instance./*GO TO DEFINITION*/methodName({member: 12}); diff --git a/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc b/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc new file mode 100644 index 0000000000..26e09ac286 --- /dev/null +++ b/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc @@ -0,0 +1,46 @@ +// === goToDefinition === +// === /BaseClass/Source.d.ts === + +// declare class [|Control|] { +// constructor(); +// /** this is a super var */ +// myVar: boolean | 'yeah'; +// } +// //# sourceMappingURL=Source.d.ts.map + + +// === /buttonClass/Source.ts === + +// // I cannot F12 navigate to Control +// // vvvvvvv +// class Button extends /*GO TO DEFINITION*/Control { +// public myFunction() { +// // I cannot F12 navigate to myVar +// // vvvvv +// // --- (line: 7) skipped --- + + + + +// === goToDefinition === +// === /BaseClass/Source.d.ts === + +// declare class Control { +// constructor(); +// /** this is a super var */ +// [|myVar|]: boolean | 'yeah'; +// } +// //# sourceMappingURL=Source.d.ts.map + + +// === /buttonClass/Source.ts === + +// --- (line: 3) skipped --- +// public myFunction() { +// // I cannot F12 navigate to myVar +// // vvvvv +// if (typeof this./*GO TO DEFINITION*/myVar === 'boolean') { +// this.myVar; +// } else { +// this.myVar.toLocaleUpperCase(); +// // --- (line: 11) skipped --- diff --git a/testdata/baselines/reference/fourslash/declarationMapsOutOfDateMapping.baseline.jsonc b/testdata/baselines/reference/fourslash/declarationMapsOutOfDateMapping.baseline.jsonc new file mode 100644 index 0000000000..2d1cff1953 --- /dev/null +++ b/testdata/baselines/reference/fourslash/declarationMapsOutOfDateMapping.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /home/src/workspaces/project/node_modules/a/dist/index.d.ts === + +// export declare class [|Foo|] { +// bar: any; +// } +// //# sourceMappingURL=index.d.ts.map + + +// === /home/src/workspaces/project/index.ts === + +// import { Foo/*GO TO DEFINITION*/ } from "a"; diff --git a/testdata/baselines/reference/fourslash/definition.baseline.jsonc b/testdata/baselines/reference/fourslash/definition.baseline.jsonc new file mode 100644 index 0000000000..9d628fc271 --- /dev/null +++ b/testdata/baselines/reference/fourslash/definition.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.ts === + +// [|export class Foo {}|] + + +// === /b.ts === + +// import n = require('./a/*GO TO DEFINITION*/'); +// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/definition01.baseline.jsonc b/testdata/baselines/reference/fourslash/definition01.baseline.jsonc new file mode 100644 index 0000000000..9d628fc271 --- /dev/null +++ b/testdata/baselines/reference/fourslash/definition01.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.ts === + +// [|export class Foo {}|] + + +// === /b.ts === + +// import n = require('./a/*GO TO DEFINITION*/'); +// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/definitionNameOnEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/definitionNameOnEnumMember.baseline.jsonc new file mode 100644 index 0000000000..79486c0719 --- /dev/null +++ b/testdata/baselines/reference/fourslash/definitionNameOnEnumMember.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /definitionNameOnEnumMember.ts === + +// enum e { +// firstMember, +// secondMember, +// [|thirdMember|] +// } +// var enumMember = e./*GO TO DEFINITION*/thirdMember; diff --git a/testdata/baselines/reference/fourslash/deprecatedInheritedJSDocOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/deprecatedInheritedJSDocOverload.baseline.jsonc new file mode 100644 index 0000000000..12afda7f60 --- /dev/null +++ b/testdata/baselines/reference/fourslash/deprecatedInheritedJSDocOverload.baseline.jsonc @@ -0,0 +1,53 @@ +// === QuickInfo === +=== /deprecatedInheritedJSDocOverload.ts === +// interface PartialObserver {} +// interface Subscription {} +// interface Unsubscribable {} +// +// export interface Subscribable { +// subscribe(observer?: PartialObserver): Unsubscribable; +// /** @deprecated Base deprecation 1 */ +// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Unsubscribable; +// /** @deprecated Base deprecation 2 */ +// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Unsubscribable; +// /** @deprecated Base deprecation 3 */ +// subscribe(next: (value: T) => void, error: null | undefined, complete: () => void): Unsubscribable; +// subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Unsubscribable; +// } +// interface ThingWithDeprecations extends Subscribable { +// subscribe(observer?: PartialObserver): Subscription; +// /** @deprecated 'real' deprecation */ +// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Subscription; +// /** @deprecated 'real' deprecation */ +// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Subscription; +// } +// declare const a: ThingWithDeprecations +// a.subscribe(() => { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription +// | ``` +// | +// | ---------------------------------------------------------------------- +// console.log('something happened'); +// }); +[ + { + "marker": { + "Position": 1183, + "LSPosition": { + "line": 22, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/fourslash/doubleUnderscoreRenames.baseline.jsonc new file mode 100644 index 0000000000..4eb3200eb5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/doubleUnderscoreRenames.baseline.jsonc @@ -0,0 +1,30 @@ +// === findRenameLocations === +// === /fileA.ts === + +// export function /*RENAME*/[|__fooRENAME|]() { +// } +// + + +// === /fileB.ts === + +// import { [|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); + + + + +// === findRenameLocations === +// === /fileA.ts === + +// export function [|__fooRENAME|]() { +// } +// + + +// === /fileB.ts === + +// import { /*RENAME*/[|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); diff --git a/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences.baseline.jsonc new file mode 100644 index 0000000000..8496512cb3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences.baseline.jsonc @@ -0,0 +1,38 @@ +// === findAllReferences === +// === /abc.d.ts === + +// declare module "a" { +// /*FIND ALL REFS*/export const x: number; +// } + + + + +// === findAllReferences === +// === /abc.d.ts === + +// declare module "a" { +// export const /*FIND ALL REFS*/[|x|]: number; +// } + + +// === /b.ts === + +// import a from "a"; +// a.[|x|]; + + + + +// === findAllReferences === +// === /abc.d.ts === + +// declare module "a" { +// export const [|x|]: number; +// } + + +// === /b.ts === + +// import a from "a"; +// a./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences2.baseline.jsonc new file mode 100644 index 0000000000..dec538b1a0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences2.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /a.d.ts === + +// export as namespace abc; +// /*FIND ALL REFS*/export const x: number; + + + + +// === findAllReferences === +// === /a.d.ts === + +// export as namespace abc; +// export const /*FIND ALL REFS*/[|x|]: number; + + +// === /b.ts === + +// import a from "./a"; +// a.[|x|]; + + + + +// === findAllReferences === +// === /a.d.ts === + +// export as namespace abc; +// export const [|x|]: number; + + +// === /b.ts === + +// import a from "./a"; +// a./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/explainFilesNodeNextWithTypesReference.baseline.jsonc b/testdata/baselines/reference/fourslash/explainFilesNodeNextWithTypesReference.baseline.jsonc new file mode 100644 index 0000000000..86cc90f512 --- /dev/null +++ b/testdata/baselines/reference/fourslash/explainFilesNodeNextWithTypesReference.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /node_modules/react-hook-form/dist/index.d.ts === + +// /// +// export type Foo = React.Whatever; +// export function useForm(): any; diff --git a/testdata/baselines/reference/fourslash/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc new file mode 100644 index 0000000000..888592014d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllReferPropertyAccessExpressionHeritageClause.ts === + +// class B {} +// function foo() { +// return {/*FIND ALL REFS*/[|B|]: B}; +// } +// class C extends (foo()).[|B|] {} +// class C1 extends foo().[|B|] {} + + + + +// === findAllReferences === +// === /findAllReferPropertyAccessExpressionHeritageClause.ts === + +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo())./*FIND ALL REFS*/[|B|] {} +// class C1 extends foo().[|B|] {} + + + + +// === findAllReferences === +// === /findAllReferPropertyAccessExpressionHeritageClause.ts === + +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo()).[|B|] {} +// class C1 extends foo()./*FIND ALL REFS*/[|B|] {} diff --git a/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..69dea16c92 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /foo.ts === + +// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.[|bar|](); +// }) + + + + +// === findAllReferences === +// === /foo.ts === + +// export function [|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo./*FIND ALL REFS*/[|bar|](); +// }) + + + + +// === findRenameLocations === +// === /foo.ts === + +// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.[|barRENAME|](); +// }) + + + + +// === findRenameLocations === +// === /foo.ts === + +// /*RENAME*/export function bar() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.bar(); +// }) diff --git a/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..68f9396bab --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /foo.ts === + +// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } +// import('./foo').then(({ [|bar|] }) => undefined); + + + + +// === findAllReferences === +// === /foo.ts === + +// export function [|bar|]() { return "bar"; } +// import('./foo').then(({ /*FIND ALL REFS*/[|bar|] }) => undefined); + + + + +// === findRenameLocations === +// === /foo.ts === + +// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +// import('./foo').then(({ [|barRENAME|] }) => undefined); + + + + +// === findRenameLocations === +// === /foo.ts === + +// export function bar() { return "bar"; } +// import('./foo').then(({ /*RENAME*/[|barRENAME|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc new file mode 100644 index 0000000000..53c7ba4ecf --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /findAllReferencesFilteringMappedTypeProperty.ts === + +// const obj = { /*FIND ALL REFS*/[|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; +// filtered.[|a|]; + + + + +// === findAllReferences === +// === /findAllReferencesFilteringMappedTypeProperty.ts === + +// const obj = { [|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { /*FIND ALL REFS*/[|a|]: 0 }; +// filtered.[|a|]; + + + + +// === findAllReferences === +// === /findAllReferencesFilteringMappedTypeProperty.ts === + +// const obj = { [|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; +// filtered./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference1.baseline.jsonc new file mode 100644 index 0000000000..50d5750dba --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference1.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /findAllReferencesFromLinkTagReference1.ts === + +// enum E { +// /** {@link /*FIND ALL REFS*/[|A|]} */ +// [|A|] +// } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference2.baseline.jsonc new file mode 100644 index 0000000000..695b9e0156 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference2.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /a.ts === + +// enum E { +// /** {@link /*FIND ALL REFS*/[|Foo|]} */ +// [|Foo|] +// } +// interface Foo { +// foo: E.[|Foo|]; +// } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference3.baseline.jsonc new file mode 100644 index 0000000000..6a32db2c98 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /a.ts === + +// interface Foo { +// foo: E.[|Foo|]; +// } + + +// === /b.ts === + +// enum E { +// /** {@link /*FIND ALL REFS*/[|Foo|]} */ +// [|Foo|] +// } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference4.baseline.jsonc new file mode 100644 index 0000000000..d23437b30e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /findAllReferencesFromLinkTagReference4.ts === + +// enum E { +// /** {@link /*FIND ALL REFS*/[|B|]} */ +// A, +// [|B|] +// } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference5.baseline.jsonc new file mode 100644 index 0000000000..d403a9f723 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference5.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /findAllReferencesFromLinkTagReference5.ts === + +// enum E { +// /** {@link E./*FIND ALL REFS*/[|A|]} */ +// [|A|] +// } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesImportMeta.baseline.jsonc new file mode 100644 index 0000000000..42c49a22d3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesImportMeta.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /findAllReferencesImportMeta.ts === + +// // Haha that's so meta! +// +// let x = import.meta/*FIND ALL REFS*/[|meta|]; diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionNew.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionNew.baseline.jsonc new file mode 100644 index 0000000000..5db175d76c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionNew.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /Foo.js === + +// /** @type {function (/*FIND ALL REFS*/new: string, string): string} */ +// var f; diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionThis.baseline.jsonc new file mode 100644 index 0000000000..fea3b8ffff --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionThis.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /Foo.js === + +// /** @type {function (this: string, string): string} */ +// var f = function (s) { return /*FIND ALL REFS*/[|this|] + s; } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesJsDocTypeLiteral.baseline.jsonc new file mode 100644 index 0000000000..17b53da550 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesJsDocTypeLiteral.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /foo.js === + +// /** +// * @param {object} o - very important! +// * @param {string} o.x - a thing, its ok +// * @param {number} o.y - another thing +// * @param {Object} o.nested - very nested +// * @param {boolean} o.nested./*FIND ALL REFS*/great - much greatness +// * @param {number} o.nested.times - twice? probably!?? +// */ +// function f(o) { return o.nested.great; } + + + + +// === findAllReferences === +// === /foo.js === + +// --- (line: 5) skipped --- +// * @param {boolean} o.nested.great - much greatness +// * @param {number} o.nested.times - twice? probably!?? +// */ +// function f(o) { return o.nested./*FIND ALL REFS*/[|great|]; } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..868da34a9c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /foo.js === + +// --- (line: 9) skipped --- +// * @param {unknown} x +// * @returns {unknown} +// */ +// function foo(x/*FIND ALL REFS*/[|x|]) { +// return [|x|]; +// } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring.baseline.jsonc new file mode 100644 index 0000000000..da9b88ff2a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /bar.js === + +// const { /*FIND ALL REFS*/[|foo|]: bar } = require('./foo'); diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring1.baseline.jsonc new file mode 100644 index 0000000000..d2354a097c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring1.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /Y.js === + +// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X"); diff --git a/testdata/baselines/reference/fourslash/findAllReferencesLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesLinkTag1.baseline.jsonc new file mode 100644 index 0000000000..8ea93a9256 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesLinkTag1.baseline.jsonc @@ -0,0 +1,176 @@ +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// class C { +// m/*FIND ALL REFS*/[|m|]() { } +// n = 1 +// static s() { } +// /** +// * {@link m} +// * @see {m} +// * {@link C.m} +// * @see {C.m} +// * {@link C#m} +// * @see {C#m} +// * {@link C.prototype.[|m|]} +// * @see {C.prototype.m} +// */ +// p() { } +// // --- (line: 16) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// class C { +// m() { } +// n/*FIND ALL REFS*/[|n|] = 1 +// static s() { } +// /** +// * {@link m} +// // --- (line: 7) skipped --- + + +// --- (line: 19) skipped --- +// * @see {C.n} +// * {@link C#n} +// * @see {C#n} +// * {@link C.prototype.[|n|]} +// * @see {C.prototype.n} +// */ +// q() { } +// // --- (line: 27) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// class C { +// m() { } +// n = 1 +// static s/*FIND ALL REFS*/[|s|]() { } +// /** +// * {@link m} +// * @see {m} +// // --- (line: 8) skipped --- + + +// --- (line: 26) skipped --- +// /** +// * {@link s} +// * @see {s} +// * {@link C.[|s|]} +// * @see {C.s} +// */ +// r() { } +// // --- (line: 34) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// --- (line: 33) skipped --- +// } +// +// interface I { +// a/*FIND ALL REFS*/[|a|]() +// b: 1 +// /** +// * {@link a} +// // --- (line: 41) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// --- (line: 34) skipped --- +// +// interface I { +// a() +// b/*FIND ALL REFS*/[|b|]: 1 +// /** +// * {@link a} +// * @see {a} +// // --- (line: 42) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// --- (line: 54) skipped --- +// } +// +// function nestor() { +// /** {@link [|r2|]} */ +// function ref() { } +// /** @see {r2} */ +// function d3() { } +// function r2/*FIND ALL REFS*/[|r2|]() { } +// } + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// class C/*FIND ALL REFS*/[|C|] { +// m() { } +// n = 1 +// static s() { } +// /** +// * {@link m} +// * @see {m} +// * {@link [|C|].m} +// * @see {C.m} +// * {@link [|C|]#m} +// * @see {C#m} +// * {@link [|C|].prototype.m} +// * @see {C.prototype.m} +// */ +// p() { } +// /** +// * {@link n} +// * @see {n} +// * {@link [|C|].n} +// * @see {C.n} +// * {@link [|C|]#n} +// * @see {C#n} +// * {@link [|C|].prototype.n} +// * @see {C.prototype.n} +// */ +// q() { } +// /** +// * {@link s} +// * @see {s} +// * {@link [|C|].s} +// * @see {C.s} +// */ +// r() { } +// // --- (line: 34) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag1.ts === + +// --- (line: 32) skipped --- +// r() { } +// } +// +// interface I/*FIND ALL REFS*/[|I|] { +// a() +// b: 1 +// /** +// // --- (line: 40) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllReferencesLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesLinkTag2.baseline.jsonc new file mode 100644 index 0000000000..ea6869acf9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesLinkTag2.baseline.jsonc @@ -0,0 +1,106 @@ +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === + +// namespace NPR { +// export class Consider { +// This = class { +// show() { } +// } +// m/*FIND ALL REFS*/[|m|]() { } +// } +// /** +// * @see {Consider.prototype.m} +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === + +// namespace NPR { +// export class Consider { +// This = class { +// show/*FIND ALL REFS*/[|show|]() { } +// } +// m() { } +// } +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === + +// namespace NPR { +// export class Consider { +// This/*FIND ALL REFS*/[|This|] = class { +// show() { } +// } +// m() { } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === + +// namespace NPR { +// export class Consider/*FIND ALL REFS*/[|Consider|] { +// This = class { +// show() { } +// } +// m() { } +// } +// /** +// * @see {Consider.prototype.m} +// * {@link [|Consider|]#m} +// * @see {Consider#This#show} +// * {@link [|Consider|].This.show} +// * @see {NPR.Consider#This#show} +// * {@link NPR.[|Consider|].This#show} +// * @see {NPR.Consider#This.show} # doesn't parse trailing . +// * @see {NPR.Consider.This.show} +// */ +// export function ref() { } +// } +// /** +// * {@link NPR.[|Consider|]#This#show hello hello} +// * {@link NPR.[|Consider|].This#show} +// * @see {NPR.Consider#This.show} # doesn't parse trailing . +// * @see {NPR.Consider.This.show} +// */ +// export function outerref() { } + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag2.ts === + +// namespace NPR/*FIND ALL REFS*/[|NPR|] { +// export class Consider { +// This = class { +// show() { } +// // --- (line: 5) skipped --- + + +// --- (line: 10) skipped --- +// * @see {Consider#This#show} +// * {@link Consider.This.show} +// * @see {NPR.Consider#This#show} +// * {@link [|NPR|].Consider.This#show} +// * @see {NPR.Consider#This.show} # doesn't parse trailing . +// * @see {NPR.Consider.This.show} +// */ +// export function ref() { } +// } +// /** +// * {@link [|NPR|].Consider#This#show hello hello} +// * {@link [|NPR|].Consider.This#show} +// * @see {NPR.Consider#This.show} # doesn't parse trailing . +// * @see {NPR.Consider.This.show} +// */ +// export function outerref() { } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesLinkTag3.baseline.jsonc new file mode 100644 index 0000000000..16b0623ff3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesLinkTag3.baseline.jsonc @@ -0,0 +1,110 @@ +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === + +// namespace NPR { +// export class Consider { +// This = class { +// show() { } +// } +// m/*FIND ALL REFS*/[|m|]() { } +// } +// /** +// * {@linkcode Consider.prototype.[|m|]} +// * {@linkplain Consider#m} +// * {@linkcode Consider#This#show} +// * {@linkplain Consider.This.show} +// // --- (line: 13) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === + +// namespace NPR { +// export class Consider { +// This = class { +// show/*FIND ALL REFS*/[|show|]() { } +// } +// m() { } +// } +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === + +// namespace NPR { +// export class Consider { +// This/*FIND ALL REFS*/[|This|] = class { +// show() { } +// } +// m() { } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === + +// namespace NPR { +// export class Consider/*FIND ALL REFS*/[|Consider|] { +// This = class { +// show() { } +// } +// m() { } +// } +// /** +// * {@linkcode [|Consider|].prototype.m} +// * {@linkplain [|Consider|]#m} +// * {@linkcode [|Consider|]#This#show} +// * {@linkplain [|Consider|].This.show} +// * {@linkcode NPR.[|Consider|]#This#show} +// * {@linkplain NPR.[|Consider|].This#show} +// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . +// * {@linkcode NPR.[|Consider|].This.show} +// */ +// export function ref() { } +// } +// /** +// * {@linkplain NPR.[|Consider|]#This#show hello hello} +// * {@linkplain NPR.[|Consider|].This#show} +// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . +// * {@linkcode NPR.[|Consider|].This.show} +// */ +// export function outerref() { } + + + + +// === findAllReferences === +// === /findAllReferencesLinkTag3.ts === + +// namespace NPR/*FIND ALL REFS*/[|NPR|] { +// export class Consider { +// This = class { +// show() { } +// // --- (line: 5) skipped --- + + +// --- (line: 9) skipped --- +// * {@linkplain Consider#m} +// * {@linkcode Consider#This#show} +// * {@linkplain Consider.This.show} +// * {@linkcode [|NPR|].Consider#This#show} +// * {@linkplain [|NPR|].Consider.This#show} +// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . +// * {@linkcode [|NPR|].Consider.This.show} +// */ +// export function ref() { } +// } +// /** +// * {@linkplain [|NPR|].Consider#This#show hello hello} +// * {@linkplain [|NPR|].Consider.This#show} +// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . +// * {@linkcode [|NPR|].Consider.This.show} +// */ +// export function outerref() { } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesNonExistentExportBinding.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesNonExistentExportBinding.baseline.jsonc new file mode 100644 index 0000000000..6f44ed40d7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesNonExistentExportBinding.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /bar.ts === + +// import { Foo/*FIND ALL REFS*/[|Foo|] } from "./foo"; diff --git a/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor.baseline.jsonc new file mode 100644 index 0000000000..8884a4f22f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor.baseline.jsonc @@ -0,0 +1,137 @@ +// === findAllReferences === +// === /a.ts === + +// export class [|C|] { +// /*FIND ALL REFS*/constructor(n: number); +// constructor(); +// constructor(n?: number){} +// static f() { +// this.f(); +// new this(); +// } +// } +// new [|C|](); +// const D = [|C|]; +// new D(); + + +// === /b.ts === + +// import { [|C|] } from "./a"; +// new [|C|](); + + +// === /c.ts === + +// import { [|C|] } from "./a"; +// class D extends [|C|] { +// constructor() { +// super(); +// super.method(); +// } +// method() { super(); } +// } +// class E implements [|C|] { +// constructor() { super(); } +// } + + +// === /d.ts === + +// import * as a from "./a"; +// new a.[|C|](); +// class d extends a.[|C|] { constructor() { super(); } + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|C|] { +// constructor(n: number); +// /*FIND ALL REFS*/constructor(); +// constructor(n?: number){} +// static f() { +// this.f(); +// new this(); +// } +// } +// new [|C|](); +// const D = [|C|]; +// new D(); + + +// === /b.ts === + +// import { [|C|] } from "./a"; +// new [|C|](); + + +// === /c.ts === + +// import { [|C|] } from "./a"; +// class D extends [|C|] { +// constructor() { +// super(); +// super.method(); +// } +// method() { super(); } +// } +// class E implements [|C|] { +// constructor() { super(); } +// } + + +// === /d.ts === + +// import * as a from "./a"; +// new a.[|C|](); +// class d extends a.[|C|] { constructor() { super(); } + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|C|] { +// constructor(n: number); +// constructor(); +// /*FIND ALL REFS*/constructor(n?: number){} +// static f() { +// this.f(); +// new this(); +// } +// } +// new [|C|](); +// const D = [|C|]; +// new D(); + + +// === /b.ts === + +// import { [|C|] } from "./a"; +// new [|C|](); + + +// === /c.ts === + +// import { [|C|] } from "./a"; +// class D extends [|C|] { +// constructor() { +// super(); +// super.method(); +// } +// method() { super(); } +// } +// class E implements [|C|] { +// constructor() { super(); } +// } + + +// === /d.ts === + +// import * as a from "./a"; +// new a.[|C|](); +// class d extends a.[|C|] { constructor() { super(); } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor_badOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor_badOverload.baseline.jsonc new file mode 100644 index 0000000000..8e7048cb20 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor_badOverload.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllReferencesOfConstructor_badOverload.ts === + +// class [|C|] { +// /*FIND ALL REFS*/constructor(n: number); +// constructor(){} +// } + + + + +// === findAllReferences === +// === /findAllReferencesOfConstructor_badOverload.ts === + +// class [|C|] { +// constructor(n: number); +// /*FIND ALL REFS*/constructor(){} +// } diff --git a/testdata/baselines/reference/fourslash/findAllReferencesOfJsonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesOfJsonModule.baseline.jsonc new file mode 100644 index 0000000000..c9a228c16f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesOfJsonModule.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /foo.ts === + +// /*FIND ALL REFS*/import settings from "./settings.json"; +// settings; + + + + +// === findAllReferences === +// === /foo.ts === + +// import /*FIND ALL REFS*/[|settings|] from "./settings.json"; +// [|settings|]; + + + + +// === findAllReferences === +// === /foo.ts === + +// import [|settings|] from "./settings.json"; +// /*FIND ALL REFS*/[|settings|]; diff --git a/testdata/baselines/reference/fourslash/findAllReferencesUndefined.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesUndefined.baseline.jsonc new file mode 100644 index 0000000000..741083d716 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferencesUndefined.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/[|undefined|]; +// +// void [|undefined|]; + + +// === /b.ts === + +// [|undefined|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsBadImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsBadImport.baseline.jsonc new file mode 100644 index 0000000000..8080894d68 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsBadImport.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /findAllRefsBadImport.ts === + +// import { /*FIND ALL REFS*/ab as cd } from "doesNotExist"; + + + + +// === findAllReferences === +// === /findAllRefsBadImport.ts === + +// import { ab as /*FIND ALL REFS*/[|cd|] } from "doesNotExist"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsCatchClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsCatchClause.baseline.jsonc new file mode 100644 index 0000000000..3be0bbd0d6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsCatchClause.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllRefsCatchClause.ts === + +// try { } +// catch (/*FIND ALL REFS*/[|err|]) { +// [|err|]; +// } + + + + +// === findAllReferences === +// === /findAllRefsCatchClause.ts === + +// try { } +// catch ([|err|]) { +// /*FIND ALL REFS*/[|err|]; +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassExpression0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsClassExpression0.baseline.jsonc new file mode 100644 index 0000000000..2d6a77088a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsClassExpression0.baseline.jsonc @@ -0,0 +1,60 @@ +// === findAllReferences === +// === /a.ts === + +// export = class /*FIND ALL REFS*/[|A|] { +// m() { [|A|]; } +// }; + + +// === /b.ts === + +// import [|A|] = require("./a"); +// [|A|]; + + + + +// === findAllReferences === +// === /a.ts === + +// export = class [|A|] { +// m() { /*FIND ALL REFS*/[|A|]; } +// }; + + +// === /b.ts === + +// import [|A|] = require("./a"); +// [|A|]; + + + + +// === findAllReferences === +// === /a.ts === + +// export = class [|A|] { +// m() { [|A|]; } +// }; + + +// === /b.ts === + +// import /*FIND ALL REFS*/[|A|] = require("./a"); +// [|A|]; + + + + +// === findAllReferences === +// === /a.ts === + +// export = class [|A|] { +// m() { [|A|]; } +// }; + + +// === /b.ts === + +// import [|A|] = require("./a"); +// /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsClassExpression1.baseline.jsonc new file mode 100644 index 0000000000..6ce52f582b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsClassExpression1.baseline.jsonc @@ -0,0 +1,22 @@ +// === findAllReferences === +// === /a.js === + +// module.exports = class /*FIND ALL REFS*/[|A|] {}; + + + + +// === findAllReferences === +// === /b.js === + +// import /*FIND ALL REFS*/[|A|] = require("./a"); +// [|A|]; + + + + +// === findAllReferences === +// === /b.js === + +// import [|A|] = require("./a"); +// /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassExpression2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsClassExpression2.baseline.jsonc new file mode 100644 index 0000000000..f96e62e6e4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsClassExpression2.baseline.jsonc @@ -0,0 +1,38 @@ +// === findAllReferences === +// === /a.js === + +// exports./*FIND ALL REFS*/[|A|] = class {}; + + +// === /b.js === + +// import { [|A|] } from "./a"; +// [|A|]; + + + + +// === findAllReferences === +// === /a.js === + +// exports.[|A|] = class {}; + + +// === /b.js === + +// import { /*FIND ALL REFS*/[|A|] } from "./a"; +// [|A|]; + + + + +// === findAllReferences === +// === /a.js === + +// exports.[|A|] = class {}; + + +// === /b.js === + +// import { [|A|] } from "./a"; +// /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsClassStaticBlocks.baseline.jsonc new file mode 100644 index 0000000000..2c3929d9fd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsClassStaticBlocks.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /findAllRefsClassStaticBlocks.ts === + +// class ClassStaticBocks { +// static x; +// /*FIND ALL REFS*/[|static|] {} +// static y; +// static {} +// static y; +// static {} +// } + + + + +// === findAllReferences === +// === /findAllRefsClassStaticBlocks.ts === + +// class ClassStaticBocks { +// static x; +// static {} +// static y; +// /*FIND ALL REFS*/[|static|] {} +// static y; +// static {} +// } + + + + +// === findAllReferences === +// === /findAllRefsClassStaticBlocks.ts === + +// --- (line: 3) skipped --- +// static y; +// static {} +// static y; +// /*FIND ALL REFS*/[|static|] {} +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc new file mode 100644 index 0000000000..10ade55497 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// class /*FIND ALL REFS*/[|C|] { +// static s() { +// this; +// } +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// class C { +// static s() { +// /*FIND ALL REFS*/[|this|]; +// } +// static get f() { +// return [|this|]; +// +// function inner() { this; } +// class Inner { x = this; } +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// class C { +// static s() { +// [|this|]; +// } +// static get f() { +// return /*FIND ALL REFS*/[|this|]; +// +// function inner() { this; } +// class Inner { x = this; } +// } +// } + + + + +// === findRenameLocations === +// === /findAllRefsClassWithStaticThisAccess.ts === + +// /*RENAME*/class C { +// static s() { +// this; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRefsConstructorFunctions.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsConstructorFunctions.baseline.jsonc new file mode 100644 index 0000000000..92b3f1ad6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsConstructorFunctions.baseline.jsonc @@ -0,0 +1,64 @@ +// === findAllReferences === +// === /a.js === + +// function f() { +// /*FIND ALL REFS*/[|this|].x = 0; +// } +// f.prototype.setX = function() { +// this.x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + + +// === findAllReferences === +// === /a.js === + +// function f() { +// this./*FIND ALL REFS*/x = 0; +// } +// f.prototype.setX = function() { +// this.x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + + +// === findAllReferences === +// === /a.js === + +// function f() { +// this.x = 0; +// } +// f.prototype.setX = function() { +// /*FIND ALL REFS*/[|this|].x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + + +// === findAllReferences === +// === /a.js === + +// function f() { +// this.x = 0; +// } +// f.prototype.setX = function() { +// this./*FIND ALL REFS*/x = 1; +// } +// f.prototype.useX = function() { this.x; } + + + + +// === findAllReferences === +// === /a.js === + +// --- (line: 3) skipped --- +// f.prototype.setX = function() { +// this.x = 1; +// } +// f.prototype.useX = function() { this./*FIND ALL REFS*/x; } diff --git a/testdata/baselines/reference/fourslash/findAllRefsDeclareClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsDeclareClass.baseline.jsonc new file mode 100644 index 0000000000..e2e8f2d550 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsDeclareClass.baseline.jsonc @@ -0,0 +1,16 @@ +// === findAllReferences === +// === /findAllRefsDeclareClass.ts === + +// /*FIND ALL REFS*/declare class C { +// static m(): void; +// } + + + + +// === findAllReferences === +// === /findAllRefsDeclareClass.ts === + +// declare class /*FIND ALL REFS*/[|C|] { +// static m(): void; +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsDefaultImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsDefaultImport.baseline.jsonc new file mode 100644 index 0000000000..bb5c61b725 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsDefaultImport.baseline.jsonc @@ -0,0 +1,22 @@ +// === findAllReferences === +// === /a.ts === + +// export default function /*FIND ALL REFS*/[|a|]() {} + + +// === /b.ts === + +// import [|a|], * as ns from "./a"; + + + + +// === findAllReferences === +// === /a.ts === + +// export default function [|a|]() {} + + +// === /b.ts === + +// import /*FIND ALL REFS*/[|a|], * as ns from "./a"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsDefinition.baseline.jsonc new file mode 100644 index 0000000000..59afb275df --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsDefinition.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /findAllRefsDefinition.ts === + +// const /*FIND ALL REFS*/[|x|] = 0; +// [|x|]; + + + + +// === findAllReferences === +// === /findAllRefsDefinition.ts === + +// const [|x|] = 0; +// /*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsDestructureGeneric.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsDestructureGeneric.baseline.jsonc new file mode 100644 index 0000000000..bc2d160244 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsDestructureGeneric.baseline.jsonc @@ -0,0 +1,20 @@ +// === findAllReferences === +// === /findAllRefsDestructureGeneric.ts === + +// interface I { +// /*FIND ALL REFS*/[|x|]: boolean; +// } +// declare const i: I; +// const { [|x|] } = i; + + + + +// === findAllReferences === +// === /findAllRefsDestructureGeneric.ts === + +// interface I { +// [|x|]: boolean; +// } +// declare const i: I; +// const { /*FIND ALL REFS*/[|x|] } = i; diff --git a/testdata/baselines/reference/fourslash/findAllRefsDestructureGetter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsDestructureGetter.baseline.jsonc new file mode 100644 index 0000000000..17fdbff3f0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsDestructureGetter.baseline.jsonc @@ -0,0 +1,80 @@ +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === + +// class Test { +// get /*FIND ALL REFS*/[|x|]() { return 0; } +// +// set y(a: number) {} +// } +// const { [|x|], y } = new Test(); +// x; y; + + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === + +// class Test { +// get [|x|]() { return 0; } +// +// set y(a: number) {} +// } +// const { /*FIND ALL REFS*/[|x|], y } = new Test(); +// [|x|]; y; + + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === + +// class Test { +// get x() { return 0; } +// +// set y(a: number) {} +// } +// const { [|x|], y } = new Test(); +// /*FIND ALL REFS*/[|x|]; y; + + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === + +// class Test { +// get x() { return 0; } +// +// set /*FIND ALL REFS*/[|y|](a: number) {} +// } +// const { x, [|y|] } = new Test(); +// x; y; + + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === + +// class Test { +// get x() { return 0; } +// +// set [|y|](a: number) {} +// } +// const { x, /*FIND ALL REFS*/[|y|] } = new Test(); +// x; [|y|]; + + + + +// === findAllReferences === +// === /findAllRefsDestructureGetter.ts === + +// class Test { +// get x() { return 0; } +// +// set y(a: number) {} +// } +// const { x, [|y|] } = new Test(); +// x; /*FIND ALL REFS*/[|y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsEnumAsNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsEnumAsNamespace.baseline.jsonc new file mode 100644 index 0000000000..739032e8f8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsEnumAsNamespace.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /findAllRefsEnumAsNamespace.ts === + +// /*FIND ALL REFS*/enum E { A } +// let e: E.A; + + + + +// === findAllReferences === +// === /findAllRefsEnumAsNamespace.ts === + +// enum /*FIND ALL REFS*/[|E|] { A } +// let e: [|E|].A; + + + + +// === findAllReferences === +// === /findAllRefsEnumAsNamespace.ts === + +// enum [|E|] { A } +// let e: /*FIND ALL REFS*/[|E|].A; diff --git a/testdata/baselines/reference/fourslash/findAllRefsEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsEnumMember.baseline.jsonc new file mode 100644 index 0000000000..fce503b58b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsEnumMember.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /findAllRefsEnumMember.ts === + +// enum E { /*FIND ALL REFS*/[|A|], B } +// const e: E.[|A|] = E.[|A|]; + + + + +// === findAllReferences === +// === /findAllRefsEnumMember.ts === + +// enum E { [|A|], B } +// const e: E./*FIND ALL REFS*/[|A|] = E.[|A|]; + + + + +// === findAllReferences === +// === /findAllRefsEnumMember.ts === + +// enum E { [|A|], B } +// const e: E.A = E./*FIND ALL REFS*/[|A|] = E.[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsExportConstEqualToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsExportConstEqualToClass.baseline.jsonc new file mode 100644 index 0000000000..1906e220e3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsExportConstEqualToClass.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /a.ts === + +// class C {} +// export const /*FIND ALL REFS*/[|D|] = C; + + +// === /b.ts === + +// import { [|D|] } from "./a"; + + + + +// === findAllReferences === +// === /a.ts === + +// class C {} +// export const [|D|] = C; + + +// === /b.ts === + +// import { /*FIND ALL REFS*/[|D|] } from "./a"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsExportDefaultClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsExportDefaultClassConstructor.baseline.jsonc new file mode 100644 index 0000000000..1224d18ddc --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsExportDefaultClassConstructor.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /findAllRefsExportDefaultClassConstructor.ts === + +// export default class { +// /*FIND ALL REFS*/constructor() {} +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsExportNotAtTopLevel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsExportNotAtTopLevel.baseline.jsonc new file mode 100644 index 0000000000..07693d564c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsExportNotAtTopLevel.baseline.jsonc @@ -0,0 +1,29 @@ +// === findAllReferences === +// === /findAllRefsExportNotAtTopLevel.ts === + +// { +// /*FIND ALL REFS*/export const x = 0; +// x; +// } + + + + +// === findAllReferences === +// === /findAllRefsExportNotAtTopLevel.ts === + +// { +// export const /*FIND ALL REFS*/[|x|] = 0; +// [|x|]; +// } + + + + +// === findAllReferences === +// === /findAllRefsExportNotAtTopLevel.ts === + +// { +// export const [|x|] = 0; +// /*FIND ALL REFS*/[|x|]; +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties.baseline.jsonc new file mode 100644 index 0000000000..8781689e20 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties.baseline.jsonc @@ -0,0 +1,50 @@ +// === findAllReferences === +// === /findAllRefsForComputedProperties.ts === + +// interface I { +// ["/*FIND ALL REFS*/[|prop1|]"]: () => void; +// } +// +// class C implements I { +// ["[|prop1|]"]: any; +// } +// +// var x: I = { +// ["[|prop1|]"]: function () { }, +// } + + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties.ts === + +// interface I { +// ["[|prop1|]"]: () => void; +// } +// +// class C implements I { +// ["/*FIND ALL REFS*/[|prop1|]"]: any; +// } +// +// var x: I = { +// ["[|prop1|]"]: function () { }, +// } + + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties.ts === + +// interface I { +// ["[|prop1|]"]: () => void; +// } +// +// class C implements I { +// ["[|prop1|]"]: any; +// } +// +// var x: I = { +// ["/*FIND ALL REFS*/[|prop1|]"]: function () { }, +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties2.baseline.jsonc new file mode 100644 index 0000000000..fb96b320e0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties2.baseline.jsonc @@ -0,0 +1,50 @@ +// === findAllReferences === +// === /findAllRefsForComputedProperties2.ts === + +// interface I { +// [/*FIND ALL REFS*/[|42|]](): void; +// } +// +// class C implements I { +// [[|42|]]: any; +// } +// +// var x: I = { +// ["[|42|]"]: function () { } +// } + + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties2.ts === + +// interface I { +// [[|42|]](): void; +// } +// +// class C implements I { +// [/*FIND ALL REFS*/[|42|]]: any; +// } +// +// var x: I = { +// ["[|42|]"]: function () { } +// } + + + + +// === findAllReferences === +// === /findAllRefsForComputedProperties2.ts === + +// interface I { +// [[|42|]](): void; +// } +// +// class C implements I { +// [[|42|]]: any; +// } +// +// var x: I = { +// ["/*FIND ALL REFS*/[|42|]"]: function () { } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc new file mode 100644 index 0000000000..863698ac1a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc @@ -0,0 +1,33 @@ +// === findAllReferences === +// === /a.ts === + +// export default function /*FIND ALL REFS*/[|f|]() {} + + +// === /b.ts === + +// import [|g|] from "./a"; +// [|g|](); + + + + +// === findAllReferences === +// === /b.ts === + +// import /*FIND ALL REFS*/[|g|] from "./a"; +// [|g|](); + + + + +// === goToDefinition === +// === /a.ts === + +// export default function [|f|]() {} + + +// === /b.ts === + +// import g from "./a"; +// /*GO TO DEFINITION*/g(); diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport01.baseline.jsonc new file mode 100644 index 0000000000..b274338afa --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport01.baseline.jsonc @@ -0,0 +1,48 @@ +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === + +// /*FIND ALL REFS*/export default class DefaultExportedClass { +// } +// +// var x: DefaultExportedClass; +// +// var y = new DefaultExportedClass; + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === + +// export default class /*FIND ALL REFS*/[|DefaultExportedClass|] { +// } +// +// var x: [|DefaultExportedClass|]; +// +// var y = new [|DefaultExportedClass|]; + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === + +// export default class [|DefaultExportedClass|] { +// } +// +// var x: /*FIND ALL REFS*/[|DefaultExportedClass|]; +// +// var y = new [|DefaultExportedClass|]; + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport01.ts === + +// export default class [|DefaultExportedClass|] { +// } +// +// var x: [|DefaultExportedClass|]; +// +// var y = new /*FIND ALL REFS*/[|DefaultExportedClass|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport02.baseline.jsonc new file mode 100644 index 0000000000..ed7329e7d8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport02.baseline.jsonc @@ -0,0 +1,102 @@ +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === + +// /*FIND ALL REFS*/export default function DefaultExportedFunction() { +// return DefaultExportedFunction; +// } +// +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === + +// export default function /*FIND ALL REFS*/[|DefaultExportedFunction|]() { +// return [|DefaultExportedFunction|]; +// } +// +// var x: typeof [|DefaultExportedFunction|]; +// +// var y = [|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === + +// export default function [|DefaultExportedFunction|]() { +// return /*FIND ALL REFS*/[|DefaultExportedFunction|]; +// } +// +// var x: typeof [|DefaultExportedFunction|]; +// +// var y = [|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === + +// export default function [|DefaultExportedFunction|]() { +// return [|DefaultExportedFunction|]; +// } +// +// var x: typeof /*FIND ALL REFS*/[|DefaultExportedFunction|]; +// +// var y = [|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === + +// export default function [|DefaultExportedFunction|]() { +// return [|DefaultExportedFunction|]; +// } +// +// var x: typeof [|DefaultExportedFunction|]; +// +// var y = /*FIND ALL REFS*/[|DefaultExportedFunction|](); +// +// namespace DefaultExportedFunction { +// } + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === + +// --- (line: 5) skipped --- +// +// var y = DefaultExportedFunction(); +// +// /*FIND ALL REFS*/namespace DefaultExportedFunction { +// } + + + + +// === findAllReferences === +// === /findAllRefsForDefaultExport02.ts === + +// --- (line: 5) skipped --- +// +// var y = DefaultExportedFunction(); +// +// namespace /*FIND ALL REFS*/[|DefaultExportedFunction|] { +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport04.baseline.jsonc new file mode 100644 index 0000000000..4d11cf46ab --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport04.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /a.ts === + +// const /*FIND ALL REFS*/[|a|] = 0; +// export default [|a|]; + + +// === /b.ts === + +// import [|a|] from "./a"; +// [|a|]; + + + + +// === findAllReferences === +// === /a.ts === + +// const [|a|] = 0; +// export default /*FIND ALL REFS*/[|a|]; + + +// === /b.ts === + +// import [|a|] from "./a"; +// [|a|]; + + + + +// === findAllReferences === +// === /a.ts === + +// const a = 0; +// export /*FIND ALL REFS*/default a; + + + + +// === findAllReferences === +// === /b.ts === + +// import /*FIND ALL REFS*/[|a|] from "./a"; +// [|a|]; + + + + +// === findAllReferences === +// === /b.ts === + +// import [|a|] from "./a"; +// /*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport09.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport09.baseline.jsonc new file mode 100644 index 0000000000..cf193dcabd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport09.baseline.jsonc @@ -0,0 +1,106 @@ +// === findAllReferences === +// === /foo.ts === + +// import * as /*FIND ALL REFS*/[|a|] from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /foo.ts === + +// import * as a from "./a.js" +// import /*FIND ALL REFS*/[|aDefault|] from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /foo.ts === + +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as /*FIND ALL REFS*/[|b|] from "./b.js" +// import bDefault from "./b.js" +// +// import * as c from "./c" +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /foo.ts === + +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import /*FIND ALL REFS*/[|bDefault|] from "./b.js" +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + + + + +// === findAllReferences === +// === /foo.ts === + +// import * as a from "./a.js" +// import aDefault from "./a.js" +// import * as b from "./b.js" +// import bDefault from "./b.js" +// +// import * as /*FIND ALL REFS*/[|c|] from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import dDefault from "./d" + + + + +// === findAllReferences === +// === /foo.ts === + +// --- (line: 3) skipped --- +// import bDefault from "./b.js" +// +// import * as c from "./c" +// import /*FIND ALL REFS*/[|cDefault|] from "./c" +// import * as d from "./d" +// import dDefault from "./d" + + + + +// === findAllReferences === +// === /foo.ts === + +// --- (line: 4) skipped --- +// +// import * as c from "./c" +// import cDefault from "./c" +// import * as /*FIND ALL REFS*/[|d|] from "./d" +// import dDefault from "./d" + + + + +// === findAllReferences === +// === /foo.ts === + +// --- (line: 5) skipped --- +// import * as c from "./c" +// import cDefault from "./c" +// import * as d from "./d" +// import /*FIND ALL REFS*/[|dDefault|] from "./d" diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_anonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_anonymous.baseline.jsonc new file mode 100644 index 0000000000..fd5bfc031a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_anonymous.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /a.ts === + +// export /*FIND ALL REFS*/default 1; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_reExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_reExport.baseline.jsonc new file mode 100644 index 0000000000..31a04e0e06 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_reExport.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /export.ts === + +// const /*FIND ALL REFS*/[|foo|] = 1; +// export default [|foo|]; + + + + +// === findAllReferences === +// === /export.ts === + +// const [|foo|] = 1; +// export default /*FIND ALL REFS*/[|foo|]; + + + + +// === findAllReferences === +// === /re-export.ts === + +// export { /*FIND ALL REFS*/default } from "./export"; + + + + +// === findAllReferences === +// === /re-export-dep.ts === + +// import /*FIND ALL REFS*/[|fooDefault|] from "./re-export"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultKeyword.baseline.jsonc new file mode 100644 index 0000000000..849fd109f3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForDefaultKeyword.baseline.jsonc @@ -0,0 +1,67 @@ +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === + +// function f(value: string, /*FIND ALL REFS*/default: string) {} +// +// const default = 1; +// +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === + +// function f(value: string, default: string) {} +// +// const /*FIND ALL REFS*/default = 1; +// +// function default() {} +// +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === + +// function f(value: string, default: string) {} +// +// const default = 1; +// +// function /*FIND ALL REFS*/default() {} +// +// class default {} +// +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === + +// --- (line: 3) skipped --- +// +// function default() {} +// +// class /*FIND ALL REFS*/default {} +// +// const foo = { +// default: 1 +// } + + + + +// === findAllReferences === +// === /findAllRefsForDefaultKeyword.ts === + +// --- (line: 6) skipped --- +// class default {} +// +// const foo = { +// /*FIND ALL REFS*/[|default|]: 1 +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForFunctionExpression01.baseline.jsonc new file mode 100644 index 0000000000..5420705574 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForFunctionExpression01.baseline.jsonc @@ -0,0 +1,66 @@ +// === findAllReferences === +// === /file1.ts === + +// var foo = /*FIND ALL REFS*/function foo(a = foo(), b = () => foo) { +// foo(foo, foo); +// } + + + + +// === findAllReferences === +// === /file1.ts === + +// var foo = function /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { +// [|foo|]([|foo|], [|foo|]); +// } + + + + +// === findAllReferences === +// === /file1.ts === + +// var foo = function foo(a = /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { +// [|foo|]([|foo|], [|foo|]); +// } + + + + +// === findAllReferences === +// === /file1.ts === + +// var foo = function foo(a = foo(), b = () => /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { +// [|foo|]([|foo|], [|foo|]); +// } + + + + +// === findAllReferences === +// === /file1.ts === + +// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { +// /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); +// } + + + + +// === findAllReferences === +// === /file1.ts === + +// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { +// foo(/*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); +// } + + + + +// === findAllReferences === +// === /file1.ts === + +// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { +// foo(foo, /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForImportCall.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForImportCall.baseline.jsonc new file mode 100644 index 0000000000..373d783fab --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForImportCall.baseline.jsonc @@ -0,0 +1,17 @@ +// === findAllReferences === +// === /app.ts === + +// export function he/*FIND ALL REFS*/[|hello|]() {}; + + +// === /direct-use.ts === + +// async function main() { +// const mod = await import("./app") +// mod.[|hello|](); +// } + + +// === /indirect-use.ts === + +// import("./re-export").then(mod => mod.services.app.[|hello|]()); diff --git a/testdata/baselines/reference/fourslash/findAllRefsForImportCallType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForImportCallType.baseline.jsonc new file mode 100644 index 0000000000..736676b75a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForImportCallType.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /app.ts === + +// export function he/*FIND ALL REFS*/[|hello|]() {}; + + +// === /indirect-use.ts === + +// import type { app } from "./re-export"; +// declare const app: app +// app.[|hello|](); diff --git a/testdata/baselines/reference/fourslash/findAllRefsForMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForMappedType.baseline.jsonc new file mode 100644 index 0000000000..c4956c8440 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForMappedType.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /findAllRefsForMappedType.ts === + +// interface T { /*FIND ALL REFS*/[|a|]: number }; +// type U = { [K in keyof T]: string }; +// type V = { [K in keyof U]: boolean }; +// const u: U = { [|a|]: "" } +// const v: V = { [|a|]: true } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..19cd8bb48d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,50 @@ +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === + +// var x = { +// /*FIND ALL REFS*/[|property|]: {} +// }; +// +// x.[|property|]; +// +// let {[|property|]: pVar} = x; + + + + +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === + +// var x = { +// [|property|]: {} +// }; +// +// x./*FIND ALL REFS*/[|property|]; +// +// let {[|property|]: pVar} = x; + + + + +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === + +// --- (line: 3) skipped --- +// +// x.property; +// +// /*FIND ALL REFS*/let {property: pVar} = x; + + + + +// === findAllReferences === +// === /findAllRefsForObjectLiteralProperties.ts === + +// var x = { +// [|property|]: {} +// }; +// +// x.[|property|]; +// +// let {/*FIND ALL REFS*/[|property|]: pVar} = x; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForObjectSpread.baseline.jsonc new file mode 100644 index 0000000000..7ed09580c9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForObjectSpread.baseline.jsonc @@ -0,0 +1,52 @@ +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === + +// interface A1 { readonly /*FIND ALL REFS*/[|a|]: string }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.[|a|]; +// a1.[|a|]; + + + + +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === + +// interface A1 { readonly a: string }; +// interface A2 { /*FIND ALL REFS*/[|a|]?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.[|a|]; +// a1.a; + + + + +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === + +// interface A1 { readonly [|a|]: string }; +// interface A2 { [|a|]?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12./*FIND ALL REFS*/[|a|]; +// a1.[|a|]; + + + + +// === findAllReferences === +// === /findAllRefsForObjectSpread.ts === + +// interface A1 { readonly [|a|]: string }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.[|a|]; +// a1./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForRest.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForRest.baseline.jsonc new file mode 100644 index 0000000000..7eaac036a6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForRest.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /findAllRefsForRest.ts === + +// interface Gen { +// x: number +// /*FIND ALL REFS*/[|parent|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest.[|parent|]; + + + + +// === findAllReferences === +// === /findAllRefsForRest.ts === + +// interface Gen { +// x: number +// [|parent|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest./*FIND ALL REFS*/[|parent|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc new file mode 100644 index 0000000000..fbdf8be2bb --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc @@ -0,0 +1,100 @@ +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === + +// class X{ +// /*FIND ALL REFS*/[|foo|](): void{} +// } +// +// class Y extends X{ +// static foo(): void{} +// } +// +// class Z extends Y{ +// static foo(): void{} +// [|foo|](): void{} +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|](); +// y.[|foo|](); +// z.[|foo|](); +// Y.foo(); +// Z.foo(); + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === + +// class X{ +// foo(): void{} +// } +// +// class Y extends X{ +// static /*FIND ALL REFS*/[|foo|](): void{} +// } +// +// class Z extends Y{ +// // --- (line: 10) skipped --- + + +// --- (line: 16) skipped --- +// x.foo(); +// y.foo(); +// z.foo(); +// Y.[|foo|](); +// Z.foo(); + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === + +// --- (line: 6) skipped --- +// } +// +// class Z extends Y{ +// static /*FIND ALL REFS*/[|foo|](): void{} +// foo(): void{} +// } +// +// // --- (line: 14) skipped --- + + +// --- (line: 17) skipped --- +// y.foo(); +// z.foo(); +// Y.foo(); +// Z.[|foo|](); + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstanceMethodInheritance.ts === + +// class X{ +// [|foo|](): void{} +// } +// +// class Y extends X{ +// static foo(): void{} +// } +// +// class Z extends Y{ +// static foo(): void{} +// /*FIND ALL REFS*/[|foo|](): void{} +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|](); +// y.[|foo|](); +// z.[|foo|](); +// Y.foo(); +// Z.foo(); diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc new file mode 100644 index 0000000000..765d864857 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc @@ -0,0 +1,232 @@ +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// class X{ +// /*FIND ALL REFS*/[|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y.[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// class X{ +// foo:any +// } +// +// class Y extends X{ +// static /*FIND ALL REFS*/[|foo|]:any +// } +// +// class Z extends Y{ +// // --- (line: 10) skipped --- + + +// --- (line: 16) skipped --- +// x.foo; +// y.foo; +// z.foo; +// Y.[|foo|]; +// Z.foo; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// --- (line: 6) skipped --- +// } +// +// class Z extends Y{ +// static /*FIND ALL REFS*/[|foo|]:any +// foo:any +// } +// +// // --- (line: 14) skipped --- + + +// --- (line: 17) skipped --- +// y.foo; +// z.foo; +// Y.foo; +// Z.[|foo|]; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// /*FIND ALL REFS*/[|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y.[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x./*FIND ALL REFS*/[|foo|]; +// y.[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y./*FIND ALL REFS*/[|foo|]; +// z.[|foo|]; +// Y.foo; +// Z.foo; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// class X{ +// [|foo|]:any +// } +// +// class Y extends X{ +// static foo:any +// } +// +// class Z extends Y{ +// static foo:any +// [|foo|]:any +// } +// +// const x = new X(); +// const y = new Y(); +// const z = new Z(); +// x.[|foo|]; +// y.[|foo|]; +// z./*FIND ALL REFS*/[|foo|]; +// Y.foo; +// Z.foo; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// class X{ +// foo:any +// } +// +// class Y extends X{ +// static [|foo|]:any +// } +// +// class Z extends Y{ +// // --- (line: 10) skipped --- + + +// --- (line: 16) skipped --- +// x.foo; +// y.foo; +// z.foo; +// Y./*FIND ALL REFS*/[|foo|]; +// Z.foo; + + + + +// === findAllReferences === +// === /findAllRefsForStaticInstancePropertyInheritance.ts === + +// --- (line: 6) skipped --- +// } +// +// class Z extends Y{ +// static [|foo|]:any +// foo:any +// } +// +// // --- (line: 14) skipped --- + + +// --- (line: 17) skipped --- +// y.foo; +// z.foo; +// Y.foo; +// Z./*FIND ALL REFS*/[|foo|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForStringLiteral.baseline.jsonc new file mode 100644 index 0000000000..7e9203009f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForStringLiteral.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /a.ts === + +// interface Foo { +// property: /*FIND ALL REFS*/"foo"; +// } +// /** +// * @type {{ property: "foo"}} +// // --- (line: 6) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForStringLiteralTypes.baseline.jsonc new file mode 100644 index 0000000000..a6f57497f3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForStringLiteralTypes.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /findAllRefsForStringLiteralTypes.ts === + +// type Options = "/*FIND ALL REFS*/option 1" | "option 2"; +// let myOption: Options = "option 1"; + + + + +// === findAllReferences === +// === /findAllRefsForStringLiteralTypes.ts === + +// type Options = "option 1" | "option 2"; +// let myOption: Options = "/*FIND ALL REFS*/option 1"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsForUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForUMDModuleAlias1.baseline.jsonc new file mode 100644 index 0000000000..b9127b4a45 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForUMDModuleAlias1.baseline.jsonc @@ -0,0 +1,38 @@ +// === findAllReferences === +// === /0.d.ts === + +// export function doThing(): string; +// export function doTheOtherThing(): void; +// /*FIND ALL REFS*/export as namespace myLib; + + + + +// === findAllReferences === +// === /0.d.ts === + +// export function doThing(): string; +// export function doTheOtherThing(): void; +// export as namespace /*FIND ALL REFS*/[|myLib|]; + + +// === /1.ts === + +// /// +// [|myLib|].doThing(); + + + + +// === findAllReferences === +// === /0.d.ts === + +// export function doThing(): string; +// export function doTheOtherThing(): void; +// export as namespace [|myLib|]; + + +// === /1.ts === + +// /// +// /*FIND ALL REFS*/[|myLib|].doThing(); diff --git a/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause01.baseline.jsonc new file mode 100644 index 0000000000..2f1a4b5681 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause01.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause01.ts === + +// /*FIND ALL REFS*/var Base = class { }; +// class C extends Base { } + + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause01.ts === + +// var /*FIND ALL REFS*/[|Base|] = class { }; +// class C extends [|Base|] { } + + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause01.ts === + +// var [|Base|] = class { }; +// class C extends /*FIND ALL REFS*/[|Base|] { } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause02.baseline.jsonc new file mode 100644 index 0000000000..a7f6d381da --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause02.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause02.ts === + +// /*FIND ALL REFS*/interface Base { } +// namespace n { +// var Base = class { }; +// interface I extends Base { } +// } + + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause02.ts === + +// interface /*FIND ALL REFS*/[|Base|] { } +// namespace n { +// var Base = class { }; +// interface I extends [|Base|] { } +// } + + + + +// === findAllReferences === +// === /findAllRefsForVariableInExtendsClause02.ts === + +// interface [|Base|] { } +// namespace n { +// var Base = class { }; +// interface I extends /*FIND ALL REFS*/[|Base|] { } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsForVariableInImplementsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForVariableInImplementsClause01.baseline.jsonc new file mode 100644 index 0000000000..3662b40351 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsForVariableInImplementsClause01.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /findAllRefsForVariableInImplementsClause01.ts === + +// var Base = class { }; +// class C extends Base implements /*FIND ALL REFS*/Base { } diff --git a/testdata/baselines/reference/fourslash/findAllRefsGlobalThisKeywordInModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsGlobalThisKeywordInModule.baseline.jsonc new file mode 100644 index 0000000000..2dcc039a4e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsGlobalThisKeywordInModule.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /findAllRefsGlobalThisKeywordInModule.ts === + +// /*FIND ALL REFS*/this; +// export const c = 1; diff --git a/testdata/baselines/reference/fourslash/findAllRefsImportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsImportEquals.baseline.jsonc new file mode 100644 index 0000000000..3de6dcb22e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsImportEquals.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /findAllRefsImportEquals.ts === + +// import j = N./*FIND ALL REFS*/[|q|]; +// namespace N { export const q = 0; } diff --git a/testdata/baselines/reference/fourslash/findAllRefsImportType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsImportType.baseline.jsonc new file mode 100644 index 0000000000..f497fcf9bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsImportType.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /a.js === + +// module.exports = 0; +// /*FIND ALL REFS*/export type N = number; + + + + +// === findAllReferences === +// === /a.js === + +// module.exports = 0; +// export type /*FIND ALL REFS*/[|N|] = number; + + +// === /b.js === + +// type T = import("./a").[|N|]; + + + + +// === findAllReferences === +// === /b.js === + +// type T = import("./a")./*FIND ALL REFS*/N; diff --git a/testdata/baselines/reference/fourslash/findAllRefsInClassExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInClassExpression.baseline.jsonc new file mode 100644 index 0000000000..ac58d2b7a8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInClassExpression.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllRefsInClassExpression.ts === + +// interface I { /*FIND ALL REFS*/[|boom|](): void; } +// new class C implements I { +// [|boom|](){} +// } + + + + +// === findAllReferences === +// === /findAllRefsInClassExpression.ts === + +// interface I { [|boom|](): void; } +// new class C implements I { +// /*FIND ALL REFS*/[|boom|](){} +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsIndexedAccessTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsIndexedAccessTypes.baseline.jsonc new file mode 100644 index 0000000000..2dad9f1fee --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsIndexedAccessTypes.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === + +// interface I { +// /*FIND ALL REFS*/[|0|]: number; +// s: string; +// } +// interface J { +// a: I[[|0|]], +// b: I["s"], +// } + + + + +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === + +// interface I { +// 0: number; +// /*FIND ALL REFS*/[|s|]: string; +// } +// interface J { +// a: I[0], +// b: I["[|s|]"], +// } + + + + +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === + +// interface I { +// [|0|]: number; +// s: string; +// } +// interface J { +// a: I[/*FIND ALL REFS*/[|0|]], +// b: I["s"], +// } + + + + +// === findAllReferences === +// === /findAllRefsIndexedAccessTypes.ts === + +// interface I { +// 0: number; +// [|s|]: string; +// } +// interface J { +// a: I[0], +// b: I["/*FIND ALL REFS*/[|s|]"], +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties1.baseline.jsonc new file mode 100644 index 0000000000..012aff5696 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties1.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === + +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var v: class1; +// v.[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === + +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: class1; +// v.doStuff(); +// v.[|propName|]; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === + +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class1; +// v./*FIND ALL REFS*/[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties1.ts === + +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class1; +// v.doStuff(); +// v./*FIND ALL REFS*/[|propName|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..2d8796609a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties2.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === + +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; // r0 +// propName: string; // r1 +// } +// +// var v: interface1; +// v.[|doStuff|](); // r2 +// v.propName; // r3 + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === + +// interface interface1 extends interface1 { +// doStuff(): void; // r0 +// /*FIND ALL REFS*/[|propName|]: string; // r1 +// } +// +// var v: interface1; +// v.doStuff(); // r2 +// v.[|propName|]; // r3 + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === + +// interface interface1 extends interface1 { +// [|doStuff|](): void; // r0 +// propName: string; // r1 +// } +// +// var v: interface1; +// v./*FIND ALL REFS*/[|doStuff|](); // r2 +// v.propName; // r3 + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties2.ts === + +// interface interface1 extends interface1 { +// doStuff(): void; // r0 +// [|propName|]: string; // r1 +// } +// +// var v: interface1; +// v.doStuff(); // r2 +// v./*FIND ALL REFS*/[|propName|]; // r3 diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..a95744a09a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties3.baseline.jsonc @@ -0,0 +1,178 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// class class1 extends class1 { +// doStuff() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// --- (line: 3) skipped --- +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v./*FIND ALL REFS*/[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties3.ts === + +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v./*FIND ALL REFS*/[|propName|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..f83b0363aa --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties4.baseline.jsonc @@ -0,0 +1,79 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === + +// interface C extends D { +// /*FIND ALL REFS*/[|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// [|prop0|]: string; +// } +// +// var d: D; +// d.[|prop0|]; +// d.prop1; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === + +// interface C extends D { +// [|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// /*FIND ALL REFS*/[|prop0|]: string; +// } +// +// var d: D; +// d.[|prop0|]; +// d.prop1; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === + +// interface C extends D { +// [|prop0|]: string; +// prop1: number; +// } +// +// interface D extends C { +// [|prop0|]: string; +// } +// +// var d: D; +// d./*FIND ALL REFS*/[|prop0|]; +// d.prop1; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === + +// interface C extends D { +// prop0: string; +// /*FIND ALL REFS*/[|prop1|]: number; +// } +// +// interface D extends C { +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties4.ts === + +// --- (line: 8) skipped --- +// +// var d: D; +// d.prop0; +// d./*FIND ALL REFS*/prop1; diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties5.baseline.jsonc new file mode 100644 index 0000000000..4fe7fef95d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties5.baseline.jsonc @@ -0,0 +1,69 @@ +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === + +// class C extends D { +// /*FIND ALL REFS*/[|prop0|]: string; +// prop1: number; +// } +// +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === + +// class C extends D { +// prop0: string; +// /*FIND ALL REFS*/[|prop1|]: number; +// } +// +// class D extends C { +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === + +// --- (line: 3) skipped --- +// } +// +// class D extends C { +// /*FIND ALL REFS*/[|prop0|]: string; +// } +// +// var d: D; +// d.[|prop0|]; +// d.prop1; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === + +// --- (line: 3) skipped --- +// } +// +// class D extends C { +// [|prop0|]: string; +// } +// +// var d: D; +// d./*FIND ALL REFS*/[|prop0|]; +// d.prop1; + + + + +// === findAllReferences === +// === /findAllRefsInheritedProperties5.ts === + +// --- (line: 8) skipped --- +// +// var d: D; +// d.prop0; +// d./*FIND ALL REFS*/prop1; diff --git a/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates1.baseline.jsonc new file mode 100644 index 0000000000..66422cec63 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates1.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === + +// /*FIND ALL REFS*/var x = 10; +// var y = `${ x } ${ x }` + + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === + +// var /*FIND ALL REFS*/[|x|] = 10; +// var y = `${ [|x|] } ${ [|x|] }` + + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === + +// var [|x|] = 10; +// var y = `${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` + + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates1.ts === + +// var [|x|] = 10; +// var y = `${ x } ${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` diff --git a/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates2.baseline.jsonc new file mode 100644 index 0000000000..2f308122c1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates2.baseline.jsonc @@ -0,0 +1,41 @@ +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === + +// /*FIND ALL REFS*/function f(...rest: any[]) { } +// f `${ f } ${ f }` + + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === + +// function /*FIND ALL REFS*/[|f|](...rest: any[]) { } +// [|f|] `${ [|f|] } ${ [|f|] }` + + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === + +// function [|f|](...rest: any[]) { } +// /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` + + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === + +// function [|f|](...rest: any[]) { } +// f `${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` + + + + +// === findAllReferences === +// === /findAllRefsInsideTemplates2.ts === + +// function [|f|](...rest: any[]) { } +// f `${ f } ${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` diff --git a/testdata/baselines/reference/fourslash/findAllRefsInsideWithBlock.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsInsideWithBlock.baseline.jsonc new file mode 100644 index 0000000000..d35e86b4d2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsInsideWithBlock.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === + +// /*FIND ALL REFS*/var x = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === + +// var /*FIND ALL REFS*/[|x|] = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// y++; // also reference for y should be ignored +// } +// +// [|x|] = [|x|] + 1; + + + + +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === + +// var [|x|] = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// y++; // also reference for y should be ignored +// } +// +// /*FIND ALL REFS*/[|x|] = [|x|] + 1; + + + + +// === findAllReferences === +// === /findAllRefsInsideWithBlock.ts === + +// var [|x|] = 0; +// +// with ({}) { +// var y = x; // Reference of x here should not be picked +// y++; // also reference for y should be ignored +// } +// +// x = /*FIND ALL REFS*/[|x|] = [|x|] + 1; diff --git a/testdata/baselines/reference/fourslash/findAllRefsIsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsIsDefinition.baseline.jsonc new file mode 100644 index 0000000000..640e9faa8d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsIsDefinition.baseline.jsonc @@ -0,0 +1,115 @@ +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === + +// declare function [|foo|](a: number): number; +// declare function [|foo|](a: string): string; +// declare function foo/*FIND ALL REFS*/[|foo|](a: string | number): string | number; +// +// function foon(a: number): number; +// function foon(a: string): string; +// function foon(a: string | number): string | number { +// return a +// } +// +// [|foo|]; foon; +// +// export const bar = 123; +// console.log({ bar }); +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === + +// declare function foo(a: number): number; +// declare function foo(a: string): string; +// declare function foo(a: string | number): string | number; +// +// function [|foon|](a: number): number; +// function [|foon|](a: string): string; +// function foon/*FIND ALL REFS*/[|foon|](a: string | number): string | number { +// return a +// } +// +// foo; [|foon|]; +// +// export const bar = 123; +// console.log({ bar }); +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === + +// --- (line: 9) skipped --- +// +// foo; foon; +// +// export const bar/*FIND ALL REFS*/[|bar|] = 123; +// console.log({ [|bar|] }); +// +// interface IFoo { +// foo(): void; +// // --- (line: 18) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === + +// --- (line: 13) skipped --- +// console.log({ bar }); +// +// interface IFoo { +// foo/*FIND ALL REFS*/[|foo|](): void; +// } +// class Foo implements IFoo { +// constructor(n: number) +// constructor() +// constructor(n: number?) { } +// [|foo|](): void { } +// static init() { return new this() } +// } + + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === + +// --- (line: 15) skipped --- +// interface IFoo { +// foo(): void; +// } +// class [|Foo|] implements IFoo { +// constructor(n: number) +// constructor() +// /*FIND ALL REFS*/constructor(n: number?) { } +// foo(): void { } +// static init() { return new this() } +// } + + + + +// === findAllReferences === +// === /findAllRefsIsDefinition.ts === + +// --- (line: 13) skipped --- +// console.log({ bar }); +// +// interface IFoo { +// [|foo|](): void; +// } +// class Foo implements IFoo { +// constructor(n: number) +// constructor() +// constructor(n: number?) { } +// foo/*FIND ALL REFS*/[|foo|](): void { } +// static init() { return new this() } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag.baseline.jsonc new file mode 100644 index 0000000000..194115ed98 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /a.js === + +// /** +// * @import { A } from "./b"; +// */ +// +// /** +// * @param { A/*FIND ALL REFS*/[|A|] } a +// */ +// function f(a) {} diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag2.baseline.jsonc new file mode 100644 index 0000000000..a2ec533fb8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag2.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /component.js === + +// export default class [|Component|] { +// constructor() { +// this.id_ = Math.random(); +// } +// // --- (line: 5) skipped --- + + +// === /player.js === + +// import [|Component|] from './component.js'; +// +// /** +// * @extends Component/*FIND ALL REFS*/[|Component|] +// */ +// export class Player extends [|Component|] {} + + +// === /spatial-navigation.js === + +// /** @import Component from './component.js' */ +// +// export class SpatialNavigation { +// /** +// * @param {[|Component|]} component +// */ +// add(component) {} +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag3.baseline.jsonc new file mode 100644 index 0000000000..7ad3975207 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag3.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /component.js === + +// export class [|Component|] { +// constructor() { +// this.id_ = Math.random(); +// } +// // --- (line: 5) skipped --- + + +// === /player.js === + +// import { [|Component|] } from './component.js'; +// +// /** +// * @extends Component/*FIND ALL REFS*/[|Component|] +// */ +// export class Player extends [|Component|] {} + + +// === /spatial-navigation.js === + +// /** @import { Component } from './component.js' */ +// +// export class SpatialNavigation { +// /** +// * @param {[|Component|]} component +// */ +// add(component) {} +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag4.baseline.jsonc new file mode 100644 index 0000000000..b5667df472 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag4.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /player.js === + +// import * as [|C|] from './component.js'; +// +// /** +// * @extends C/*FIND ALL REFS*/[|C|].Component +// */ +// export class Player extends Component {} diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag5.baseline.jsonc new file mode 100644 index 0000000000..a0f27113d0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag5.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /a.js === + +// export default function /*FIND ALL REFS*/[|a|]() {} + + + + +// === findAllReferences === +// === /b.js === + +// /** @import /*FIND ALL REFS*/a, * as ns from "./a" */ diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_class.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_class.baseline.jsonc new file mode 100644 index 0000000000..bd853462b7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_class.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_class.ts === + +// /** @template /*FIND ALL REFS*/T */ +// class C {} + + + + +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_class.ts === + +// /** @template T */ +// class C {} diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_function.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_function.baseline.jsonc new file mode 100644 index 0000000000..6ce6028fed --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_function.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_function.ts === + +// /** @template /*FIND ALL REFS*/T */ +// function f() {} + + + + +// === findAllReferences === +// === /findAllRefsJsDocTemplateTag_function.ts === + +// /** @template T */ +// function f() {} diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocTypeDef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsDocTypeDef.baseline.jsonc new file mode 100644 index 0000000000..293f64aee6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsDocTypeDef.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /findAllRefsJsDocTypeDef.ts === + +// /** @typedef {Object} /*FIND ALL REFS*/T */ +// function foo() {} diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..44c5225d74 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /a.js === + +// import { infer } from "./infer"; +// infer({ +// m() { +// this.[|x|] = 1; +// this./*FIND ALL REFS*/[|x|]; +// }, +// }); + + +// === /infer.d.ts === + +// export declare function infer(o: { m(): void } & ThisType<{ [|x|]: number }>): void; + + + + +// === findAllReferences === +// === /b.js === + +// --- (line: 4) skipped --- +// function infer(o) {} +// infer({ +// m() { +// this.[|x|] = 2; +// this./*FIND ALL REFS*/[|x|]; +// }, +// }); diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment2.baseline.jsonc new file mode 100644 index 0000000000..91781f1b5b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment2.baseline.jsonc @@ -0,0 +1,64 @@ +// === findAllReferences === +// === /a.js === + +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this./*FIND ALL REFS*/[|x|]; +// }, +// } +// }); + + +// === /b.ts === + +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this.[|x|]; +// }, +// } +// }); + + +// === /infer.d.ts === + +// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; + + + + +// === findAllReferences === +// === /a.js === + +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this.[|x|]; +// }, +// } +// }); + + +// === /b.ts === + +// import { infer } from "./infer"; +// infer({ +// m: { +// initData() { +// this.[|x|] = 1; +// this./*FIND ALL REFS*/[|x|]; +// }, +// } +// }); + + +// === /infer.d.ts === + +// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; diff --git a/testdata/baselines/reference/fourslash/findAllRefsMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsMappedType.baseline.jsonc new file mode 100644 index 0000000000..595ca19d09 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsMappedType.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllRefsMappedType.ts === + +// interface T { /*FIND ALL REFS*/[|a|]: number; } +// type U = { readonly [K in keyof T]?: string }; +// declare const t: T; +// t.[|a|]; +// declare const u: U; +// u.[|a|]; + + + + +// === findAllReferences === +// === /findAllRefsMappedType.ts === + +// interface T { [|a|]: number; } +// type U = { readonly [K in keyof T]?: string }; +// declare const t: T; +// t./*FIND ALL REFS*/[|a|]; +// declare const u: U; +// u.[|a|]; + + + + +// === findAllReferences === +// === /findAllRefsMappedType.ts === + +// interface T { [|a|]: number; } +// type U = { readonly [K in keyof T]?: string }; +// declare const t: T; +// t.[|a|]; +// declare const u: U; +// u./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsMappedType_nonHomomorphic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsMappedType_nonHomomorphic.baseline.jsonc new file mode 100644 index 0000000000..a424fcaed1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsMappedType_nonHomomorphic.baseline.jsonc @@ -0,0 +1,18 @@ +// === findAllReferences === +// === /findAllRefsMappedType_nonHomomorphic.ts === + +// function f(x: { [K in "m"]: number; }) { +// x./*FIND ALL REFS*/[|m|]; +// x.[|m|] +// } + + + + +// === findAllReferences === +// === /findAllRefsMappedType_nonHomomorphic.ts === + +// function f(x: { [K in "m"]: number; }) { +// x.[|m|]; +// x./*FIND ALL REFS*/[|m|] +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc new file mode 100644 index 0000000000..3084b91d0c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc @@ -0,0 +1,16 @@ +// === findAllReferences === +// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === + +// // https://github.com/microsoft/TypeScript/issues/5551 +// import { resolve/*FIND ALL REFS*/ as resolveUrl } from "idontcare"; +// import { resolve } from "whatever"; + + + + +// === findAllReferences === +// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === + +// // https://github.com/microsoft/TypeScript/issues/5551 +// import { resolve as resolveUrl } from "idontcare"; +// import { resolve/*FIND ALL REFS*/[|resolve|] } from "whatever"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsNoImportClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsNoImportClause.baseline.jsonc new file mode 100644 index 0000000000..aca1027ca4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsNoImportClause.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/export const x = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export const /*FIND ALL REFS*/[|x|] = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc new file mode 100644 index 0000000000..68196163ac --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /findAllRefsNoSubstitutionTemplateLiteralNoCrash1.ts === + +// type Test = `T/*FIND ALL REFS*/`; diff --git a/testdata/baselines/reference/fourslash/findAllRefsNonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsNonModule.baseline.jsonc new file mode 100644 index 0000000000..d0673c78f8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsNonModule.baseline.jsonc @@ -0,0 +1,22 @@ +// === findAllReferences === +// === /import.ts === + +// import "./script/*FIND ALL REFS*/"; + + + + +// === findAllReferences === +// === /require.js === + +// require("./script/*FIND ALL REFS*/"); +// console.log("./script"); + + + + +// === findAllReferences === +// === /require.js === + +// require("./script"); +// console.log("./script/*FIND ALL REFS*/"); diff --git a/testdata/baselines/reference/fourslash/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc new file mode 100644 index 0000000000..6557f2d5a6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /src/parser.js === + +// --- (line: 10) skipped --- +// variable: function () { +// let name; +// +// if (parserInput.currentChar() === "/*FIND ALL REFS*/@") { +// return name[1]; +// } +// }, +// // --- (line: 18) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc new file mode 100644 index 0000000000..1b331d7fc8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName01.ts === + +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { [|property1|]: prop1 } = foo; + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName01.ts === + +// --- (line: 3) skipped --- +// } +// +// var foo: I; +// /*FIND ALL REFS*/var { property1: prop1 } = foo; + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName01.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*FIND ALL REFS*/[|property1|]: prop1 } = foo; diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc new file mode 100644 index 0000000000..6407c6031f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName02.ts === + +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { [|property1|]: {} } = foo; + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName02.ts === + +// --- (line: 3) skipped --- +// } +// +// var foo: I; +// /*FIND ALL REFS*/var { property1: {} } = foo; + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName02.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*FIND ALL REFS*/[|property1|]: {} } = foo; diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc new file mode 100644 index 0000000000..693b834f7f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName03.ts === + +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var [ { [|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName03.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var [ { property1: prop1 }, { /*FIND ALL REFS*/[|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc new file mode 100644 index 0000000000..915b803c98 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc @@ -0,0 +1,66 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === + +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// function f({ [|property1|]: p1 }: I, +// { [|property1|] }: I, +// { property1: p2 }) { +// +// return property1 + 1; +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// function f({ /*FIND ALL REFS*/[|property1|]: p1 }: I, +// { [|property1|] }: I, +// { property1: p2 }) { +// +// return property1 + 1; +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// function f({ [|property1|]: p1 }: I, +// { /*FIND ALL REFS*/[|property1|] }: I, +// { property1: p2 }) { +// +// return [|property1|] + 1; +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName04.ts === + +// --- (line: 3) skipped --- +// } +// +// function f({ property1: p1 }: I, +// { [|property1|] }: I, +// { property1: p2 }) { +// +// return /*FIND ALL REFS*/[|property1|] + 1; +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc new file mode 100644 index 0000000000..3978cfa9f9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName05.ts === + +// interface I { +// property1: number; +// property2: string; +// } +// +// function f({ /*FIND ALL REFS*/property1: p }, { property1 }) { +// let x = property1; +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc new file mode 100644 index 0000000000..8e498e58b7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc @@ -0,0 +1,106 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === + +// interface I { +// /*FIND ALL REFS*/[|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { /*FIND ALL REFS*/[|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { /*FIND ALL REFS*/[|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { [|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ /*FIND ALL REFS*/[|property1|] : p2 } of elems) { +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName06.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var elems: I[]; +// for (let { [|property1|]: p } of elems) { +// } +// for (let { /*FIND ALL REFS*/[|property1|] } of elems) { +// } +// for (var { [|property1|]: p1 } of elems) { +// } +// var p2; +// for ({ [|property1|] : p2 } of elems) { +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc new file mode 100644 index 0000000000..1a23173a81 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName07.ts === + +// let p, b; +// +// p, [{ /*FIND ALL REFS*/[|a|]: p, b }] = [{ [|a|]: 10, b: true }]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc new file mode 100644 index 0000000000..8e72d7afce --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc @@ -0,0 +1,52 @@ +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === + +// interface Recursive { +// /*FIND ALL REFS*/[|next|]?: Recursive; +// value: any; +// } +// +// function f ({ [|next|]: { [|next|]: x} }: Recursive) { +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === + +// interface Recursive { +// next?: Recursive; +// value: any; +// } +// +// function f (/*FIND ALL REFS*/{ next: { next: x} }: Recursive) { +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === + +// interface Recursive { +// [|next|]?: Recursive; +// value: any; +// } +// +// function f ({ /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { +// } + + + + +// === findAllReferences === +// === /findAllRefsObjectBindingElementPropertyName10.ts === + +// interface Recursive { +// [|next|]?: Recursive; +// value: any; +// } +// +// function f ({ next: { /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsOfConstructor_withModifier.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOfConstructor_withModifier.baseline.jsonc new file mode 100644 index 0000000000..79cc67c300 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsOfConstructor_withModifier.baseline.jsonc @@ -0,0 +1,7 @@ +// === findAllReferences === +// === /findAllRefsOfConstructor_withModifier.ts === + +// class [|X|] { +// public /*FIND ALL REFS*/constructor() {} +// } +// var x = new [|X|](); diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOnDecorators.baseline.jsonc new file mode 100644 index 0000000000..0ed9171424 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsOnDecorators.baseline.jsonc @@ -0,0 +1,107 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/function decorator(target) { +// return target; +// } +// decorator(); + + + + +// === findAllReferences === +// === /a.ts === + +// function /*FIND ALL REFS*/[|decorator|](target) { +// return target; +// } +// [|decorator|](); + + +// === /b.ts === + +// @[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + + +// === findAllReferences === +// === /a.ts === + +// function [|decorator|](target) { +// return target; +// } +// /*FIND ALL REFS*/[|decorator|](); + + +// === /b.ts === + +// @[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + + +// === findAllReferences === +// === /a.ts === + +// function [|decorator|](target) { +// return target; +// } +// [|decorator|](); + + +// === /b.ts === + +// @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + + +// === findAllReferences === +// === /a.ts === + +// function [|decorator|](target) { +// return target; +// } +// [|decorator|](); + + +// === /b.ts === + +// @decorator @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") +// class C { +// @[|decorator|] +// method() {} +// } + + + + +// === findAllReferences === +// === /a.ts === + +// function [|decorator|](target) { +// return target; +// } +// [|decorator|](); + + +// === /b.ts === + +// @[|decorator|] @[|decorator|]("again") +// class C { +// @/*FIND ALL REFS*/[|decorator|] +// method() {} +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOnDefinition.baseline.jsonc new file mode 100644 index 0000000000..483317456a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsOnDefinition.baseline.jsonc @@ -0,0 +1,62 @@ +// === findAllReferences === +// === /findAllRefsOnDefinition-import.ts === + +// --- (line: 3) skipped --- +// +// } +// +// /*FIND ALL REFS*/public start(){ +// return this; +// } +// +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsOnDefinition-import.ts === + +// --- (line: 3) skipped --- +// +// } +// +// public /*FIND ALL REFS*/[|start|](){ +// return this; +// } +// +// // --- (line: 11) skipped --- + + +// === /findAllRefsOnDefinition.ts === + +// import Second = require("./findAllRefsOnDefinition-import"); +// +// var second = new Second.Test() +// second.[|start|](); +// second.stop(); + + + + +// === findAllReferences === +// === /findAllRefsOnDefinition-import.ts === + +// --- (line: 3) skipped --- +// +// } +// +// public [|start|](){ +// return this; +// } +// +// // --- (line: 11) skipped --- + + +// === /findAllRefsOnDefinition.ts === + +// import Second = require("./findAllRefsOnDefinition-import"); +// +// var second = new Second.Test() +// second./*FIND ALL REFS*/[|start|](); +// second.stop(); diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOnDefinition2.baseline.jsonc new file mode 100644 index 0000000000..b8e8d6fe68 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsOnDefinition2.baseline.jsonc @@ -0,0 +1,51 @@ +// === findAllReferences === +// === /findAllRefsOnDefinition2-import.ts === + +// export module Test{ +// +// /*FIND ALL REFS*/export interface start { } +// +// export interface stop { } +// } + + + + +// === findAllReferences === +// === /findAllRefsOnDefinition2-import.ts === + +// export module Test{ +// +// export interface /*FIND ALL REFS*/[|start|] { } +// +// export interface stop { } +// } + + +// === /findAllRefsOnDefinition2.ts === + +// import Second = require("./findAllRefsOnDefinition2-import"); +// +// var start: Second.Test.[|start|]; +// var stop: Second.Test.stop; + + + + +// === findAllReferences === +// === /findAllRefsOnDefinition2-import.ts === + +// export module Test{ +// +// export interface [|start|] { } +// +// export interface stop { } +// } + + +// === /findAllRefsOnDefinition2.ts === + +// import Second = require("./findAllRefsOnDefinition2-import"); +// +// var start: Second.Test./*FIND ALL REFS*/[|start|]; +// var stop: Second.Test.stop; diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases.baseline.jsonc new file mode 100644 index 0000000000..d775aa9da9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /a.ts === + +// export class /*FIND ALL REFS*/[|Class|] { +// } + + +// === /b.ts === + +// import { [|Class|] } from "./a"; +// +// var c = new [|Class|](); + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|Class|] { +// } + + +// === /b.ts === + +// import { /*FIND ALL REFS*/[|Class|] } from "./a"; +// +// var c = new [|Class|](); + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|Class|] { +// } + + +// === /b.ts === + +// import { [|Class|] } from "./a"; +// +// var c = new /*FIND ALL REFS*/[|Class|](); diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc new file mode 100644 index 0000000000..d5f8446f3a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc @@ -0,0 +1,162 @@ +// === findAllReferences === +// === /a.ts === + +// export class /*FIND ALL REFS*/[|Class|] {} + + +// === /b.ts === + +// import { [|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + + +// === /c.ts === + +// export { [|Class|] as C3 } from "./a"; + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|Class|] {} + + +// === /b.ts === + +// import { /*FIND ALL REFS*/[|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + + +// === /c.ts === + +// export { [|Class|] as C3 } from "./a"; + + + + +// === findAllReferences === +// === /a.ts === + +// export class [|Class|] {} + + +// === /b.ts === + +// import { [|Class|] as [|C2|] } from "./a"; +// var c = new [|C2|](); + + +// === /c.ts === + +// export { /*FIND ALL REFS*/[|Class|] as C3 } from "./a"; + + + + +// === findAllReferences === +// === /b.ts === + +// import { Class as /*FIND ALL REFS*/[|C2|] } from "./a"; +// var c = new [|C2|](); + + + + +// === findAllReferences === +// === /b.ts === + +// import { Class as [|C2|] } from "./a"; +// var c = new /*FIND ALL REFS*/[|C2|](); + + + + +// === findAllReferences === +// === /c.ts === + +// export { Class as /*FIND ALL REFS*/C3 } from "./a"; + + + + +// === findRenameLocations === +// === /a.ts === + +// export class /*RENAME*/[|ClassRENAME|] {} + + +// === /b.ts === + +// import { [|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + + +// === /c.ts === + +// export { [|ClassRENAME|] as C3 } from "./a"; + + + + +// === findRenameLocations === +// === /a.ts === + +// export class [|ClassRENAME|] {} + + +// === /b.ts === + +// import { /*RENAME*/[|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + + +// === /c.ts === + +// export { [|ClassRENAME|] as C3 } from "./a"; + + + + +// === findRenameLocations === +// === /a.ts === + +// export class [|ClassRENAME|] {} + + +// === /b.ts === + +// import { [|ClassRENAME|] as C2 } from "./a"; +// var c = new C2(); + + +// === /c.ts === + +// export { /*RENAME*/[|ClassRENAME|] as C3 } from "./a"; + + + + +// === findRenameLocations === +// === /b.ts === + +// import { Class as /*RENAME*/[|C2RENAME|] } from "./a"; +// var c = new [|C2RENAME|](); + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import { Class as C2 } from "./a"; +// var c = new C2(); + + + + +// === findRenameLocations === +// === /c.ts === + +// export { Class as /*RENAME*/C3 } from "./a"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnPrivateParameterProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOnPrivateParameterProperty1.baseline.jsonc new file mode 100644 index 0000000000..407551ecf5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsOnPrivateParameterProperty1.baseline.jsonc @@ -0,0 +1,39 @@ +// === findAllReferences === +// === /findAllRefsOnPrivateParameterProperty1.ts === + +// class ABCD { +// constructor(private x: number, public y: number, /*FIND ALL REFS*/private z: number) { +// } +// +// func() { +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsOnPrivateParameterProperty1.ts === + +// class ABCD { +// constructor(private x: number, public y: number, private /*FIND ALL REFS*/[|z|]: number) { +// } +// +// func() { +// return this.[|z|]; +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsOnPrivateParameterProperty1.ts === + +// class ABCD { +// constructor(private x: number, public y: number, private [|z|]: number) { +// } +// +// func() { +// return this./*FIND ALL REFS*/[|z|]; +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration1.baseline.jsonc new file mode 100644 index 0000000000..1051fef3e0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration1.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration1.ts === + +// class Foo { +// constructor(private /*FIND ALL REFS*/[|privateParam|]: number) { +// let localPrivate = [|privateParam|]; +// this.[|privateParam|] += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration2.baseline.jsonc new file mode 100644 index 0000000000..7ad1bdc9fd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration2.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration2.ts === + +// class Foo { +// constructor(public /*FIND ALL REFS*/[|publicParam|]: number) { +// let localPublic = [|publicParam|]; +// this.[|publicParam|] += 10; +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration2.ts === + +// class Foo { +// constructor(public [|publicParam|]: number) { +// let localPublic = /*FIND ALL REFS*/[|publicParam|]; +// this.[|publicParam|] += 10; +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration2.ts === + +// class Foo { +// constructor(public [|publicParam|]: number) { +// let localPublic = [|publicParam|]; +// this./*FIND ALL REFS*/[|publicParam|] += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration3.baseline.jsonc new file mode 100644 index 0000000000..a0cdacdd22 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration3.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration3.ts === + +// class Foo { +// constructor(protected /*FIND ALL REFS*/[|protectedParam|]: number) { +// let localProtected = [|protectedParam|]; +// this.[|protectedParam|] += 10; +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration3.ts === + +// class Foo { +// constructor(protected [|protectedParam|]: number) { +// let localProtected = /*FIND ALL REFS*/[|protectedParam|]; +// this.[|protectedParam|] += 10; +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration3.ts === + +// class Foo { +// constructor(protected [|protectedParam|]: number) { +// let localProtected = [|protectedParam|]; +// this./*FIND ALL REFS*/[|protectedParam|] += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc new file mode 100644 index 0000000000..2a68d0dcfe --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc @@ -0,0 +1,61 @@ +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === + +// class C { +// constructor(public /*FIND ALL REFS*/[|x|]: string) { +// [|x|]; +// } +// } +// class D extends C { +// constructor(public [|x|]: string) { +// super([|x|]); +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === + +// class C { +// constructor(public [|x|]: string) { +// /*FIND ALL REFS*/[|x|]; +// } +// } +// class D extends C { +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === + +// class C { +// constructor(public [|x|]: string) { +// [|x|]; +// } +// } +// class D extends C { +// constructor(public /*FIND ALL REFS*/[|x|]: string) { +// super([|x|]); +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === + +// class C { +// constructor(public [|x|]: string) { +// [|x|]; +// } +// } +// class D extends C { +// constructor(public [|x|]: string) { +// super(/*FIND ALL REFS*/[|x|]); +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrimitiveJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsPrimitiveJsDoc.baseline.jsonc new file mode 100644 index 0000000000..a4a258ac83 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsPrimitiveJsDoc.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === + +// /** +// * @param {/*FIND ALL REFS*/[|number|]} n +// * @returns {[|number|]} +// */ +// function f(n: [|number|]): [|number|] {} + + + + +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === + +// /** +// * @param {[|number|]} n +// * @returns {/*FIND ALL REFS*/[|number|]} +// */ +// function f(n: [|number|]): [|number|] {} + + + + +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === + +// /** +// * @param {[|number|]} n +// * @returns {[|number|]} +// */ +// function f(n: /*FIND ALL REFS*/[|number|]): [|number|] {} + + + + +// === findAllReferences === +// === /findAllRefsPrimitiveJsDoc.ts === + +// /** +// * @param {[|number|]} n +// * @returns {[|number|]} +// */ +// function f(n: number): /*FIND ALL REFS*/[|number|]): [|number|] {} diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrivateNameAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsPrivateNameAccessors.baseline.jsonc new file mode 100644 index 0000000000..b60326f81a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsPrivateNameAccessors.baseline.jsonc @@ -0,0 +1,155 @@ +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// class C { +// /*FIND ALL REFS*/get #foo(){ return 1; } +// set #foo(value: number){ } +// constructor() { +// this.#foo(); +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// class C { +// get /*FIND ALL REFS*/[|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// class C { +// get #foo(){ return 1; } +// /*FIND ALL REFS*/set #foo(value: number){ } +// constructor() { +// this.#foo(); +// } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// class C { +// get [|#foo|](){ return 1; } +// set /*FIND ALL REFS*/[|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// class C { +// get [|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// --- (line: 11) skipped --- +// } +// } +// class E { +// /*FIND ALL REFS*/get #foo(){ return 1; } +// set #foo(value: number){ } +// constructor() { +// this.#foo(); +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// --- (line: 11) skipped --- +// } +// } +// class E { +// get /*FIND ALL REFS*/[|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// --- (line: 12) skipped --- +// } +// class E { +// get #foo(){ return 1; } +// /*FIND ALL REFS*/set #foo(value: number){ } +// constructor() { +// this.#foo(); +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// --- (line: 11) skipped --- +// } +// } +// class E { +// get [|#foo|](){ return 1; } +// set /*FIND ALL REFS*/[|#foo|](value: number){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameAccessors.ts === + +// --- (line: 11) skipped --- +// } +// } +// class E { +// get [|#foo|](){ return 1; } +// set [|#foo|](value: number){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrivateNameMethods.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsPrivateNameMethods.baseline.jsonc new file mode 100644 index 0000000000..f24a72a75c --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsPrivateNameMethods.baseline.jsonc @@ -0,0 +1,58 @@ +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === + +// class C { +// /*FIND ALL REFS*/[|#foo|](){ } +// constructor() { +// this.[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === + +// class C { +// [|#foo|](){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } +// class D extends C { +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === + +// --- (line: 10) skipped --- +// } +// } +// class E { +// /*FIND ALL REFS*/[|#foo|](){ } +// constructor() { +// this.[|#foo|](); +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameMethods.ts === + +// --- (line: 10) skipped --- +// } +// } +// class E { +// [|#foo|](){ } +// constructor() { +// this./*FIND ALL REFS*/[|#foo|](); +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrivateNameProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsPrivateNameProperties.baseline.jsonc new file mode 100644 index 0000000000..9cca24a9f5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsPrivateNameProperties.baseline.jsonc @@ -0,0 +1,76 @@ +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === + +// class C { +// /*FIND ALL REFS*/[|#foo|] = 10; +// constructor() { +// this.[|#foo|] = 20; +// [|#foo|] in this; +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === + +// class C { +// [|#foo|] = 10; +// constructor() { +// this./*FIND ALL REFS*/[|#foo|] = 20; +// [|#foo|] in this; +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === + +// class C { +// [|#foo|] = 10; +// constructor() { +// this.[|#foo|] = 20; +// /*FIND ALL REFS*/[|#foo|] in this; +// } +// } +// class D extends C { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === + +// --- (line: 11) skipped --- +// } +// } +// class E { +// /*FIND ALL REFS*/[|#foo|]: number; +// constructor() { +// this.[|#foo|] = 20; +// } +// } + + + + +// === findAllReferences === +// === /findAllRefsPrivateNameProperties.ts === + +// --- (line: 11) skipped --- +// } +// } +// class E { +// [|#foo|]: number; +// constructor() { +// this./*FIND ALL REFS*/[|#foo|] = 20; +// } +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc new file mode 100644 index 0000000000..82414b2b25 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc @@ -0,0 +1,19 @@ +// === findAllReferences === +// === /findAllRefsPropertyContextuallyTypedByTypeParam01.ts === + +// interface IFoo { +// /*FIND ALL REFS*/[|a|]: string; +// } +// class C { +// method() { +// var x: T = { +// [|a|]: "" +// }; +// x.[|a|]; +// } +// } +// +// +// var x: IFoo = { +// [|a|]: "ss" +// }; diff --git a/testdata/baselines/reference/fourslash/findAllRefsReExport_broken2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsReExport_broken2.baseline.jsonc new file mode 100644 index 0000000000..559cb63f09 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsReExport_broken2.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/export { x } from "nonsense"; + + + + +// === findAllReferences === +// === /a.ts === + +// export { /*FIND ALL REFS*/x } from "nonsense"; diff --git a/testdata/baselines/reference/fourslash/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc new file mode 100644 index 0000000000..33f988fd9a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === + +// interface A { +// readonly /*FIND ALL REFS*/[|x|]: number | string; +// } +// interface B extends A { +// readonly [|x|]: number; +// } +// const a: A = { [|x|]: 0 }; +// const b: B = { [|x|]: 0 }; + + + + +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === + +// interface A { +// readonly [|x|]: number | string; +// } +// interface B extends A { +// readonly /*FIND ALL REFS*/[|x|]: number; +// } +// const a: A = { [|x|]: 0 }; +// const b: B = { [|x|]: 0 }; + + + + +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === + +// interface A { +// readonly [|x|]: number | string; +// } +// interface B extends A { +// readonly [|x|]: number; +// } +// const a: A = { /*FIND ALL REFS*/[|x|]: 0 }; +// const b: B = { [|x|]: 0 }; + + + + +// === findAllReferences === +// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === + +// interface A { +// readonly [|x|]: number | string; +// } +// interface B extends A { +// readonly [|x|]: number; +// } +// const a: A = { [|x|]: 0 }; +// const b: B = { /*FIND ALL REFS*/[|x|]: 0 }; diff --git a/testdata/baselines/reference/fourslash/findAllRefsRootSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsRootSymbols.baseline.jsonc new file mode 100644 index 0000000000..7b17dcb086 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsRootSymbols.baseline.jsonc @@ -0,0 +1,40 @@ +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === + +// interface I { /*FIND ALL REFS*/[|x|]: {}; } +// interface J { x: {}; } +// declare const o: (I | J) & { x: string }; +// o.[|x|]; + + + + +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === + +// interface I { x: {}; } +// interface J { /*FIND ALL REFS*/[|x|]: {}; } +// declare const o: (I | J) & { x: string }; +// o.[|x|]; + + + + +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === + +// interface I { x: {}; } +// interface J { x: {}; } +// declare const o: (I | J) & { /*FIND ALL REFS*/[|x|]: string }; +// o.[|x|]; + + + + +// === findAllReferences === +// === /findAllRefsRootSymbols.ts === + +// interface I { [|x|]: {}; } +// interface J { [|x|]: {}; } +// declare const o: (I | J) & { [|x|]: string }; +// o./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsThisKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsThisKeyword.baseline.jsonc new file mode 100644 index 0000000000..85287fafda --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsThisKeyword.baseline.jsonc @@ -0,0 +1,170 @@ +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// /*FIND ALL REFS*/[|this|]; +// function f(this) { +// return this; +// function g(this) { return this; } +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// this; +// function f(/*FIND ALL REFS*/[|this|]) { +// return [|this|]; +// function g(this) { return this; } +// } +// class C { +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// this; +// function f([|this|]) { +// return /*FIND ALL REFS*/[|this|]; +// function g(this) { return this; } +// } +// class C { +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// this; +// function f(this) { +// return this; +// function g(/*FIND ALL REFS*/[|this|]) { return [|this|]; } +// } +// class C { +// static x() { +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// this; +// function f(this) { +// return this; +// function g(this) { return /*FIND ALL REFS*/[|this|]) { return [|this|]; } +// } +// class C { +// static x() { +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// --- (line: 4) skipped --- +// } +// class C { +// static x() { +// /*FIND ALL REFS*/[|this|]; +// } +// static y() { +// () => [|this|]; +// } +// constructor() { +// this; +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// --- (line: 4) skipped --- +// } +// class C { +// static x() { +// [|this|]; +// } +// static y() { +// () => /*FIND ALL REFS*/[|this|]; +// } +// constructor() { +// this; +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// --- (line: 10) skipped --- +// () => this; +// } +// constructor() { +// /*FIND ALL REFS*/[|this|]; +// } +// method() { +// () => [|this|]; +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { this: 0 } +// x.this; + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// --- (line: 10) skipped --- +// () => this; +// } +// constructor() { +// [|this|]; +// } +// method() { +// () => /*FIND ALL REFS*/[|this|]; +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { this: 0 } +// x.this; + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// --- (line: 17) skipped --- +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { /*FIND ALL REFS*/[|this|]: 0 } +// x.[|this|]; + + + + +// === findAllReferences === +// === /findAllRefsThisKeyword.ts === + +// --- (line: 17) skipped --- +// } +// } +// // These are *not* real uses of the 'this' keyword, they are identifiers. +// const x = { [|this|]: 0 } +// x./*FIND ALL REFS*/[|this|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsThisKeywordMultipleFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsThisKeywordMultipleFiles.baseline.jsonc new file mode 100644 index 0000000000..84f2d2a7eb --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsThisKeywordMultipleFiles.baseline.jsonc @@ -0,0 +1,70 @@ +// === findAllReferences === +// === /file1.ts === + +// /*FIND ALL REFS*/[|this|]; [|this|]; + + + + +// === findAllReferences === +// === /file1.ts === + +// this; /*FIND ALL REFS*/[|this|]; [|this|]; + + + + +// === findAllReferences === +// === /file2.ts === + +// /*FIND ALL REFS*/[|this|]; +// [|this|]; + + + + +// === findAllReferences === +// === /file2.ts === + +// [|this|]; +// /*FIND ALL REFS*/[|this|]; + + + + +// === findAllReferences === +// === /file3.ts === + +// ((x = /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// // different 'this' +// function f(this) { return this; } + + + + +// === findAllReferences === +// === /file3.ts === + +// ((x = this, y) => /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// // different 'this' +// function f(this) { return this; } + + + + +// === findAllReferences === +// === /file3.ts === + +// ((x = this, y) => this)(/*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// // different 'this' +// function f(this) { return this; } + + + + +// === findAllReferences === +// === /file3.ts === + +// ((x = this, y) => this)(this, /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// // different 'this' +// function f(this) { return this; } diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypeParameterInMergedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsTypeParameterInMergedInterface.baseline.jsonc new file mode 100644 index 0000000000..db5de047a8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsTypeParameterInMergedInterface.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === + +// interface I { a: [|T|] } +// interface I<[|T|]> { b: [|T|] } + + + + +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === + +// interface I { a: /*FIND ALL REFS*/[|T|]> { a: [|T|] } +// interface I<[|T|]> { b: [|T|] } + + + + +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === + +// interface I<[|T|]> { a: [|T|] } +// interface I { b: [|T|] } + + + + +// === findAllReferences === +// === /findAllRefsTypeParameterInMergedInterface.ts === + +// interface I<[|T|]> { a: [|T|] } +// interface I { b: /*FIND ALL REFS*/[|T|]> { b: [|T|] } diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsTypedef.baseline.jsonc new file mode 100644 index 0000000000..003ada99ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsTypedef.baseline.jsonc @@ -0,0 +1,38 @@ +// === findAllReferences === +// === /a.js === + +// /** +// * @typedef I {Object} +// * /*FIND ALL REFS*/@prop p {number} +// */ +// +// /** @type {I} */ +// let x; +// x.p; + + + + +// === findAllReferences === +// === /a.js === + +// /** +// * @typedef I {Object} +// * @prop /*FIND ALL REFS*/p {number} +// */ +// +// /** @type {I} */ +// let x; +// x.p; + + + + +// === findAllReferences === +// === /a.js === + +// --- (line: 4) skipped --- +// +// /** @type {I} */ +// let x; +// x./*FIND ALL REFS*/[|p|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypedef_importType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsTypedef_importType.baseline.jsonc new file mode 100644 index 0000000000..66ce333a8f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsTypedef_importType.baseline.jsonc @@ -0,0 +1,25 @@ +// === findAllReferences === +// === /a.js === + +// module.exports = 0; +// /** /*FIND ALL REFS*/@typedef {number} Foo */ +// const dummy = 0; + + + + +// === findAllReferences === +// === /a.js === + +// module.exports = 0; +// /** @typedef {number} /*FIND ALL REFS*/Foo */ +// const dummy = 0; + + + + +// === findAllReferences === +// === /b.js === + +// /** @type {import('./a')./*FIND ALL REFS*/Foo} */ +// const x = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsTypeofImport.baseline.jsonc new file mode 100644 index 0000000000..78be51693f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsTypeofImport.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/export const x = 0; +// declare const a: typeof import("./a"); +// a.x; + + + + +// === findAllReferences === +// === /a.ts === + +// export const /*FIND ALL REFS*/[|x|] = 0; +// declare const a: typeof import("./a"); +// a.[|x|]; + + + + +// === findAllReferences === +// === /a.ts === + +// export const [|x|] = 0; +// declare const a: typeof import("./a"); +// a./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnionProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsUnionProperty.baseline.jsonc new file mode 100644 index 0000000000..7afaaa75e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsUnionProperty.baseline.jsonc @@ -0,0 +1,167 @@ +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { /*FIND ALL REFS*/[|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t.[|type|]; +// } + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { [|type|]: "a", prop: number } +// | { /*FIND ALL REFS*/[|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t.[|type|]; +// } + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { [|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t./*FIND ALL REFS*/[|type|] === "a") { +// t.[|type|]; +// } else { +// t.[|type|]; +// } + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { [|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t./*FIND ALL REFS*/[|type|]; +// } else { +// t.[|type|]; +// } + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { [|type|]: "a", prop: number } +// | { [|type|]: "b", prop: string }; +// const tt: T = { +// [|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t./*FIND ALL REFS*/[|type|]; +// } + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { [|type|]: "a", prop: number } +// | { type: "b", prop: string }; +// const tt: T = { +// /*FIND ALL REFS*/[|type|]: "a", +// prop: 0, +// }; +// declare const t: T; +// if (t.[|type|] === "a") { +// t.[|type|]; +// } else { +// t.type; +// } + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { type: "a", /*FIND ALL REFS*/[|prop|]: number } +// | { type: "b", [|prop|]: string }; +// const tt: T = { +// type: "a", +// [|prop|]: 0, +// }; +// declare const t: T; +// if (t.type === "a") { +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { type: "a", [|prop|]: number } +// | { type: "b", /*FIND ALL REFS*/[|prop|]: string }; +// const tt: T = { +// type: "a", +// [|prop|]: 0, +// }; +// declare const t: T; +// if (t.type === "a") { +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsUnionProperty.ts === + +// type T = +// | { type: "a", [|prop|]: number } +// | { type: "b", prop: string }; +// const tt: T = { +// type: "a", +// /*FIND ALL REFS*/[|prop|]: 0, +// }; +// declare const t: T; +// if (t.type === "a") { +// // --- (line: 10) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols1.baseline.jsonc new file mode 100644 index 0000000000..af8ae38dbe --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols1.baseline.jsonc @@ -0,0 +1,126 @@ +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: /*FIND ALL REFS*/[|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: [|Bar|]; +// let b: /*FIND ALL REFS*/[|Bar|]; +// let c: [|Bar|]; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: /*FIND ALL REFS*/[|Bar|]; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: /*FIND ALL REFS*/[|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: [|Bar|].X; +// let e: /*FIND ALL REFS*/[|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: /*FIND ALL REFS*/[|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar./*FIND ALL REFS*/[|X|]; +// let e: Bar.[|X|]; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.[|X|]; +// let e: Bar./*FIND ALL REFS*/[|X|]; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar./*FIND ALL REFS*/[|X|].Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols1.ts === + +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols2.baseline.jsonc new file mode 100644 index 0000000000..4835af1a9a --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols2.baseline.jsonc @@ -0,0 +1,155 @@ +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { /*FIND ALL REFS*/[|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { [|Bar|] } from "does-not-exist"; +// +// let a: /*FIND ALL REFS*/[|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: /*FIND ALL REFS*/[|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: /*FIND ALL REFS*/[|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: /*FIND ALL REFS*/[|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: /*FIND ALL REFS*/[|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { [|Bar|] } from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: /*FIND ALL REFS*/[|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { Bar } from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar./*FIND ALL REFS*/[|X|]; +// let e: Bar.[|X|]; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// import { Bar } from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.[|X|]; +// let e: Bar./*FIND ALL REFS*/[|X|]; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar./*FIND ALL REFS*/[|X|].Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols2.ts === + +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols3.baseline.jsonc new file mode 100644 index 0000000000..68a4f7d54e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols3.baseline.jsonc @@ -0,0 +1,155 @@ +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as /*FIND ALL REFS*/[|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as [|Bar|] from "does-not-exist"; +// +// let a: /*FIND ALL REFS*/[|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: /*FIND ALL REFS*/[|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: /*FIND ALL REFS*/[|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: /*FIND ALL REFS*/[|Bar|].X; +// let e: [|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: /*FIND ALL REFS*/[|Bar|].X; +// let f: [|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as [|Bar|] from "does-not-exist"; +// +// let a: [|Bar|]; +// let b: [|Bar|]; +// let c: [|Bar|]; +// let d: [|Bar|].X; +// let e: [|Bar|].X; +// let f: /*FIND ALL REFS*/[|Bar|].X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as Bar from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar./*FIND ALL REFS*/[|X|]; +// let e: Bar.[|X|]; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// import * as Bar from "does-not-exist"; +// +// let a: Bar; +// let b: Bar; +// let c: Bar; +// let d: Bar.[|X|]; +// let e: Bar./*FIND ALL REFS*/[|X|]; +// let f: Bar.X.Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar./*FIND ALL REFS*/[|X|].Y; + + + + +// === findAllReferences === +// === /findAllRefsUnresolvedSymbols3.ts === + +// --- (line: 4) skipped --- +// let c: Bar; +// let d: Bar.X; +// let e: Bar.X; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc new file mode 100644 index 0000000000..ba02337a95 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames1.ts === + +// class Foo { +// /*FIND ALL REFS*/public _bar() { return 0; } +// } +// +// var x: Foo; +// x._bar; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames1.ts === + +// class Foo { +// public /*FIND ALL REFS*/[|_bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|_bar|]; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames1.ts === + +// class Foo { +// public [|_bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|_bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc new file mode 100644 index 0000000000..b31db41b2f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames2.ts === + +// class Foo { +// /*FIND ALL REFS*/public __bar() { return 0; } +// } +// +// var x: Foo; +// x.__bar; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames2.ts === + +// class Foo { +// public /*FIND ALL REFS*/[|__bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|__bar|]; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames2.ts === + +// class Foo { +// public [|__bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|__bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc new file mode 100644 index 0000000000..0562f71fd3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames3.ts === + +// class Foo { +// /*FIND ALL REFS*/public ___bar() { return 0; } +// } +// +// var x: Foo; +// x.___bar; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames3.ts === + +// class Foo { +// public /*FIND ALL REFS*/[|___bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|___bar|]; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames3.ts === + +// class Foo { +// public [|___bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|___bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc new file mode 100644 index 0000000000..9c84a00083 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames4.ts === + +// class Foo { +// /*FIND ALL REFS*/public ____bar() { return 0; } +// } +// +// var x: Foo; +// x.____bar; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames4.ts === + +// class Foo { +// public /*FIND ALL REFS*/[|____bar|]() { return 0; } +// } +// +// var x: Foo; +// x.[|____bar|]; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames4.ts === + +// class Foo { +// public [|____bar|]() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|____bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc new file mode 100644 index 0000000000..cfa0dcde5e --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc @@ -0,0 +1,49 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames5.ts === + +// class Foo { +// public _bar; +// public __bar; +// /*FIND ALL REFS*/public ___bar; +// public ____bar; +// } +// +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames5.ts === + +// class Foo { +// public _bar; +// public __bar; +// public /*FIND ALL REFS*/[|___bar|]; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.__bar; +// x.[|___bar|]; +// x.____bar; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames5.ts === + +// class Foo { +// public _bar; +// public __bar; +// public [|___bar|]; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.__bar; +// x./*FIND ALL REFS*/[|___bar|]; +// x.____bar; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc new file mode 100644 index 0000000000..f74c6d36dc --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc @@ -0,0 +1,48 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames6.ts === + +// class Foo { +// public _bar; +// /*FIND ALL REFS*/public __bar; +// public ___bar; +// public ____bar; +// } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames6.ts === + +// class Foo { +// public _bar; +// public /*FIND ALL REFS*/[|__bar|]; +// public ___bar; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x.[|__bar|]; +// x.___bar; +// x.____bar; + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames6.ts === + +// class Foo { +// public _bar; +// public [|__bar|]; +// public ___bar; +// public ____bar; +// } +// +// var x: Foo; +// x._bar; +// x./*FIND ALL REFS*/[|__bar|]; +// x.___bar; +// x.____bar; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc new file mode 100644 index 0000000000..cb0a555584 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames7.ts === + +// /*FIND ALL REFS*/function __foo() { +// __foo(); +// } + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames7.ts === + +// function /*FIND ALL REFS*/[|__foo|]() { +// [|__foo|](); +// } + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames7.ts === + +// function [|__foo|]() { +// /*FIND ALL REFS*/[|__foo|](); +// } diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc new file mode 100644 index 0000000000..71af0eec08 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames8.ts === + +// (/*FIND ALL REFS*/function __foo() { +// __foo(); +// }) + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames8.ts === + +// (function /*FIND ALL REFS*/__foo() { +// [|__foo|](); +// }) + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames8.ts === + +// (function __foo() { +// /*FIND ALL REFS*/[|__foo|](); +// }) diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc new file mode 100644 index 0000000000..91680e3b4f --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames9.ts === + +// (/*FIND ALL REFS*/function ___foo() { +// ___foo(); +// }) + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames9.ts === + +// (function /*FIND ALL REFS*/___foo() { +// [|___foo|](); +// }) + + + + +// === findAllReferences === +// === /findAllRefsWithLeadingUnderscoreNames9.ts === + +// (function ___foo() { +// /*FIND ALL REFS*/[|___foo|](); +// }) diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..77400fcc7d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === + +// var /*FIND ALL REFS*/[|name|] = "Foo"; +// +// var obj = { name }; +// var obj1 = { name: name }; +// obj.name; + + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === + +// var name = "Foo"; +// +// var obj = { [|name|] }; +// var obj1 = { name: /*FIND ALL REFS*/[|name|] }; +// obj.name; + + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === + +// var name = "Foo"; +// +// var obj = { /*FIND ALL REFS*/[|name|] }; +// var obj1 = { name: [|name|] }; +// obj.[|name|]; + + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === + +// var name = "Foo"; +// +// var obj = { name }; +// var obj1 = { /*FIND ALL REFS*/[|name|]: name }; +// obj.name; + + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment.ts === + +// var name = "Foo"; +// +// var obj = { [|name|] }; +// var obj1 = { name: name }; +// obj./*FIND ALL REFS*/[|name|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc new file mode 100644 index 0000000000..4120f135f2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc @@ -0,0 +1,53 @@ +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === + +// var /*FIND ALL REFS*/[|dx|] = "Foo"; +// +// module M { export var dx; } +// module M { +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === + +// var dx = "Foo"; +// +// module M { export var /*FIND ALL REFS*/[|dx|]; } +// module M { +// var z = 100; +// export var y = { [|dx|], z }; +// } +// M.y.dx; + + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === + +// var dx = "Foo"; +// +// module M { export var [|dx|]; } +// module M { +// var z = 100; +// export var y = { /*FIND ALL REFS*/[|dx|], z }; +// } +// M.y.[|dx|]; + + + + +// === findAllReferences === +// === /findAllRefsWithShorthandPropertyAssignment2.ts === + +// var dx = "Foo"; +// +// module M { export var dx; } +// module M { +// var z = 100; +// export var y = { [|dx|], z }; +// } +// M.y./*FIND ALL REFS*/[|dx|]; diff --git a/testdata/baselines/reference/fourslash/findAllRefsWriteAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsWriteAccess.baseline.jsonc new file mode 100644 index 0000000000..300d3ee7c6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefsWriteAccess.baseline.jsonc @@ -0,0 +1,20 @@ +// === findAllReferences === +// === /findAllRefsWriteAccess.ts === + +// interface Obj { +// [`/*FIND ALL REFS*/[|num|]`]: number; +// } +// +// let o: Obj = { +// [`[|num|]`]: 0 +// }; +// +// o = { +// ['[|num|]']: 1 +// }; +// +// o['[|num|]'] = 2; +// o[`[|num|]`] = 3; +// +// o['[|num|]']; +// o[`[|num|]`]; diff --git a/testdata/baselines/reference/fourslash/findAllRefs_importType_js4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefs_importType_js4.baseline.jsonc new file mode 100644 index 0000000000..e86a958a74 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefs_importType_js4.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /a.js === + +// /** +// * @callback /*FIND ALL REFS*/A +// * @param {unknown} response +// */ +// +// module.exports = {}; diff --git a/testdata/baselines/reference/fourslash/findAllRefs_importType_meaningAtLocation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefs_importType_meaningAtLocation.baseline.jsonc new file mode 100644 index 0000000000..f325d43d5b --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefs_importType_meaningAtLocation.baseline.jsonc @@ -0,0 +1,74 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/export type T = 0; +// export const T = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type /*FIND ALL REFS*/[|T|] = 0; +// export const T = 0; + + +// === /b.ts === + +// const x: import("./a").[|T|] = 0; +// const x: typeof import("./a").T = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type T = 0; +// /*FIND ALL REFS*/export const T = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type T = 0; +// export const /*FIND ALL REFS*/[|T|] = 0; + + +// === /b.ts === + +// const x: import("./a").T = 0; +// const x: typeof import("./a").[|T|] = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type [|T|] = 0; +// export const T = 0; + + +// === /b.ts === + +// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; +// const x: typeof import("./a").T = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type T = 0; +// export const [|T|] = 0; + + +// === /b.ts === + +// const x: import("./a").T = 0; +// const x: typeof import("./a")./*FIND ALL REFS*/[|T|] = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRefs_importType_named.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefs_importType_named.baseline.jsonc new file mode 100644 index 0000000000..7c6dd58ef0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefs_importType_named.baseline.jsonc @@ -0,0 +1,74 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/export type T = number; +// export type U = string; + + + + +// === findAllReferences === +// === /a.ts === + +// export type /*FIND ALL REFS*/[|T|] = number; +// export type U = string; + + +// === /b.ts === + +// const x: import("./a").[|T|] = 0; +// const x: import("./a").U = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type T = number; +// /*FIND ALL REFS*/export type U = string; + + + + +// === findAllReferences === +// === /a.ts === + +// export type T = number; +// export type /*FIND ALL REFS*/[|U|] = string; + + +// === /b.ts === + +// const x: import("./a").T = 0; +// const x: import("./a").[|U|] = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type [|T|] = number; +// export type U = string; + + +// === /b.ts === + +// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; +// const x: import("./a").U = 0; + + + + +// === findAllReferences === +// === /a.ts === + +// export type T = number; +// export type [|U|] = string; + + +// === /b.ts === + +// const x: import("./a").T = 0; +// const x: import("./a")./*FIND ALL REFS*/[|U|] = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRefs_jsEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefs_jsEnum.baseline.jsonc new file mode 100644 index 0000000000..cfa4b6cff1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllRefs_jsEnum.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /a.js === + +// /** @enum {string} */ +// /*FIND ALL REFS*/const E = { A: "" }; +// E["A"]; +// /** @type {E} */ +// const e = E.A; + + + + +// === findAllReferences === +// === /a.js === + +// /** @enum {string} */ +// const /*FIND ALL REFS*/[|E|] = { A: "" }; +// [|E|]["A"]; +// /** @type {E} */ +// const e = [|E|].A; + + + + +// === findAllReferences === +// === /a.js === + +// /** @enum {string} */ +// const [|E|] = { A: "" }; +// /*FIND ALL REFS*/[|E|]["A"]; +// /** @type {E} */ +// const e = [|E|].A; + + + + +// === findAllReferences === +// === /a.js === + +// /** @enum {string} */ +// const E = { A: "" }; +// E["A"]; +// /** @type {/*FIND ALL REFS*/[|E|]} */ +// const e = E.A; + + + + +// === findAllReferences === +// === /a.js === + +// /** @enum {string} */ +// const [|E|] = { A: "" }; +// [|E|]["A"]; +// /** @type {E} */ +// const e = /*FIND ALL REFS*/[|E|].A; diff --git a/testdata/baselines/reference/fourslash/findReferencesAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findReferencesAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..9a4915ae42 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findReferencesAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,64 @@ +// === findAllReferences === +// === /a.ts === + +// /*FIND ALL REFS*/var x: number; + + + + +// === findAllReferences === +// === /a.ts === + +// var /*FIND ALL REFS*/[|x|]: number; + + +// === /b.ts === + +// /// +// [|x|]++; + + +// === /c.ts === + +// /// +// [|x|]++; + + + + +// === findAllReferences === +// === /a.ts === + +// var [|x|]: number; + + +// === /b.ts === + +// /// +// /*FIND ALL REFS*/[|x|]++; + + +// === /c.ts === + +// /// +// [|x|]++; + + + + +// === findAllReferences === +// === /a.ts === + +// var [|x|]: number; + + +// === /b.ts === + +// /// +// [|x|]++; + + +// === /c.ts === + +// /// +// /*FIND ALL REFS*/[|x|]++; diff --git a/testdata/baselines/reference/fourslash/findReferencesDefinitionDisplayParts.baseline.jsonc b/testdata/baselines/reference/fourslash/findReferencesDefinitionDisplayParts.baseline.jsonc new file mode 100644 index 0000000000..7f74b72a6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/findReferencesDefinitionDisplayParts.baseline.jsonc @@ -0,0 +1,50 @@ +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === + +// class Gre/*FIND ALL REFS*/[|Greeter|] { +// someFunction() { this; } +// } +// +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === + +// class Greeter { +// someFunction() { th/*FIND ALL REFS*/[|this|]; } +// } +// +// type Options = "option 1" | "option 2"; +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === + +// class Greeter { +// someFunction() { this; } +// } +// +// type Options = "opt/*FIND ALL REFS*/ion 1" | "option 2"; +// let myOption: Options = "option 1"; +// +// someLabel: +// break someLabel; + + + + +// === findAllReferences === +// === /findReferencesDefinitionDisplayParts.ts === + +// --- (line: 4) skipped --- +// type Options = "option 1" | "option 2"; +// let myOption: Options = "option 1"; +// +// some/*FIND ALL REFS*/[|someLabel|]: +// break [|someLabel|]; diff --git a/testdata/baselines/reference/fourslash/findReferencesJSXTagName.baseline.jsonc b/testdata/baselines/reference/fourslash/findReferencesJSXTagName.baseline.jsonc new file mode 100644 index 0000000000..7f54fb06bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/findReferencesJSXTagName.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /RedditSubmission.ts === + +// export const [|SubmissionComp|] = (submission: SubmissionProps) => +//
; + + +// === /index.tsx === + +// import { /*FIND ALL REFS*/[|SubmissionComp|] } from "./RedditSubmission" +// function displaySubreddit(subreddit: string) { +// let components = submissions +// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); +// } + + + + +// === findAllReferences === +// === /RedditSubmission.ts === + +// export const /*FIND ALL REFS*/[|SubmissionComp|] = (submission: SubmissionProps) => +//
; + + +// === /index.tsx === + +// import { [|SubmissionComp|] } from "./RedditSubmission" +// function displaySubreddit(subreddit: string) { +// let components = submissions +// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); +// } diff --git a/testdata/baselines/reference/fourslash/findReferencesJSXTagName2.baseline.jsonc b/testdata/baselines/reference/fourslash/findReferencesJSXTagName2.baseline.jsonc new file mode 100644 index 0000000000..947ecdadfa --- /dev/null +++ b/testdata/baselines/reference/fourslash/findReferencesJSXTagName2.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /index.tsx === + +// /*FIND ALL REFS*/const obj = {Component: () =>
}; +// const element = ; + + + + +// === findAllReferences === +// === /index.tsx === + +// const /*FIND ALL REFS*/[|obj|] = {Component: () =>
}; +// const element = <[|obj|].Component/>; + + + + +// === findAllReferences === +// === /index.tsx === + +// const [|obj|] = {Component: () =>
}; +// const element = ; diff --git a/testdata/baselines/reference/fourslash/findReferencesSeeTagInTs.baseline.jsonc b/testdata/baselines/reference/fourslash/findReferencesSeeTagInTs.baseline.jsonc new file mode 100644 index 0000000000..6659580478 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findReferencesSeeTagInTs.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /findReferencesSeeTagInTs.ts === + +// function doStuffWithStuff/*FIND ALL REFS*/[|doStuffWithStuff|](stuff: { quantity: number }) {} +// +// declare const stuff: { quantity: number }; +// /** @see {doStuffWithStuff} */ +// if (stuff.quantity) {} diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc new file mode 100644 index 0000000000..c2196d70e8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfArrowFunction.ts === + +// /*FIND ALL REFS*/var f = x => x + 1; +// f(12); + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfArrowFunction.ts === + +// var /*FIND ALL REFS*/[|f|] = x => x + 1; +// [|f|](12); + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfArrowFunction.ts === + +// var [|f|] = x => x + 1; +// /*FIND ALL REFS*/[|f|](12); diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc new file mode 100644 index 0000000000..25461975f6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfBindingPattern.ts === + +// const { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; +// const z = [|x|]; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfBindingPattern.ts === + +// const { x, y } = { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; +// const z = x; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfBindingPattern.ts === + +// const { [|x|], y } = { x: 1, y: 2 }; +// const z = /*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfClass.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfClass.baseline.jsonc new file mode 100644 index 0000000000..83e511eeb7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfClass.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfClass.ts === + +// /*FIND ALL REFS*/class C { +// n: number; +// constructor() { +// this.n = 12; +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfClass.ts === + +// class /*FIND ALL REFS*/[|C|] { +// n: number; +// constructor() { +// this.n = 12; +// } +// } +// let c = new [|C|](); + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfClass.ts === + +// class [|C|] { +// n: number; +// constructor() { +// this.n = 12; +// } +// } +// let c = new /*FIND ALL REFS*/[|C|](); diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc new file mode 100644 index 0000000000..9d3da828f6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === + +// let o = { /*FIND ALL REFS*/["foo"]: 12 }; +// let y = o.foo; +// let z = o['foo']; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === + +// let o = { ["/*FIND ALL REFS*/[|foo|]"]: 12 }; +// let y = o.[|foo|]; +// let z = o['[|foo|]']; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === + +// let o = { ["[|foo|]"]: 12 }; +// let y = o./*FIND ALL REFS*/[|foo|]; +// let z = o['[|foo|]']; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfComputedProperty.ts === + +// let o = { ["[|foo|]"]: 12 }; +// let y = o.[|foo|]; +// let z = o['/*FIND ALL REFS*/[|foo|]']; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfEnum.baseline.jsonc new file mode 100644 index 0000000000..5baafb9571 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfEnum.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfEnum.ts === + +// /*FIND ALL REFS*/enum E { +// First, +// Second +// } +// let first = E.First; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfEnum.ts === + +// enum /*FIND ALL REFS*/[|E|] { +// First, +// Second +// } +// let first = [|E|].First; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfEnum.ts === + +// enum [|E|] { +// First, +// Second +// } +// let first = /*FIND ALL REFS*/[|E|].First; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfExport.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfExport.baseline.jsonc new file mode 100644 index 0000000000..cd5e4c32f9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfExport.baseline.jsonc @@ -0,0 +1,24 @@ +// === findAllReferences === +// === /m.ts === + +// export var /*FIND ALL REFS*/[|x|] = 12; + + +// === /main.ts === + +// import { [|x|] } from "./m"; +// const y = [|x|]; + + + + +// === findAllReferences === +// === /m.ts === + +// export var [|x|] = 12; + + +// === /main.ts === + +// import { /*FIND ALL REFS*/[|x|] } from "./m"; +// const y = [|x|]; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfFunction.baseline.jsonc new file mode 100644 index 0000000000..ac9673eefd --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfFunction.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfFunction.ts === + +// /*FIND ALL REFS*/function func(x: number) { +// } +// func(x) + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfFunction.ts === + +// function /*FIND ALL REFS*/[|func|](x: number) { +// } +// [|func|](x) + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfFunction.ts === + +// function [|func|](x: number) { +// } +// /*FIND ALL REFS*/[|func|](x) diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterface.baseline.jsonc new file mode 100644 index 0000000000..c16b6adc4a --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterface.baseline.jsonc @@ -0,0 +1,29 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterface.ts === + +// /*FIND ALL REFS*/interface I { +// p: number; +// } +// let i: I = { p: 12 }; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterface.ts === + +// interface /*FIND ALL REFS*/[|I|] { +// p: number; +// } +// let i: [|I|] = { p: 12 }; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterface.ts === + +// interface [|I|] { +// p: number; +// } +// let i: /*FIND ALL REFS*/[|I|] = { p: 12 }; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc new file mode 100644 index 0000000000..e28de949ad --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc @@ -0,0 +1,139 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// /*FIND ALL REFS*/interface Numbers { +// p: number; +// } +// interface Numbers { +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// interface /*FIND ALL REFS*/[|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// interface Numbers { +// p: number; +// } +// /*FIND ALL REFS*/interface Numbers { +// m: number; +// } +// class Numbers { +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// interface [|Numbers|] { +// p: number; +// } +// interface /*FIND ALL REFS*/[|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// --- (line: 3) skipped --- +// interface Numbers { +// m: number; +// } +// /*FIND ALL REFS*/class Numbers { +// f(n: number) { +// return this.p + this.m + n; +// } +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class /*FIND ALL REFS*/[|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: [|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === + +// interface [|Numbers|] { +// p: number; +// } +// interface [|Numbers|] { +// m: number; +// } +// class [|Numbers|] { +// f(n: number) { +// return this.p + this.m + n; +// } +// } +// let i: Numbers = new /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); +// let x = i.f(i.p + i.m); diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc new file mode 100644 index 0000000000..57cd264bec --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc @@ -0,0 +1,29 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNamespace.ts === + +// /*FIND ALL REFS*/namespace Numbers { +// export var n = 12; +// } +// let x = Numbers.n + 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNamespace.ts === + +// namespace /*FIND ALL REFS*/[|Numbers|] { +// export var n = 12; +// } +// let x = [|Numbers|].n + 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNamespace.ts === + +// namespace [|Numbers|] { +// export var n = 12; +// } +// let x = /*FIND ALL REFS*/[|Numbers|].n + 1; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc new file mode 100644 index 0000000000..a0531f2db8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === + +// let o = { /*FIND ALL REFS*/[|1|]: 12 }; +// let y = o[[|1|]]; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === + +// let o = { [|1|]: 12 }; +// let y = o[/*FIND ALL REFS*/[|1|]]; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfParameter.baseline.jsonc new file mode 100644 index 0000000000..151e123cc8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfParameter.baseline.jsonc @@ -0,0 +1,16 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfParameter.ts === + +// function f(/*FIND ALL REFS*/[|x|]: number) { +// return [|x|] + 1 +// } + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfParameter.ts === + +// function f([|x|]: number) { +// return /*FIND ALL REFS*/[|x|] + 1 +// } diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc new file mode 100644 index 0000000000..3cfbe8fd34 --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === + +// let o = { /*FIND ALL REFS*/"[|x|]": 12 }; +// let y = o.[|x|]; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === + +// let o = { "/*FIND ALL REFS*/[|x|]": 12 }; +// let y = o.[|x|]; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === + +// let o = { "[|x|]": 12 }; +// let y = o./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc new file mode 100644 index 0000000000..de35e8d0ed --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfTypeAlias.ts === + +// /*FIND ALL REFS*/type Alias= number; +// let n: Alias = 12; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfTypeAlias.ts === + +// type /*FIND ALL REFS*/[|Alias|]= number; +// let n: [|Alias|] = 12; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfTypeAlias.ts === + +// type [|Alias|]= number; +// let n: /*FIND ALL REFS*/[|Alias|] = 12; diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfVariable.baseline.jsonc new file mode 100644 index 0000000000..9d0216986b --- /dev/null +++ b/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfVariable.baseline.jsonc @@ -0,0 +1,368 @@ +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// /*FIND ALL REFS*/var x = 0; +// var assignmentRightHandSide = x; +// var assignmentRightHandSide2 = 1 + x; +// +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var /*FIND ALL REFS*/[|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = /*FIND ALL REFS*/[|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + /*FIND ALL REFS*/[|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// /*FIND ALL REFS*/[|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// x = /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// x = x + /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// /*FIND ALL REFS*/[|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// /*FIND ALL REFS*/[|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++/*FIND ALL REFS*/[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = /*FIND ALL REFS*/[|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --/*FIND ALL REFS*/[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = /*FIND ALL REFS*/[|x|]--; +// +// [|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// /*FIND ALL REFS*/[|x|] += 1; +// [|x|] <<= 1; + + + + +// === findAllReferences === +// === /getOccurrencesIsDefinitionOfVariable.ts === + +// var [|x|] = 0; +// var assignmentRightHandSide = [|x|]; +// var assignmentRightHandSide2 = 1 + [|x|]; +// +// [|x|] = 1; +// [|x|] = [|x|] + [|x|]; +// +// [|x|] == 1; +// [|x|] <= 1; +// +// var preIncrement = ++[|x|]; +// var postIncrement = [|x|]++; +// var preDecrement = --[|x|]; +// var postDecrement = [|x|]--; +// +// [|x|] += 1; +// /*FIND ALL REFS*/[|x|] <<= 1; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..745522f41c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,28 @@ +// === goToDefinition === +// === /a.ts === + +// var [|x|]: number; + + +// === /b.ts === + +// var [|x|]: number; + + +// === /c.ts === + +// var [|x|]: number; + + +// === /d.ts === + +// var [|x|]: number; + + +// === /e.ts === + +// /// +// /// +// /// +// /// +// /*GO TO DEFINITION*/x++; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionAlias.baseline.jsonc new file mode 100644 index 0000000000..1a93a31da3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionAlias.baseline.jsonc @@ -0,0 +1,72 @@ +// === goToDefinition === +// === /b.ts === + +// import [|alias1|] = require("fileb"); +// module Module { +// export import alias2 = alias1; +// } +// +// // Type position +// var t1: /*GO TO DEFINITION*/alias1.IFoo; +// var t2: Module.alias2.IFoo; +// +// // Value posistion +// var v1 = new alias1.Foo(); +// var v2 = new Module.alias2.Foo(); + + + + +// === goToDefinition === +// === /b.ts === + +// import [|alias1|] = require("fileb"); +// module Module { +// export import alias2 = alias1; +// } +// +// // Type position +// var t1: alias1.IFoo; +// var t2: Module.alias2.IFoo; +// +// // Value posistion +// var v1 = new /*GO TO DEFINITION*/alias1.Foo(); +// var v2 = new Module.alias2.Foo(); + + + + +// === goToDefinition === +// === /b.ts === + +// import alias1 = require("fileb"); +// module Module { +// export import [|alias2|] = alias1; +// } +// +// // Type position +// var t1: alias1.IFoo; +// var t2: Module./*GO TO DEFINITION*/alias2.IFoo; +// +// // Value posistion +// var v1 = new alias1.Foo(); +// var v2 = new Module.alias2.Foo(); + + + + +// === goToDefinition === +// === /b.ts === + +// import alias1 = require("fileb"); +// module Module { +// export import [|alias2|] = alias1; +// } +// +// // Type position +// var t1: alias1.IFoo; +// var t2: Module.alias2.IFoo; +// +// // Value posistion +// var v1 = new alias1.Foo(); +// var v2 = new Module./*GO TO DEFINITION*/alias2.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAmbiants.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionAmbiants.baseline.jsonc new file mode 100644 index 0000000000..9573cc52a4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionAmbiants.baseline.jsonc @@ -0,0 +1,96 @@ +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === + +// declare var [|ambientVar|]; +// declare function ambientFunction(); +// declare class ambientClass { +// constructor(); +// static method(); +// public method(); +// } +// +// /*GO TO DEFINITION*/ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass.method(); +// ambientClassVariable.method(); + + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === + +// declare var ambientVar; +// declare function [|ambientFunction|](); +// declare class ambientClass { +// constructor(); +// static method(); +// public method(); +// } +// +// ambientVar = 1; +// /*GO TO DEFINITION*/ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass.method(); +// ambientClassVariable.method(); + + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === + +// declare var ambientVar; +// declare function ambientFunction(); +// declare class [|ambientClass|] { +// [|constructor();|] +// static method(); +// public method(); +// } +// +// ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new /*GO TO DEFINITION*/ambientClass(); +// ambientClass.method(); +// ambientClassVariable.method(); + + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === + +// declare var ambientVar; +// declare function ambientFunction(); +// declare class ambientClass { +// constructor(); +// static [|method|](); +// public method(); +// } +// +// ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass./*GO TO DEFINITION*/method(); +// ambientClassVariable.method(); + + + + +// === goToDefinition === +// === /goToDefinitionAmbiants.ts === + +// declare var ambientVar; +// declare function ambientFunction(); +// declare class ambientClass { +// constructor(); +// static method(); +// public [|method|](); +// } +// +// ambientVar = 1; +// ambientFunction(); +// var ambientClassVariable = new ambientClass(); +// ambientClass.method(); +// ambientClassVariable./*GO TO DEFINITION*/method(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionApparentTypeProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionApparentTypeProperties.baseline.jsonc new file mode 100644 index 0000000000..ab7da78e2d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionApparentTypeProperties.baseline.jsonc @@ -0,0 +1,24 @@ +// === goToDefinition === +// === /goToDefinitionApparentTypeProperties.ts === + +// interface Number { +// [|myObjectMethod|](): number; +// } +// +// var o = 0; +// o./*GO TO DEFINITION*/myObjectMethod(); +// o["myObjectMethod"](); + + + + +// === goToDefinition === +// === /goToDefinitionApparentTypeProperties.ts === + +// interface Number { +// [|myObjectMethod|](): number; +// } +// +// var o = 0; +// o.myObjectMethod(); +// o["/*GO TO DEFINITION*/myObjectMethod"](); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionAwait1.baseline.jsonc new file mode 100644 index 0000000000..499c50ad50 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionAwait1.baseline.jsonc @@ -0,0 +1,22 @@ +// === goToDefinition === +// === /goToDefinitionAwait1.ts === + +// async function [|foo|]() { +// /*GO TO DEFINITION*/await Promise.resolve(0); +// } +// function notAsync() { +// await Promise.resolve(0); +// } + + + + +// === goToDefinition === +// === /goToDefinitionAwait1.ts === + +// async function foo() { +// await Promise.resolve(0); +// } +// function [|notAsync|]() { +// /*GO TO DEFINITION*/await Promise.resolve(0); +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionAwait2.baseline.jsonc new file mode 100644 index 0000000000..47a1ae6bbd --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionAwait2.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /goToDefinitionAwait2.ts === + +// /*GO TO DEFINITION*/await Promise.resolve(0); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionAwait3.baseline.jsonc new file mode 100644 index 0000000000..5029797871 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionAwait3.baseline.jsonc @@ -0,0 +1,26 @@ +// === goToDefinition === +// === /goToDefinitionAwait3.ts === + +// class C { +// [|notAsync|]() { +// /*GO TO DEFINITION*/await Promise.resolve(0); +// } +// +// async foo() { +// // --- (line: 7) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionAwait3.ts === + +// class C { +// notAsync() { +// await Promise.resolve(0); +// } +// +// async [|foo|]() { +// /*GO TO DEFINITION*/await Promise.resolve(0); +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionAwait4.baseline.jsonc new file mode 100644 index 0000000000..0db32afffa --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionAwait4.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionAwait4.ts === + +// async function outerAsyncFun() { +// let [|af|] = async () => { +// /*GO TO DEFINITION*/await Promise.resolve(0); +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionBuiltInTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionBuiltInTypes.baseline.jsonc new file mode 100644 index 0000000000..0372c7fc8c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionBuiltInTypes.baseline.jsonc @@ -0,0 +1,40 @@ +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === + +// var n: /*GO TO DEFINITION*/number; +// var s: string; +// var b: boolean; +// var v: void; + + + + +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === + +// var n: number; +// var s: /*GO TO DEFINITION*/string; +// var b: boolean; +// var v: void; + + + + +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === + +// var n: number; +// var s: string; +// var b: /*GO TO DEFINITION*/boolean; +// var v: void; + + + + +// === goToDefinition === +// === /goToDefinitionBuiltInTypes.ts === + +// var n: number; +// var s: string; +// var b: boolean; +// var v: /*GO TO DEFINITION*/void; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionBuiltInValues.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionBuiltInValues.baseline.jsonc new file mode 100644 index 0000000000..a0f5c84325 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionBuiltInValues.baseline.jsonc @@ -0,0 +1,56 @@ +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === + +// var u = /*GO TO DEFINITION*/undefined; +// var n = null; +// var a = function() { return arguments; }; +// var t = true; +// var f = false; + + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === + +// var u = undefined; +// var n = /*GO TO DEFINITION*/null; +// var a = function() { return arguments; }; +// var t = true; +// var f = false; + + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === + +// var u = undefined; +// var n = null; +// var a = function() { return /*GO TO DEFINITION*/arguments; }; +// var t = true; +// var f = false; + + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === + +// var u = undefined; +// var n = null; +// var a = function() { return arguments; }; +// var t = /*GO TO DEFINITION*/true; +// var f = false; + + + + +// === goToDefinition === +// === /goToDefinitionBuiltInValues.ts === + +// var u = undefined; +// var n = null; +// var a = function() { return arguments; }; +// var t = true; +// var f = /*GO TO DEFINITION*/false; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionCSSPatternAmbientModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionCSSPatternAmbientModule.baseline.jsonc new file mode 100644 index 0000000000..038983e5b0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionCSSPatternAmbientModule.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /types.ts === + +// declare module [|"*.css"|] { +// const styles: any; +// export = styles; +// } + + +// === /index.ts === + +// import styles from /*GO TO DEFINITION*/"./index.css"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionClassConstructors.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionClassConstructors.baseline.jsonc new file mode 100644 index 0000000000..35175ec694 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionClassConstructors.baseline.jsonc @@ -0,0 +1,76 @@ +// === goToDefinition === +// === /definitions.ts === + +// export class Base { +// [|constructor(protected readonly cArg: string) {}|] +// } +// +// export class [|Derived|] extends Base { +// readonly email = this.cArg.getByLabel('Email') +// readonly password = this.cArg.getByLabel('Password') +// } + + +// === /main.ts === + +// import { Derived } from './definitions' +// const derived = new /*GO TO DEFINITION*/Derived(cArg) + + + + +// === goToDefinition === +// === /defInSameFile.ts === + +// import { Base } from './definitions' +// class [|SameFile|] extends Base { +// readonly name: string = 'SameFile' +// } +// const SameFile = new /*GO TO DEFINITION*/SameFile(cArg) +// const wrapper = new Base(cArg) + + +// === /definitions.ts === + +// export class Base { +// [|constructor(protected readonly cArg: string) {}|] +// } +// +// export class Derived extends Base { +// // --- (line: 6) skipped --- + + + + +// === goToDefinition === +// === /hasConstructor.ts === + +// import { Base } from './definitions' +// class [|HasConstructor|] extends Base { +// [|constructor() {}|] +// readonly name: string = ''; +// } +// const hasConstructor = new /*GO TO DEFINITION*/HasConstructor(cArg) + + + + +// === goToDefinition === +// === /definitions.ts === + +// export class [|Base|] { +// [|constructor(protected readonly cArg: string) {}|] +// } +// +// export class Derived extends Base { +// // --- (line: 6) skipped --- + + +// === /defInSameFile.ts === + +// import { Base } from './definitions' +// class SameFile extends Base { +// readonly name: string = 'SameFile' +// } +// const SameFile = new SameFile(cArg) +// const wrapper = new /*GO TO DEFINITION*/Base(cArg) diff --git a/testdata/baselines/reference/fourslash/goToDefinitionClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionClassStaticBlocks.baseline.jsonc new file mode 100644 index 0000000000..330e892f1d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionClassStaticBlocks.baseline.jsonc @@ -0,0 +1,39 @@ +// === goToDefinition === +// === /goToDefinitionClassStaticBlocks.ts === + +// class ClassStaticBocks { +// static x; +// /*GO TO DEFINITION*/static {} +// static y; +// static {} +// static y; +// static {} +// } + + + + +// === goToDefinition === +// === /goToDefinitionClassStaticBlocks.ts === + +// class ClassStaticBocks { +// static x; +// static {} +// static y; +// /*GO TO DEFINITION*/static {} +// static y; +// static {} +// } + + + + +// === goToDefinition === +// === /goToDefinitionClassStaticBlocks.ts === + +// --- (line: 3) skipped --- +// static y; +// static {} +// static y; +// /*GO TO DEFINITION*/static {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassExpression01.baseline.jsonc new file mode 100644 index 0000000000..190d74c6c4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassExpression01.baseline.jsonc @@ -0,0 +1,152 @@ +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === + +// var x = class [|C|] { +// [|constructor() { +// var other = new /*GO TO DEFINITION*/C; +// }|] +// } +// +// var y = class C extends x { +// // --- (line: 8) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === + +// --- (line: 3) skipped --- +// } +// } +// +// var y = class [|C|] extends x { +// [|constructor() { +// super(); +// var other = new /*GO TO DEFINITION*/C; +// }|] +// } +// var z = class C extends x { +// m() { +// // --- (line: 15) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === + +// var x = class C { +// [|constructor() { +// var other = new C; +// }|] +// } +// +// var y = class C extends x { +// constructor() { +// super(); +// var other = new C; +// } +// } +// var z = class [|C|] extends x { +// m() { +// return new /*GO TO DEFINITION*/C; +// } +// } +// +// // --- (line: 19) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === + +// --- (line: 15) skipped --- +// } +// } +// +// var x1 = new /*GO TO DEFINITION*/C(); +// var x2 = new x(); +// var y1 = new y(); +// var z1 = new z(); + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === + +// var [|x|] = class C { +// [|constructor() { +// var other = new C; +// }|] +// } +// +// var y = class C extends x { +// // --- (line: 8) skipped --- + + +// --- (line: 16) skipped --- +// } +// +// var x1 = new C(); +// var x2 = new /*GO TO DEFINITION*/x(); +// var y1 = new y(); +// var z1 = new z(); + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === + +// --- (line: 3) skipped --- +// } +// } +// +// var [|y|] = class C extends x { +// [|constructor() { +// super(); +// var other = new C; +// }|] +// } +// var z = class C extends x { +// m() { +// return new C; +// } +// } +// +// var x1 = new C(); +// var x2 = new x(); +// var y1 = new /*GO TO DEFINITION*/y(); +// var z1 = new z(); + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOfClassExpression01.ts === + +// var x = class C { +// [|constructor() { +// var other = new C; +// }|] +// } +// +// var y = class C extends x { +// constructor() { +// super(); +// var other = new C; +// } +// } +// var [|z|] = class C extends x { +// m() { +// return new C; +// } +// } +// +// var x1 = new C(); +// var x2 = new x(); +// var y1 = new y(); +// var z1 = new /*GO TO DEFINITION*/z(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc new file mode 100644 index 0000000000..28bc8eeaff --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.ts === + +// namespace [|Foo|] { +// export var x; +// } +// +// class [|Foo|] { +// [|constructor() { +// }|] +// } +// +// var x = new /*GO TO DEFINITION*/Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionConstructorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionConstructorOverloads.baseline.jsonc new file mode 100644 index 0000000000..81d96484f9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionConstructorOverloads.baseline.jsonc @@ -0,0 +1,90 @@ +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === + +// class [|ConstructorOverload|] { +// [|constructor();|] +// constructor(foo: string); +// constructor(foo: any) { } +// } +// +// var constructorOverload = new /*GO TO DEFINITION*/ConstructorOverload(); +// var constructorOverload = new ConstructorOverload("foo"); +// +// class Extended extends ConstructorOverload { +// // --- (line: 11) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === + +// class [|ConstructorOverload|] { +// constructor(); +// [|constructor(foo: string);|] +// constructor(foo: any) { } +// } +// +// var constructorOverload = new ConstructorOverload(); +// var constructorOverload = new /*GO TO DEFINITION*/ConstructorOverload("foo"); +// +// class Extended extends ConstructorOverload { +// readonly name = "extended"; +// // --- (line: 12) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === + +// class ConstructorOverload { +// /*GO TO DEFINITION*/[|constructor();|] +// [|constructor(foo: string);|] +// [|constructor(foo: any) { }|] +// } +// +// var constructorOverload = new ConstructorOverload(); +// // --- (line: 8) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === + +// class ConstructorOverload { +// [|constructor();|] +// constructor(foo: string); +// constructor(foo: any) { } +// } +// +// var constructorOverload = new ConstructorOverload(); +// var constructorOverload = new ConstructorOverload("foo"); +// +// class [|Extended|] extends ConstructorOverload { +// readonly name = "extended"; +// } +// var extended1 = new /*GO TO DEFINITION*/Extended(); +// var extended2 = new Extended("foo"); + + + + +// === goToDefinition === +// === /goToDefinitionConstructorOverloads.ts === + +// class ConstructorOverload { +// constructor(); +// [|constructor(foo: string);|] +// constructor(foo: any) { } +// } +// +// var constructorOverload = new ConstructorOverload(); +// var constructorOverload = new ConstructorOverload("foo"); +// +// class [|Extended|] extends ConstructorOverload { +// readonly name = "extended"; +// } +// var extended1 = new Extended(); +// var extended2 = new /*GO TO DEFINITION*/Extended("foo"); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDecorator.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDecorator.baseline.jsonc new file mode 100644 index 0000000000..093a02279b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDecorator.baseline.jsonc @@ -0,0 +1,40 @@ +// === goToDefinition === +// === /a.ts === + +// function [|decorator|](target) { +// return target; +// } +// function decoratorFactory(...args) { +// return target => target; +// } + + +// === /b.ts === + +// @/*GO TO DEFINITION*/decorator +// class C { +// @decoratorFactory(a, "22", true) +// method() {} +// } + + + + +// === goToDefinition === +// === /a.ts === + +// function decorator(target) { +// return target; +// } +// function [|decoratorFactory|](...args) { +// return target => target; +// } + + +// === /b.ts === + +// @decorator +// class C { +// @decora/*GO TO DEFINITION*/torFactory(a, "22", true) +// method() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDecoratorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDecoratorOverloads.baseline.jsonc new file mode 100644 index 0000000000..230ffee836 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDecoratorOverloads.baseline.jsonc @@ -0,0 +1,32 @@ +// === goToDefinition === +// === /goToDefinitionDecoratorOverloads.ts === + +// async function f() {} +// +// function [|dec|](target: any, propertyKey: string): void; +// function dec(target: any, propertyKey: symbol): void; +// function dec(target: any, propertyKey: string | symbol) {} +// +// declare const s: symbol; +// class C { +// @/*GO TO DEFINITION*/dec f() {} +// @dec [s]() {} +// } + + + + +// === goToDefinition === +// === /goToDefinitionDecoratorOverloads.ts === + +// async function f() {} +// +// function dec(target: any, propertyKey: string): void; +// function [|dec|](target: any, propertyKey: symbol): void; +// function dec(target: any, propertyKey: string | symbol) {} +// +// declare const s: symbol; +// class C { +// @dec f() {} +// @/*GO TO DEFINITION*/dec [s]() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire1.baseline.jsonc new file mode 100644 index 0000000000..8b68ee5b2a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire1.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /util.js === + +// class Util {} +// module.exports = { [|Util|] }; + + +// === /index.js === + +// const { Util } = require('./util'); +// new Util/*GO TO DEFINITION*/() diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire2.baseline.jsonc new file mode 100644 index 0000000000..f9cf078539 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire2.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /reexport.js === + +// const { Util } = require('./util'); +// module.exports = { [|Util|] }; + + +// === /index.js === + +// const { Util } = require('./reexport'); +// new Util/*GO TO DEFINITION*/() diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDifferentFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDifferentFile.baseline.jsonc new file mode 100644 index 0000000000..73e3c72356 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDifferentFile.baseline.jsonc @@ -0,0 +1,101 @@ +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === + +// var [|remoteVariable|]; +// function remoteFunction() { } +// class remoteClass { } +// interface remoteInterface{ } +// module remoteModule{ export var foo = 1;} + + +// === /goToDefinitionDifferentFile_Consumption.ts === + +// /*GO TO DEFINITION*/remoteVariable = 1; +// remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = remoteModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === + +// var remoteVariable; +// function [|remoteFunction|]() { } +// class remoteClass { } +// interface remoteInterface{ } +// module remoteModule{ export var foo = 1;} + + +// === /goToDefinitionDifferentFile_Consumption.ts === + +// remoteVariable = 1; +// /*GO TO DEFINITION*/remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = remoteModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === + +// var remoteVariable; +// function remoteFunction() { } +// class [|remoteClass|] { } +// interface remoteInterface{ } +// module remoteModule{ export var foo = 1;} + + +// === /goToDefinitionDifferentFile_Consumption.ts === + +// remoteVariable = 1; +// remoteFunction(); +// var foo = new /*GO TO DEFINITION*/remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = remoteModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === + +// var remoteVariable; +// function remoteFunction() { } +// class remoteClass { } +// interface [|remoteInterface|]{ } +// module remoteModule{ export var foo = 1;} + + +// === /goToDefinitionDifferentFile_Consumption.ts === + +// remoteVariable = 1; +// remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements /*GO TO DEFINITION*/remoteInterface { } +// var fooVar = remoteModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionDifferentFile_Definition.ts === + +// var remoteVariable; +// function remoteFunction() { } +// class remoteClass { } +// interface remoteInterface{ } +// module [|remoteModule|]{ export var foo = 1;} + + +// === /goToDefinitionDifferentFile_Consumption.ts === + +// remoteVariable = 1; +// remoteFunction(); +// var foo = new remoteClass(); +// class fooCls implements remoteInterface { } +// var fooVar = /*GO TO DEFINITION*/remoteModule.foo; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDifferentFileIndirectly.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDifferentFileIndirectly.baseline.jsonc new file mode 100644 index 0000000000..ca60f48be5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDifferentFileIndirectly.baseline.jsonc @@ -0,0 +1,101 @@ +// === goToDefinition === +// === /Remote2.ts === + +// var [|rem2Var|]; +// function rem2Fn() { } +// class rem2Cls { } +// interface rem2Int{} +// module rem2Mod { export var foo; } + + +// === /Definition.ts === + +// /*GO TO DEFINITION*/rem2Var = 1; +// rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + + +// === goToDefinition === +// === /Remote2.ts === + +// var rem2Var; +// function [|rem2Fn|]() { } +// class rem2Cls { } +// interface rem2Int{} +// module rem2Mod { export var foo; } + + +// === /Definition.ts === + +// rem2Var = 1; +// /*GO TO DEFINITION*/rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + + +// === goToDefinition === +// === /Remote2.ts === + +// var rem2Var; +// function rem2Fn() { } +// class [|rem2Cls|] { } +// interface rem2Int{} +// module rem2Mod { export var foo; } + + +// === /Definition.ts === + +// rem2Var = 1; +// rem2Fn(); +// var rem2foo = new /*GO TO DEFINITION*/rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + + +// === goToDefinition === +// === /Remote2.ts === + +// var rem2Var; +// function rem2Fn() { } +// class rem2Cls { } +// interface [|rem2Int|]{} +// module rem2Mod { export var foo; } + + +// === /Definition.ts === + +// rem2Var = 1; +// rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements /*GO TO DEFINITION*/rem2Int { } +// var rem2fooVar = rem2Mod.foo; + + + + +// === goToDefinition === +// === /Remote2.ts === + +// var rem2Var; +// function rem2Fn() { } +// class rem2Cls { } +// interface rem2Int{} +// module [|rem2Mod|] { export var foo; } + + +// === /Definition.ts === + +// rem2Var = 1; +// rem2Fn(); +// var rem2foo = new rem2Cls(); +// class rem2fooCls implements rem2Int { } +// var rem2fooVar = /*GO TO DEFINITION*/rem2Mod.foo; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport1.baseline.jsonc new file mode 100644 index 0000000000..785b36a333 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport1.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /foo.ts === + +// [|export function foo() { return "foo"; } +// import("./f/*GO TO DEFINITION*/oo") +// var x = import("./foo")|] + + + + +// === goToDefinition === +// === /foo.ts === + +// [|export function foo() { return "foo"; } +// import("./foo") +// var x = import("./fo/*GO TO DEFINITION*/o")|] diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..a05e56f6f2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport2.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /foo.ts === + +// export function [|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.b/*GO TO DEFINITION*/ar(); +// }) diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..1c3067b56d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport3.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /foo.ts === + +// export function bar() { return "bar"; } +// import('./foo').then(({ ba/*GO TO DEFINITION*/[|bar|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport4.baseline.jsonc new file mode 100644 index 0000000000..1c3067b56d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport4.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /foo.ts === + +// export function bar() { return "bar"; } +// import('./foo').then(({ ba/*GO TO DEFINITION*/[|bar|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass1.baseline.jsonc new file mode 100644 index 0000000000..a5ff13bab4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass1.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /index.js === + +// const Core = {} +// +// Core.[|Test|] = class { } +// +// Core.Test.prototype.foo = 10 +// +// new Core.Tes/*GO TO DEFINITION*/t() diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass2.baseline.jsonc new file mode 100644 index 0000000000..0f782f9eab --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass2.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /index.js === + +// const Core = {} +// +// Core.[|Test|] = class { +// [|constructor() { }|] +// } +// +// Core.Test.prototype.foo = 10 +// +// new Core.Tes/*GO TO DEFINITION*/t() diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExpandoElementAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExpandoElementAccess.baseline.jsonc new file mode 100644 index 0000000000..ba7dcf8388 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExpandoElementAccess.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionExpandoElementAccess.ts === + +// function f() {} +// f[[|"x"|]] = 0; +// f[/*GO TO DEFINITION*/[|"x"|]] = 1; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName.baseline.jsonc new file mode 100644 index 0000000000..9d628fc271 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.ts === + +// [|export class Foo {}|] + + +// === /b.ts === + +// import n = require('./a/*GO TO DEFINITION*/'); +// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName2.baseline.jsonc new file mode 100644 index 0000000000..23babaf566 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName2.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /a.ts === + +// [|class Foo {} +// export var x = 0;|] + + +// === /b.ts === + +// import n = require('./a/*GO TO DEFINITION*/'); +// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName3.baseline.jsonc new file mode 100644 index 0000000000..2906c9ba26 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName3.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /a.ts === + +// declare module [|"e"|] { +// class Foo { } +// } + + +// === /b.ts === + +// import n = require('e/*GO TO DEFINITION*/'); +// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName4.baseline.jsonc new file mode 100644 index 0000000000..a3ad6ce3a9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName4.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /b.ts === + +// import n = require('unknown/*GO TO DEFINITION*/'); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName5.baseline.jsonc new file mode 100644 index 0000000000..d8b35efe1a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName5.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /a.ts === + +// declare module "external/*GO TO DEFINITION*/[|"external"|] { +// class Foo { } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName6.baseline.jsonc new file mode 100644 index 0000000000..3d06c80981 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName6.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /a.ts === + +// declare module [|"e"|] { +// class Foo { } +// } + + +// === /b.ts === + +// import * from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName7.baseline.jsonc new file mode 100644 index 0000000000..9d348f7d5f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName7.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /a.ts === + +// declare module [|"e"|] { +// class Foo { } +// } + + +// === /b.ts === + +// import {Foo, Bar} from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName8.baseline.jsonc new file mode 100644 index 0000000000..040ee5d897 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName8.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /a.ts === + +// declare module [|"e"|] { +// class Foo { } +// } + + +// === /b.ts === + +// export {Foo, Bar} from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName9.baseline.jsonc new file mode 100644 index 0000000000..ee436e817e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName9.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /a.ts === + +// declare module [|"e"|] { +// class Foo { } +// } + + +// === /b.ts === + +// export * from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloads.baseline.jsonc new file mode 100644 index 0000000000..4c8b8dd881 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloads.baseline.jsonc @@ -0,0 +1,52 @@ +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === + +// function [|functionOverload|](value: number); +// function functionOverload(value: string); +// function functionOverload() {} +// +// /*GO TO DEFINITION*/functionOverload(123); +// functionOverload("123"); +// functionOverload({}); + + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === + +// function functionOverload(value: number); +// function [|functionOverload|](value: string); +// function functionOverload() {} +// +// functionOverload(123); +// /*GO TO DEFINITION*/functionOverload("123"); +// functionOverload({}); + + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === + +// function [|functionOverload|](value: number); +// function functionOverload(value: string); +// function functionOverload() {} +// +// functionOverload(123); +// functionOverload("123"); +// /*GO TO DEFINITION*/functionOverload({}); + + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloads.ts === + +// function /*GO TO DEFINITION*/[|functionOverload|](value: number); +// function [|functionOverload|](value: string); +// function [|functionOverload|]() {} +// +// functionOverload(123); +// functionOverload("123"); +// functionOverload({}); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloadsInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloadsInClass.baseline.jsonc new file mode 100644 index 0000000000..4230a17f0c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloadsInClass.baseline.jsonc @@ -0,0 +1,28 @@ +// === goToDefinition === +// === /goToDefinitionFunctionOverloadsInClass.ts === + +// class clsInOverload { +// static [|fnOverload|](); +// static /*GO TO DEFINITION*/[|fnOverload|](foo: string); +// static [|fnOverload|](foo: any) { } +// public fnOverload(): any; +// public fnOverload(foo: string); +// public fnOverload(foo: any) { return "foo" } +// // --- (line: 8) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionFunctionOverloadsInClass.ts === + +// class clsInOverload { +// static fnOverload(); +// static fnOverload(foo: string); +// static fnOverload(foo: any) { } +// public /*GO TO DEFINITION*/[|fnOverload|](): any; +// public [|fnOverload|](foo: string); +// public [|fnOverload|](foo: any) { return "foo" } +// +// constructor() { } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionFunctionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionFunctionType.baseline.jsonc new file mode 100644 index 0000000000..2560509821 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionFunctionType.baseline.jsonc @@ -0,0 +1,40 @@ +// === goToDefinition === +// === /goToDefinitionFunctionType.ts === + +// const [|c|]: () => void; +// /*GO TO DEFINITION*/c(); +// function test(cb: () => void) { +// cb(); +// } +// // --- (line: 6) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionFunctionType.ts === + +// const c: () => void; +// c(); +// function test([|cb|]: () => void) { +// /*GO TO DEFINITION*/cb(); +// } +// class C { +// prop: () => void; +// // --- (line: 8) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionFunctionType.ts === + +// --- (line: 3) skipped --- +// cb(); +// } +// class C { +// [|prop|]: () => void; +// m() { +// this./*GO TO DEFINITION*/prop(); +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImplicitConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImplicitConstructor.baseline.jsonc new file mode 100644 index 0000000000..8072ce52e3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImplicitConstructor.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionImplicitConstructor.ts === + +// class [|ImplicitConstructor|] { +// } +// var implicitConstructor = new /*GO TO DEFINITION*/ImplicitConstructor(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImport1.baseline.jsonc new file mode 100644 index 0000000000..9dc3601368 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImport1.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /b.ts === + +// [|export const foo = 1;|] + + +// === /a.ts === + +// import { foo } from "./b/*GO TO DEFINITION*/"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImport2.baseline.jsonc new file mode 100644 index 0000000000..c62a776d36 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImport2.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /a.ts === + +// import { foo } from/*GO TO DEFINITION*/ "./b"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImport3.baseline.jsonc new file mode 100644 index 0000000000..2759540a10 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImport3.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /a.ts === + +// import { foo } from /*GO TO DEFINITION*/ "./b"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames.baseline.jsonc new file mode 100644 index 0000000000..2282246b5d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /a.ts === + +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + + +// === /b.ts === + +// export {/*GO TO DEFINITION*/Class} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames10.baseline.jsonc new file mode 100644 index 0000000000..81d8e3cf17 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames10.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.js === + +// class Class { +// f; +// } +// module.exports.[|Class|] = Class; + + +// === /b.js === + +// const { Class } = require("./a"); +// /*GO TO DEFINITION*/Class; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames11.baseline.jsonc new file mode 100644 index 0000000000..3aea74d06e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames11.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.js === + +// class Class { +// f; +// } +// module.exports = { [|Class|] }; + + +// === /b.js === + +// const { Class } = require("./a"); +// /*GO TO DEFINITION*/Class; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames2.baseline.jsonc new file mode 100644 index 0000000000..d7828b4ce8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames2.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /a.ts === + +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + + +// === /b.ts === + +// import {/*GO TO DEFINITION*/Class} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames3.baseline.jsonc new file mode 100644 index 0000000000..71deedc5f3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames3.baseline.jsonc @@ -0,0 +1,38 @@ +// === goToDefinition === +// === /a.ts === + +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + + +// === /e.ts === + +// import {M, C, I} from "./d"; +// var c = new /*GO TO DEFINITION*/C(); + + + + +// === goToDefinition === +// === /a.ts === + +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + + +// === /e.ts === + +// import {M, /*GO TO DEFINITION*/C, I} from "./d"; +// var c = new C(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames4.baseline.jsonc new file mode 100644 index 0000000000..7a0d40de79 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames4.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /a.ts === + +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + + +// === /b.ts === + +// import {Class as /*GO TO DEFINITION*/ClassAlias} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames5.baseline.jsonc new file mode 100644 index 0000000000..cd091788ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames5.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /a.ts === + +// export module Module { +// } +// export class [|Class|] { +// private f; +// } +// export interface Interface { +// x; +// } + + +// === /b.ts === + +// export {Class as /*GO TO DEFINITION*/ClassAlias} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames6.baseline.jsonc new file mode 100644 index 0000000000..8d32931ebc --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames6.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /a.ts === + +// [|export module Module { +// } +// export class Class { +// private f; +// } +// export interface Interface { +// x; +// }|] + + +// === /b.ts === + +// import /*GO TO DEFINITION*/alias = require("./a"); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames7.baseline.jsonc new file mode 100644 index 0000000000..a14ce34c75 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames7.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /a.ts === + +// class [|Class|] { +// private f; +// } +// export default Class; + + +// === /b.ts === + +// import /*GO TO DEFINITION*/defaultExport from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames8.baseline.jsonc new file mode 100644 index 0000000000..9d0450fdf1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames8.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /a.js === + +// class [|Class|] { +// private f; +// } +// export { Class }; + + +// === /b.js === + +// import { /*GO TO DEFINITION*/Class } from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames9.baseline.jsonc new file mode 100644 index 0000000000..d50fd5d70e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImportedNames9.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /a.js === + +// class [|Class|] { +// f; +// } +// export { Class }; + + +// === /b.js === + +// const { Class } = require("./a"); +// /*GO TO DEFINITION*/Class; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionImports.baseline.jsonc new file mode 100644 index 0000000000..b1618fc234 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionImports.baseline.jsonc @@ -0,0 +1,70 @@ +// === goToDefinition === +// === /a.ts === + +// [|export default function f() {} +// export const x = 0;|] + + +// === /b.ts === + +// import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// f; +// x; +// /*GO TO DEFINITION*/a; +// b; + + + + +// === goToDefinition === +// === /a.ts === + +// export default function [|f|]() {} +// export const x = 0; + + +// === /b.ts === + +// import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// /*GO TO DEFINITION*/f; +// x; +// a; +// b; + + + + +// === goToDefinition === +// === /a.ts === + +// export default function f() {} +// export const [|x|] = 0; + + +// === /b.ts === + +// import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// f; +// /*GO TO DEFINITION*/x; +// a; +// b; + + + + +// === goToDefinition === +// === /b.ts === + +// [|import f, { x } from "./a"; +// import * as a from "./a"; +// import b = require("./b"); +// f; +// x; +// a; +// /*GO TO DEFINITION*/b;|] diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInMemberDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionInMemberDeclaration.baseline.jsonc new file mode 100644 index 0000000000..2152a5ba0a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionInMemberDeclaration.baseline.jsonc @@ -0,0 +1,171 @@ +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// interface [|IFoo|] { method1(): number; } +// +// class Foo implements IFoo { +// public method1(): number { return 0; } +// } +// +// enum Enum { value1, value2 }; +// +// class Bar { +// public _interface: IFo/*GO TO DEFINITION*/o = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// // --- (line: 14) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// interface [|IFoo|] { method1(): number; } +// +// class Foo implements IFoo { +// public method1(): number { return 0; } +// // --- (line: 5) skipped --- + + +// --- (line: 8) skipped --- +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IF/*GO TO DEFINITION*/oo[]=[]; +// public _enum: Enum = Enum.value1; +// public _self: Bar; +// +// // --- (line: 16) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// interface [|IFoo|] { method1(): number; } +// +// class Foo implements IFoo { +// public method1(): number { return 0; } +// // --- (line: 5) skipped --- + + +// --- (line: 12) skipped --- +// public _enum: Enum = Enum.value1; +// public _self: Bar; +// +// constructor(public _inConstructor: IFo/*GO TO DEFINITION*/o) { +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// interface IFoo { method1(): number; } +// +// class [|Foo|] implements IFoo { +// public method1(): number { return 0; } +// } +// +// enum Enum { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Fo/*GO TO DEFINITION*/o = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// public _self: Bar; +// // --- (line: 15) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// interface IFoo { method1(): number; } +// +// class [|Foo|] implements IFoo { +// public method1(): number { return 0; } +// } +// +// enum Enum { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Fo/*GO TO DEFINITION*/o(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// // --- (line: 14) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// --- (line: 3) skipped --- +// public method1(): number { return 0; } +// } +// +// enum [|Enum|] { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: E/*GO TO DEFINITION*/num = Enum.value1; +// public _self: Bar; +// +// constructor(public _inConstructor: IFoo) { +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// --- (line: 3) skipped --- +// public method1(): number { return 0; } +// } +// +// enum [|Enum|] { value1, value2 }; +// +// class Bar { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = En/*GO TO DEFINITION*/um.value1; +// public _self: Bar; +// +// constructor(public _inConstructor: IFoo) { +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionInMemberDeclaration.ts === + +// --- (line: 5) skipped --- +// +// enum Enum { value1, value2 }; +// +// class [|Bar|] { +// public _interface: IFoo = new Foo(); +// public _class: Foo = new Foo(); +// public _list: IFoo[]=[]; +// public _enum: Enum = Enum.value1; +// public _self: Ba/*GO TO DEFINITION*/r; +// +// constructor(public _inConstructor: IFoo) { +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInTypeArgument.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionInTypeArgument.baseline.jsonc new file mode 100644 index 0000000000..dabf7326e3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionInTypeArgument.baseline.jsonc @@ -0,0 +1,20 @@ +// === goToDefinition === +// === /goToDefinitionInTypeArgument.ts === + +// class Foo { } +// +// class [|Bar|] { } +// +// var x = new Foo(); + + + + +// === goToDefinition === +// === /goToDefinitionInTypeArgument.ts === + +// class [|Foo|] { } +// +// class Bar { } +// +// var x = new Fo/*GO TO DEFINITION*/o(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature.baseline.jsonc new file mode 100644 index 0000000000..f28879d050 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature.baseline.jsonc @@ -0,0 +1,109 @@ +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === + +// interface I { +// [|[x: string]: boolean;|] +// } +// interface J { +// [x: string]: number; +// } +// interface K { +// [x: `a${string}`]: string; +// [x: `${string}b`]: string; +// } +// declare const i: I; +// i./*GO TO DEFINITION*/foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// // --- (line: 16) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === + +// interface I { +// [|[x: string]: boolean;|] +// } +// interface J { +// [|[x: string]: number;|] +// } +// interface K { +// [x: `a${string}`]: string; +// [x: `${string}b`]: string; +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij./*GO TO DEFINITION*/foo; +// declare const k: K; +// k.a; +// k.b; +// k.ab; + + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === + +// --- (line: 4) skipped --- +// [x: string]: number; +// } +// interface K { +// [|[x: `a${string}`]: string;|] +// [x: `${string}b`]: string; +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// k./*GO TO DEFINITION*/a; +// k.b; +// k.ab; + + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === + +// --- (line: 5) skipped --- +// } +// interface K { +// [x: `a${string}`]: string; +// [|[x: `${string}b`]: string;|] +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// k.a; +// k./*GO TO DEFINITION*/b; +// k.ab; + + + + +// === goToDefinition === +// === /goToDefinitionIndexSignature.ts === + +// --- (line: 4) skipped --- +// [x: string]: number; +// } +// interface K { +// [|[x: `a${string}`]: string;|] +// [|[x: `${string}b`]: string;|] +// } +// declare const i: I; +// i.foo; +// declare const ij: I | J; +// ij.foo; +// declare const k: K; +// k.a; +// k.b; +// k./*GO TO DEFINITION*/ab; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature2.baseline.jsonc new file mode 100644 index 0000000000..248a3b23e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature2.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /a.js === + +// const o = {}; +// o./*GO TO DEFINITION*/foo; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInstanceof1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionInstanceof1.baseline.jsonc new file mode 100644 index 0000000000..e515f36374 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionInstanceof1.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionInstanceof1.ts === + +// class [|C|] { +// } +// declare var obj: any; +// obj /*GO TO DEFINITION*/instanceof C; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInstanceof2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionInstanceof2.baseline.jsonc new file mode 100644 index 0000000000..de16fac690 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionInstanceof2.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /main.ts === + +// class C { +// static [|[Symbol.hasInstance]|](value: unknown): boolean { return true; } +// } +// declare var obj: any; +// obj /*GO TO DEFINITION*/instanceof C; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInterfaceAfterImplement.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionInterfaceAfterImplement.baseline.jsonc new file mode 100644 index 0000000000..8bdc0bf92f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionInterfaceAfterImplement.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /goToDefinitionInterfaceAfterImplement.ts === + +// interface [|sInt|] { +// sVar: number; +// sFn: () => void; +// } +// +// class iClass implements /*GO TO DEFINITION*/sInt { +// public sVar = 1; +// public sFn() { +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag1.baseline.jsonc new file mode 100644 index 0000000000..12cc4cdcea --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag1.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /a.js === + +// /** +// * @import { A } from "./b/*GO TO DEFINITION*/" +// */ diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag2.baseline.jsonc new file mode 100644 index 0000000000..c1f8225a90 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag2.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /a.js === + +// /** +// * @import { A } from/*GO TO DEFINITION*/ "./b" +// */ diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag3.baseline.jsonc new file mode 100644 index 0000000000..b0594c7379 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag3.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /a.js === + +// /** +// * @import { A } from /*GO TO DEFINITION*/ "./b"; +// */ diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag4.baseline.jsonc new file mode 100644 index 0000000000..7aedc0dc48 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag4.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /a.js === + +// /** +// * @import { A/*GO TO DEFINITION*/ } from "./b"; +// */ diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag5.baseline.jsonc new file mode 100644 index 0000000000..1ead78f336 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag5.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /b.ts === + +// export interface [|A|] { } + + +// === /a.js === + +// /** +// * @import { A } from "./b"; +// */ +// +// /** +// * @param { A/*GO TO DEFINITION*/ } a +// */ +// function f(a) {} diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsModuleExports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsModuleExports.baseline.jsonc new file mode 100644 index 0000000000..bf9b945576 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsModuleExports.baseline.jsonc @@ -0,0 +1,18 @@ +// === goToDefinition === +// === /foo.js === + +// x.test = () => { } +// x./*GO TO DEFINITION*/test(); +// x.test3 = function () { } +// x.test3(); + + + + +// === goToDefinition === +// === /foo.js === + +// x.test = () => { } +// x.test(); +// x.test3 = function () { } +// x./*GO TO DEFINITION*/test3(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsModuleName.baseline.jsonc new file mode 100644 index 0000000000..36626d0ff8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsModuleName.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /foo.js === + +// [|module.exports = {};|] + + +// === /bar.js === + +// var x = require(/*GO TO DEFINITION*/"./foo"); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsModuleNameAtImportName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsModuleNameAtImportName.baseline.jsonc new file mode 100644 index 0000000000..24f541fe17 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsModuleNameAtImportName.baseline.jsonc @@ -0,0 +1,68 @@ +// === goToDefinition === +// === /foo.js === + +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + + +// === /bar.js === + +// const /*GO TO DEFINITION*/BlahModule = require("./foo.js"); +// new BlahModule.Blah() + + + + +// === goToDefinition === +// === /foo.js === + +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + + +// === /bar.js === + +// const BlahModule = require("./foo.js"); +// new /*GO TO DEFINITION*/BlahModule.Blah() + + + + +// === goToDefinition === +// === /foo.js === + +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + + +// === /barTs.ts === + +// import /*GO TO DEFINITION*/BlahModule = require("./foo.js"); +// new BlahModule.Blah() + + + + +// === goToDefinition === +// === /foo.js === + +// [|function notExported() { } +// class Blah { +// abc = 123; +// } +// module.exports.Blah = Blah;|] + + +// === /barTs.ts === + +// import BlahModule = require("./foo.js"); +// new /*GO TO DEFINITION*/BlahModule.Blah() diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsxCall.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsxCall.baseline.jsonc new file mode 100644 index 0000000000..494b9afbf4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsxCall.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /test.tsx === + +// interface FC

{ +// [|(props: P, context?: any): string;|] +// } +// +// const [|Thing|]: FC = (props) =>

; +// const HelloWorld = () => ; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsxNotSet.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionJsxNotSet.baseline.jsonc new file mode 100644 index 0000000000..16279522de --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionJsxNotSet.baseline.jsonc @@ -0,0 +1,13 @@ +// === goToDefinition === +// === /foo.jsx === + +// const [|Foo|] = () => ( +//
foo
+// ); +// export default Foo; + + +// === /bar.jsx === + +// import Foo from './foo'; +// const a = diff --git a/testdata/baselines/reference/fourslash/goToDefinitionLabels.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionLabels.baseline.jsonc new file mode 100644 index 0000000000..834e6a6021 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionLabels.baseline.jsonc @@ -0,0 +1,56 @@ +// === goToDefinition === +// === /goToDefinitionLabels.ts === + +// [|label1|]: while (true) { +// label2: while (true) { +// break /*GO TO DEFINITION*/label1; +// continue label2; +// () => { break label1; } +// continue unknownLabel; +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionLabels.ts === + +// label1: while (true) { +// [|label2|]: while (true) { +// break label1; +// continue /*GO TO DEFINITION*/label2; +// () => { break label1; } +// continue unknownLabel; +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionLabels.ts === + +// [|label1|]: while (true) { +// label2: while (true) { +// break label1; +// continue label2; +// () => { break /*GO TO DEFINITION*/label1; } +// continue unknownLabel; +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionLabels.ts === + +// label1: while (true) { +// label2: while (true) { +// break label1; +// continue label2; +// () => { break label1; } +// continue /*GO TO DEFINITION*/unknownLabel; +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionMember.baseline.jsonc new file mode 100644 index 0000000000..2e1b2688af --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionMember.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /a.ts === + +// class A { +// private z/*GO TO DEFINITION*/[|z|]: string; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMetaProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionMetaProperty.baseline.jsonc new file mode 100644 index 0000000000..64438cdf2f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionMetaProperty.baseline.jsonc @@ -0,0 +1,59 @@ +// === goToDefinition === +// === /a.ts === + +// im/*GO TO DEFINITION*/port.meta; +// function f() { new.target; } + + + + +// === goToDefinition === +// === /a.ts === + +// import.met/*GO TO DEFINITION*/a; +// function f() { new.target; } + + + + +// === goToDefinition === +// === /a.ts === + +// import.meta; +// function f() { n/*GO TO DEFINITION*/ew.target; } + + + + +// === goToDefinition === +// === /a.ts === + +// import.meta; +// function f() { new.t/*GO TO DEFINITION*/[|f|]() { new.target; } + + + + +// === goToDefinition === +// === /b.ts === + +// im/*GO TO DEFINITION*/port.m; +// class c { constructor() { new.target; } } + + + + +// === goToDefinition === +// === /b.ts === + +// import.m; +// class c { constructor() { n/*GO TO DEFINITION*/ew.target; } } + + + + +// === goToDefinition === +// === /b.ts === + +// import.m; +// class c { constructor() { new.t/*GO TO DEFINITION*/[|c|] { constructor() { new.target; } } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMethodOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionMethodOverloads.baseline.jsonc new file mode 100644 index 0000000000..6f294a944d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionMethodOverloads.baseline.jsonc @@ -0,0 +1,117 @@ +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === + +// class MethodOverload { +// static [|method|](); +// static method(foo: string); +// static method(foo?: any) { } +// public method(): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload./*GO TO DEFINITION*/method(); +// MethodOverload.method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload.method(); +// methodOverload.method("456"); + + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === + +// class MethodOverload { +// static method(); +// static [|method|](foo: string); +// static method(foo?: any) { } +// public method(): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// MethodOverload./*GO TO DEFINITION*/method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload.method(); +// methodOverload.method("456"); + + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === + +// class MethodOverload { +// static method(); +// static method(foo: string); +// static method(foo?: any) { } +// public [|method|](): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// MethodOverload.method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload./*GO TO DEFINITION*/method(); +// methodOverload.method("456"); + + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === + +// class MethodOverload { +// static method(); +// static method(foo: string); +// static method(foo?: any) { } +// public method(): any; +// public [|method|](foo: string); +// public method(foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// MethodOverload.method("123"); +// // instance method +// var methodOverload = new MethodOverload(); +// methodOverload.method(); +// methodOverload./*GO TO DEFINITION*/method("456"); + + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === + +// class MethodOverload { +// static /*GO TO DEFINITION*/[|method|](); +// static [|method|](foo: string); +// static [|method|](foo?: any) { } +// public method(): any; +// public method(foo: string); +// public method(foo?: any) { return "foo" } +// // --- (line: 8) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionMethodOverloads.ts === + +// class MethodOverload { +// static method(); +// static method(foo: string); +// static method(foo?: any) { } +// public /*GO TO DEFINITION*/[|method|](): any; +// public [|method|](foo: string); +// public [|method|](foo?: any) { return "foo" } +// } +// // static method +// MethodOverload.method(); +// // --- (line: 11) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionModifiers.baseline.jsonc new file mode 100644 index 0000000000..44c9df60f1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionModifiers.baseline.jsonc @@ -0,0 +1,230 @@ +// === goToDefinition === +// === /a.ts === + +// /*GO TO DEFINITION*/export class [|A|] { +// +// private z: string; +// +// // --- (line: 5) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// export class A/*GO TO DEFINITION*/[|A|] { +// +// private z: string; +// +// // --- (line: 5) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// export class A { +// +// /*GO TO DEFINITION*/private [|z|]: string; +// +// readonly x: string; +// +// // --- (line: 7) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// export class A { +// +// private z/*GO TO DEFINITION*/[|z|]: string; +// +// readonly x: string; +// +// // --- (line: 7) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// export class A { +// +// private z: string; +// +// /*GO TO DEFINITION*/readonly [|x|]: string; +// +// async a() { } +// +// // --- (line: 9) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// export class A { +// +// private z: string; +// +// readonly x/*GO TO DEFINITION*/[|x|]: string; +// +// async a() { } +// +// // --- (line: 9) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 3) skipped --- +// +// readonly x: string; +// +// /*GO TO DEFINITION*/async [|a|]() { } +// +// override b() {} +// +// // --- (line: 11) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 3) skipped --- +// +// readonly x: string; +// +// async a/*GO TO DEFINITION*/[|a|]() { } +// +// override b() {} +// +// // --- (line: 11) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 5) skipped --- +// +// async a() { } +// +// /*GO TO DEFINITION*/override [|b|]() {} +// +// public async c() { } +// } +// +// export function foo() { } + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 5) skipped --- +// +// async a() { } +// +// override b/*GO TO DEFINITION*/[|b|]() {} +// +// public async c() { } +// } +// +// export function foo() { } + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 7) skipped --- +// +// override b() {} +// +// /*GO TO DEFINITION*/public async [|c|]() { } +// } +// +// export function foo() { } + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 7) skipped --- +// +// override b() {} +// +// public/*GO TO DEFINITION*/ async [|c|]() { } +// } +// +// export function foo() { } + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 7) skipped --- +// +// override b() {} +// +// public as/*GO TO DEFINITION*/ync [|c|]() { } +// } +// +// export function foo() { } + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 7) skipped --- +// +// override b() {} +// +// public async c/*GO TO DEFINITION*/[|c|]() { } +// } +// +// export function foo() { } + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 10) skipped --- +// public async c() { } +// } +// +// exp/*GO TO DEFINITION*/ort function [|foo|]() { } + + + + +// === goToDefinition === +// === /a.ts === + +// --- (line: 10) skipped --- +// public async c() { } +// } +// +// export function foo/*GO TO DEFINITION*/[|foo|]() { } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMultipleDefinitions.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionMultipleDefinitions.baseline.jsonc new file mode 100644 index 0000000000..ed4abc4b5e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionMultipleDefinitions.baseline.jsonc @@ -0,0 +1,41 @@ +// === goToDefinition === +// === /a.ts === + +// interface [|IFoo|] { +// instance1: number; +// } + + +// === /b.ts === + +// interface [|IFoo|] { +// instance2: number; +// } +// +// interface [|IFoo|] { +// instance3: number; +// } +// +// var ifoo: IFo/*GO TO DEFINITION*/o; + + + + +// === goToDefinition === +// === /c.ts === + +// module [|Module|] { +// export class c1 { } +// } + + +// === /d.ts === + +// module [|Module|] { +// export class c2 { } +// } + + +// === /e.ts === + +// Modul/*GO TO DEFINITION*/e; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc new file mode 100644 index 0000000000..022497479b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc @@ -0,0 +1,26 @@ +// === goToDefinition === +// === /goToDefinitionNewExpressionTargetNotClass.ts === + +// class C2 { +// } +// let [|I|]: { +// [|new(): C2;|] +// }; +// new /*GO TO DEFINITION*/I(); +// let I2: { +// }; +// new I2(); + + + + +// === goToDefinition === +// === /goToDefinitionNewExpressionTargetNotClass.ts === + +// --- (line: 3) skipped --- +// new(): C2; +// }; +// new I(); +// let [|I2|]: { +// }; +// new /*GO TO DEFINITION*/I2(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc new file mode 100644 index 0000000000..4e1149597e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionObjectBindingElementPropertyName01.ts === + +// interface I { +// [|property1|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*GO TO DEFINITION*/property1: prop1 } = foo; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..2e93fea859 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,96 @@ +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === + +// var o = { +// [|value|]: 0, +// get getter() {return 0 }, +// set setter(v: number) { }, +// method: () => { }, +// es6StyleMethod() { } +// }; +// +// o./*GO TO DEFINITION*/value; +// o.getter; +// o.setter; +// o.method; +// o.es6StyleMethod; + + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === + +// var o = { +// value: 0, +// get [|getter|]() {return 0 }, +// set setter(v: number) { }, +// method: () => { }, +// es6StyleMethod() { } +// }; +// +// o.value; +// o./*GO TO DEFINITION*/getter; +// o.setter; +// o.method; +// o.es6StyleMethod; + + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === + +// var o = { +// value: 0, +// get getter() {return 0 }, +// set [|setter|](v: number) { }, +// method: () => { }, +// es6StyleMethod() { } +// }; +// +// o.value; +// o.getter; +// o./*GO TO DEFINITION*/setter; +// o.method; +// o.es6StyleMethod; + + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === + +// var o = { +// value: 0, +// get getter() {return 0 }, +// set setter(v: number) { }, +// [|method|]: () => { }, +// es6StyleMethod() { } +// }; +// +// o.value; +// o.getter; +// o.setter; +// o./*GO TO DEFINITION*/method; +// o.es6StyleMethod; + + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties.ts === + +// var o = { +// value: 0, +// get getter() {return 0 }, +// set setter(v: number) { }, +// method: () => { }, +// [|es6StyleMethod|]() { } +// }; +// +// o.value; +// o.getter; +// o.setter; +// o.method; +// o./*GO TO DEFINITION*/es6StyleMethod; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties1.baseline.jsonc new file mode 100644 index 0000000000..c4154c3905 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties1.baseline.jsonc @@ -0,0 +1,32 @@ +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties1.ts === + +// interface PropsBag { +// [|propx|]: number +// } +// function foo(arg: PropsBag) {} +// foo({ +// pr/*GO TO DEFINITION*/opx: 10 +// }) +// function bar(firstarg: boolean, secondarg: PropsBag) {} +// bar(true, { +// propx: 10 +// }) + + + + +// === goToDefinition === +// === /goToDefinitionObjectLiteralProperties1.ts === + +// interface PropsBag { +// [|propx|]: number +// } +// function foo(arg: PropsBag) {} +// foo({ +// propx: 10 +// }) +// function bar(firstarg: boolean, secondarg: PropsBag) {} +// bar(true, { +// pr/*GO TO DEFINITION*/opx: 10 +// }) diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionObjectSpread.baseline.jsonc new file mode 100644 index 0000000000..afad471272 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionObjectSpread.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionObjectSpread.ts === + +// interface A1 { [|a|]: number }; +// interface A2 { [|a|]?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a/*GO TO DEFINITION*/; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc new file mode 100644 index 0000000000..761a85ba27 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /goToDefinitionOverloadsInMultiplePropertyAccesses.ts === + +// namespace A { +// export namespace B { +// export function f(value: number): void; +// export function [|f|](value: string): void; +// export function f(value: number | string) {} +// } +// } +// A.B./*GO TO DEFINITION*/f(""); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember1.baseline.jsonc new file mode 100644 index 0000000000..ac11d76c79 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember1.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember1.ts === + +// class Foo { +// [|p|] = ''; +// } +// class Bar extends Foo { +// /*GO TO DEFINITION*/override p = ''; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember10.baseline.jsonc new file mode 100644 index 0000000000..42b1667ea0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember10.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /a.js === + +// class Foo {} +// class Bar extends Foo { +// /** @override/*GO TO DEFINITION*/ */ +// m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember11.baseline.jsonc new file mode 100644 index 0000000000..96e1fa6c0b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember11.baseline.jsonc @@ -0,0 +1,66 @@ +// === goToDefinition === +// === /a.js === + +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @over/*GO TO DEFINITION*/ride see {@link https://test.com} description */ +// m() {} +// } + + + + +// === goToDefinition === +// === /a.js === + +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override se/*GO TO DEFINITION*/e {@link https://test.com} description */ +// m() {} +// } + + + + +// === goToDefinition === +// === /a.js === + +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override see {@li/*GO TO DEFINITION*/nk https://test.com} description */ +// m() {} +// } + + + + +// === goToDefinition === +// === /a.js === + +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override see {@link https://test.c/*GO TO DEFINITION*/om} description */ +// m() {} +// } + + + + +// === goToDefinition === +// === /a.js === + +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /** @override see {@link https://test.com} /*GO TO DEFINITION*/description */ +// m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember12.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember12.baseline.jsonc new file mode 100644 index 0000000000..715a7cdf94 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember12.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember12.ts === + +// class Foo { +// static [|p|] = ''; +// } +// class Bar extends Foo { +// static /*GO TO DEFINITION*/override p = ''; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember13.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember13.baseline.jsonc new file mode 100644 index 0000000000..7d6233d830 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember13.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember13.ts === + +// class Foo { +// static [|m|]() {} +// } +// class Bar extends Foo { +// static /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember14.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember14.baseline.jsonc new file mode 100644 index 0000000000..3a62a94263 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember14.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember14.ts === + +// class A { +// [|m|]() {} +// } +// class B extends A {} +// class C extends B { +// /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember15.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember15.baseline.jsonc new file mode 100644 index 0000000000..e14990deea --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember15.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember15.ts === + +// class A { +// static [|m|]() {} +// } +// class B extends A {} +// class C extends B { +// static /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember16.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember16.baseline.jsonc new file mode 100644 index 0000000000..cbbf2a9da3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember16.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionOverrideJsdoc.ts === + +// export class C extends CompletelyUndefined { +// /** +// * @override/*GO TO DEFINITION*/ +// * @returns {{}} +// */ +// static foo() { +// // --- (line: 7) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember2.baseline.jsonc new file mode 100644 index 0000000000..07cc95ddef --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember2.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember2.ts === + +// class Foo { +// [|m|]() {} +// } +// +// class Bar extends Foo { +// /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember3.baseline.jsonc new file mode 100644 index 0000000000..2ed1e9c304 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember3.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember3.ts === + +// abstract class Foo { +// abstract [|m|]() {} +// } +// +// export class Bar extends Foo { +// /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember4.baseline.jsonc new file mode 100644 index 0000000000..addd84eab3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember4.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember4.ts === + +// class Foo { +// [|m|]() {} +// } +// function f () { +// return class extends Foo { +// /*GO TO DEFINITION*/override m() {} +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember5.baseline.jsonc new file mode 100644 index 0000000000..242dfd2a73 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember5.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember5.ts === + +// class Foo extends (class { +// [|m|]() {} +// }) { +// /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember6.baseline.jsonc new file mode 100644 index 0000000000..65f53f831e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember6.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember6.ts === + +// class Foo { +// m() {} +// } +// class Bar extends Foo { +// /*GO TO DEFINITION*/override [|m1|]() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember7.baseline.jsonc new file mode 100644 index 0000000000..0a02b0caf7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember7.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember7.ts === + +// class Foo { +// /*GO TO DEFINITION*/override [|m|]() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember8.baseline.jsonc new file mode 100644 index 0000000000..f7d0b7d83e --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember8.baseline.jsonc @@ -0,0 +1,14 @@ +// === goToDefinition === +// === /a.ts === + +// export class A { +// [|m|]() {} +// } + + +// === /b.ts === + +// import { A } from "./a"; +// class B extends A { +// /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember9.baseline.jsonc new file mode 100644 index 0000000000..24f841e86f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember9.baseline.jsonc @@ -0,0 +1,12 @@ +// === goToDefinition === +// === /goToDefinitionOverriddenMember9.ts === + +// interface I { +// m(): void; +// } +// class A { +// [|m|]() {}; +// } +// class B extends A implements I { +// /*GO TO DEFINITION*/override m() {} +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPartialImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionPartialImplementation.baseline.jsonc new file mode 100644 index 0000000000..bc9376f290 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionPartialImplementation.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionPartialImplementation_1.ts === + +// module A { +// export interface [|IA|] { +// y: string; +// } +// } + + +// === /goToDefinitionPartialImplementation_2.ts === + +// module A { +// export interface [|IA|] { +// x: number; +// } +// +// var x: /*GO TO DEFINITION*/IA; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionPrimitives.baseline.jsonc new file mode 100644 index 0000000000..60a68757fa --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionPrimitives.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /goToDefinitionPrimitives.ts === + +// var x: st/*GO TO DEFINITION*/ring; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPrivateName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionPrivateName.baseline.jsonc new file mode 100644 index 0000000000..8fea9247a7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionPrivateName.baseline.jsonc @@ -0,0 +1,50 @@ +// === goToDefinition === +// === /goToDefinitionPrivateName.ts === + +// class A { +// #method() { } +// [|#foo|] = 3; +// get #prop() { return ""; } +// set #prop(value: string) { } +// constructor() { +// this./*GO TO DEFINITION*/#foo +// this.#method +// this.#prop +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionPrivateName.ts === + +// class A { +// [|#method|]() { } +// #foo = 3; +// get #prop() { return ""; } +// set #prop(value: string) { } +// constructor() { +// this.#foo +// this./*GO TO DEFINITION*/#method +// this.#prop +// } +// } + + + + +// === goToDefinition === +// === /goToDefinitionPrivateName.ts === + +// class A { +// #method() { } +// #foo = 3; +// get [|#prop|]() { return ""; } +// set [|#prop|](value: string) { } +// constructor() { +// this.#foo +// this.#method +// this./*GO TO DEFINITION*/#prop +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..f5450b633f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionPropertyAssignment.baseline.jsonc @@ -0,0 +1,22 @@ +// === goToDefinition === +// === /goToDefinitionPropertyAssignment.ts === + +// export const [|Component|] = () => { return "OK"} +// Component.displayName = 'Component' +// +// /*GO TO DEFINITION*/Component +// +// Component.displayName + + + + +// === goToDefinition === +// === /goToDefinitionPropertyAssignment.ts === + +// export const Component = () => { return "OK"} +// Component.[|displayName|] = 'Component' +// +// Component +// +// Component./*GO TO DEFINITION*/displayName diff --git a/testdata/baselines/reference/fourslash/goToDefinitionRest.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionRest.baseline.jsonc new file mode 100644 index 0000000000..3d68b15f4c --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionRest.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /goToDefinitionRest.ts === + +// interface Gen { +// x: number; +// [|parent|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest./*GO TO DEFINITION*/parent; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionReturn1.baseline.jsonc new file mode 100644 index 0000000000..18f1b6b08f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionReturn1.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionReturn1.ts === + +// function [|foo|]() { +// /*GO TO DEFINITION*/return 10; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionReturn2.baseline.jsonc new file mode 100644 index 0000000000..1ebe526a40 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionReturn2.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionReturn2.ts === + +// function foo() { +// return [|() => { +// /*GO TO DEFINITION*/return 10; +// }|] +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionReturn3.baseline.jsonc new file mode 100644 index 0000000000..5c10796953 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionReturn3.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionReturn3.ts === + +// class C { +// [|m|]() { +// /*GO TO DEFINITION*/return 1; +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionReturn4.baseline.jsonc new file mode 100644 index 0000000000..d521835508 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionReturn4.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /goToDefinitionReturn4.ts === + +// /*GO TO DEFINITION*/return; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionReturn5.baseline.jsonc new file mode 100644 index 0000000000..0e064e17c1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionReturn5.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionReturn5.ts === + +// function [|foo|]() { +// class Foo { +// static { /*GO TO DEFINITION*/return; } +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionReturn6.baseline.jsonc new file mode 100644 index 0000000000..e0fe0441dd --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionReturn6.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionReturn6.ts === + +// function foo() { +// return [|function () { +// /*GO TO DEFINITION*/return 10; +// }|] +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionReturn7.baseline.jsonc new file mode 100644 index 0000000000..243bfca4ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionReturn7.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionReturn7.ts === + +// function foo(a: string, b: string): string; +// function foo(a: number, b: number): number; +// function [|foo|](a: any, b: any): any { +// /*GO TO DEFINITION*/return a + b; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSameFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSameFile.baseline.jsonc new file mode 100644 index 0000000000..690de32b27 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSameFile.baseline.jsonc @@ -0,0 +1,91 @@ +// === goToDefinition === +// === /goToDefinitionSameFile.ts === + +// var [|localVariable|]; +// function localFunction() { } +// class localClass { } +// interface localInterface{ } +// module localModule{ export var foo = 1;} +// +// +// /*GO TO DEFINITION*/localVariable = 1; +// localFunction(); +// var foo = new localClass(); +// class fooCls implements localInterface { } +// var fooVar = localModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === + +// var localVariable; +// function [|localFunction|]() { } +// class localClass { } +// interface localInterface{ } +// module localModule{ export var foo = 1;} +// +// +// localVariable = 1; +// /*GO TO DEFINITION*/localFunction(); +// var foo = new localClass(); +// class fooCls implements localInterface { } +// var fooVar = localModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === + +// var localVariable; +// function localFunction() { } +// class [|localClass|] { } +// interface localInterface{ } +// module localModule{ export var foo = 1;} +// +// +// localVariable = 1; +// localFunction(); +// var foo = new /*GO TO DEFINITION*/localClass(); +// class fooCls implements localInterface { } +// var fooVar = localModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === + +// var localVariable; +// function localFunction() { } +// class localClass { } +// interface [|localInterface|]{ } +// module localModule{ export var foo = 1;} +// +// +// localVariable = 1; +// localFunction(); +// var foo = new localClass(); +// class fooCls implements /*GO TO DEFINITION*/localInterface { } +// var fooVar = localModule.foo; + + + + +// === goToDefinition === +// === /goToDefinitionSameFile.ts === + +// var localVariable; +// function localFunction() { } +// class localClass { } +// interface localInterface{ } +// module [|localModule|]{ export var foo = 1;} +// +// +// localVariable = 1; +// localFunction(); +// var foo = new localClass(); +// class fooCls implements localInterface { } +// var fooVar = /*GO TO DEFINITION*/localModule.foo; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSatisfiesExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSatisfiesExpression1.baseline.jsonc new file mode 100644 index 0000000000..001af7fa9d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSatisfiesExpression1.baseline.jsonc @@ -0,0 +1,22 @@ +// === goToDefinition === +// === /goToDefinitionSatisfiesExpression1.ts === + +// const STRINGS = { +// /*GO TO DEFINITION*/[|title|]: 'A Title', +// } satisfies Record; +// +// //somewhere in app +// STRINGS.title + + + + +// === goToDefinition === +// === /goToDefinitionSatisfiesExpression1.ts === + +// const STRINGS = { +// [|title|]: 'A Title', +// } satisfies Record; +// +// //somewhere in app +// STRINGS./*GO TO DEFINITION*/title diff --git a/testdata/baselines/reference/fourslash/goToDefinitionScriptImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionScriptImport.baseline.jsonc new file mode 100644 index 0000000000..4b809d76d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionScriptImport.baseline.jsonc @@ -0,0 +1,14 @@ +// === goToDefinition === +// === /moduleThing.ts === + +// import /*GO TO DEFINITION*/"./scriptThing"; +// import "./stylez.css"; + + + + +// === goToDefinition === +// === /moduleThing.ts === + +// import "./scriptThing"; +// import /*GO TO DEFINITION*/"./stylez.css"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionScriptImportServer.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionScriptImportServer.baseline.jsonc new file mode 100644 index 0000000000..c502401d63 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionScriptImportServer.baseline.jsonc @@ -0,0 +1,26 @@ +// === goToDefinition === +// === /home/src/workspaces/project/moduleThing.ts === + +// import /*GO TO DEFINITION*/"./scriptThing"; +// import "./stylez.css"; +// import "./foo.txt"; + + + + +// === goToDefinition === +// === /home/src/workspaces/project/moduleThing.ts === + +// import "./scriptThing"; +// import /*GO TO DEFINITION*/"./stylez.css"; +// import "./foo.txt"; + + + + +// === goToDefinition === +// === /home/src/workspaces/project/moduleThing.ts === + +// import "./scriptThing"; +// import "./stylez.css"; +// import /*GO TO DEFINITION*/"./foo.txt"; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShadowVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShadowVariable.baseline.jsonc new file mode 100644 index 0000000000..62cc613c22 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShadowVariable.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /goToDefinitionShadowVariable.ts === + +// var shadowVariable = "foo"; +// function shadowVariableTestModule() { +// var [|shadowVariable|]; +// /*GO TO DEFINITION*/shadowVariable = 1; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShadowVariableInsideModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShadowVariableInsideModule.baseline.jsonc new file mode 100644 index 0000000000..6a9b66ac86 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShadowVariableInsideModule.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /goToDefinitionShadowVariableInsideModule.ts === + +// module shdModule { +// var [|shdVar|]; +// /*GO TO DEFINITION*/shdVar = 1; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty01.baseline.jsonc new file mode 100644 index 0000000000..998495b181 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty01.baseline.jsonc @@ -0,0 +1,48 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === + +// var name = "hello"; +// var id = 100000; +// declare var id; +// var obj = {/*GO TO DEFINITION*/name, id}; +// obj.name; +// obj.id; + + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === + +// var name = "hello"; +// var [|id|] = 100000; +// declare var [|id|]; +// var obj = {name, /*GO TO DEFINITION*/id}; +// obj.name; +// obj.id; + + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === + +// var name = "hello"; +// var id = 100000; +// declare var id; +// var obj = {[|name|], id}; +// obj./*GO TO DEFINITION*/name; +// obj.id; + + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty01.ts === + +// var name = "hello"; +// var id = 100000; +// declare var id; +// var obj = {name, [|id|]}; +// obj.name; +// obj./*GO TO DEFINITION*/id; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty02.baseline.jsonc new file mode 100644 index 0000000000..66e755d602 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty02.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty02.ts === + +// let x = { +// f/*GO TO DEFINITION*/oo +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty03.baseline.jsonc new file mode 100644 index 0000000000..93a377f606 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty03.baseline.jsonc @@ -0,0 +1,22 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty03.ts === + +// var [|x|] = { +// /*GO TO DEFINITION*/x +// } +// let y = { +// y +// } + + + + +// === goToDefinition === +// === /goToDefinitionShorthandProperty03.ts === + +// var x = { +// x +// } +// let [|y|] = { +// /*GO TO DEFINITION*/y +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty04.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty04.baseline.jsonc new file mode 100644 index 0000000000..0dbcc885e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty04.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty04.ts === + +// interface Foo { +// foo(): void +// } +// +// let x: Foo = { +// f/*GO TO DEFINITION*/oo +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty05.baseline.jsonc new file mode 100644 index 0000000000..32e9dbe162 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty05.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty05.ts === + +// interface Foo { +// foo(): void +// } +// const [|foo|] = 1; +// let x: Foo = { +// f/*GO TO DEFINITION*/oo +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty06.baseline.jsonc new file mode 100644 index 0000000000..1b34e6d962 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty06.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionShorthandProperty06.ts === + +// interface Foo { +// [|foo|](): void +// } +// const foo = 1; +// let x: Foo = { +// f/*GO TO DEFINITION*/oo() +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSignatureAlias_require.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSignatureAlias_require.baseline.jsonc new file mode 100644 index 0000000000..b25869586f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSignatureAlias_require.baseline.jsonc @@ -0,0 +1,24 @@ +// === goToDefinition === +// === /a.js === + +// [|module.exports = function f() {}|][|f|]() {} + + +// === /b.js === + +// const f = require("./a"); +// /*GO TO DEFINITION*/f(); + + + + +// === goToDefinition === +// === /a.js === + +// [|module.exports = function f() {}|][|f|]() {} + + +// === /bar.ts === + +// import f = require("./a"); +// /*GO TO DEFINITION*/f(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSimple.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSimple.baseline.jsonc new file mode 100644 index 0000000000..035841e248 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSimple.baseline.jsonc @@ -0,0 +1,24 @@ +// === goToDefinition === +// === /Definition.ts === + +// class [|c|] { } + + +// === /Consumption.ts === + +// var n = new /*GO TO DEFINITION*/c(); +// var n = new c(); + + + + +// === goToDefinition === +// === /Definition.ts === + +// class [|c|] { } + + +// === /Consumption.ts === + +// var n = new c(); +// var n = new c/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSourceUnit.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSourceUnit.baseline.jsonc new file mode 100644 index 0000000000..7b142582a5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSourceUnit.baseline.jsonc @@ -0,0 +1,25 @@ +// === goToDefinition === +// === /a.ts === + +// //MyFile Comments +// //more comments +// /// +// /// +// +// class clsInOverload { +// // --- (line: 7) skipped --- + + + + +// === goToDefinition === +// === /a.ts === + +// //MyFile Comments +// //more comments +// /// +// /// +// +// class clsInOverload { +// static fnOverload(); +// // --- (line: 8) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase1.baseline.jsonc new file mode 100644 index 0000000000..fd566d3ed8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase1.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase1.ts === + +// [|switch|] (null ) { +// /*GO TO DEFINITION*/case null: break; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase2.baseline.jsonc new file mode 100644 index 0000000000..5b5853f1ec --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase2.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase2.ts === + +// [|switch|] (null) { +// /*GO TO DEFINITION*/default: break; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase3.baseline.jsonc new file mode 100644 index 0000000000..746a4c61e0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase3.baseline.jsonc @@ -0,0 +1,24 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase3.ts === + +// [|switch|] (null) { +// /*GO TO DEFINITION*/default: { +// switch (null) { +// default: break; +// } +// }; +// } + + + + +// === goToDefinition === +// === /goToDefinitionSwitchCase3.ts === + +// switch (null) { +// default: { +// [|switch|] (null) { +// /*GO TO DEFINITION*/default: break; +// } +// }; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase4.baseline.jsonc new file mode 100644 index 0000000000..38d9a577be --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase4.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase4.ts === + +// switch (null) { +// case null: break; +// } +// +// [|switch|] (null) { +// /*GO TO DEFINITION*/case null: break; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase5.baseline.jsonc new file mode 100644 index 0000000000..aaafe2addb --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase5.baseline.jsonc @@ -0,0 +1,4 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase5.ts === + +// export /*GO TO DEFINITION*/default {} diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase6.baseline.jsonc new file mode 100644 index 0000000000..7d19bcdcc4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase6.baseline.jsonc @@ -0,0 +1,26 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase6.ts === + +// export default { /*GO TO DEFINITION*/[|case|] }; +// default; +// case 42; + + + + +// === goToDefinition === +// === /goToDefinitionSwitchCase6.ts === + +// export default { case }; +// /*GO TO DEFINITION*/default; +// case 42; + + + + +// === goToDefinition === +// === /goToDefinitionSwitchCase6.ts === + +// export default { case }; +// default; +// /*GO TO DEFINITION*/case 42; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase7.baseline.jsonc new file mode 100644 index 0000000000..e62291a379 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase7.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionSwitchCase7.ts === + +// switch (null) { +// case null: +// export /*GO TO DEFINITION*/default 123; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTaggedTemplateOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionTaggedTemplateOverloads.baseline.jsonc new file mode 100644 index 0000000000..0e0f59e55b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionTaggedTemplateOverloads.baseline.jsonc @@ -0,0 +1,22 @@ +// === goToDefinition === +// === /goToDefinitionTaggedTemplateOverloads.ts === + +// function [|f|](strs: TemplateStringsArray, x: number): void; +// function f(strs: TemplateStringsArray, x: boolean): void; +// function f(strs: TemplateStringsArray, x: number | boolean) {} +// +// /*GO TO DEFINITION*/f`${0}`; +// f`${false}`; + + + + +// === goToDefinition === +// === /goToDefinitionTaggedTemplateOverloads.ts === + +// function f(strs: TemplateStringsArray, x: number): void; +// function [|f|](strs: TemplateStringsArray, x: boolean): void; +// function f(strs: TemplateStringsArray, x: number | boolean) {} +// +// f`${0}`; +// /*GO TO DEFINITION*/f`${false}`; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionThis.baseline.jsonc new file mode 100644 index 0000000000..777b49ba3f --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionThis.baseline.jsonc @@ -0,0 +1,38 @@ +// === goToDefinition === +// === /goToDefinitionThis.ts === + +// function f([|this|]: number) { +// return /*GO TO DEFINITION*/this; +// } +// class C { +// constructor() { return this; } +// get self(this: number) { return this; } +// } + + + + +// === goToDefinition === +// === /goToDefinitionThis.ts === + +// function f(this: number) { +// return this; +// } +// class [|C|] { +// constructor() { return /*GO TO DEFINITION*/this; } +// get self(this: number) { return this; } +// } + + + + +// === goToDefinition === +// === /goToDefinitionThis.ts === + +// function f(this: number) { +// return this; +// } +// class C { +// constructor() { return this; } +// get self(this: number) { return /*GO TO DEFINITION*/[|this|]: number) { return this; } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypeOnlyImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionTypeOnlyImport.baseline.jsonc new file mode 100644 index 0000000000..c8789a193a --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionTypeOnlyImport.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /a.ts === + +// enum [|SyntaxKind|] { SourceFile } +// export type { SyntaxKind } + + +// === /c.ts === + +// import type { SyntaxKind } from './b'; +// let kind: /*GO TO DEFINITION*/SyntaxKind; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypePredicate.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionTypePredicate.baseline.jsonc new file mode 100644 index 0000000000..435ad196c3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionTypePredicate.baseline.jsonc @@ -0,0 +1,18 @@ +// === goToDefinition === +// === /goToDefinitionTypePredicate.ts === + +// class A {} +// function f(parameter: any): /*GO TO DEFINITION*/[|parameter|]: any): parameter is A { +// return typeof parameter === "string"; +// } + + + + +// === goToDefinition === +// === /goToDefinitionTypePredicate.ts === + +// class [|A|] {} +// function f(parameter: any): parameter is /*GO TO DEFINITION*/A { +// return typeof parameter === "string"; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypeReferenceDirective.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionTypeReferenceDirective.baseline.jsonc new file mode 100644 index 0000000000..cebefaba91 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionTypeReferenceDirective.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /src/app.ts === + +// /// +// $.x; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypeofThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionTypeofThis.baseline.jsonc new file mode 100644 index 0000000000..727f6f5880 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionTypeofThis.baseline.jsonc @@ -0,0 +1,38 @@ +// === goToDefinition === +// === /goToDefinitionTypeofThis.ts === + +// function f([|this|]: number) { +// type X = typeof /*GO TO DEFINITION*/this; +// } +// class C { +// constructor() { type X = typeof this; } +// get self(this: number) { type X = typeof this; } +// } + + + + +// === goToDefinition === +// === /goToDefinitionTypeofThis.ts === + +// function f(this: number) { +// type X = typeof this; +// } +// class [|C|] { +// constructor() { type X = typeof /*GO TO DEFINITION*/this; } +// get self(this: number) { type X = typeof this; } +// } + + + + +// === goToDefinition === +// === /goToDefinitionTypeofThis.ts === + +// function f(this: number) { +// type X = typeof this; +// } +// class C { +// constructor() { type X = typeof this; } +// get self(this: number) { type X = typeof /*GO TO DEFINITION*/[|this|]: number) { type X = typeof this; } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUndefinedSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionUndefinedSymbols.baseline.jsonc new file mode 100644 index 0000000000..ca9d8f39db --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionUndefinedSymbols.baseline.jsonc @@ -0,0 +1,40 @@ +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === + +// some/*GO TO DEFINITION*/Variable; +// var a: someType; +// var x = {}; x.someProperty; +// var a: any; a.someProperty; + + + + +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === + +// someVariable; +// var a: some/*GO TO DEFINITION*/Type; +// var x = {}; x.someProperty; +// var a: any; a.someProperty; + + + + +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === + +// someVariable; +// var a: someType; +// var x = {}; x.some/*GO TO DEFINITION*/Property; +// var a: any; a.someProperty; + + + + +// === goToDefinition === +// === /goToDefinitionUndefinedSymbols.ts === + +// someVariable; +// var a: someType; +// var x = {}; x.someProperty; +// var a: any; a.some/*GO TO DEFINITION*/Property; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty1.baseline.jsonc new file mode 100644 index 0000000000..29d630ae11 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty1.baseline.jsonc @@ -0,0 +1,17 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty1.ts === + +// interface One { +// [|commonProperty|]: number; +// commonFunction(): number; +// } +// +// interface Two { +// [|commonProperty|]: string +// commonFunction(): number; +// } +// +// var x : One | Two; +// +// x./*GO TO DEFINITION*/commonProperty; +// x.commonFunction; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty2.baseline.jsonc new file mode 100644 index 0000000000..5e619d1172 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty2.baseline.jsonc @@ -0,0 +1,19 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty2.ts === + +// interface HasAOrB { +// [|a|]: string; +// b: string; +// } +// +// interface One { +// common: { [|a|] : number; }; +// } +// +// interface Two { +// common: HasAOrB; +// } +// +// var x : One | Two; +// +// x.common./*GO TO DEFINITION*/a; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty3.baseline.jsonc new file mode 100644 index 0000000000..782208d88d --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty3.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty3.ts === + +// interface Array { +// [|specialPop|](): T +// } +// +// var strings: string[]; +// var numbers: number[]; +// +// var x = (strings || numbers)./*GO TO DEFINITION*/specialPop() diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty4.baseline.jsonc new file mode 100644 index 0000000000..606d1d677b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty4.baseline.jsonc @@ -0,0 +1,20 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty4.ts === + +// interface SnapCrackle { +// [|pop|](): string; +// } +// +// interface Magnitude { +// [|pop|](): number; +// } +// +// interface Art { +// [|pop|](): boolean; +// } +// +// var art: Art; +// var magnitude: Magnitude; +// var snapcrackle: SnapCrackle; +// +// var x = (snapcrackle || magnitude || art)./*GO TO DEFINITION*/pop; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc new file mode 100644 index 0000000000..16520ef58b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc @@ -0,0 +1,102 @@ +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === + +// type U = A | B; +// +// interface A { +// [|kind|]: "a"; +// prop: number; +// }; +// +// interface B { +// kind: "b"; +// prop: string; +// } +// +// const u: U = { +// /*GO TO DEFINITION*/kind: "a", +// prop: 0, +// }; +// const u2: U = { +// // --- (line: 18) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === + +// type U = A | B; +// +// interface A { +// kind: "a"; +// [|prop|]: number; +// }; +// +// interface B { +// kind: "b"; +// prop: string; +// } +// +// const u: U = { +// kind: "a", +// /*GO TO DEFINITION*/prop: 0, +// }; +// const u2: U = { +// kind: "bogus", +// prop: 0, +// }; + + + + +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === + +// type U = A | B; +// +// interface A { +// [|kind|]: "a"; +// prop: number; +// }; +// +// interface B { +// [|kind|]: "b"; +// prop: string; +// } +// +// const u: U = { +// kind: "a", +// prop: 0, +// }; +// const u2: U = { +// /*GO TO DEFINITION*/kind: "bogus", +// prop: 0, +// }; + + + + +// === goToDefinition === +// === /goToDefinitionUnionTypeProperty_discriminated.ts === + +// type U = A | B; +// +// interface A { +// kind: "a"; +// [|prop|]: number; +// }; +// +// interface B { +// kind: "b"; +// [|prop|]: string; +// } +// +// const u: U = { +// kind: "a", +// prop: 0, +// }; +// const u2: U = { +// kind: "bogus", +// /*GO TO DEFINITION*/prop: 0, +// }; diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment.baseline.jsonc new file mode 100644 index 0000000000..873fed0335 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /foo.js === + +// const Bar; +// const [|Foo|] = [|Bar|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment1.baseline.jsonc new file mode 100644 index 0000000000..76b6e818f8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment1.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /foo.js === + +// const [|Foo|] = module.[|exports|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment2.baseline.jsonc new file mode 100644 index 0000000000..170e6358ac --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment2.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /foo.ts === + +// const Bar; +// const [|Foo|] = [|Bar|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment3.baseline.jsonc new file mode 100644 index 0000000000..de3dc88da8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment3.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /foo.ts === + +// const [|Foo|] = module.[|exports|] = function () {} +// Foo.prototype.bar = function() {} +// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionYield1.baseline.jsonc new file mode 100644 index 0000000000..07180e5168 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionYield1.baseline.jsonc @@ -0,0 +1,24 @@ +// === goToDefinition === +// === /goToDefinitionYield1.ts === + +// function* [|gen|]() { +// /*GO TO DEFINITION*/yield 0; +// } +// +// const genFunction = function*() { +// yield 0; +// } + + + + +// === goToDefinition === +// === /goToDefinitionYield1.ts === + +// function* gen() { +// yield 0; +// } +// +// const [|genFunction|] = function*() { +// /*GO TO DEFINITION*/yield 0; +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionYield2.baseline.jsonc new file mode 100644 index 0000000000..eebbcc45cb --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionYield2.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /goToDefinitionYield2.ts === + +// function* outerGen() { +// function* [|gen|]() { +// /*GO TO DEFINITION*/yield 0; +// } +// return gen +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionYield3.baseline.jsonc new file mode 100644 index 0000000000..9511a8d4bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionYield3.baseline.jsonc @@ -0,0 +1,26 @@ +// === goToDefinition === +// === /goToDefinitionYield3.ts === + +// class C { +// [|notAGenerator|]() { +// /*GO TO DEFINITION*/yield 0; +// } +// +// foo*() { +// // --- (line: 7) skipped --- + + + + +// === goToDefinition === +// === /goToDefinitionYield3.ts === + +// class C { +// notAGenerator() { +// yield 0; +// } +// +// foo*[||]() { +// /*GO TO DEFINITION*/yield 0; +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinitionYield4.baseline.jsonc new file mode 100644 index 0000000000..895b2cff68 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinitionYield4.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinitionYield4.ts === + +// function* gen() { +// class C { [/*GO TO DEFINITION*/[|[yield 10]|]() {} } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinition_filteringGenericMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition_filteringGenericMappedType.baseline.jsonc new file mode 100644 index 0000000000..35aab26fd3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition_filteringGenericMappedType.baseline.jsonc @@ -0,0 +1,16 @@ +// === goToDefinition === +// === /goToDefinition_filteringGenericMappedType.ts === + +// const obj = { +// get [|id|]() { +// return 1; +// }, +// name: "test", +// // --- (line: 6) skipped --- + + +// --- (line: 17) skipped --- +// name: true, +// }); +// +// obj2./*GO TO DEFINITION*/id; diff --git a/testdata/baselines/reference/fourslash/goToDefinition_filteringMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition_filteringMappedType.baseline.jsonc new file mode 100644 index 0000000000..477bd810e2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition_filteringMappedType.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinition_filteringMappedType.ts === + +// const obj = { [|a|]: 1, b: 2 }; +// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { a: 0 }; +// filtered./*GO TO DEFINITION*/a; diff --git a/testdata/baselines/reference/fourslash/goToDefinition_mappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition_mappedType.baseline.jsonc new file mode 100644 index 0000000000..0657c65923 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition_mappedType.baseline.jsonc @@ -0,0 +1,6 @@ +// === goToDefinition === +// === /goToDefinition_mappedType.ts === + +// interface I { [|m|](): void; }; +// declare const i: { [K in "m"]: I[K] }; +// i./*GO TO DEFINITION*/m(); diff --git a/testdata/baselines/reference/fourslash/goToDefinition_super.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition_super.baseline.jsonc new file mode 100644 index 0000000000..285f2e5a82 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition_super.baseline.jsonc @@ -0,0 +1,51 @@ +// === goToDefinition === +// === /goToDefinition_super.ts === + +// class A { +// [|constructor() {}|] +// x() {} +// } +// class [|B|] extends A {} +// class C extends B { +// constructor() { +// /*GO TO DEFINITION*/super(); +// } +// method() { +// super.x(); +// // --- (line: 12) skipped --- + + + + +// === goToDefinition === +// === /goToDefinition_super.ts === + +// class A { +// constructor() {} +// x() {} +// } +// class [|B|] extends A {} +// class C extends B { +// constructor() { +// super(); +// } +// method() { +// /*GO TO DEFINITION*/super.x(); +// } +// } +// class D { +// // --- (line: 15) skipped --- + + + + +// === goToDefinition === +// === /goToDefinition_super.ts === + +// --- (line: 12) skipped --- +// } +// class D { +// constructor() { +// /*GO TO DEFINITION*/super(); +// } +// } diff --git a/testdata/baselines/reference/fourslash/goToDefinition_untypedModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition_untypedModule.baseline.jsonc new file mode 100644 index 0000000000..6ab5f34f4b --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToDefinition_untypedModule.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /a.ts === + +// import { [|f|] } from "foo"; +// /*GO TO DEFINITION*/f(); diff --git a/testdata/baselines/reference/fourslash/goToModuleAliasDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToModuleAliasDefinition.baseline.jsonc new file mode 100644 index 0000000000..f9f31e6589 --- /dev/null +++ b/testdata/baselines/reference/fourslash/goToModuleAliasDefinition.baseline.jsonc @@ -0,0 +1,5 @@ +// === goToDefinition === +// === /b.ts === + +// import [|n|] = require('a'); +// var x = new /*GO TO DEFINITION*/n.Foo(); diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionConstructorFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionConstructorFunction.baseline.jsonc new file mode 100644 index 0000000000..b355f41fa4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionConstructorFunction.baseline.jsonc @@ -0,0 +1,11 @@ +// === goToDefinition === +// === /gotoDefinitionConstructorFunction.js === + +// function [|StringStreamm|]() { +// } +// StringStreamm.prototype = { +// }; +// +// function runMode () { +// new /*GO TO DEFINITION*/StringStreamm() +// }; diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern1.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern1.baseline.jsonc new file mode 100644 index 0000000000..7d088998b8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern1.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern1.ts === + +// --- (line: 3) skipped --- +// interface Test { +// prop2: number +// } +// bar(({pr/*GO TO DEFINITION*/[|prop2|]})=>{}); diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern2.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern2.baseline.jsonc new file mode 100644 index 0000000000..7eff2010c1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern2.baseline.jsonc @@ -0,0 +1,23 @@ +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern2.ts === + +// var p0 = ({a/*GO TO DEFINITION*/[|aa|]}) => {console.log(aa)}; +// function f2({ a1, b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} + + + + +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern2.ts === + +// var p0 = ({aa}) => {console.log(aa)}; +// function f2({ a/*GO TO DEFINITION*/[|a1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} + + + + +// === goToDefinition === +// === /gotoDefinitionInObjectBindingPattern2.ts === + +// var p0 = ({aa}) => {console.log(aa)}; +// function f2({ a1, b/*GO TO DEFINITION*/[|b1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag1.baseline.jsonc new file mode 100644 index 0000000000..3b16d7e996 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag1.baseline.jsonc @@ -0,0 +1,99 @@ +// === goToDefinition === +// === /foo.ts === + +// --- (line: 5) skipped --- +// baz: Foo +// } +// } +// /** {@link /*GO TO DEFINITION*/Foo} foooo*/ +// const a = "" +// /** {@link NS.Bar} ns.bar*/ +// const b = "" +// // --- (line: 13) skipped --- + + + + +// === goToDefinition === +// === /foo.ts === + +// --- (line: 7) skipped --- +// } +// /** {@link Foo} foooo*/ +// const a = "" +// /** {@link NS./*GO TO DEFINITION*/Bar} ns.bar*/ +// const b = "" +// /** {@link Foo f1}*/ +// const c = "" +// // --- (line: 15) skipped --- + + + + +// === goToDefinition === +// === /foo.ts === + +// --- (line: 9) skipped --- +// const a = "" +// /** {@link NS.Bar} ns.bar*/ +// const b = "" +// /** {@link /*GO TO DEFINITION*/Foo f1}*/ +// const c = "" +// /** {@link NS.Bar ns.bar}*/ +// const d = "" +// // --- (line: 17) skipped --- + + + + +// === goToDefinition === +// === /foo.ts === + +// --- (line: 11) skipped --- +// const b = "" +// /** {@link Foo f1}*/ +// const c = "" +// /** {@link NS./*GO TO DEFINITION*/Bar ns.bar}*/ +// const d = "" +// /** {@link d }dd*/ +// const e = "" +// /** @param x {@link Foo} */ +// function foo(x) { } + + + + +// === goToDefinition === +// === /foo.ts === + +// --- (line: 12) skipped --- +// /** {@link Foo f1}*/ +// const c = "" +// /** {@link NS.Bar ns.bar}*/ +// const [|d|] = "" +// /** {@link /*GO TO DEFINITION*/d }dd*/ +// const e = "" +// /** @param x {@link Foo} */ +// function foo(x) { } + + + + +// === goToDefinition === +// === /foo.ts === + +// --- (line: 15) skipped --- +// const d = "" +// /** {@link d }dd*/ +// const e = "" +// /** @param x {@link /*GO TO DEFINITION*/Foo} */ +// function foo(x) { } + + + + +// === goToDefinition === +// === /bar.ts === + +// /** {@link /*GO TO DEFINITION*/Foo }dd*/ +// const f = "" diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag2.baseline.jsonc new file mode 100644 index 0000000000..85a54a4873 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag2.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /gotoDefinitionLinkTag2.ts === + +// enum E { +// /** {@link /*GO TO DEFINITION*/A} */ +// [|A|] +// } diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag3.baseline.jsonc new file mode 100644 index 0000000000..7da06310b0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag3.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.ts === + +// enum E { +// /** {@link /*GO TO DEFINITION*/Foo} */ +// [|Foo|] +// } +// interface Foo { +// foo: E.Foo; +// } diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag4.baseline.jsonc new file mode 100644 index 0000000000..e2544a7456 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag4.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /b.ts === + +// enum E { +// /** {@link /*GO TO DEFINITION*/Foo} */ +// [|Foo|] +// } diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag5.baseline.jsonc new file mode 100644 index 0000000000..92dcc5f1e4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag5.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /gotoDefinitionLinkTag5.ts === + +// enum E { +// /** {@link /*GO TO DEFINITION*/B} */ +// A, +// [|B|] +// } diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag6.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag6.baseline.jsonc new file mode 100644 index 0000000000..d8119d134b --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag6.baseline.jsonc @@ -0,0 +1,7 @@ +// === goToDefinition === +// === /gotoDefinitionLinkTag6.ts === + +// enum E { +// /** {@link E./*GO TO DEFINITION*/A} */ +// [|A|] +// } diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc new file mode 100644 index 0000000000..62ca3f6e95 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc @@ -0,0 +1,22 @@ +// === goToDefinition === +// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === + +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo())./*GO TO DEFINITION*/B {} +// class C1 extends foo().B {} + + + + +// === goToDefinition === +// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === + +// class B {} +// function foo() { +// return {[|B|]: B}; +// } +// class C extends (foo()).B {} +// class C1 extends foo()./*GO TO DEFINITION*/B {} diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionSatisfiesTag.baseline.jsonc new file mode 100644 index 0000000000..7f02562f3d --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionSatisfiesTag.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /a.js === + +// /** +// * @typedef {Object} [|T|] +// * @property {number} a +// */ +// +// /** @satisfies {/*GO TO DEFINITION*/T} comment */ +// const foo = { a: 1 }; diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionThrowsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/gotoDefinitionThrowsTag.baseline.jsonc new file mode 100644 index 0000000000..2c0e4a15c2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/gotoDefinitionThrowsTag.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /gotoDefinitionThrowsTag.ts === + +// class E extends Error {} +// +// /** +// * @throws {/*GO TO DEFINITION*/E} +// */ +// function f() {} diff --git a/testdata/baselines/reference/fourslash/highlightsForExportFromUnfoundModule.baseline.jsonc b/testdata/baselines/reference/fourslash/highlightsForExportFromUnfoundModule.baseline.jsonc new file mode 100644 index 0000000000..7cc641abc3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/highlightsForExportFromUnfoundModule.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /b.js === + +// export { +// /*RENAME*/foo +// } from './a'; diff --git a/testdata/baselines/reference/fourslash/importTypeNodeGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/importTypeNodeGoToDefinition.baseline.jsonc new file mode 100644 index 0000000000..0f9c93a1f4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/importTypeNodeGoToDefinition.baseline.jsonc @@ -0,0 +1,122 @@ +// === goToDefinition === +// === /ns.ts === + +// [|export namespace Foo { +// export namespace Bar { +// export class Baz {} +// } +// }|] + + +// === /usage.ts === + +// type A = typeof import(/*GO TO DEFINITION*/"./ns").Foo.Bar; +// type B = import("./ns").Foo.Bar.Baz; + + + + +// === goToDefinition === +// === /ns.ts === + +// export namespace [|Foo|] { +// export namespace Bar { +// export class Baz {} +// } +// } + + +// === /usage.ts === + +// type A = typeof import("./ns")./*GO TO DEFINITION*/Foo.Bar; +// type B = import("./ns").Foo.Bar.Baz; + + + + +// === goToDefinition === +// === /ns.ts === + +// export namespace Foo { +// export namespace [|Bar|] { +// export class Baz {} +// } +// } + + +// === /usage.ts === + +// type A = typeof import("./ns").Foo./*GO TO DEFINITION*/Bar; +// type B = import("./ns").Foo.Bar.Baz; + + + + +// === goToDefinition === +// === /ns.ts === + +// [|export namespace Foo { +// export namespace Bar { +// export class Baz {} +// } +// }|] + + +// === /usage.ts === + +// type A = typeof import("./ns").Foo.Bar; +// type B = import(/*GO TO DEFINITION*/"./ns").Foo.Bar.Baz; + + + + +// === goToDefinition === +// === /ns.ts === + +// export namespace [|Foo|] { +// export namespace Bar { +// export class Baz {} +// } +// } + + +// === /usage.ts === + +// type A = typeof import("./ns").Foo.Bar; +// type B = import("./ns")./*GO TO DEFINITION*/Foo.Bar.Baz; + + + + +// === goToDefinition === +// === /ns.ts === + +// export namespace Foo { +// export namespace [|Bar|] { +// export class Baz {} +// } +// } + + +// === /usage.ts === + +// type A = typeof import("./ns").Foo.Bar; +// type B = import("./ns").Foo./*GO TO DEFINITION*/Bar.Baz; + + + + +// === goToDefinition === +// === /ns.ts === + +// export namespace Foo { +// export namespace Bar { +// export class [|Baz|] {} +// } +// } + + +// === /usage.ts === + +// type A = typeof import("./ns").Foo.Bar; +// type B = import("./ns").Foo.Bar./*GO TO DEFINITION*/Baz; diff --git a/testdata/baselines/reference/fourslash/indirectJsRequireRename.baseline.jsonc b/testdata/baselines/reference/fourslash/indirectJsRequireRename.baseline.jsonc new file mode 100644 index 0000000000..86fb5ab3c9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/indirectJsRequireRename.baseline.jsonc @@ -0,0 +1,9 @@ +// === findAllReferences === +// === /lib/classes/Error.js === + +// module.exports.[|logWarning|] = message => { }; + + +// === /bin/serverless.js === + +// require('../lib/classes/Error').log/*FIND ALL REFS*/Warning(`CLI triage crashed with: ${error.stack}`); diff --git a/testdata/baselines/reference/fourslash/isDefinitionAcrossGlobalProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/isDefinitionAcrossGlobalProjects.baseline.jsonc new file mode 100644 index 0000000000..932acf04e3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/isDefinitionAcrossGlobalProjects.baseline.jsonc @@ -0,0 +1,138 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === + +// namespace NS { +// export function /*FIND ALL REFS*/[|FA|]() { +// FB(); +// } +// } +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === + +// --- (line: 3) skipped --- +// } +// } +// +// interface /*FIND ALL REFS*/[|I|] { +// FA(); +// } +// +// const ia: [|I|] = { +// FA() { }, +// FB() { }, +// FC() { }, +// }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === + +// --- (line: 4) skipped --- +// } +// +// interface I { +// /*FIND ALL REFS*/[|FA|](); +// } +// +// const ia: I = { +// [|FA|]() { }, +// FB() { }, +// FC() { }, +// }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === + +// namespace NS { +// export function /*FIND ALL REFS*/[|FB|]() {} +// } +// +// interface I { +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === + +// namespace NS { +// export function FB() {} +// } +// +// interface /*FIND ALL REFS*/[|I|] { +// FB(); +// } +// +// const ib: [|I|] = { FB() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === + +// namespace NS { +// export function FB() {} +// } +// +// interface I { +// /*FIND ALL REFS*/[|FB|](); +// } +// +// const ib: I = { [|FB|]() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === + +// namespace NS { +// export function /*FIND ALL REFS*/[|FC|]() {} +// } +// +// interface I { +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === + +// namespace NS { +// export function FC() {} +// } +// +// interface /*FIND ALL REFS*/[|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === + +// namespace NS { +// export function FC() {} +// } +// +// interface I { +// /*FIND ALL REFS*/[|FC|](); +// } +// +// const ic: I = { [|FC|]() {} }; diff --git a/testdata/baselines/reference/fourslash/isDefinitionAcrossModuleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/isDefinitionAcrossModuleProjects.baseline.jsonc new file mode 100644 index 0000000000..33e9870ae2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/isDefinitionAcrossModuleProjects.baseline.jsonc @@ -0,0 +1,254 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === + +// import { NS } from "../b"; +// import { I } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// // --- (line: 10) skipped --- + + +// --- (line: 13) skipped --- +// } +// +// const ia: I = { +// FA: NS.[|FA|], +// FC() { }, +// }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === + +// import { NS } from "../b"; +// import { [|I|] } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function FA(); +// } +// } +// +// declare module "../c" { +// export interface /*FIND ALL REFS*/[|I|] { +// FA(); +// } +// } +// +// const ia: [|I|] = { +// FA: NS.FA, +// FC() { }, +// }; + + +// === /home/src/workspaces/project/c/index.ts === + +// export namespace NS { +// export function FC() {} +// } +// +// export interface [|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/a/index.ts === + +// --- (line: 8) skipped --- +// +// declare module "../c" { +// export interface I { +// /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// const ia: I = { +// [|FA|]: NS.FA, +// FC() { }, +// }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/a2/index.ts === + +// import { NS } from "../b"; +// import { I } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// // --- (line: 10) skipped --- + + +// --- (line: 13) skipped --- +// } +// +// const ia: I = { +// FA: NS.[|FA|], +// FC() { }, +// }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/a2/index.ts === + +// import { NS } from "../b"; +// import { [|I|] } from "../c"; +// +// declare module "../b" { +// export namespace NS { +// export function FA(); +// } +// } +// +// declare module "../c" { +// export interface /*FIND ALL REFS*/[|I|] { +// FA(); +// } +// } +// +// const ia: [|I|] = { +// FA: NS.FA, +// FC() { }, +// }; + + +// === /home/src/workspaces/project/c/index.ts === + +// export namespace NS { +// export function FC() {} +// } +// +// export interface [|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/a2/index.ts === + +// --- (line: 8) skipped --- +// +// declare module "../c" { +// export interface I { +// /*FIND ALL REFS*/[|FA|](); +// } +// } +// +// const ia: I = { +// [|FA|]: NS.FA, +// FC() { }, +// }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === + +// export namespace NS { +// export function /*FIND ALL REFS*/[|FB|]() {} +// } +// +// export interface I { +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === + +// export namespace NS { +// export function FB() {} +// } +// +// export interface /*FIND ALL REFS*/[|I|] { +// FB(); +// } +// +// const ib: [|I|] = { FB() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/index.ts === + +// export namespace NS { +// export function FB() {} +// } +// +// export interface I { +// /*FIND ALL REFS*/[|FB|](); +// } +// +// const ib: I = { [|FB|]() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === + +// export namespace NS { +// export function /*FIND ALL REFS*/[|FC|]() {} +// } +// +// export interface I { +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === + +// export namespace NS { +// export function FC() {} +// } +// +// export interface /*FIND ALL REFS*/[|I|] { +// FC(); +// } +// +// const ic: [|I|] = { FC() {} }; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/c/index.ts === + +// export namespace NS { +// export function FC() {} +// } +// +// export interface I { +// /*FIND ALL REFS*/[|FC|](); +// } +// +// const ic: I = { [|FC|]() {} }; diff --git a/testdata/baselines/reference/fourslash/isDefinitionInterfaceImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/isDefinitionInterfaceImplementation.baseline.jsonc new file mode 100644 index 0000000000..697d149847 --- /dev/null +++ b/testdata/baselines/reference/fourslash/isDefinitionInterfaceImplementation.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /isDefinitionInterfaceImplementation.ts === + +// interface I { +// /*FIND ALL REFS*/[|M|](): void; +// } +// +// class C implements I { +// [|M|]() { } +// } +// +// ({} as I).[|M|](); +// ({} as C).[|M|](); + + + + +// === findAllReferences === +// === /isDefinitionInterfaceImplementation.ts === + +// interface I { +// [|M|](): void; +// } +// +// class C implements I { +// /*FIND ALL REFS*/[|M|]() { } +// } +// +// ({} as I).[|M|](); +// ({} as C).[|M|](); diff --git a/testdata/baselines/reference/fourslash/isDefinitionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/isDefinitionOverloads.baseline.jsonc new file mode 100644 index 0000000000..b603465539 --- /dev/null +++ b/testdata/baselines/reference/fourslash/isDefinitionOverloads.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /isDefinitionOverloads.ts === + +// function /*FIND ALL REFS*/[|f|](x: number): void; +// function [|f|](x: string): void; +// function [|f|](x: number | string) { } +// +// [|f|](1); +// [|f|]("a"); + + + + +// === findAllReferences === +// === /isDefinitionOverloads.ts === + +// function [|f|](x: number): void; +// function /*FIND ALL REFS*/[|f|](x: string): void; +// function [|f|](x: number | string) { } +// +// [|f|](1); +// [|f|]("a"); + + + + +// === findAllReferences === +// === /isDefinitionOverloads.ts === + +// function [|f|](x: number): void; +// function [|f|](x: string): void; +// function /*FIND ALL REFS*/[|f|](x: number | string) { } +// +// [|f|](1); +// [|f|]("a"); diff --git a/testdata/baselines/reference/fourslash/isDefinitionShorthandProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/isDefinitionShorthandProperty.baseline.jsonc new file mode 100644 index 0000000000..3bbe7e857d --- /dev/null +++ b/testdata/baselines/reference/fourslash/isDefinitionShorthandProperty.baseline.jsonc @@ -0,0 +1,23 @@ +// === findAllReferences === +// === /isDefinitionShorthandProperty.ts === + +// const /*FIND ALL REFS*/[|x|] = 1; +// const y: { x: number } = { [|x|] }; + + + + +// === findAllReferences === +// === /isDefinitionShorthandProperty.ts === + +// const x = 1; +// const y: { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; + + + + +// === findAllReferences === +// === /isDefinitionShorthandProperty.ts === + +// const [|x|] = 1; +// const y: { x: number } = { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; diff --git a/testdata/baselines/reference/fourslash/isDefinitionSingleImport.baseline.jsonc b/testdata/baselines/reference/fourslash/isDefinitionSingleImport.baseline.jsonc new file mode 100644 index 0000000000..878b9e0df8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/isDefinitionSingleImport.baseline.jsonc @@ -0,0 +1,22 @@ +// === findAllReferences === +// === /a.ts === + +// export function /*FIND ALL REFS*/[|f|]() {} + + +// === /b.ts === + +// import { [|f|] } from "./a"; + + + + +// === findAllReferences === +// === /a.ts === + +// export function [|f|]() {} + + +// === /b.ts === + +// import { /*FIND ALL REFS*/[|f|] } from "./a"; diff --git a/testdata/baselines/reference/fourslash/isDefinitionSingleReference.baseline.jsonc b/testdata/baselines/reference/fourslash/isDefinitionSingleReference.baseline.jsonc new file mode 100644 index 0000000000..a455d9410f --- /dev/null +++ b/testdata/baselines/reference/fourslash/isDefinitionSingleReference.baseline.jsonc @@ -0,0 +1,14 @@ +// === findAllReferences === +// === /isDefinitionSingleReference.ts === + +// function /*FIND ALL REFS*/[|f|]() {} +// [|f|](); + + + + +// === findAllReferences === +// === /isDefinitionSingleReference.ts === + +// function [|f|]() {} +// /*FIND ALL REFS*/[|f|](); diff --git a/testdata/baselines/reference/fourslash/javaScriptClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/javaScriptClass2.baseline.jsonc new file mode 100644 index 0000000000..5fbb88135f --- /dev/null +++ b/testdata/baselines/reference/fourslash/javaScriptClass2.baseline.jsonc @@ -0,0 +1,52 @@ +// === findRenameLocations === +// === /Foo.js === + +// class Foo { +// constructor() { +// this./*RENAME*/[|unionRENAME|] = 'foo'; +// this.[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; + + + + +// === findRenameLocations === +// === /Foo.js === + +// class Foo { +// constructor() { +// this.[|unionRENAME|] = 'foo'; +// this./*RENAME*/[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; + + + + +// === findRenameLocations === +// === /Foo.js === + +// /*RENAME*/class Foo { +// constructor() { +// this.union = 'foo'; +// this.union = 100; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /Foo.js === + +// /*RENAME*/class Foo { +// constructor() { +// this.union = 'foo'; +// this.union = 100; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/javaScriptClass3.baseline.jsonc b/testdata/baselines/reference/fourslash/javaScriptClass3.baseline.jsonc new file mode 100644 index 0000000000..a25b5dc7cc --- /dev/null +++ b/testdata/baselines/reference/fourslash/javaScriptClass3.baseline.jsonc @@ -0,0 +1,30 @@ +// === goToDefinition === +// === /Foo.js === + +// class Foo { +// constructor() { +// this.[|alpha|] = 10; +// this.beta = 'gamma'; +// } +// method() { return this.alpha; } +// } +// var x = new Foo(); +// x.alpha/*GO TO DEFINITION*/; +// x.beta; + + + + +// === goToDefinition === +// === /Foo.js === + +// class Foo { +// constructor() { +// this.alpha = 10; +// this.[|beta|] = 'gamma'; +// } +// method() { return this.alpha; } +// } +// var x = new Foo(); +// x.alpha; +// x.beta/*GO TO DEFINITION*/; diff --git a/testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc new file mode 100644 index 0000000000..9ab690fbec --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc @@ -0,0 +1,61 @@ +// === QuickInfo === +=== /jsDocAliasQuickInfo.ts === +// /** +// * Comment +// * @type {number} +// */ +// export default 10; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +=== /test.ts === +// export { default as test } from "./jsDocAliasQuickInfo"; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- + + +[ + { + "marker": { + "Position": 44, + "LSPosition": { + "line": 4, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 20, + "LSPosition": { + "line": 0, + "character": 20 + }, + "Name": "3", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocDontBreakWithNamespaces.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocDontBreakWithNamespaces.baseline.jsonc new file mode 100644 index 0000000000..5b85fe7115 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocDontBreakWithNamespaces.baseline.jsonc @@ -0,0 +1,94 @@ +// === SignatureHelp === +=== /jsDocDontBreakWithNamespaces.js === +// /** +// * @returns {module:@nodefuel/web~Webserver~wsServer#hello} Websocket server object +// */ +// function foo() { } +// foo(''); +// ^ +// | ---------------------------------------------------------------------- +// | foo(): module +// | ---------------------------------------------------------------------- +// +// /** +// * @type {module:xxxxx} */ +// */ +// function bar() { } +// bar(''); +// ^ +// | ---------------------------------------------------------------------- +// | bar(): void +// | ---------------------------------------------------------------------- +// +// /** @type {function(module:xxxx, module:xxxx): module:xxxxx} */ +// function zee() { } +// zee(''); +// ^ +// | ---------------------------------------------------------------------- +// | zee(): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "foo", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "foo(): module", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 181, + "LSPosition": { + "line": 10, + "character": 6 + }, + "Name": "bar", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "bar(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 274, + "LSPosition": { + "line": 14, + "character": 6 + }, + "Name": "zee", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "zee(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocFunctionSignatures5.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocFunctionSignatures5.baseline.jsonc new file mode 100644 index 0000000000..4738ec0a65 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocFunctionSignatures5.baseline.jsonc @@ -0,0 +1,54 @@ +// === SignatureHelp === +=== /Foo.js === +// /** +// * Filters a path based on a regexp or glob pattern. +// * @param {String} basePath The base path where the search will be performed. +// * @param {String} pattern A string defining a regexp of a glob pattern. +// * @param {String} type The search pattern type, can be a regexp or a glob. +// * @param {Object} options A object containing options to the search. +// * @return {Array} A list containing the filtered paths. +// */ +// function pathFilter(basePath, pattern, type, options){ +// //... +// } +// pathFilter('foo', 'bar', 'baz', {}); +// ^ +// | ---------------------------------------------------------------------- +// | pathFilter(**basePath: String**, pattern: String, type: String, options: Object): any[] +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 489, + "LSPosition": { + "line": 11, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "pathFilter(basePath: String, pattern: String, type: String, options: Object): any[]", + "parameters": [ + { + "label": "basePath: String" + }, + { + "label": "pattern: String" + }, + { + "label": "type: String" + }, + { + "label": "options: Object" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocFunctionSignatures6.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocFunctionSignatures6.baseline.jsonc new file mode 100644 index 0000000000..bb6a6fdfb8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocFunctionSignatures6.baseline.jsonc @@ -0,0 +1,164 @@ +// === SignatureHelp === +=== /Foo.js === +// /** +// * @param {string} p1 - A string param +// * @param {string?} p2 - An optional param +// * @param {string} [p3] - Another optional param +// * @param {string} [p4="test"] - An optional param with a default value +// */ +// function f1(p1, p2, p3, p4){} +// f1('foo', 'bar', 'baz', 'qux'); +// ^ +// | ---------------------------------------------------------------------- +// | f1(**p1: string**, p2: string, p3?: string, p4?: string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | f1(p1: string, **p2: string**, p3?: string, p4?: string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | f1(p1: string, p2: string, **p3?: string**, p4?: string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | f1(p1: string, p2: string, p3?: string, **p4?: string**): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 244, + "LSPosition": { + "line": 7, + "character": 3 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 251, + "LSPosition": { + "line": 7, + "character": 10 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 7, + "character": 17 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 265, + "LSPosition": { + "line": 7, + "character": 24 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", + "parameters": [ + { + "label": "p1: string" + }, + { + "label": "p2: string" + }, + { + "label": "p3?: string" + }, + { + "label": "p4?: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 3 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocSee1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocSee1.baseline.jsonc new file mode 100644 index 0000000000..8f9ba90722 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocSee1.baseline.jsonc @@ -0,0 +1,73 @@ +// === goToDefinition === +// === /jsDocSee1.ts === + +// --- (line: 5) skipped --- +// baz: Foo +// } +// } +// /** @see {/*GO TO DEFINITION*/Foo} foooo*/ +// const a = "" +// /** @see {NS.Bar} ns.bar*/ +// const b = "" +// // --- (line: 13) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee1.ts === + +// --- (line: 7) skipped --- +// } +// /** @see {Foo} foooo*/ +// const a = "" +// /** @see {NS./*GO TO DEFINITION*/Bar} ns.bar*/ +// const b = "" +// /** @see Foo f1*/ +// const c = "" +// // --- (line: 15) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee1.ts === + +// --- (line: 9) skipped --- +// const a = "" +// /** @see {NS.Bar} ns.bar*/ +// const b = "" +// /** @see /*GO TO DEFINITION*/Foo f1*/ +// const c = "" +// /** @see NS.Bar ns.bar*/ +// const d = "" +// /** @see d dd*/ +// const e = "" + + + + +// === goToDefinition === +// === /jsDocSee1.ts === + +// --- (line: 11) skipped --- +// const b = "" +// /** @see Foo f1*/ +// const c = "" +// /** @see NS./*GO TO DEFINITION*/Bar ns.bar*/ +// const d = "" +// /** @see d dd*/ +// const e = "" + + + + +// === goToDefinition === +// === /jsDocSee1.ts === + +// --- (line: 13) skipped --- +// const c = "" +// /** @see NS.Bar ns.bar*/ +// const d = "" +// /** @see /*GO TO DEFINITION*/d dd*/ +// const e = "" diff --git a/testdata/baselines/reference/fourslash/jsDocSee2.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocSee2.baseline.jsonc new file mode 100644 index 0000000000..43e83241e0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocSee2.baseline.jsonc @@ -0,0 +1,99 @@ +// === goToDefinition === +// === /jsDocSee2.ts === + +// /** @see {/*GO TO DEFINITION*/foooo} unknown reference*/ +// const a = "" +// /** @see {@bar} invalid tag*/ +// const b = "" +// // --- (line: 5) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee2.ts === + +// /** @see {foooo} unknown reference*/ +// const a = "" +// /** @see {/*GO TO DEFINITION*/@bar} invalid tag*/ +// const b = "" +// /** @see foooo unknown reference without brace*/ +// const c = "" +// // --- (line: 7) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee2.ts === + +// /** @see {foooo} unknown reference*/ +// const a = "" +// /** @see {@bar} invalid tag*/ +// const b = "" +// /** @see /*GO TO DEFINITION*/foooo unknown reference without brace*/ +// const c = "" +// /** @see @bar invalid tag without brace*/ +// const d = "" +// // --- (line: 9) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee2.ts === + +// --- (line: 3) skipped --- +// const b = "" +// /** @see foooo unknown reference without brace*/ +// const c = "" +// /** @see /*GO TO DEFINITION*/@bar invalid tag without brace*/ +// const d = "" +// /** @see {d@fff} partial reference */ +// const e = "" +// // --- (line: 11) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee2.ts === + +// --- (line: 5) skipped --- +// const c = "" +// /** @see @bar invalid tag without brace*/ +// const d = "" +// /** @see {/*GO TO DEFINITION*/d@fff} partial reference */ +// const e = "" +// /** @see @@@@@@ total invalid tag*/ +// const f = "" +// /** @see d@{fff} partial reference */ +// const g = "" + + + + +// === goToDefinition === +// === /jsDocSee2.ts === + +// --- (line: 7) skipped --- +// const d = "" +// /** @see {d@fff} partial reference */ +// const e = "" +// /** @see /*GO TO DEFINITION*/@@@@@@ total invalid tag*/ +// const f = "" +// /** @see d@{fff} partial reference */ +// const g = "" + + + + +// === goToDefinition === +// === /jsDocSee2.ts === + +// --- (line: 9) skipped --- +// const e = "" +// /** @see @@@@@@ total invalid tag*/ +// const f = "" +// /** @see d@{/*GO TO DEFINITION*/fff} partial reference */ +// const g = "" diff --git a/testdata/baselines/reference/fourslash/jsDocSee3.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocSee3.baseline.jsonc new file mode 100644 index 0000000000..dc628f79be --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocSee3.baseline.jsonc @@ -0,0 +1,10 @@ +// === goToDefinition === +// === /jsDocSee3.ts === + +// function foo (a: string) { +// /** +// * @see {/*GO TO DEFINITION*/a} +// */ +// function bar (a: string) { +// } +// } diff --git a/testdata/baselines/reference/fourslash/jsDocSee4.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocSee4.baseline.jsonc new file mode 100644 index 0000000000..72a547ee1b --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocSee4.baseline.jsonc @@ -0,0 +1,52 @@ +// === goToDefinition === +// === /jsDocSee4.ts === + +// class A { +// foo () { } +// } +// declare const a: A; +// /** +// * @see {/*GO TO DEFINITION*/A#foo} +// */ +// const t1 = 1 +// /** +// // --- (line: 10) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee4.ts === + +// --- (line: 6) skipped --- +// */ +// const t1 = 1 +// /** +// * @see {/*GO TO DEFINITION*/a.foo()} +// */ +// const t2 = 1 +// /** +// // --- (line: 14) skipped --- + + + + +// === goToDefinition === +// === /jsDocSee4.ts === + +// class A { +// foo () { } +// } +// declare const [|a|]: A; +// /** +// * @see {A#foo} +// */ +// const t1 = 1 +// /** +// * @see {a.foo()} +// */ +// const t2 = 1 +// /** +// * @see {@link /*GO TO DEFINITION*/a.foo()} +// */ +// const t3 = 1 diff --git a/testdata/baselines/reference/fourslash/jsDocSee_rename1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocSee_rename1.baseline.jsonc new file mode 100644 index 0000000000..8e0893f09d --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocSee_rename1.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /jsDocSee_rename1.ts === + +// /*RENAME*/interface A {} +// /** +// * @see {A} +// */ +// declare const a: A + + + + +// === findRenameLocations === +// === /jsDocSee_rename1.ts === + +// /*RENAME*/interface A {} +// /** +// * @see {A} +// */ +// declare const a: A + + + + +// === findRenameLocations === +// === /jsDocSee_rename1.ts === + +// /*RENAME*/interface A {} +// /** +// * @see {A} +// */ +// declare const a: A diff --git a/testdata/baselines/reference/fourslash/jsDocSignature_43394.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocSignature_43394.baseline.jsonc new file mode 100644 index 0000000000..e41f00da6a --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocSignature_43394.baseline.jsonc @@ -0,0 +1,25 @@ +// === SignatureHelp === +=== /jsDocSignature_43394.ts === +// /** +// * @typedef {Object} Foo +// * @property {number} ... +// * @typedef {number} Bar +// ^ +// | ---------------------------------------------------------------------- +// | No signaturehelp at /**/. +// | ---------------------------------------------------------------------- +// */ +[ + { + "marker": { + "Position": 58, + "LSPosition": { + "line": 3, + "character": 3 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc new file mode 100644 index 0000000000..e0e801f01b --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc @@ -0,0 +1,342 @@ +// === QuickInfo === +=== /jsDocTypeTag1.js === +// /** @type {String} */ +// var S; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var S: String +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Number} */ +// var N; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var N: Number +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Boolean} */ +// var B; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var B: Boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Void} */ +// var V; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var V: Void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Undefined} */ +// var U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var U: Undefined +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Null} */ +// var Nl; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var Nl: Null +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Array} */ +// var A; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var A: any[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Promise} */ +// var P; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var P: Promise +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Object} */ +// var Obj; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var Obj: Object +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {Function} */ +// var Func; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var Func: Function +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {*} */ +// var AnyType; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var AnyType: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {?} */ +// var QType; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var QType: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {String|Number} */ +// var SOrN; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var SOrN: Number | String +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar S: String\n```\n" + } + } + }, + { + "marker": { + "Position": 55, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar N: Number\n```\n" + } + } + }, + { + "marker": { + "Position": 85, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar B: Boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 112, + "LSPosition": { + "line": 7, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar V: Void\n```\n" + } + } + }, + { + "marker": { + "Position": 144, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar U: Undefined\n```\n" + } + } + }, + { + "marker": { + "Position": 171, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar Nl: Null\n```\n" + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar A: any[]\n```\n" + } + } + }, + { + "marker": { + "Position": 230, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar P: Promise\n```\n" + } + } + }, + { + "marker": { + "Position": 259, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar Obj: Object\n```\n" + } + } + }, + { + "marker": { + "Position": 292, + "LSPosition": { + "line": 19, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar Func: Function\n```\n" + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 21, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar AnyType: any\n```\n" + } + } + }, + { + "marker": { + "Position": 349, + "LSPosition": { + "line": 23, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar QType: any\n```\n" + } + } + }, + { + "marker": { + "Position": 389, + "LSPosition": { + "line": 25, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar SOrN: Number | String\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc new file mode 100644 index 0000000000..51d7853a5b --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc @@ -0,0 +1,316 @@ +// === QuickInfo === +=== /jsDocTypeTag2.js === +// /** @type {string} */ +// var s; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var s: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {number} */ +// var n; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var n: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {boolean} */ +// var b; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {void} */ +// var v; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var v: void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {undefined} */ +// var u; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var u: undefined +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {null} */ +// var nl; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var nl: null +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {array} */ +// var a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: array +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {promise} */ +// var p; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var p: promise +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {?number} */ +// var nullable; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var nullable: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {function} */ +// var func; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var func: function +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {function (number): number} */ +// var func1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var func1: function +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** @type {string | number} */ +// var sOrn; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var sOrn: string | number +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar s: string\n```\n" + } + } + }, + { + "marker": { + "Position": 55, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar n: number\n```\n" + } + } + }, + { + "marker": { + "Position": 85, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 112, + "LSPosition": { + "line": 7, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar v: void\n```\n" + } + } + }, + { + "marker": { + "Position": 144, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar u: undefined\n```\n" + } + } + }, + { + "marker": { + "Position": 171, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar nl: null\n```\n" + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: array\n```\n" + } + } + }, + { + "marker": { + "Position": 230, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar p: promise\n```\n" + } + } + }, + { + "marker": { + "Position": 260, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar nullable: number\n```\n" + } + } + }, + { + "marker": { + "Position": 298, + "LSPosition": { + "line": 19, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar func: function\n```\n" + } + } + }, + { + "marker": { + "Position": 349, + "LSPosition": { + "line": 21, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar func1: function\n```\n" + } + } + }, + { + "marker": { + "Position": 391, + "LSPosition": { + "line": 23, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar sOrn: string | number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc new file mode 100644 index 0000000000..17be79caa3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc @@ -0,0 +1,78 @@ +// === QuickInfo === +=== /jsDocTypedef1.js === +// /** +// * @typedef {Object} Opts +// * @property {string} x +// * @property {string=} y +// * @property {string} [z] +// * @property {string} [w="hi"] +// * +// * @param {Opts} opts +// */ +// function foo(opts) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) opts: Opts +// | ``` +// | +// | ---------------------------------------------------------------------- +// opts.x; +// } +// foo({x: 'abc'}); +// /** +// * @typedef {object} Opts1 +// * @property {string} x +// * @property {string=} y +// * @property {string} [z] +// * @property {string} [w="hi"] +// * +// * @param {Opts1} opts +// */ +// function foo1(opts1) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) opts1: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// opts1.x; +// } +// foo1({x: 'abc'}); +[ + { + "marker": { + "Position": 179, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) opts: Opts\n```\n" + } + } + }, + { + "marker": { + "Position": 400, + "LSPosition": { + "line": 22, + "character": 14 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) opts1: any\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocCallbackTagRename01.baseline.jsonc new file mode 100644 index 0000000000..3ea25fe3e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocCallbackTagRename01.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /jsDocCallback.js === + +// /*RENAME*//** +// * @callback FooCallback +// * @param {string} eventName - Rename should work +// */ +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc new file mode 100644 index 0000000000..8c1c73c68e --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc @@ -0,0 +1,48 @@ +// === QuickInfo === +=== /jsdocLink1.ts === +// 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() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function CC(): void +// | ``` +// | `C` +// | +// | *@wat* — Makes a `C`. A default one. +// | C() +// | C|postfix text +// | unformattedpostfix text +// | +// | *@see* — `C` its great +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 189, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction CC(): void\n```\n`C`\n\n*@wat* — Makes a `C`. A default one.\nC()\nC|postfix text\nunformattedpostfix text\n\n*@see* — `C` its great\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc new file mode 100644 index 0000000000..34f8283b55 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc @@ -0,0 +1,92 @@ +// === QuickInfo === +=== /jsdocLink4.ts === +// declare class I { +// /** {@link I} */ +// bar(): void +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.bar(): void +// | ``` +// | `I` +// | ---------------------------------------------------------------------- +// } +// /** {@link I} */ +// var n = 1 +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var n: number +// | ``` +// | `I` +// | ---------------------------------------------------------------------- +// /** +// * A real, very serious {@link I to an interface}. Right there. +// * @param x one {@link Pos here too} +// */ +// function f(x) { +// } +// f() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | A real, very serious Ito an interface. Right there. +// | +// | *@param* `x` — one Poshere too +// | ---------------------------------------------------------------------- +// type Pos = [number, number] +[ + { + "marker": { + "Position": 42, + "LSPosition": { + "line": 2, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.bar(): void\n```\n`I`" + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 5, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar n: number\n```\n`I`" + } + } + }, + { + "marker": { + "Position": 208, + "LSPosition": { + "line": 12, + "character": 1 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\nA real, very serious Ito an interface. Right there.\n\n*@param* `x` — one Poshere too" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc new file mode 100644 index 0000000000..462571cb64 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc @@ -0,0 +1,37 @@ +// === QuickInfo === +=== /jsdocLink5.ts === +// function g() { } +// /** +// * {@link g()} {@link g() } {@link g ()} {@link g () 0} {@link g()1} {@link g() 2} +// * {@link u()} {@link u() } {@link u ()} {@link u () 0} {@link u()1} {@link u() 2} +// */ +// function f(x) { +// } +// f() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | g() g() g() g() 0 g()1 g() 2 +// | u() u() u() u() 0 u()1 u() 2 +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 210, + "LSPosition": { + "line": 7, + "character": 1 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\ng() g() g() g() 0 g()1 g() 2\nu() u() u() u() 0 u()1 u() 2" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc new file mode 100644 index 0000000000..8add321440 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc @@ -0,0 +1,41 @@ +// === QuickInfo === +=== /a.js === +// /** @template T */ +// class A { +// /** Method documentation. */ +// method() {} +// } +// +// /** @extends {A} */ +// class B extends A { +// method() {} +// } +// +// const b = new B(); +// b.method; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.method(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 175, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.method(): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc new file mode 100644 index 0000000000..11aa33e878 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc @@ -0,0 +1,41 @@ +// === QuickInfo === +=== /a.js === +// /** @template T */ +// class A { +// /** Method documentation. */ +// method() {} +// } +// +// /** @extends {A} */ +// const B = class extends A { +// method() {} +// } +// +// const b = new B(); +// b.method; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.method(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 183, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.method(): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocReturnsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocReturnsTag.baseline.jsonc new file mode 100644 index 0000000000..2043548ae2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocReturnsTag.baseline.jsonc @@ -0,0 +1,46 @@ +// === SignatureHelp === +=== /dummy.js === +// /** +// * Find an item +// * @template T +// * @param {T[]} l +// * @param {T} x +// * @returns {?T} The names of the found item(s). +// */ +// function find(l, x) { +// } +// find(''); +// ^ +// | ---------------------------------------------------------------------- +// | find(**l: unknown[]**, x: unknown): unknown +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 154, + "LSPosition": { + "line": 9, + "character": 7 + }, + "Name": "", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "find(l: unknown[], x: unknown): unknown", + "parameters": [ + { + "label": "l: unknown[]" + }, + { + "label": "x: unknown" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocSatisfiesTagFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocSatisfiesTagFindAllReferences.baseline.jsonc new file mode 100644 index 0000000000..45bce806d2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocSatisfiesTagFindAllReferences.baseline.jsonc @@ -0,0 +1,10 @@ +// === findAllReferences === +// === /a.js === + +// /** +// * @typedef {Object} T +// * @property {number} a +// */ +// +// /** @satisfies {/*FIND ALL REFS*/[|T|]} comment */ +// const foo = { a: 1 }; diff --git a/testdata/baselines/reference/fourslash/jsdocSatisfiesTagRename.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocSatisfiesTagRename.baseline.jsonc new file mode 100644 index 0000000000..80905d9ea4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocSatisfiesTagRename.baseline.jsonc @@ -0,0 +1,10 @@ +// === findRenameLocations === +// === /a.js === + +// /** +// * @typedef {Object} T +// * @property {number} a +// */ +// +// /** @satisfies {/*RENAME*/[|TRENAME|]} comment */ +// const foo = { a: 1 }; diff --git a/testdata/baselines/reference/fourslash/jsdocThrowsTag_findAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocThrowsTag_findAllReferences.baseline.jsonc new file mode 100644 index 0000000000..c24f93ca06 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocThrowsTag_findAllReferences.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /jsdocThrowsTag_findAllReferences.ts === + +// class /*FIND ALL REFS*/[|E|] extends Error {} +// /** +// * @throws {E} +// */ +// function f() {} diff --git a/testdata/baselines/reference/fourslash/jsdocThrowsTag_rename.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocThrowsTag_rename.baseline.jsonc new file mode 100644 index 0000000000..48c5f89b0b --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocThrowsTag_rename.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /jsdocThrowsTag_rename.ts === + +// class /*RENAME*/[|ERENAME|] extends Error {} +// /** +// * @throws {E} +// */ +// function f() {} diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocTypedefTagGoToDefinition.baseline.jsonc new file mode 100644 index 0000000000..3697dc9d8e --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocTypedefTagGoToDefinition.baseline.jsonc @@ -0,0 +1,37 @@ +// === goToDefinition === +// === /jsdocCompletion_typedef.js === + +// /** +// * @typedef {Object} Person +// * @property {string} [|personName|] +// * @property {number} personAge +// */ +// +// /** +// * @typedef {{ animalName: string, animalAge: number }} Animal +// */ +// +// /** @type {Person} */ +// var person; person.personName/*GO TO DEFINITION*/ +// +// /** @type {Animal} */ +// var animal; animal.animalName + + + + +// === goToDefinition === +// === /jsdocCompletion_typedef.js === + +// --- (line: 4) skipped --- +// */ +// +// /** +// * @typedef {{ [|animalName|]: string, animalAge: number }} Animal +// */ +// +// /** @type {Person} */ +// var person; person.personName +// +// /** @type {Animal} */ +// var animal; animal.animalName/*GO TO DEFINITION*/ diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocTypedefTagRename01.baseline.jsonc new file mode 100644 index 0000000000..0f300f8817 --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocTypedefTagRename01.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /jsDocTypedef_form1.js === + +// /*RENAME*/ /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === + +// /*RENAME*/ /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === + +// /*RENAME*/ /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocTypedefTagRename02.baseline.jsonc new file mode 100644 index 0000000000..e4be88e7bf --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocTypedefTagRename02.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /jsDocTypedef_form2.js === + +// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ +// +// /** @type {NumberLike} */ +// var numberLike; + + + + +// === findRenameLocations === +// === /jsDocTypedef_form2.js === + +// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ +// +// /** @type {NumberLike} */ +// var numberLike; diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocTypedefTagRename03.baseline.jsonc new file mode 100644 index 0000000000..2c983f0fba --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocTypedefTagRename03.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /jsDocTypedef_form3.js === + +// /** +// * @typedef /*RENAME*/Person +// * @type {Object} +// * @property {number} age +// * @property {string} name +// // --- (line: 6) skipped --- + + + + +// === findRenameLocations === +// === /jsDocTypedef_form3.js === + +// /*RENAME*/ /** +// * @typedef Person +// * @type {Object} +// * @property {number} age +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning0.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning0.baseline.jsonc new file mode 100644 index 0000000000..70be03a5cd --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning0.baseline.jsonc @@ -0,0 +1,62 @@ +// === findAllReferences === +// === /a.js === + +// /** /*FIND ALL REFS*/@typedef {number} T */ +// const T = 1; +// /** @type {T} */ +// const n = T; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} /*FIND ALL REFS*/T */ +// const T = 1; +// /** @type {T} */ +// const n = T; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} T */ +// /*FIND ALL REFS*/const T = 1; +// /** @type {T} */ +// const n = T; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} T */ +// const /*FIND ALL REFS*/[|T|] = 1; +// /** @type {T} */ +// const n = [|T|]; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} T */ +// const T = 1; +// /** @type {/*FIND ALL REFS*/[|T|]} */ +// const n = T; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} T */ +// const [|T|] = 1; +// /** @type {T} */ +// const n = /*FIND ALL REFS*/[|T|]; diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning1.baseline.jsonc new file mode 100644 index 0000000000..89a5c2918a --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning1.baseline.jsonc @@ -0,0 +1,40 @@ +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} */ +// /*FIND ALL REFS*/const T = 1; +// /** @type {T} */ +// const n = T; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} */ +// const /*FIND ALL REFS*/[|T|] = 1; +// /** @type {T} */ +// const n = [|T|]; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} */ +// const T = 1; +// /** @type {/*FIND ALL REFS*/[|T|]} */ +// const n = T; + + + + +// === findAllReferences === +// === /a.js === + +// /** @typedef {number} */ +// const [|T|] = 1; +// /** @type {T} */ +// const n = /*FIND ALL REFS*/[|T|]; diff --git a/testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc new file mode 100644 index 0000000000..7b95e1f3ef --- /dev/null +++ b/testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// } +// +// var /*RENAME*/[|nnRENAME|]: {name?: string; size?: number}; +// var x = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// } +// +// var [|nnRENAME|]: {name?: string; size?: number}; +// var x = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// } +// +// var [|nn|]: {name?: string; size?: number}; +// var x = ; diff --git a/testdata/baselines/reference/fourslash/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/fourslash/processInvalidSyntax1.baseline.jsonc new file mode 100644 index 0000000000..f95d303132 --- /dev/null +++ b/testdata/baselines/reference/fourslash/processInvalidSyntax1.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /decl.js === + +// var [|objRENAME|] = {}; + + +// === /forof.js === + +// for (obj/*RENAME*/[|objRENAME|].prop of arr) { +// +// } + + +// === /unicode1.js === + +// [|objRENAME|].𝒜 ; + + +// === /unicode2.js === + +// [|objRENAME|].¬ ; diff --git a/testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc new file mode 100644 index 0000000000..26c14f109e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc @@ -0,0 +1,29 @@ +// === QuickInfo === +=== /a.js === +// class C { +// constructor() { +// this.prop = ""; +// } +// declare prop: string; +// method() { +// this.prop.foo +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 6, + "character": 21 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc new file mode 100644 index 0000000000..1b6a7aed86 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc @@ -0,0 +1,30 @@ +// === QuickInfo === +=== /quickInfoCircularInstantiationExpression.ts === +// declare function foo(t: T): typeof foo; +// foo(""); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(t: string): (t: string) => ... +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 46, + "LSPosition": { + "line": 1, + "character": 0 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(t: string): (t: string) => ...\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc new file mode 100644 index 0000000000..afd26eff9c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc @@ -0,0 +1,685 @@ +// === QuickInfo === +=== /quickInfoCommentsClass.ts === +// /** This is class c2 without constructor*/ +// class c2 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c2 +// | ``` +// | This is class c2 without constructor +// | ---------------------------------------------------------------------- +// } +// var i2 = new c2(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i2: c2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c2 +// | ``` +// | This is class c2 without constructor +// | ---------------------------------------------------------------------- +// var i2_c = c2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i2_c: typeof c2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c2 +// | ``` +// | This is class c2 without constructor +// | ---------------------------------------------------------------------- +// class c3 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c3 +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** Constructor comment*/ +// constructor() { +// } +// } +// var i3 = new c3(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i3: c3 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c3(): c3 +// | ``` +// | Constructor comment +// | ---------------------------------------------------------------------- +// var i3_c = c3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i3_c: typeof c3 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c3 +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** Class comment*/ +// class c4 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c4 +// | ``` +// | Class comment +// | ---------------------------------------------------------------------- +// /** Constructor comment*/ +// constructor() { +// } +// } +// var i4 = new c4(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i4: c4 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c4(): c4 +// | ``` +// | Constructor comment +// | ---------------------------------------------------------------------- +// var i4_c = c4; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i4_c: typeof c4 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c4 +// | ``` +// | Class comment +// | ---------------------------------------------------------------------- +// /** Class with statics*/ +// class c5 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c5 +// | ``` +// | Class with statics +// | ---------------------------------------------------------------------- +// static s1: number; +// } +// var i5 = new c5(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i5: c5 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c5 +// | ``` +// | Class with statics +// | ---------------------------------------------------------------------- +// var i5_c = c5; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i5_c: typeof c5 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c5 +// | ``` +// | Class with statics +// | ---------------------------------------------------------------------- +// /** class with statics and constructor*/ +// class c6 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c6 +// | ``` +// | class with statics and constructor +// | ---------------------------------------------------------------------- +// /** s1 comment*/ +// static s1: number; +// /** constructor comment*/ +// constructor() { +// } +// } +// var i6 = new c6(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i6: c6 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c6(): c6 +// | ``` +// | constructor comment +// | ---------------------------------------------------------------------- +// var i6_c = c6; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i6_c: typeof c6 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c6 +// | ``` +// | class with statics and constructor +// | ---------------------------------------------------------------------- +// +// class a { +// /** +// constructor for a +// @param a this is my a +// */ +// constructor(a: string) { +// } +// } +// new a("Hello"); +// module m { +// export module m2 { +// /** class comment */ +// export class c1 { +// /** constructor comment*/ +// constructor() { +// } +// } +// } +// } +// var myVar = new m.m2.c1(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor m.m2.c1(): m.m2.c1 +// | ``` +// | constructor comment +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 50, + "LSPosition": { + "line": 1, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c2\n```\nThis is class c2 without constructor" + } + } + }, + { + "marker": { + "Position": 61, + "LSPosition": { + "line": 3, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i2: c2\n```\n" + } + } + }, + { + "marker": { + "Position": 70, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c2\n```\nThis is class c2 without constructor" + } + } + }, + { + "marker": { + "Position": 81, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i2_c: typeof c2\n```\n" + } + } + }, + { + "marker": { + "Position": 87, + "LSPosition": { + "line": 4, + "character": 12 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c2\n```\nThis is class c2 without constructor" + } + } + }, + { + "marker": { + "Position": 97, + "LSPosition": { + "line": 5, + "character": 7 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c3\n```\n" + } + } + }, + { + "marker": { + "Position": 164, + "LSPosition": { + "line": 10, + "character": 5 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i3: c3\n```\n" + } + } + }, + { + "marker": { + "Position": 173, + "LSPosition": { + "line": 10, + "character": 14 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c3(): c3\n```\nConstructor comment" + } + } + }, + { + "marker": { + "Position": 184, + "LSPosition": { + "line": 11, + "character": 6 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i3_c: typeof c3\n```\n" + } + } + }, + { + "marker": { + "Position": 190, + "LSPosition": { + "line": 11, + "character": 12 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c3\n```\n" + } + } + }, + { + "marker": { + "Position": 220, + "LSPosition": { + "line": 13, + "character": 7 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c4\n```\nClass comment" + } + } + }, + { + "marker": { + "Position": 287, + "LSPosition": { + "line": 18, + "character": 5 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i4: c4\n```\n" + } + } + }, + { + "marker": { + "Position": 296, + "LSPosition": { + "line": 18, + "character": 14 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c4(): c4\n```\nConstructor comment" + } + } + }, + { + "marker": { + "Position": 307, + "LSPosition": { + "line": 19, + "character": 6 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i4_c: typeof c4\n```\n" + } + } + }, + { + "marker": { + "Position": 313, + "LSPosition": { + "line": 19, + "character": 12 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c4\n```\nClass comment" + } + } + }, + { + "marker": { + "Position": 348, + "LSPosition": { + "line": 21, + "character": 7 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c5\n```\nClass with statics" + } + } + }, + { + "marker": { + "Position": 382, + "LSPosition": { + "line": 24, + "character": 5 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i5: c5\n```\n" + } + } + }, + { + "marker": { + "Position": 391, + "LSPosition": { + "line": 24, + "character": 14 + }, + "Name": "31", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c5\n```\nClass with statics" + } + } + }, + { + "marker": { + "Position": 403, + "LSPosition": { + "line": 25, + "character": 7 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i5_c: typeof c5\n```\n" + } + } + }, + { + "marker": { + "Position": 408, + "LSPosition": { + "line": 25, + "character": 12 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c5\n```\nClass with statics" + } + } + }, + { + "marker": { + "Position": 459, + "LSPosition": { + "line": 27, + "character": 7 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c6\n```\nclass with statics and constructor" + } + } + }, + { + "marker": { + "Position": 570, + "LSPosition": { + "line": 34, + "character": 5 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i6: c6\n```\n" + } + } + }, + { + "marker": { + "Position": 579, + "LSPosition": { + "line": 34, + "character": 14 + }, + "Name": "32", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c6(): c6\n```\nconstructor comment" + } + } + }, + { + "marker": { + "Position": 590, + "LSPosition": { + "line": 35, + "character": 6 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i6_c: typeof c6\n```\n" + } + } + }, + { + "marker": { + "Position": 596, + "LSPosition": { + "line": 35, + "character": 12 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c6\n```\nclass with statics and constructor" + } + } + }, + { + "marker": { + "Position": 935, + "LSPosition": { + "line": 56, + "character": 22 + }, + "Name": "33", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor m.m2.c1(): m.m2.c1\n```\nconstructor comment" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc new file mode 100644 index 0000000000..48ba953a02 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc @@ -0,0 +1,2346 @@ +// === QuickInfo === +=== /quickInfoCommentsClassMembers.ts === +// /** This is comment for c1*/ +// class c1 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c1 +// | ``` +// | This is comment for c1 +// | ---------------------------------------------------------------------- +// /** p1 is property of c1*/ +// public p1: number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.p1: number +// | ``` +// | p1 is property of c1 +// | ---------------------------------------------------------------------- +// /** sum with property*/ +// public p2(/** number to add*/b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.p2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// return this.p1 + b; +// } +// /** getter property 1*/ +// public get p3() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.p3: number +// | ``` +// | getter property 1 +// | ---------------------------------------------------------------------- +// return this.p2(this.p1); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.p2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// } +// /** setter property 1*/ +// public set p3(/** this is value*/value: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.p3: number +// | ``` +// | getter property 1 +// | ---------------------------------------------------------------------- +// this.p1 = this.p2(value); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.p2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// } +// /** pp1 is property of c1*/ +// private pp1: number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.pp1: number +// | ``` +// | pp1 is property of c1 +// | ---------------------------------------------------------------------- +// /** sum with property*/ +// private pp2(/** number to add*/b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.pp2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// return this.p1 + b; +// } +// /** getter property 2*/ +// private get pp3() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.pp3: number +// | ``` +// | getter property 2 +// | ---------------------------------------------------------------------- +// return this.pp2(this.pp1); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.pp2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// } +// /** setter property 2*/ +// private set pp3( /** this is value*/value: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.pp3: number +// | ``` +// | getter property 2 +// | ---------------------------------------------------------------------- +// this.pp1 = this.pp2(value); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.pp2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// } +// /** Constructor method*/ +// constructor() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c1(): c1 +// | ``` +// | Constructor method +// | ---------------------------------------------------------------------- +// } +// /** s1 is static property of c1*/ +// static s1: number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.s1: number +// | ``` +// | s1 is static property of c1 +// | ---------------------------------------------------------------------- +// /** static sum with property*/ +// static s2(/** number to add*/b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.s2(b: number): number +// | ``` +// | static sum with property +// | ---------------------------------------------------------------------- +// return c1.s1 + b; +// } +// /** static getter property*/ +// static get s3() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.s3: number +// | ``` +// | static getter property +// | ---------------------------------------------------------------------- +// return c1.s2(c1.s1); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.s2(b: number): number +// | ``` +// | static sum with property +// | ---------------------------------------------------------------------- +// } +// /** setter property 3*/ +// static set s3( /** this is value*/value: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.s3: number +// | ``` +// | static getter property +// | ---------------------------------------------------------------------- +// c1.s1 = c1.s2(value); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.s2(b: number): number +// | ``` +// | static sum with property +// | ---------------------------------------------------------------------- +// } +// public nc_p1: number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.nc_p1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// public nc_p2(b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_p2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return this.nc_p1 + b; +// } +// public get nc_p3() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_p3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return this.nc_p2(this.nc_p1); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_p2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// public set nc_p3(value: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_p3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.nc_p1 = this.nc_p2(value); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_p2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// private nc_pp1: number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.nc_pp1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// private nc_pp2(b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_pp2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return this.nc_pp1 + b; +// } +// private get nc_pp3() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_pp3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return this.nc_pp2(this.nc_pp1); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_pp2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// private set nc_pp3(value: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_pp3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.nc_pp1 = this.nc_pp2(value); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_pp2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// static nc_s1: number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.nc_s1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// static nc_s2(b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_s2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return c1.nc_s1 + b; +// } +// static get nc_s3() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_s3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return c1.nc_s2(c1.nc_s1); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_s2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// static set nc_s3(value: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_s3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// c1.nc_s1 = c1.nc_s2(value); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_s2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var i1 = new c1(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1: c1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c1(): c1 +// | ``` +// | Constructor method +// | ---------------------------------------------------------------------- +// var i1_p = i1.p1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_p: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_f = i1.p2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_f: (b: number) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.p2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// var i1_r = i1.p2(20); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_r: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.p2(b: number): number +// | ``` +// | sum with property +// | ---------------------------------------------------------------------- +// var i1_prop = i1.p3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_prop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.p3: number +// | ``` +// | getter property 1 +// | ---------------------------------------------------------------------- +// i1.p3 = i1_prop; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.p3: number +// | ``` +// | getter property 1 +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_prop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_nc_p = i1.nc_p1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_nc_p: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.nc_p1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_ncf = i1.nc_p2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_ncf: (b: number) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_p2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_ncr = i1.nc_p2(20); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_ncr: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_p2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_ncprop = i1.nc_p3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_ncprop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_p3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// i1.nc_p3 = i1_ncprop; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_p3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_ncprop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_s_p = c1.s1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_p: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c1 +// | ``` +// | This is comment for c1 +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.s1: number +// | ``` +// | s1 is static property of c1 +// | ---------------------------------------------------------------------- +// var i1_s_f = c1.s2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_f: (b: number) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.s2(b: number): number +// | ``` +// | static sum with property +// | ---------------------------------------------------------------------- +// var i1_s_r = c1.s2(20); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_r: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.s2(b: number): number +// | ``` +// | static sum with property +// | ---------------------------------------------------------------------- +// var i1_s_prop = c1.s3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_prop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.s3: number +// | ``` +// | static getter property +// | ---------------------------------------------------------------------- +// c1.s3 = i1_s_prop; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.s3: number +// | ``` +// | static getter property +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_prop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_s_nc_p = c1.nc_s1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_nc_p: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c1.nc_s1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_s_ncf = c1.nc_s2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_ncf: (b: number) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_s2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_s_ncr = c1.nc_s2(20); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_ncr: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c1.nc_s2(b: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_s_ncprop = c1.nc_s3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_ncprop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_s3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// c1.nc_s3 = i1_s_ncprop; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c1.nc_s3: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_s_ncprop: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i1_c = c1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i1_c: typeof c1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c1 +// | ``` +// | This is comment for c1 +// | ---------------------------------------------------------------------- +// +// class cProperties { +// private val: number; +// /** getter only property*/ +// public get p1() { +// return this.val; +// } +// public get nc_p1() { +// return this.val; +// } +// /**setter only property*/ +// public set p2(value: number) { +// this.val = value; +// } +// public set nc_p2(value: number) { +// this.val = value; +// } +// } +// var cProperties_i = new cProperties(); +// cProperties_i.p2 = cProperties_i.p1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) cProperties.p2: number +// | ``` +// | setter only property +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) cProperties.p1: number +// | ``` +// | getter only property +// | ---------------------------------------------------------------------- +// cProperties_i.nc_p2 = cProperties_i.nc_p1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) cProperties.nc_p2: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) cProperties.nc_p1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// class cWithConstructorProperty { +// /** +// * this is class cWithConstructorProperty's constructor +// * @param a this is first parameter a +// */ +// constructor(/**more info about a*/public a: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithConstructorProperty(a: number): cWithConstructorProperty +// | ``` +// | this is class cWithConstructorProperty's constructor +// | +// | *@param* `a` — this is first parameter a +// | +// | ---------------------------------------------------------------------- +// var bbbb = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var bbbb: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.a = a + 2 + bbbb; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | this +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) cWithConstructorProperty.a: number +// | ``` +// | more info about a +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | more info about a +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var bbbb: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 36, + "LSPosition": { + "line": 1, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c1\n```\nThis is comment for c1" + } + } + }, + { + "marker": { + "Position": 83, + "LSPosition": { + "line": 3, + "character": 12 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.p1: number\n```\np1 is property of c1" + } + } + }, + { + "marker": { + "Position": 134, + "LSPosition": { + "line": 5, + "character": 12 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 246, + "LSPosition": { + "line": 9, + "character": 16 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" + } + } + }, + { + "marker": { + "Position": 273, + "LSPosition": { + "line": 10, + "character": 21 + }, + "Name": "8q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 335, + "LSPosition": { + "line": 13, + "character": 16 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" + } + } + }, + { + "marker": { + "Position": 397, + "LSPosition": { + "line": 14, + "character": 24 + }, + "Name": "13q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 458, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.pp1: number\n```\npp1 is property of c1" + } + } + }, + { + "marker": { + "Position": 511, + "LSPosition": { + "line": 19, + "character": 13 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.pp2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 625, + "LSPosition": { + "line": 23, + "character": 17 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.pp3: number\n```\ngetter property 2" + } + } + }, + { + "marker": { + "Position": 653, + "LSPosition": { + "line": 24, + "character": 21 + }, + "Name": "20q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.pp2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 718, + "LSPosition": { + "line": 27, + "character": 17 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.pp3: number\n```\ngetter property 2" + } + } + }, + { + "marker": { + "Position": 783, + "LSPosition": { + "line": 28, + "character": 25 + }, + "Name": "25q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.pp2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 840, + "LSPosition": { + "line": 31, + "character": 11 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c1(): c1\n```\nConstructor method" + } + } + }, + { + "marker": { + "Position": 905, + "LSPosition": { + "line": 34, + "character": 12 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.s1: number\n```\ns1 is static property of c1" + } + } + }, + { + "marker": { + "Position": 963, + "LSPosition": { + "line": 36, + "character": 12 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" + } + } + }, + { + "marker": { + "Position": 1078, + "LSPosition": { + "line": 40, + "character": 16 + }, + "Name": "32", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" + } + } + }, + { + "marker": { + "Position": 1103, + "LSPosition": { + "line": 41, + "character": 19 + }, + "Name": "35q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" + } + } + }, + { + "marker": { + "Position": 1163, + "LSPosition": { + "line": 44, + "character": 16 + }, + "Name": "37", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" + } + } + }, + { + "marker": { + "Position": 1222, + "LSPosition": { + "line": 45, + "character": 20 + }, + "Name": "42q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" + } + } + }, + { + "marker": { + "Position": 1252, + "LSPosition": { + "line": 47, + "character": 14 + }, + "Name": "43", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.nc_p1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1278, + "LSPosition": { + "line": 48, + "character": 14 + }, + "Name": "44", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1349, + "LSPosition": { + "line": 51, + "character": 18 + }, + "Name": "46", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1378, + "LSPosition": { + "line": 52, + "character": 22 + }, + "Name": "47q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1418, + "LSPosition": { + "line": 54, + "character": 17 + }, + "Name": "48", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1467, + "LSPosition": { + "line": 55, + "character": 28 + }, + "Name": "49q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1499, + "LSPosition": { + "line": 57, + "character": 14 + }, + "Name": "50", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.nc_pp1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1528, + "LSPosition": { + "line": 58, + "character": 15 + }, + "Name": "51", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_pp2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1601, + "LSPosition": { + "line": 61, + "character": 18 + }, + "Name": "53", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_pp3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1633, + "LSPosition": { + "line": 62, + "character": 23 + }, + "Name": "54q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_pp2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1677, + "LSPosition": { + "line": 64, + "character": 20 + }, + "Name": "55", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_pp3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1724, + "LSPosition": { + "line": 65, + "character": 27 + }, + "Name": "56q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_pp2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1758, + "LSPosition": { + "line": 67, + "character": 13 + }, + "Name": "57", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.nc_s1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1784, + "LSPosition": { + "line": 68, + "character": 13 + }, + "Name": "58", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1853, + "LSPosition": { + "line": 71, + "character": 17 + }, + "Name": "60", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1881, + "LSPosition": { + "line": 72, + "character": 20 + }, + "Name": "61q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1919, + "LSPosition": { + "line": 74, + "character": 17 + }, + "Name": "62", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1965, + "LSPosition": { + "line": 75, + "character": 25 + }, + "Name": "63q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1989, + "LSPosition": { + "line": 78, + "character": 5 + }, + "Name": "64", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1: c1\n```\n" + } + } + }, + { + "marker": { + "Position": 1998, + "LSPosition": { + "line": 78, + "character": 14 + }, + "Name": "65q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c1(): c1\n```\nConstructor method" + } + } + }, + { + "marker": { + "Position": 2009, + "LSPosition": { + "line": 79, + "character": 6 + }, + "Name": "66", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_p: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2027, + "LSPosition": { + "line": 80, + "character": 6 + }, + "Name": "68", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_f: (b: number) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 2036, + "LSPosition": { + "line": 80, + "character": 15 + }, + "Name": "69", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 2045, + "LSPosition": { + "line": 81, + "character": 6 + }, + "Name": "70", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_r: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2054, + "LSPosition": { + "line": 81, + "character": 15 + }, + "Name": "71q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" + } + } + }, + { + "marker": { + "Position": 2069, + "LSPosition": { + "line": 82, + "character": 8 + }, + "Name": "72", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_prop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2078, + "LSPosition": { + "line": 82, + "character": 17 + }, + "Name": "73", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" + } + } + }, + { + "marker": { + "Position": 2085, + "LSPosition": { + "line": 83, + "character": 3 + }, + "Name": "74", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" + } + } + }, + { + "marker": { + "Position": 2093, + "LSPosition": { + "line": 83, + "character": 11 + }, + "Name": "75", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_prop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2106, + "LSPosition": { + "line": 84, + "character": 7 + }, + "Name": "76", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_nc_p: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2117, + "LSPosition": { + "line": 84, + "character": 18 + }, + "Name": "77", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.nc_p1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2129, + "LSPosition": { + "line": 85, + "character": 6 + }, + "Name": "78", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_ncf: (b: number) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 2142, + "LSPosition": { + "line": 85, + "character": 19 + }, + "Name": "79", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 2153, + "LSPosition": { + "line": 86, + "character": 7 + }, + "Name": "80", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_ncr: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2164, + "LSPosition": { + "line": 86, + "character": 18 + }, + "Name": "81q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 2181, + "LSPosition": { + "line": 87, + "character": 8 + }, + "Name": "82", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_ncprop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2193, + "LSPosition": { + "line": 87, + "character": 20 + }, + "Name": "83", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2204, + "LSPosition": { + "line": 88, + "character": 5 + }, + "Name": "84", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2213, + "LSPosition": { + "line": 88, + "character": 14 + }, + "Name": "85", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_ncprop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2228, + "LSPosition": { + "line": 89, + "character": 7 + }, + "Name": "86", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_p: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2234, + "LSPosition": { + "line": 89, + "character": 13 + }, + "Name": "87", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c1\n```\nThis is comment for c1" + } + } + }, + { + "marker": { + "Position": 2237, + "LSPosition": { + "line": 89, + "character": 16 + }, + "Name": "88", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.s1: number\n```\ns1 is static property of c1" + } + } + }, + { + "marker": { + "Position": 2249, + "LSPosition": { + "line": 90, + "character": 8 + }, + "Name": "89", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_f: (b: number) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 2257, + "LSPosition": { + "line": 90, + "character": 16 + }, + "Name": "90", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" + } + } + }, + { + "marker": { + "Position": 2268, + "LSPosition": { + "line": 91, + "character": 7 + }, + "Name": "91", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_r: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2278, + "LSPosition": { + "line": 91, + "character": 17 + }, + "Name": "92q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" + } + } + }, + { + "marker": { + "Position": 2293, + "LSPosition": { + "line": 92, + "character": 8 + }, + "Name": "93", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_prop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2305, + "LSPosition": { + "line": 92, + "character": 20 + }, + "Name": "94", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" + } + } + }, + { + "marker": { + "Position": 2312, + "LSPosition": { + "line": 93, + "character": 4 + }, + "Name": "95", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" + } + } + }, + { + "marker": { + "Position": 2320, + "LSPosition": { + "line": 93, + "character": 12 + }, + "Name": "96", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_prop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2335, + "LSPosition": { + "line": 94, + "character": 8 + }, + "Name": "97", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_nc_p: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2347, + "LSPosition": { + "line": 94, + "character": 20 + }, + "Name": "98", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c1.nc_s1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2362, + "LSPosition": { + "line": 95, + "character": 9 + }, + "Name": "99", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_ncf: (b: number) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 2373, + "LSPosition": { + "line": 95, + "character": 20 + }, + "Name": "100", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 2387, + "LSPosition": { + "line": 96, + "character": 9 + }, + "Name": "101", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_ncr: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2397, + "LSPosition": { + "line": 96, + "character": 19 + }, + "Name": "102q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 2417, + "LSPosition": { + "line": 97, + "character": 10 + }, + "Name": "103", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_ncprop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2430, + "LSPosition": { + "line": 97, + "character": 23 + }, + "Name": "104", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2440, + "LSPosition": { + "line": 98, + "character": 5 + }, + "Name": "105", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2453, + "LSPosition": { + "line": 98, + "character": 18 + }, + "Name": "106", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_s_ncprop: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2465, + "LSPosition": { + "line": 99, + "character": 6 + }, + "Name": "107", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i1_c: typeof c1\n```\n" + } + } + }, + { + "marker": { + "Position": 2471, + "LSPosition": { + "line": 99, + "character": 12 + }, + "Name": "108", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c1\n```\nThis is comment for c1" + } + } + }, + { + "marker": { + "Position": 2882, + "LSPosition": { + "line": 119, + "character": 14 + }, + "Name": "110", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) cProperties.p2: number\n```\nsetter only property" + } + } + }, + { + "marker": { + "Position": 2902, + "LSPosition": { + "line": 119, + "character": 34 + }, + "Name": "111", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) cProperties.p1: number\n```\ngetter only property" + } + } + }, + { + "marker": { + "Position": 2921, + "LSPosition": { + "line": 120, + "character": 16 + }, + "Name": "112", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) cProperties.nc_p2: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2943, + "LSPosition": { + "line": 120, + "character": 38 + }, + "Name": "113", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) cProperties.nc_p1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 3100, + "LSPosition": { + "line": 126, + "character": 4 + }, + "Name": "119", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithConstructorProperty(a: number): cWithConstructorProperty\n```\nthis is class cWithConstructorProperty's constructor\n\n*@param* `a` — this is first parameter a\n" + } + } + }, + { + "marker": { + "Position": 3167, + "LSPosition": { + "line": 127, + "character": 13 + }, + "Name": "118", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar bbbb: number\n```\n" + } + } + }, + { + "marker": { + "Position": 3187, + "LSPosition": { + "line": 128, + "character": 10 + }, + "Name": "116", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nthis\n```\n" + } + } + }, + { + "marker": { + "Position": 3190, + "LSPosition": { + "line": 128, + "character": 13 + }, + "Name": "114", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) cWithConstructorProperty.a: number\n```\nmore info about a" + } + } + }, + { + "marker": { + "Position": 3194, + "LSPosition": { + "line": 128, + "character": 17 + }, + "Name": "115", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\nmore info about a" + } + } + }, + { + "marker": { + "Position": 3204, + "LSPosition": { + "line": 128, + "character": 27 + }, + "Name": "117", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar bbbb: number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc new file mode 100644 index 0000000000..0e4164e80a --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc @@ -0,0 +1,1630 @@ +// === QuickInfo === +=== /quickInfoCommentsCommentParsing.ts === +// /// This is simple /// comments +// function simple() { +// } +// +// simple( ); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function simple(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /// multiLine /// Comments +// /// This is example of multiline /// comments +// /// Another multiLine +// function multiLine() { +// } +// multiLine( ); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function multiLine(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /** this is eg of single line jsdoc style comment */ +// function jsDocSingleLine() { +// } +// jsDocSingleLine(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocSingleLine(): void +// | ``` +// | this is eg of single line jsdoc style comment +// | ---------------------------------------------------------------------- +// +// +// /** this is multiple line jsdoc stule comment +// *New line1 +// *New Line2*/ +// function jsDocMultiLine() { +// } +// jsDocMultiLine(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMultiLine(): void +// | ``` +// | this is multiple line jsdoc stule comment +// | New line1 +// | New Line2 +// | ---------------------------------------------------------------------- +// +// /** multiple line jsdoc comments no longer merge +// *New line1 +// *New Line2*/ +// /** Shoul mege this line as well +// * and this too*/ /** Another this one too*/ +// function jsDocMultiLineMerge() { +// } +// jsDocMultiLineMerge(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMultiLineMerge(): void +// | ``` +// | Another this one too +// | ---------------------------------------------------------------------- +// +// +// /// Triple slash comment +// /** jsdoc comment */ +// function jsDocMixedComments1() { +// } +// jsDocMixedComments1(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMixedComments1(): void +// | ``` +// | jsdoc comment +// | ---------------------------------------------------------------------- +// +// /// Triple slash comment +// /** jsdoc comment */ /** another jsDocComment*/ +// function jsDocMixedComments2() { +// } +// jsDocMixedComments2(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMixedComments2(): void +// | ``` +// | another jsDocComment +// | ---------------------------------------------------------------------- +// +// /** jsdoc comment */ /*** triplestar jsDocComment*/ +// /// Triple slash comment +// function jsDocMixedComments3() { +// } +// jsDocMixedComments3(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMixedComments3(): void +// | ``` +// | * triplestar jsDocComment +// | ---------------------------------------------------------------------- +// +// /** jsdoc comment */ /** another jsDocComment*/ +// /// Triple slash comment +// /// Triple slash comment 2 +// function jsDocMixedComments4() { +// } +// jsDocMixedComments4(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMixedComments4(): void +// | ``` +// | another jsDocComment +// | ---------------------------------------------------------------------- +// +// /// Triple slash comment 1 +// /** jsdoc comment */ /** another jsDocComment*/ +// /// Triple slash comment +// /// Triple slash comment 2 +// function jsDocMixedComments5() { +// } +// jsDocMixedComments5(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMixedComments5(): void +// | ``` +// | another jsDocComment +// | ---------------------------------------------------------------------- +// +// /** another jsDocComment*/ +// /// Triple slash comment 1 +// /// Triple slash comment +// /// Triple slash comment 2 +// /** jsdoc comment */ +// function jsDocMixedComments6() { +// } +// jsDocMixedComments6(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocMixedComments6(): void +// | ``` +// | jsdoc comment +// | ---------------------------------------------------------------------- +// +// // This shoulnot be help comment +// function noHelpComment1() { +// } +// noHelpComment1(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function noHelpComment1(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /* This shoulnot be help comment */ +// function noHelpComment2() { +// } +// noHelpComment2(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function noHelpComment2(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// function noHelpComment3() { +// } +// noHelpComment3(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function noHelpComment3(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** Adds two integers and returns the result +// * @param {number} a first number +// * @param b second number +// */ +// function sum(a: number, b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | first number +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: number +// | ``` +// | second number +// | +// | ---------------------------------------------------------------------- +// return a + b; +// } +// sum(10, 20); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function sum(a: number, b: number): number +// | ``` +// | Adds two integers and returns the result +// | +// | *@param* `a` — first number +// | +// | +// | *@param* `b` — second number +// | +// | ---------------------------------------------------------------------- +// /** This is multiplication function +// * @param +// * @param a first number +// * @param b +// * @param c { +// @param d @anotherTag +// * @param e LastParam @anotherTag*/ +// function multiply(a: number, b: number, c?: number, d?, e?) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | first number +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) c: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) d: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) e: any +// | ``` +// | LastParam +// | ---------------------------------------------------------------------- +// } +// multiply(10, 20, 30, 40, 50); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function multiply(a: number, b: number, c?: number, d?: any, e?: any): void +// | ``` +// | This is multiplication function +// | +// | *@param* `` +// | +// | *@param* `a` — first number +// | +// | +// | *@param* `b` +// | +// | *@param* `c` +// | +// | *@param* `d` +// | +// | *@anotherTag* +// | +// | *@param* `e` — LastParam +// | +// | *@anotherTag* +// | ---------------------------------------------------------------------- +// /** fn f1 with number +// * @param { string} b about b +// */ +// function f1(a: number); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function f1(b: string); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// /**@param opt optional parameter*/ +// function f1(aOrb, opt?) { +// return aOrb; +// } +// f1(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f1(a: number): any +// | ``` +// | fn f1 with number +// | +// | *@param* `b` — about b +// | +// | ---------------------------------------------------------------------- +// f1("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f1(b: string): any +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /** This is subtract function +// @param { a +// *@param { number | } b this is about b +// @param { { () => string; } } c this is optional param c +// @param { { () => string; } d this is optional param d +// @param { { () => string; } } e this is optional param e +// @param { { { () => string; } } f this is optional param f +// */ +// function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: number +// | ``` +// | this is about b +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) c: () => string +// | ``` +// | this is optional param c +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) d: () => string +// | ``` +// | this is optional param d +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) e: () => string +// | ``` +// | this is optional param e +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) f: () => string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// subtract(10, 20, null, null, null, null); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void +// | ``` +// | This is subtract function +// | +// | *@param* `` +// | +// | *@param* `b` — this is about b +// | +// | +// | *@param* `c` — this is optional param c +// | +// | +// | *@param* `d` — this is optional param d +// | +// | +// | *@param* `e` — this is optional param e +// | +// | +// | *@param* `` — { () => string; } } f this is optional param f +// | +// | ---------------------------------------------------------------------- +// /** this is square function +// @paramTag { number } a this is input number of paramTag +// @param { number } a this is input number +// @returnType { number } it is return type +// */ +// function square(a: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | this is input number +// | +// | ---------------------------------------------------------------------- +// return a * a; +// } +// square(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function square(a: number): number +// | ``` +// | this is square function +// | +// | *@paramTag* — { number } a this is input number of paramTag +// | +// | +// | *@param* `a` — this is input number +// | +// | +// | *@returnType* — { number } it is return type +// | +// | ---------------------------------------------------------------------- +// /** this is divide function +// @param { number} a this is a +// @paramTag { number } g this is optional param g +// @param { number} b this is b +// */ +// function divide(a: number, b: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | this is a +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: number +// | ``` +// | this is b +// | +// | ---------------------------------------------------------------------- +// } +// divide(10, 20); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function divide(a: number, b: number): void +// | ``` +// | this is divide function +// | +// | *@param* `a` — this is a +// | +// | +// | *@paramTag* — { number } g this is optional param g +// | +// | +// | *@param* `b` — this is b +// | +// | ---------------------------------------------------------------------- +// /** +// Function returns string concat of foo and bar +// @param {string} foo is string +// @param {string} bar is second string +// */ +// function fooBar(foo: string, bar: string) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) foo: string +// | ``` +// | is string +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) bar: string +// | ``` +// | is second string +// | +// | ---------------------------------------------------------------------- +// return foo + bar; +// } +// fooBar("foo","bar"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function fooBar(foo: string, bar: string): string +// | ``` +// | Function returns string concat of foo and bar +// | +// | *@param* `foo` — is string +// | +// | +// | *@param* `bar` — is second string +// | +// | ---------------------------------------------------------------------- +// /** This is a comment */ +// var x; +// /** +// * This is a comment +// */ +// var y; +// /** this is jsdoc style function with param tag as well as inline parameter help +// *@param a it is first parameter +// *@param c it is third parameter +// */ +// function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | this is inline comment for a +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: number +// | ``` +// | this is inline comment for b +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) c: number +// | ``` +// | it is third parameter +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) d: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a + b + c + d; +// } +// jsDocParamTest(30, 40, 50, 60); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocParamTest(a: number, b: number, c: number, d: number): number +// | ``` +// | this is jsdoc style function with param tag as well as inline parameter help +// | +// | *@param* `a` — it is first parameter +// | +// | +// | *@param* `c` — it is third parameter +// | +// | ---------------------------------------------------------------------- +// /** This is function comment +// * And properly aligned comment +// */ +// function jsDocCommentAlignmentTest1() { +// } +// jsDocCommentAlignmentTest1(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocCommentAlignmentTest1(): void +// | ``` +// | This is function comment +// | And properly aligned comment +// | ---------------------------------------------------------------------- +// /** This is function comment +// * And aligned with 4 space char margin +// */ +// function jsDocCommentAlignmentTest2() { +// } +// jsDocCommentAlignmentTest2(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocCommentAlignmentTest2(): void +// | ``` +// | This is function comment +// | And aligned with 4 space char margin +// | ---------------------------------------------------------------------- +// /** This is function comment +// * And aligned with 4 space char margin +// * @param {string} a this is info about a +// * spanning on two lines and aligned perfectly +// * @param b this is info about b +// * spanning on two lines and aligned perfectly +// * spanning one more line alined perfectly +// * spanning another line with more margin +// * @param c this is info about b +// * not aligned text about parameter will eat only one space +// */ +// function jsDocCommentAlignmentTest3(a: string, b, c) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: string +// | ``` +// | this is info about a +// | spanning on two lines and aligned perfectly +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: any +// | ``` +// | this is info about b +// | spanning on two lines and aligned perfectly +// | spanning one more line alined perfectly +// | spanning another line with more margin +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) c: any +// | ``` +// | this is info about b +// | not aligned text about parameter will eat only one space +// | +// | ---------------------------------------------------------------------- +// } +// jsDocCommentAlignmentTest3("hello",1, 2); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function jsDocCommentAlignmentTest3(a: string, b: any, c: any): void +// | ``` +// | This is function comment +// | And aligned with 4 space char margin +// | +// | *@param* `a` — this is info about a +// | spanning on two lines and aligned perfectly +// | +// | +// | *@param* `b` — this is info about b +// | spanning on two lines and aligned perfectly +// | spanning one more line alined perfectly +// | spanning another line with more margin +// | +// | +// | *@param* `c` — this is info about b +// | not aligned text about parameter will eat only one space +// | +// | ---------------------------------------------------------------------- +// +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +// class NoQuickInfoClass { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class NoQuickInfoClass +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 58, + "LSPosition": { + "line": 4, + "character": 3 + }, + "Name": "1q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction simple(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 190, + "LSPosition": { + "line": 11, + "character": 3 + }, + "Name": "2q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction multiLine(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 291, + "LSPosition": { + "line": 16, + "character": 5 + }, + "Name": "3q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocSingleLine(): void\n```\nthis is eg of single line jsdoc style comment" + } + } + }, + { + "marker": { + "Position": 413, + "LSPosition": { + "line": 24, + "character": 6 + }, + "Name": "4q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMultiLine(): void\n```\nthis is multiple line jsdoc stule comment\nNew line1\nNew Line2" + } + } + }, + { + "marker": { + "Position": 618, + "LSPosition": { + "line": 33, + "character": 7 + }, + "Name": "5q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMultiLineMerge(): void\n```\nAnother this one too" + } + } + }, + { + "marker": { + "Position": 725, + "LSPosition": { + "line": 40, + "character": 8 + }, + "Name": "6q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMixedComments1(): void\n```\njsdoc comment" + } + } + }, + { + "marker": { + "Position": 856, + "LSPosition": { + "line": 46, + "character": 7 + }, + "Name": "7q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMixedComments2(): void\n```\nanother jsDocComment" + } + } + }, + { + "marker": { + "Position": 994, + "LSPosition": { + "line": 52, + "character": 9 + }, + "Name": "8q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMixedComments3(): void\n```\n* triplestar jsDocComment" + } + } + }, + { + "marker": { + "Position": 1154, + "LSPosition": { + "line": 59, + "character": 10 + }, + "Name": "9q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMixedComments4(): void\n```\nanother jsDocComment" + } + } + }, + { + "marker": { + "Position": 1336, + "LSPosition": { + "line": 67, + "character": 6 + }, + "Name": "10q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMixedComments5(): void\n```\nanother jsDocComment" + } + } + }, + { + "marker": { + "Position": 1524, + "LSPosition": { + "line": 76, + "character": 8 + }, + "Name": "11q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocMixedComments6(): void\n```\njsdoc comment" + } + } + }, + { + "marker": { + "Position": 1608, + "LSPosition": { + "line": 81, + "character": 5 + }, + "Name": "12q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction noHelpComment1(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 1695, + "LSPosition": { + "line": 86, + "character": 7 + }, + "Name": "13q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction noHelpComment2(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 1744, + "LSPosition": { + "line": 90, + "character": 7 + }, + "Name": "14q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction noHelpComment3(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 1880, + "LSPosition": { + "line": 95, + "character": 13 + }, + "Name": "16aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\nfirst number\n" + } + } + }, + { + "marker": { + "Position": 1891, + "LSPosition": { + "line": 95, + "character": 24 + }, + "Name": "17aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: number\n```\nsecond number\n" + } + } + }, + { + "marker": { + "Position": 1925, + "LSPosition": { + "line": 98, + "character": 1 + }, + "Name": "16q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction sum(a: number, b: number): number\n```\nAdds two integers and returns the result\n\n*@param* `a` — first number\n\n\n*@param* `b` — second number\n" + } + } + }, + { + "marker": { + "Position": 2111, + "LSPosition": { + "line": 106, + "character": 18 + }, + "Name": "19aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\nfirst number\n" + } + } + }, + { + "marker": { + "Position": 2122, + "LSPosition": { + "line": 106, + "character": 29 + }, + "Name": "20aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2133, + "LSPosition": { + "line": 106, + "character": 40 + }, + "Name": "21aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) c: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2145, + "LSPosition": { + "line": 106, + "character": 52 + }, + "Name": "22aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) d: any\n```\n" + } + } + }, + { + "marker": { + "Position": 2149, + "LSPosition": { + "line": 106, + "character": 56 + }, + "Name": "23aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) e: any\n```\nLastParam " + } + } + }, + { + "marker": { + "Position": 2161, + "LSPosition": { + "line": 108, + "character": 4 + }, + "Name": "19q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction multiply(a: number, b: number, c?: number, d?: any, e?: any): void\n```\nThis is multiplication function\n\n*@param* ``\n\n*@param* `a` — first number\n\n\n*@param* `b`\n\n*@param* `c`\n\n*@param* `d`\n\n*@anotherTag*\n\n*@param* `e` — LastParam \n\n*@anotherTag*" + } + } + }, + { + "marker": { + "Position": 2253, + "LSPosition": { + "line": 112, + "character": 12 + }, + "Name": "25aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2277, + "LSPosition": { + "line": 113, + "character": 12 + }, + "Name": "26aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: string\n```\n" + } + } + }, + { + "marker": { + "Position": 2370, + "LSPosition": { + "line": 118, + "character": 1 + }, + "Name": "25q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f1(a: number): any\n```\nfn f1 with number\n\n*@param* `b` — about b\n" + } + } + }, + { + "marker": { + "Position": 2378, + "LSPosition": { + "line": 119, + "character": 1 + }, + "Name": "26q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f1(b: string): any\n```\n" + } + } + }, + { + "marker": { + "Position": 2716, + "LSPosition": { + "line": 129, + "character": 18 + }, + "Name": "28aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2727, + "LSPosition": { + "line": 129, + "character": 29 + }, + "Name": "29aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: number\n```\nthis is about b\n" + } + } + }, + { + "marker": { + "Position": 2738, + "LSPosition": { + "line": 129, + "character": 40 + }, + "Name": "30aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) c: () => string\n```\nthis is optional param c\n" + } + } + }, + { + "marker": { + "Position": 2756, + "LSPosition": { + "line": 129, + "character": 58 + }, + "Name": "31aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) d: () => string\n```\nthis is optional param d\n" + } + } + }, + { + "marker": { + "Position": 2774, + "LSPosition": { + "line": 129, + "character": 76 + }, + "Name": "32aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) e: () => string\n```\nthis is optional param e\n" + } + } + }, + { + "marker": { + "Position": 2792, + "LSPosition": { + "line": 129, + "character": 94 + }, + "Name": "33aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) f: () => string\n```\n" + } + } + }, + { + "marker": { + "Position": 2818, + "LSPosition": { + "line": 131, + "character": 4 + }, + "Name": "28q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void\n```\nThis is subtract function\n\n*@param* ``\n\n*@param* `b` — this is about b\n\n\n*@param* `c` — this is optional param c\n\n\n*@param* `d` — this is optional param d\n\n\n*@param* `e` — this is optional param e\n\n\n*@param* `` — { () => string; } } f this is optional param f\n" + } + } + }, + { + "marker": { + "Position": 3045, + "LSPosition": { + "line": 137, + "character": 16 + }, + "Name": "34aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\nthis is input number\n" + } + } + }, + { + "marker": { + "Position": 3081, + "LSPosition": { + "line": 140, + "character": 3 + }, + "Name": "34q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction square(a: number): number\n```\nthis is square function\n\n*@paramTag* — { number } a this is input number of paramTag\n\n\n*@param* `a` — this is input number\n\n\n*@returnType* — { number } it is return type\n" + } + } + }, + { + "marker": { + "Position": 3243, + "LSPosition": { + "line": 146, + "character": 16 + }, + "Name": "35aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\nthis is a\n" + } + } + }, + { + "marker": { + "Position": 3254, + "LSPosition": { + "line": 146, + "character": 27 + }, + "Name": "36aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: number\n```\nthis is b\n" + } + } + }, + { + "marker": { + "Position": 3272, + "LSPosition": { + "line": 148, + "character": 3 + }, + "Name": "35q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction divide(a: number, b: number): void\n```\nthis is divide function\n\n*@param* `a` — this is a\n\n\n*@paramTag* — { number } g this is optional param g\n\n\n*@param* `b` — this is b\n" + } + } + }, + { + "marker": { + "Position": 3432, + "LSPosition": { + "line": 154, + "character": 16 + }, + "Name": "37aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) foo: string\n```\nis string\n" + } + } + }, + { + "marker": { + "Position": 3445, + "LSPosition": { + "line": 154, + "character": 29 + }, + "Name": "38aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) bar: string\n```\nis second string\n" + } + } + }, + { + "marker": { + "Position": 3486, + "LSPosition": { + "line": 157, + "character": 2 + }, + "Name": "37q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction fooBar(foo: string, bar: string): string\n```\nFunction returns string concat of foo and bar\n\n*@param* `foo` — is string\n\n\n*@param* `bar` — is second string\n" + } + } + }, + { + "marker": { + "Position": 3782, + "LSPosition": { + "line": 168, + "character": 59 + }, + "Name": "40aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\nthis is inline comment for a" + } + } + }, + { + "marker": { + "Position": 3828, + "LSPosition": { + "line": 168, + "character": 105 + }, + "Name": "41aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: number\n```\nthis is inline comment for b" + } + } + }, + { + "marker": { + "Position": 3839, + "LSPosition": { + "line": 168, + "character": 116 + }, + "Name": "42aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) c: number\n```\nit is third parameter\n" + } + } + }, + { + "marker": { + "Position": 3850, + "LSPosition": { + "line": 168, + "character": 127 + }, + "Name": "43aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) d: number\n```\n" + } + } + }, + { + "marker": { + "Position": 3894, + "LSPosition": { + "line": 171, + "character": 3 + }, + "Name": "40q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocParamTest(a: number, b: number, c: number, d: number): number\n```\nthis is jsdoc style function with param tag as well as inline parameter help\n\n*@param* `a` — it is first parameter\n\n\n*@param* `c` — it is third parameter\n" + } + } + }, + { + "marker": { + "Position": 4040, + "LSPosition": { + "line": 177, + "character": 8 + }, + "Name": "45q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocCommentAlignmentTest1(): void\n```\nThis is function comment\nAnd properly aligned comment" + } + } + }, + { + "marker": { + "Position": 4193, + "LSPosition": { + "line": 183, + "character": 10 + }, + "Name": "46q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocCommentAlignmentTest2(): void\n```\nThis is function comment\n And aligned with 4 space char margin" + } + } + }, + { + "marker": { + "Position": 4778, + "LSPosition": { + "line": 195, + "character": 36 + }, + "Name": "47aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: string\n```\nthis is info about a\nspanning on two lines and aligned perfectly\n" + } + } + }, + { + "marker": { + "Position": 4789, + "LSPosition": { + "line": 195, + "character": 47 + }, + "Name": "48aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: any\n```\nthis is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin\n" + } + } + }, + { + "marker": { + "Position": 4792, + "LSPosition": { + "line": 195, + "character": 50 + }, + "Name": "49aq", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) c: any\n```\nthis is info about b\nnot aligned text about parameter will eat only one space\n" + } + } + }, + { + "marker": { + "Position": 4809, + "LSPosition": { + "line": 197, + "character": 10 + }, + "Name": "47q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction jsDocCommentAlignmentTest3(a: string, b: any, c: any): void\n```\nThis is function comment\n And aligned with 4 space char margin\n\n*@param* `a` — this is info about a\nspanning on two lines and aligned perfectly\n\n\n*@param* `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\n\n\n*@param* `c` — this is info about b\nnot aligned text about parameter will eat only one space\n" + } + } + }, + { + "marker": { + "Position": 4841, + "LSPosition": { + "line": 198, + "character": 0 + }, + "Name": "", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 4854, + "LSPosition": { + "line": 199, + "character": 12 + }, + "Name": "50q", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass NoQuickInfoClass\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc new file mode 100644 index 0000000000..73699ec88c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc @@ -0,0 +1,141 @@ +// === QuickInfo === +=== /quickInfoCommentsFunctionDeclaration.ts === +// /** This comment should appear for foo*/ +// function foo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | ``` +// | This comment should appear for foo +// | ---------------------------------------------------------------------- +// } +// foo(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | ``` +// | This comment should appear for foo +// | ---------------------------------------------------------------------- +// /** This is comment for function signature*/ +// function fooWithParameters(/** this is comment about a*/a: string, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function fooWithParameters(a: string, b: number): void +// | ``` +// | This is comment for function signature +// | ---------------------------------------------------------------------- +// /** this is comment for b*/ +// b: number) { +// var d = a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var d: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// fooWithParameters("a",10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function fooWithParameters(a: string, b: number): void +// | ``` +// | This is comment for function signature +// | ---------------------------------------------------------------------- +// /** +// * Does something +// * @param a a string +// */ +// declare function fn(a: string); +// fn("hello"); +[ + { + "marker": { + "Position": 51, + "LSPosition": { + "line": 1, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\n```\nThis comment should appear for foo" + } + } + }, + { + "marker": { + "Position": 61, + "LSPosition": { + "line": 3, + "character": 1 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\n```\nThis comment should appear for foo" + } + } + }, + { + "marker": { + "Position": 123, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction fooWithParameters(a: string, b: number): void\n```\nThis is comment for function signature" + } + } + }, + { + "marker": { + "Position": 236, + "LSPosition": { + "line": 8, + "character": 8 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar d: string\n```\n" + } + } + }, + { + "marker": { + "Position": 257, + "LSPosition": { + "line": 10, + "character": 12 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction fooWithParameters(a: string, b: number): void\n```\nThis is comment for function signature" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc new file mode 100644 index 0000000000..5416640acb --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc @@ -0,0 +1,310 @@ +// === QuickInfo === +=== /quickInfoCommentsFunctionExpression.ts === +// /** lambdaFoo var comment*/ +// var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var lambdaFoo: (a: number, b: number) => number +// | ``` +// | lambdaFoo var comment +// | ---------------------------------------------------------------------- +// var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var lambddaNoVarComment: (a: number, b: number) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// lambdaFoo(10, 20); +// function anotherFunc(a: number) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function anotherFunc(a: number): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** documentation +// @param b {string} inner parameter */ +// var lambdaVar = /** inner docs */(b: string) => { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var lambdaVar: (b: string) => string +// | ``` +// | documentation +// | +// | *@param* `b` — inner parameter +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// var localVar = "Hello "; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var localVar: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// return localVar + b; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var localVar: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// return lambdaVar("World") + a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var lambdaVar: (b: string) => string +// | ``` +// | documentation +// | +// | *@param* `b` — inner parameter +// | ---------------------------------------------------------------------- +// } +// /** +// * On variable +// * @param s the first parameter! +// * @returns the parameter's length +// */ +// var assigned = /** +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var assigned: (s: string) => number +// | ``` +// | On variable +// | +// | *@param* `s` — the first parameter! +// | +// | +// | *@returns* — the parameter's length +// | +// | ---------------------------------------------------------------------- +// * Summary on expression +// * @param s param on expression +// * @returns return on expression +// */function(/** On parameter */s: string) { +// return s.length; +// } +// assigned("hey"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var assigned: (s: string) => number +// | ``` +// | On variable +// | +// | *@param* `s` — the first parameter! +// | +// | +// | *@returns* — the parameter's length +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 36, + "LSPosition": { + "line": 1, + "character": 8 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar lambdaFoo: (a: number, b: number) => number\n```\nlambdaFoo var comment" + } + } + }, + { + "marker": { + "Position": 142, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar lambddaNoVarComment: (a: number, b: number) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 277, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction anotherFunc(a: number): string\n```\n" + } + } + }, + { + "marker": { + "Position": 377, + "LSPosition": { + "line": 7, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar lambdaVar: (b: string) => string\n```\ndocumentation\n\n*@param* `b` — inner parameter " + } + } + }, + { + "marker": { + "Position": 407, + "LSPosition": { + "line": 7, + "character": 38 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: string\n```\n" + } + } + }, + { + "marker": { + "Position": 435, + "LSPosition": { + "line": 8, + "character": 12 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar localVar: string\n```\n" + } + } + }, + { + "marker": { + "Position": 471, + "LSPosition": { + "line": 9, + "character": 15 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar localVar: string\n```\n" + } + } + }, + { + "marker": { + "Position": 482, + "LSPosition": { + "line": 9, + "character": 26 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: string\n```\n" + } + } + }, + { + "marker": { + "Position": 506, + "LSPosition": { + "line": 11, + "character": 15 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar lambdaVar: (b: string) => string\n```\ndocumentation\n\n*@param* `b` — inner parameter " + } + } + }, + { + "marker": { + "Position": 627, + "LSPosition": { + "line": 18, + "character": 8 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar assigned: (s: string) => number\n```\nOn variable\n\n*@param* `s` — the first parameter!\n\n\n*@returns* — the parameter's length\n" + } + } + }, + { + "marker": { + "Position": 858, + "LSPosition": { + "line": 25, + "character": 5 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar assigned: (s: string) => number\n```\nOn variable\n\n*@param* `s` — the first parameter!\n\n\n*@returns* — the parameter's length\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc new file mode 100644 index 0000000000..fddab30122 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc @@ -0,0 +1,200 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsArrowFunctionExpression.ts === +// var x = a => 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: (a: any) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// var y = (a, b) => 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var y: (a: any, b: any) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: any +// | ``` +// | +// | ---------------------------------------------------------------------- +// var z = (a: number) => 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var z: (a: number) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var z2 = () => 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var z2: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: (a: any) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 8, + "LSPosition": { + "line": 0, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: any\n```\n" + } + } + }, + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar y: (a: any, b: any) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: any\n```\n" + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 12 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: any\n```\n" + } + } + }, + { + "marker": { + "Position": 43, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar z: (a: number) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 48, + "LSPosition": { + "line": 2, + "character": 9 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: number\n```\n" + } + } + }, + { + "marker": { + "Position": 70, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar z2: () => number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc new file mode 100644 index 0000000000..6483631b59 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc @@ -0,0 +1,128 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClass.ts === +// class c { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var cInstance = new c(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cVal = c; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cVal: typeof c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 16, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 32, + "LSPosition": { + "line": 2, + "character": 20 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cVal: typeof c\n```\n" + } + } + }, + { + "marker": { + "Position": 48, + "LSPosition": { + "line": 3, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc new file mode 100644 index 0000000000..92dc276ff5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc @@ -0,0 +1,807 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassAccessors.ts === +// class c { +// public get publicProperty() { return ""; } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// public set publicProperty(x: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private get privateProperty() { return ""; } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private set privateProperty(x: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected get protectedProperty() { return ""; } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected set protectedProperty(x: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// static get staticProperty() { return ""; } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// static set staticProperty(x: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private static get privateStaticProperty() { return ""; } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private static set privateStaticProperty(x: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected static get protectedStaticProperty() { return ""; } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected static set protectedStaticProperty(x: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// method() { +// var x : string; +// x = this.publicProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = this.privateProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = this.protectedProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = c.staticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = c.privateStaticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = c.protectedStaticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.publicProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.privateProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.protectedProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.privateStaticProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.protectedStaticProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance = new c(); +// var y: string; +// y = cInstance.publicProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// y = c.staticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// cInstance.publicProperty = y; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticProperty = y; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 25, + "LSPosition": { + "line": 1, + "character": 15 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 72, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "1s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 118, + "LSPosition": { + "line": 3, + "character": 16 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 167, + "LSPosition": { + "line": 4, + "character": 16 + }, + "Name": "2s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 216, + "LSPosition": { + "line": 5, + "character": 18 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 269, + "LSPosition": { + "line": 6, + "character": 18 + }, + "Name": "21s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 317, + "LSPosition": { + "line": 7, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 364, + "LSPosition": { + "line": 8, + "character": 15 + }, + "Name": "3s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 418, + "LSPosition": { + "line": 9, + "character": 24 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 480, + "LSPosition": { + "line": 10, + "character": 23 + }, + "Name": "4s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 542, + "LSPosition": { + "line": 11, + "character": 25 + }, + "Name": "41", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 608, + "LSPosition": { + "line": 12, + "character": 25 + }, + "Name": "41s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 703, + "LSPosition": { + "line": 15, + "character": 17 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 736, + "LSPosition": { + "line": 16, + "character": 17 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 770, + "LSPosition": { + "line": 17, + "character": 17 + }, + "Name": "61", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 803, + "LSPosition": { + "line": 18, + "character": 14 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 833, + "LSPosition": { + "line": 19, + "character": 14 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 870, + "LSPosition": { + "line": 20, + "character": 14 + }, + "Name": "81", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 908, + "LSPosition": { + "line": 21, + "character": 13 + }, + "Name": "5s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 942, + "LSPosition": { + "line": 22, + "character": 13 + }, + "Name": "6s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 977, + "LSPosition": { + "line": 23, + "character": 13 + }, + "Name": "61s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 1011, + "LSPosition": { + "line": 24, + "character": 10 + }, + "Name": "7s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 1042, + "LSPosition": { + "line": 25, + "character": 10 + }, + "Name": "8s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 1080, + "LSPosition": { + "line": 26, + "character": 10 + }, + "Name": "81s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 1162, + "LSPosition": { + "line": 31, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 1172, + "LSPosition": { + "line": 31, + "character": 14 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 1192, + "LSPosition": { + "line": 32, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 1194, + "LSPosition": { + "line": 32, + "character": 6 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 1210, + "LSPosition": { + "line": 33, + "character": 0 + }, + "Name": "9s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 1220, + "LSPosition": { + "line": 33, + "character": 10 + }, + "Name": "10s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 1240, + "LSPosition": { + "line": 34, + "character": 0 + }, + "Name": "11s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 1242, + "LSPosition": { + "line": 34, + "character": 2 + }, + "Name": "12s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc new file mode 100644 index 0000000000..f1e059e258 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc @@ -0,0 +1,657 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassAutoAccessors.ts === +// class c { +// public accessor publicProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private accessor privateProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected accessor protectedProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// static accessor staticProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private static accessor privateStaticProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected static accessor protectedStaticProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// method() { +// var x: string; +// x = this.publicProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = this.privateProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = this.protectedProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = c.staticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = c.privateStaticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// x = c.protectedStaticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.publicProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.privateProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.protectedProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.privateStaticProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.protectedStaticProperty = ""; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance = new c(); +// var y: string; +// y = cInstance.publicProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// y = c.staticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// cInstance.publicProperty = y; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticProperty = y; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 30, + "LSPosition": { + "line": 1, + "character": 20 + }, + "Name": "1a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 2, + "character": 21 + }, + "Name": "2a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 123, + "LSPosition": { + "line": 3, + "character": 23 + }, + "Name": "3a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 170, + "LSPosition": { + "line": 4, + "character": 20 + }, + "Name": "4a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 222, + "LSPosition": { + "line": 5, + "character": 28 + }, + "Name": "5a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 283, + "LSPosition": { + "line": 6, + "character": 30 + }, + "Name": "6a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 371, + "LSPosition": { + "line": 9, + "character": 17 + }, + "Name": "1g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 404, + "LSPosition": { + "line": 10, + "character": 17 + }, + "Name": "2g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 438, + "LSPosition": { + "line": 11, + "character": 17 + }, + "Name": "3g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 471, + "LSPosition": { + "line": 12, + "character": 14 + }, + "Name": "4g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 501, + "LSPosition": { + "line": 13, + "character": 14 + }, + "Name": "5g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 538, + "LSPosition": { + "line": 14, + "character": 14 + }, + "Name": "6g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 576, + "LSPosition": { + "line": 15, + "character": 13 + }, + "Name": "1s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 610, + "LSPosition": { + "line": 16, + "character": 13 + }, + "Name": "2s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 645, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "3s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 679, + "LSPosition": { + "line": 18, + "character": 10 + }, + "Name": "4s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 710, + "LSPosition": { + "line": 19, + "character": 10 + }, + "Name": "5s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 748, + "LSPosition": { + "line": 20, + "character": 10 + }, + "Name": "6s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 830, + "LSPosition": { + "line": 25, + "character": 4 + }, + "Name": "7g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 840, + "LSPosition": { + "line": 25, + "character": 14 + }, + "Name": "8g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 860, + "LSPosition": { + "line": 26, + "character": 4 + }, + "Name": "9g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 862, + "LSPosition": { + "line": 26, + "character": 6 + }, + "Name": "10g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 878, + "LSPosition": { + "line": 27, + "character": 0 + }, + "Name": "7s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 888, + "LSPosition": { + "line": 27, + "character": 10 + }, + "Name": "8s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 908, + "LSPosition": { + "line": 28, + "character": 0 + }, + "Name": "9s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 910, + "LSPosition": { + "line": 28, + "character": 2 + }, + "Name": "10s", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc new file mode 100644 index 0000000000..f14d749f68 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc @@ -0,0 +1,665 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassConstructor.ts === +// class c { +// constructor() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c(): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance = new c(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c(): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cVal = c; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cVal: typeof c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// class cWithOverloads { +// constructor(x: string); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithOverloads(x: string): cWithOverloads +// | constructor cWithOverloads(x: number): cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(x: number); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithOverloads(x: string): cWithOverloads +// | constructor cWithOverloads(x: number): cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(x: any) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithOverloads(x: string): cWithOverloads +// | constructor cWithOverloads(x: number): cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cWithOverloadsInstance = new cWithOverloads("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cWithOverloadsInstance: cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithOverloads(x: string): cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cWithOverloadsInstance2 = new cWithOverloads(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cWithOverloadsInstance2: cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithOverloads(x: number): cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cWithOverloadsVal = cWithOverloads; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cWithOverloadsVal: typeof cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class cWithOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// class cWithMultipleOverloads { +// constructor(x: string); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(x: number); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(x: boolean); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(x: any) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads +// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cWithMultipleOverloadsInstance = new cWithMultipleOverloads("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cWithMultipleOverloadsInstance: cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cWithMultipleOverloadsInstance2 = new cWithMultipleOverloads(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cWithMultipleOverloadsInstance2: cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cWithMultipleOverloadsInstance3 = new cWithMultipleOverloads(true); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cWithMultipleOverloadsInstance3: cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cWithMultipleOverloadsVal = cWithMultipleOverloads; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cWithMultipleOverloadsVal: typeof cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class cWithMultipleOverloads +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 14, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c(): c\n```\n" + } + } + }, + { + "marker": { + "Position": 42, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 58, + "LSPosition": { + "line": 4, + "character": 20 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c(): c\n```\n" + } + } + }, + { + "marker": { + "Position": 67, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cVal: typeof c\n```\n" + } + } + }, + { + "marker": { + "Position": 74, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 104, + "LSPosition": { + "line": 7, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 132, + "LSPosition": { + "line": 8, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 160, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 194, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cWithOverloadsInstance: cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 223, + "LSPosition": { + "line": 12, + "character": 33 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 252, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cWithOverloadsInstance2: cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 282, + "LSPosition": { + "line": 13, + "character": 34 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 306, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cWithOverloadsVal: typeof cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 326, + "LSPosition": { + "line": 14, + "character": 24 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass cWithOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 377, + "LSPosition": { + "line": 16, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 405, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 433, + "LSPosition": { + "line": 18, + "character": 4 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 462, + "LSPosition": { + "line": 19, + "character": 4 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 496, + "LSPosition": { + "line": 22, + "character": 4 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cWithMultipleOverloadsInstance: cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 533, + "LSPosition": { + "line": 22, + "character": 41 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 570, + "LSPosition": { + "line": 23, + "character": 4 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cWithMultipleOverloadsInstance2: cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 608, + "LSPosition": { + "line": 23, + "character": 42 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 640, + "LSPosition": { + "line": 24, + "character": 4 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cWithMultipleOverloadsInstance3: cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 678, + "LSPosition": { + "line": 24, + "character": 42 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 712, + "LSPosition": { + "line": 25, + "character": 4 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cWithMultipleOverloadsVal: typeof cWithMultipleOverloads\n```\n" + } + } + }, + { + "marker": { + "Position": 740, + "LSPosition": { + "line": 25, + "character": 32 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass cWithMultipleOverloads\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc new file mode 100644 index 0000000000..748eae06e8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc @@ -0,0 +1,70 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassDefaultAnonymous.ts === +// export default class { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*4*/. +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 0, + "LSPosition": { + "line": 0, + "character": 0 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 7, + "LSPosition": { + "line": 0, + "character": 7 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 15, + "LSPosition": { + "line": 0, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 0, + "character": 21 + }, + "Name": "4", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc new file mode 100644 index 0000000000..c8f640ffbe --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc @@ -0,0 +1,94 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassDefaultNamed.ts === +// export default class C { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class C +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*5*/. +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 0, + "LSPosition": { + "line": 0, + "character": 0 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 7, + "LSPosition": { + "line": 0, + "character": 7 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 15, + "LSPosition": { + "line": 0, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 0, + "character": 21 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass C\n```\n" + } + } + }, + { + "marker": { + "Position": 23, + "LSPosition": { + "line": 0, + "character": 23 + }, + "Name": "5", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc new file mode 100644 index 0000000000..c864ef9b5e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc @@ -0,0 +1,38 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassIncomplete.ts === +// class { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 0, + "LSPosition": { + "line": 0, + "character": 0 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "2", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc new file mode 100644 index 0000000000..d681656d03 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc @@ -0,0 +1,407 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassMethod.ts === +// class c { +// public publicMethod() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.publicMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// private privateMethod() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.privateMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected protectedMethod() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.protectedMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// static staticMethod() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.staticMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// private static privateStaticMethod() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.privateStaticMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected static protectedStaticMethod() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.protectedStaticMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// method() { +// this.publicMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.publicMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.privateMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.privateMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.protectedMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.protectedMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.staticMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.privateStaticMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.privateStaticMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.protectedStaticMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.protectedStaticMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance = new c(); +// cInstance.publicMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.publicMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticMethod(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.staticMethod(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.publicMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 52, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.privateMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.protectedMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 119, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.staticMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 157, + "LSPosition": { + "line": 5, + "character": 19 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.privateStaticMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 204, + "LSPosition": { + "line": 6, + "character": 21 + }, + "Name": "41", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.protectedStaticMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 260, + "LSPosition": { + "line": 8, + "character": 13 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.publicMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 289, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.privateMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "61", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.protectedMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 348, + "LSPosition": { + "line": 11, + "character": 10 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.staticMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 374, + "LSPosition": { + "line": 12, + "character": 10 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.privateStaticMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 407, + "LSPosition": { + "line": 13, + "character": 10 + }, + "Name": "81", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.protectedStaticMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 465, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 475, + "LSPosition": { + "line": 17, + "character": 10 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.publicMethod(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 491, + "LSPosition": { + "line": 18, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 493, + "LSPosition": { + "line": 18, + "character": 2 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.staticMethod(): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc new file mode 100644 index 0000000000..3842a8b06c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc @@ -0,0 +1,407 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsClassProperty.ts === +// class c { +// public publicProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private privateProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected protectedProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// static staticProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// private static privateStaticProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected static protectedStaticProperty: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// method() { +// this.publicProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.privateProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.privateProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.protectedProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.protectedProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.privateStaticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.privateStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.protectedStaticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.protectedStaticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance = new c(); +// cInstance.publicProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.publicProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// c.staticProperty; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) c.staticProperty: string +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 96, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 134, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 177, + "LSPosition": { + "line": 5, + "character": 19 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 229, + "LSPosition": { + "line": 6, + "character": 21 + }, + "Name": "41", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 290, + "LSPosition": { + "line": 8, + "character": 13 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.privateProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 349, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "61", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.protectedProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 378, + "LSPosition": { + "line": 11, + "character": 10 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.staticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 404, + "LSPosition": { + "line": 12, + "character": 10 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.privateStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 437, + "LSPosition": { + "line": 13, + "character": 10 + }, + "Name": "81", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.protectedStaticProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 495, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 505, + "LSPosition": { + "line": 17, + "character": 10 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.publicProperty: string\n```\n" + } + } + }, + { + "marker": { + "Position": 521, + "LSPosition": { + "line": 18, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 523, + "LSPosition": { + "line": 18, + "character": 2 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) c.staticProperty: string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc new file mode 100644 index 0000000000..e347d4617f --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc @@ -0,0 +1,409 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsConst.ts === +// const a = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo() { +// const b = a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const b: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (b) { +// const b1 = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const b1: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// module m { +// const c = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const c: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// export const d = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const d: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (c) { +// const e = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const e: 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// const f: () => number = () => 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const g = f; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const g: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const h: { (a: string): number; (a: number): string; } = a => a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// const i = h; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const i: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: 10\n```\n" + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 10 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst b: 10\n```\n" + } + } + }, + { + "marker": { + "Position": 45, + "LSPosition": { + "line": 2, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: 10\n```\n" + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 4, + "character": 14 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst b1: 10\n```\n" + } + } + }, + { + "marker": { + "Position": 113, + "LSPosition": { + "line": 8, + "character": 10 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst c: 10\n```\n" + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 9, + "character": 17 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst d: 10\n```\n" + } + } + }, + { + "marker": { + "Position": 173, + "LSPosition": { + "line": 11, + "character": 14 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst e: 10\n```\n" + } + } + }, + { + "marker": { + "Position": 195, + "LSPosition": { + "line": 14, + "character": 6 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 229, + "LSPosition": { + "line": 15, + "character": 6 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst g: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 233, + "LSPosition": { + "line": 15, + "character": 10 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 236, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 247, + "LSPosition": { + "line": 17, + "character": 6 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 312, + "LSPosition": { + "line": 18, + "character": 6 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst i: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 316, + "LSPosition": { + "line": 18, + "character": 10 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 19, + "character": 0 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 326, + "LSPosition": { + "line": 20, + "character": 0 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc new file mode 100644 index 0000000000..a6943094df --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc @@ -0,0 +1,742 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum1.ts === +// enum E { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// e1, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e2 = 10, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e3 +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance: E; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// const enum constE { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// e1, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e2 = 10, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// e3 +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance1: constE; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 34, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 43, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 5, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 6, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 69, + "LSPosition": { + "line": 6, + "character": 12 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 71, + "LSPosition": { + "line": 6, + "character": 14 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 87, + "LSPosition": { + "line": 7, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 89, + "LSPosition": { + "line": 7, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 93, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 8, + "character": 12 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 107, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 135, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 156, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 165, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 177, + "LSPosition": { + "line": 14, + "character": 16 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 185, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 198, + "LSPosition": { + "line": 15, + "character": 13 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 205, + "LSPosition": { + "line": 15, + "character": 20 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 209, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 222, + "LSPosition": { + "line": 16, + "character": 13 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 229, + "LSPosition": { + "line": 16, + "character": 20 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 233, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 246, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 253, + "LSPosition": { + "line": 17, + "character": 20 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc new file mode 100644 index 0000000000..b779d9db5b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc @@ -0,0 +1,742 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum2.ts === +// enum E { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance: E; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E.e3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// const enum constE { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance1: constE; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE.e3; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 23, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 38, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 60, + "LSPosition": { + "line": 5, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 6, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 6, + "character": 12 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 6, + "character": 14 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 81, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 93, + "LSPosition": { + "line": 7, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 95, + "LSPosition": { + "line": 7, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 99, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 111, + "LSPosition": { + "line": 8, + "character": 12 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 113, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 128, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 141, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 151, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 166, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 177, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 189, + "LSPosition": { + "line": 14, + "character": 16 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 197, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 210, + "LSPosition": { + "line": 15, + "character": 13 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 217, + "LSPosition": { + "line": 15, + "character": 20 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 221, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 234, + "LSPosition": { + "line": 16, + "character": 13 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 241, + "LSPosition": { + "line": 16, + "character": 20 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 245, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 265, + "LSPosition": { + "line": 17, + "character": 20 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc new file mode 100644 index 0000000000..e158a55c64 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc @@ -0,0 +1,742 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum3.ts === +// enum E { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance: E; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E["e1"]; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E["e2"]; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance = E['e3']; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance: E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum E +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) E.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// const enum constE { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e1", +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// 'e2' = 10, +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// "e3" +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var eInstance1: constE; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE["e1"]; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e1 = 0 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE["e2"]; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e2 = 10 +// | ``` +// | +// | ---------------------------------------------------------------------- +// eInstance1 = constE['e3']; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var eInstance1: constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | enum constE +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) constE.e3 = 11 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 23, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 38, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 60, + "LSPosition": { + "line": 5, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 6, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 6, + "character": 12 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 6, + "character": 14 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 84, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 96, + "LSPosition": { + "line": 7, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 98, + "LSPosition": { + "line": 7, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance: E\n```\n" + } + } + }, + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 8, + "character": 12 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum E\n```\n" + } + } + }, + { + "marker": { + "Position": 119, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) E.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 137, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 150, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 160, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 175, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + } + } + }, + { + "marker": { + "Position": 186, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 198, + "LSPosition": { + "line": 14, + "character": 16 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 206, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 219, + "LSPosition": { + "line": 15, + "character": 13 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 226, + "LSPosition": { + "line": 15, + "character": 20 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" + } + } + }, + { + "marker": { + "Position": 233, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 246, + "LSPosition": { + "line": 16, + "character": 13 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 253, + "LSPosition": { + "line": 16, + "character": 20 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" + } + } + }, + { + "marker": { + "Position": 260, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar eInstance1: constE\n```\n" + } + } + }, + { + "marker": { + "Position": 273, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nenum constE\n```\n" + } + } + }, + { + "marker": { + "Position": 280, + "LSPosition": { + "line": 17, + "character": 20 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc new file mode 100644 index 0000000000..2dd6b63672 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc @@ -0,0 +1,58 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsEnum4.ts === +// const enum Foo { +// "\t" = 9, +// "\u007f" = 127, +// } +// Foo["\t"] +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) typeof Foo["\t"] = 9 +// | ``` +// | +// | ---------------------------------------------------------------------- +// Foo["\u007f"] +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (enum member) typeof Foo[""] = 127 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 51, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) typeof Foo[\"\\t\"] = 9\n```\n" + } + } + }, + { + "marker": { + "Position": 61, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(enum member) typeof Foo[\"\"] = 127\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc new file mode 100644 index 0000000000..6876a51533 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc @@ -0,0 +1,104 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsExternalModuleAlias_file1.ts === +// import a1 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*mod1*/. +// | ---------------------------------------------------------------------- +// new a1.m1.c(); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// export import a2 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*mod2*/. +// | ---------------------------------------------------------------------- +// new a2.m1.c(); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*4*/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 7, + "LSPosition": { + "line": 0, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 20, + "LSPosition": { + "line": 0, + "character": 20 + }, + "Name": "mod1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 102, + "LSPosition": { + "line": 2, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 115, + "LSPosition": { + "line": 2, + "character": 27 + }, + "Name": "mod2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 172, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc new file mode 100644 index 0000000000..9eb32d25c6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc @@ -0,0 +1,416 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsExternalModules.ts === +// export namespace m { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// export var a = m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var b: typeof m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// export namespace m1.m2 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*9*/. +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// export var x = m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var y: typeof m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var y: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 0, + "character": 17 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 120, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: typeof m\n```\n" + } + } + }, + { + "marker": { + "Position": 124, + "LSPosition": { + "line": 4, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: typeof m\n```\n" + } + } + }, + { + "marker": { + "Position": 148, + "LSPosition": { + "line": 5, + "character": 21 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 168, + "LSPosition": { + "line": 6, + "character": 17 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + } + } + }, + { + "marker": { + "Position": 171, + "LSPosition": { + "line": 6, + "character": 20 + }, + "Name": "9", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 184, + "LSPosition": { + "line": 7, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 232, + "LSPosition": { + "line": 8, + "character": 15 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 275, + "LSPosition": { + "line": 10, + "character": 11 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: typeof m1.m2\n```\n" + } + } + }, + { + "marker": { + "Position": 279, + "LSPosition": { + "line": 10, + "character": 15 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + } + } + }, + { + "marker": { + "Position": 282, + "LSPosition": { + "line": 10, + "character": 18 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + } + } + }, + { + "marker": { + "Position": 297, + "LSPosition": { + "line": 11, + "character": 11 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar y: typeof m1.m2\n```\n" + } + } + }, + { + "marker": { + "Position": 307, + "LSPosition": { + "line": 11, + "character": 21 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + } + } + }, + { + "marker": { + "Position": 310, + "LSPosition": { + "line": 11, + "character": 24 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc new file mode 100644 index 0000000000..a4f8ae7fc3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc @@ -0,0 +1,370 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsFunction.ts === +// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// function foowithoverload(a: string): string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: number): number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: any): any { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// function foowith3overload(a: string): string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: number): number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: boolean): boolean; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: any): any { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// foo("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(true); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + } + } + }, + { + "marker": { + "Position": 121, + "LSPosition": { + "line": 2, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 166, + "LSPosition": { + "line": 3, + "character": 9 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 211, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 267, + "LSPosition": { + "line": 7, + "character": 9 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 313, + "LSPosition": { + "line": 8, + "character": 9 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 359, + "LSPosition": { + "line": 9, + "character": 9 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 407, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 455, + "LSPosition": { + "line": 13, + "character": 0 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + } + } + }, + { + "marker": { + "Position": 469, + "LSPosition": { + "line": 14, + "character": 0 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" + } + } + }, + { + "marker": { + "Position": 495, + "LSPosition": { + "line": 15, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 516, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" + } + } + }, + { + "marker": { + "Position": 543, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 565, + "LSPosition": { + "line": 18, + "character": 0 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc new file mode 100644 index 0000000000..86455d0563 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc @@ -0,0 +1,156 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsFunctionExpression.ts === +// var x = function foo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: () => void +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// }; +// var y = function () { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var y: () => void +// | ``` +// | +// | ---------------------------------------------------------------------- +// }; +// (function foo1() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo1(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo1(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo1(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// })(); +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: () => void\n```\n" + } + } + }, + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 0, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 43, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar y: () => void\n```\n" + } + } + }, + { + "marker": { + "Position": 74, + "LSPosition": { + "line": 5, + "character": 10 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo1(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 87, + "LSPosition": { + "line": 6, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo1(): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc new file mode 100644 index 0000000000..4fdac11c6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc @@ -0,0 +1,72 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsFunctionIncomplete.ts === +// function (param: string) { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// }\ +// function { +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*4*/. +// | ---------------------------------------------------------------------- +// }\ +[ + { + "marker": { + "Position": 0, + "LSPosition": { + "line": 0, + "character": 0 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 30, + "LSPosition": { + "line": 2, + "character": 0 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 39, + "LSPosition": { + "line": 2, + "character": 9 + }, + "Name": "4", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc new file mode 100644 index 0000000000..0683b75288 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc @@ -0,0 +1,79 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsInterface.ts === +// interface i { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface i +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var iInstance: i; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: i +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface i +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface i\n```\n" + } + } + }, + { + "marker": { + "Position": 20, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: i\n```\n" + } + } + }, + { + "marker": { + "Position": 31, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface i\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc new file mode 100644 index 0000000000..5263452b01 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc @@ -0,0 +1,230 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsInterfaceMembers.ts === +// interface I { +// property: string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) I.property: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// method(): string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method(): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// (): string; +// new (): I; +// } +// var iInstance: I; +// iInstance.property = iInstance.method(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) I.property: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method(): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// iInstance(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// var anotherInstance = new iInstance(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var anotherInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iInstance: I +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 18, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) I.property: string\n```\n" + } + } + }, + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method(): string\n```\n" + } + } + }, + { + "marker": { + "Position": 109, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + } + } + }, + { + "marker": { + "Position": 119, + "LSPosition": { + "line": 7, + "character": 10 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) I.property: string\n```\n" + } + } + }, + { + "marker": { + "Position": 130, + "LSPosition": { + "line": 7, + "character": 21 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + } + } + }, + { + "marker": { + "Position": 140, + "LSPosition": { + "line": 7, + "character": 31 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method(): string\n```\n" + } + } + }, + { + "marker": { + "Position": 150, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + } + } + }, + { + "marker": { + "Position": 167, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar anotherInstance: I\n```\n" + } + } + }, + { + "marker": { + "Position": 189, + "LSPosition": { + "line": 9, + "character": 26 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iInstance: I\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc new file mode 100644 index 0000000000..5f209327b5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc @@ -0,0 +1,210 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsInternalModuleAlias.ts === +// module m.m1 { +// export class c { +// } +// } +// module m2 { +// import a1 = m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a1.m1.c(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// import a2 = m.m1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a2.c(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// export import a3 = m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a3.m1.c(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// export import a4 = m.m1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// new a4.c(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (alias) namespace m.m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 66, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 82, + "LSPosition": { + "line": 6, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 104, + "LSPosition": { + "line": 7, + "character": 11 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + } + } + }, + { + "marker": { + "Position": 123, + "LSPosition": { + "line": 8, + "character": 8 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + } + } + }, + { + "marker": { + "Position": 149, + "LSPosition": { + "line": 9, + "character": 18 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 165, + "LSPosition": { + "line": 10, + "character": 8 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 194, + "LSPosition": { + "line": 11, + "character": 18 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + } + } + }, + { + "marker": { + "Position": 213, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(alias) namespace m.m1\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc new file mode 100644 index 0000000000..b1241d1974 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc @@ -0,0 +1,409 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsLet.ts === +// let a = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo() { +// let b = a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let b: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (b) { +// let b1 = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let b1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// module m { +// let c = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let c: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export let d = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let d: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// if (c) { +// let e = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let e: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// let f: () => number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// let g = f; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let g: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// let h: { (a: string): number; (a: number): string; }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// let i = h; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let i: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet a: number\n```\n" + } + } + }, + { + "marker": { + "Position": 37, + "LSPosition": { + "line": 2, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet b: number\n```\n" + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet a: number\n```\n" + } + } + }, + { + "marker": { + "Position": 69, + "LSPosition": { + "line": 4, + "character": 12 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet b1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 8, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet c: number\n```\n" + } + } + }, + { + "marker": { + "Position": 128, + "LSPosition": { + "line": 9, + "character": 15 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet d: number\n```\n" + } + } + }, + { + "marker": { + "Position": 161, + "LSPosition": { + "line": 11, + "character": 12 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet e: number\n```\n" + } + } + }, + { + "marker": { + "Position": 181, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 202, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet g: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 206, + "LSPosition": { + "line": 15, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 209, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 218, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 272, + "LSPosition": { + "line": 18, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet i: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 276, + "LSPosition": { + "line": 18, + "character": 8 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 279, + "LSPosition": { + "line": 19, + "character": 0 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 286, + "LSPosition": { + "line": 20, + "character": 0 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc new file mode 100644 index 0000000000..0aa3ae36d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc @@ -0,0 +1,257 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsLiteralLikeNames01.ts === +// class C { +// public 1() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C[1](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// private Infinity() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.Infinity(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// protected NaN() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.NaN(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// static "stringLiteralName"() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C["stringLiteralName"](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// method() { +// this[1](); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C[1](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this["1"](); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C[1](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.Infinity(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.Infinity(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this["Infinity"](); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.Infinity(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// this.NaN(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.NaN(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// C.stringLiteralName(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C["stringLiteralName"](): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 21, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[1](): void\n```\n" + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.Infinity(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 70, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.NaN(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 91, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" + } + } + }, + { + "marker": { + "Position": 145, + "LSPosition": { + "line": 6, + "character": 13 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[1](): void\n```\n" + } + } + }, + { + "marker": { + "Position": 164, + "LSPosition": { + "line": 7, + "character": 13 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[1](): void\n```\n" + } + } + }, + { + "marker": { + "Position": 185, + "LSPosition": { + "line": 8, + "character": 13 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.Infinity(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 210, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.Infinity(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 238, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.NaN(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 255, + "LSPosition": { + "line": 11, + "character": 10 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc new file mode 100644 index 0000000000..09021e94d2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc @@ -0,0 +1,421 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsLocalFunction.ts === +// function outerFoo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function outerFoo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// function foowithoverload(a: string): string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: number): number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowithoverload(a: any): any { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// function foowith3overload(a: string): string; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: number): number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: boolean): boolean; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foowith3overload(a: any): any { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | function foowith3overload(a: number): number +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// } +// foo("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowithoverload(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowithoverload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: string): string +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foowith3overload(true); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foowith3overload(a: boolean): boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// outerFoo(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function outerFoo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction outerFoo(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 35, + "LSPosition": { + "line": 1, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + } + } + }, + { + "marker": { + "Position": 155, + "LSPosition": { + "line": 3, + "character": 13 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 204, + "LSPosition": { + "line": 4, + "character": 13 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 253, + "LSPosition": { + "line": 5, + "character": 13 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 321, + "LSPosition": { + "line": 8, + "character": 13 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 371, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 421, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 473, + "LSPosition": { + "line": 11, + "character": 13 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 533, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" + } + } + }, + { + "marker": { + "Position": 551, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" + } + } + }, + { + "marker": { + "Position": 581, + "LSPosition": { + "line": 16, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 606, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" + } + } + }, + { + "marker": { + "Position": 637, + "LSPosition": { + "line": 18, + "character": 4 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" + } + } + }, + { + "marker": { + "Position": 663, + "LSPosition": { + "line": 19, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" + } + } + }, + { + "marker": { + "Position": 689, + "LSPosition": { + "line": 21, + "character": 0 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction outerFoo(): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc new file mode 100644 index 0000000000..e53d6f58bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc @@ -0,0 +1,416 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsModules.ts === +// namespace m { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var a = m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// var b: typeof m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: typeof m +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m +// | ``` +// | +// | ---------------------------------------------------------------------- +// namespace m1.m2 { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*9*/. +// | ---------------------------------------------------------------------- +// var namespaceElemWithoutExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithoutExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var namespaceElemWithExport = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var namespaceElemWithExport: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var x = m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// var y: typeof m1.m2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var y: typeof m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | namespace m1.m2 +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 1, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 70, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 106, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: typeof m\n```\n" + } + } + }, + { + "marker": { + "Position": 110, + "LSPosition": { + "line": 4, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: typeof m\n```\n" + } + } + }, + { + "marker": { + "Position": 127, + "LSPosition": { + "line": 5, + "character": 14 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m\n```\n" + } + } + }, + { + "marker": { + "Position": 140, + "LSPosition": { + "line": 6, + "character": 10 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + } + } + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 6, + "character": 13 + }, + "Name": "9", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 156, + "LSPosition": { + "line": 7, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 204, + "LSPosition": { + "line": 8, + "character": 15 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" + } + } + }, + { + "marker": { + "Position": 240, + "LSPosition": { + "line": 10, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: typeof m1.m2\n```\n" + } + } + }, + { + "marker": { + "Position": 244, + "LSPosition": { + "line": 10, + "character": 8 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + } + } + }, + { + "marker": { + "Position": 247, + "LSPosition": { + "line": 10, + "character": 11 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + } + } + }, + { + "marker": { + "Position": 255, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar y: typeof m1.m2\n```\n" + } + } + }, + { + "marker": { + "Position": 265, + "LSPosition": { + "line": 11, + "character": 14 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1\n```\n" + } + } + }, + { + "marker": { + "Position": 268, + "LSPosition": { + "line": 11, + "character": 17 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nnamespace m1.m2\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc new file mode 100644 index 0000000000..51d767306d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc @@ -0,0 +1,229 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsParameters.ts === +// /** @return *crunch* */ +// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void +// | ``` +// | +// | +// | *@return* — *crunch* +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) param: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) optionalParam: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) paramWithInitializer: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) restParam: string[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// param = "Hello"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) param: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// optionalParam = "World"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) optionalParam: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// paramWithInitializer = "Hello"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) paramWithInitializer: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// restParam[0] = "World"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) restParam: string[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 33, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n\n\n*@return* — *crunch* " + } + } + }, + { + "marker": { + "Position": 37, + "LSPosition": { + "line": 1, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) param: string\n```\n" + } + } + }, + { + "marker": { + "Position": 52, + "LSPosition": { + "line": 1, + "character": 28 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) optionalParam: string\n```\n" + } + } + }, + { + "marker": { + "Position": 76, + "LSPosition": { + "line": 1, + "character": 52 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" + } + } + }, + { + "marker": { + "Position": 111, + "LSPosition": { + "line": 1, + "character": 87 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) restParam: string[]\n```\n" + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) param: string\n```\n" + } + } + }, + { + "marker": { + "Position": 159, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) optionalParam: string\n```\n" + } + } + }, + { + "marker": { + "Position": 188, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" + } + } + }, + { + "marker": { + "Position": 224, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) restParam: string[]\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc new file mode 100644 index 0000000000..db7ccbdd05 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc @@ -0,0 +1,152 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeAlias.ts === +// class c { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// type t1 = c; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type t1 = c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cInstance: t1 = new c(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type t1 = c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 2, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype t1 = c\n```\n" + } + } + }, + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 2, + "character": 10 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 3, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype t1 = c\n```\n" + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 3, + "character": 24 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc new file mode 100644 index 0000000000..0c212ea09e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc @@ -0,0 +1,1008 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInClass.ts === +// class c { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(a: T) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c(a: T): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// method(a: U, b: T) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.method(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance = new c("Hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c(a: string): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cVal = c; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cVal: typeof c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// cInstance.method("hello", "cello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c.method<"hello">(a: "hello", b: string): "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// class c2> { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor(a: T) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c2>(a: T): c2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// method>(a: U, b: T) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c2.method>(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends c +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// var cInstance1 = new c2(cInstance); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance1: c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor c2>(a: c): c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// var cVal2 = c2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cVal2: typeof c2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// cInstance1.method(cInstance, cInstance); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance1: c2> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) c2.method>(a: c, b: c): c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var cInstance: c +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 8, + "LSPosition": { + "line": 0, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c(a: T): c\n```\n" + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 16 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: T\n```\n" + } + } + }, + { + "marker": { + "Position": 32, + "LSPosition": { + "line": 1, + "character": 19 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 47, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.method(a: U, b: T): U\n```\n" + } + } + }, + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 3, + "character": 11 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 60, + "LSPosition": { + "line": 3, + "character": 17 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 3, + "character": 20 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 66, + "LSPosition": { + "line": 3, + "character": 23 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 4, + "character": 15 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 101, + "LSPosition": { + "line": 7, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 117, + "LSPosition": { + "line": 7, + "character": 20 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c(a: string): c\n```\n" + } + } + }, + { + "marker": { + "Position": 133, + "LSPosition": { + "line": 8, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cVal: typeof c\n```\n" + } + } + }, + { + "marker": { + "Position": 140, + "LSPosition": { + "line": 8, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 9, + "character": 0 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 153, + "LSPosition": { + "line": 9, + "character": 10 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" + } + } + }, + { + "marker": { + "Position": 185, + "LSPosition": { + "line": 10, + "character": 6 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c2>\n```\n" + } + } + }, + { + "marker": { + "Position": 188, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends c\n```\n" + } + } + }, + { + "marker": { + "Position": 198, + "LSPosition": { + "line": 10, + "character": 19 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 215, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c2>(a: T): c2\n```\n" + } + } + }, + { + "marker": { + "Position": 227, + "LSPosition": { + "line": 11, + "character": 16 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: T\n```\n" + } + } + }, + { + "marker": { + "Position": 230, + "LSPosition": { + "line": 11, + "character": 19 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends c\n```\n" + } + } + }, + { + "marker": { + "Position": 245, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c2.method>(a: U, b: T): U\n```\n" + } + } + }, + { + "marker": { + "Position": 252, + "LSPosition": { + "line": 13, + "character": 11 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends c\n```\n" + } + } + }, + { + "marker": { + "Position": 262, + "LSPosition": { + "line": 13, + "character": 21 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c\n```\n" + } + } + }, + { + "marker": { + "Position": 273, + "LSPosition": { + "line": 13, + "character": 32 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 276, + "LSPosition": { + "line": 13, + "character": 35 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends c\n```\n" + } + } + }, + { + "marker": { + "Position": 279, + "LSPosition": { + "line": 13, + "character": 38 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 282, + "LSPosition": { + "line": 13, + "character": 41 + }, + "Name": "31", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends c\n```\n" + } + } + }, + { + "marker": { + "Position": 302, + "LSPosition": { + "line": 14, + "character": 15 + }, + "Name": "32", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 317, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "33", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance1: c2>\n```\n" + } + } + }, + { + "marker": { + "Position": 334, + "LSPosition": { + "line": 17, + "character": 21 + }, + "Name": "34", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor c2>(a: c): c2>\n```\n" + } + } + }, + { + "marker": { + "Position": 337, + "LSPosition": { + "line": 17, + "character": 24 + }, + "Name": "35", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 353, + "LSPosition": { + "line": 18, + "character": 4 + }, + "Name": "36", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cVal2: typeof c2\n```\n" + } + } + }, + { + "marker": { + "Position": 361, + "LSPosition": { + "line": 18, + "character": 12 + }, + "Name": "37", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass c2>\n```\n" + } + } + }, + { + "marker": { + "Position": 365, + "LSPosition": { + "line": 19, + "character": 0 + }, + "Name": "38", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance1: c2>\n```\n" + } + } + }, + { + "marker": { + "Position": 376, + "LSPosition": { + "line": 19, + "character": 11 + }, + "Name": "39", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) c2.method>(a: c, b: c): c\n```\n" + } + } + }, + { + "marker": { + "Position": 383, + "LSPosition": { + "line": 19, + "character": 18 + }, + "Name": "40", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + }, + { + "marker": { + "Position": 394, + "LSPosition": { + "line": 19, + "character": 29 + }, + "Name": "41", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar cInstance: c\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc new file mode 100644 index 0000000000..89635c55b6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc @@ -0,0 +1,300 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInFunction.ts === +// function foo(a: U) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(a: U): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// foo("Hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo<"Hello">(a: "Hello"): "Hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo2(a: U) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo2(a: U): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +// return a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// foo2("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo2<"hello">(a: "hello"): "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(a: U): U\n```\n" + } + } + }, + { + "marker": { + "Position": 13, + "LSPosition": { + "line": 0, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 16, + "LSPosition": { + "line": 0, + "character": 16 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 19, + "LSPosition": { + "line": 0, + "character": 19 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 35, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 3, + "character": 0 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo<\"Hello\">(a: \"Hello\"): \"Hello\"\n```\n" + } + } + }, + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo2(a: U): U\n```\n" + } + } + }, + { + "marker": { + "Position": 68, + "LSPosition": { + "line": 4, + "character": 14 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends string\n```\n" + } + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 4, + "character": 32 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 89, + "LSPosition": { + "line": 4, + "character": 35 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends string\n```\n" + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 5, + "character": 11 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 110, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo2<\"hello\">(a: \"hello\"): \"hello\"\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc new file mode 100644 index 0000000000..9e7a964b12 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc @@ -0,0 +1,78 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts === +// type MixinCtor = new () => A & { constructor: MixinCtor }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) A +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) A +// | ``` +// | +// | ---------------------------------------------------------------------- +// type MixinCtor = new () => A & { constructor: { constructor: MixinCtor } }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) A +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 30, + "LSPosition": { + "line": 0, + "character": 30 + }, + "Name": "0", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) A\n```\n" + } + } + }, + { + "marker": { + "Position": 59, + "LSPosition": { + "line": 0, + "character": 59 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) A\n```\n" + } + } + }, + { + "marker": { + "Position": 139, + "LSPosition": { + "line": 1, + "character": 74 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) A\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc new file mode 100644 index 0000000000..5d6cb24e7d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc @@ -0,0 +1,1582 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInInterface.ts === +// interface I { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// new (a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// (a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// method(a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var iVal: I; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// new iVal("hello", "hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal("hello", "hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal.method("hello", "hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I.method<"hello">(a: "hello", b: string): "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// interface I1> { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// new >(a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// >(a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// method>(a: U, b: T): U; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I1.method>(a: U, b: T): U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) a: U +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) b: T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) U extends I +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var iVal1: I1>; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | interface I +// | ``` +// | +// | ---------------------------------------------------------------------- +// new iVal1(iVal, iVal); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal1(iVal, iVal); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// iVal1.method(iVal, iVal); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal1: I1> +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) I1.method>(a: I, b: I): I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var iVal: I +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + } + } + }, + { + "marker": { + "Position": 12, + "LSPosition": { + "line": 0, + "character": 12 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 29, + "LSPosition": { + "line": 1, + "character": 12 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 32, + "LSPosition": { + "line": 1, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 35, + "LSPosition": { + "line": 1, + "character": 18 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 38, + "LSPosition": { + "line": 1, + "character": 21 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 42, + "LSPosition": { + "line": 1, + "character": 25 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 50, + "LSPosition": { + "line": 2, + "character": 5 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 53, + "LSPosition": { + "line": 2, + "character": 8 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 56, + "LSPosition": { + "line": 2, + "character": 11 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 59, + "LSPosition": { + "line": 2, + "character": 14 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 62, + "LSPosition": { + "line": 2, + "character": 17 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 66, + "LSPosition": { + "line": 2, + "character": 21 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 73, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method(a: U, b: T): U\n```\n" + } + } + }, + { + "marker": { + "Position": 80, + "LSPosition": { + "line": 3, + "character": 11 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 83, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 3, + "character": 17 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 89, + "LSPosition": { + "line": 3, + "character": 20 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 92, + "LSPosition": { + "line": 3, + "character": 23 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 96, + "LSPosition": { + "line": 3, + "character": 27 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U\n```\n" + } + } + }, + { + "marker": { + "Position": 105, + "LSPosition": { + "line": 5, + "character": 4 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 111, + "LSPosition": { + "line": 5, + "character": 10 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + } + } + }, + { + "marker": { + "Position": 126, + "LSPosition": { + "line": 6, + "character": 4 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 150, + "LSPosition": { + "line": 7, + "character": 0 + }, + "Name": "25", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 174, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "26", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 179, + "LSPosition": { + "line": 8, + "character": 5 + }, + "Name": "27", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" + } + } + }, + { + "marker": { + "Position": 215, + "LSPosition": { + "line": 9, + "character": 10 + }, + "Name": "28", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I1>\n```\n" + } + } + }, + { + "marker": { + "Position": 218, + "LSPosition": { + "line": 9, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 228, + "LSPosition": { + "line": 9, + "character": 23 + }, + "Name": "30", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + } + } + }, + { + "marker": { + "Position": 250, + "LSPosition": { + "line": 10, + "character": 9 + }, + "Name": "31", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 260, + "LSPosition": { + "line": 10, + "character": 19 + }, + "Name": "32", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + } + } + }, + { + "marker": { + "Position": 271, + "LSPosition": { + "line": 10, + "character": 30 + }, + "Name": "33", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 274, + "LSPosition": { + "line": 10, + "character": 33 + }, + "Name": "34", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 277, + "LSPosition": { + "line": 10, + "character": 36 + }, + "Name": "35", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 280, + "LSPosition": { + "line": 10, + "character": 39 + }, + "Name": "36", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 284, + "LSPosition": { + "line": 10, + "character": 43 + }, + "Name": "37", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 292, + "LSPosition": { + "line": 11, + "character": 5 + }, + "Name": "38", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 302, + "LSPosition": { + "line": 11, + "character": 15 + }, + "Name": "39", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + } + } + }, + { + "marker": { + "Position": 313, + "LSPosition": { + "line": 11, + "character": 26 + }, + "Name": "40", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 316, + "LSPosition": { + "line": 11, + "character": 29 + }, + "Name": "41", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 319, + "LSPosition": { + "line": 11, + "character": 32 + }, + "Name": "42", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 322, + "LSPosition": { + "line": 11, + "character": 35 + }, + "Name": "43", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 326, + "LSPosition": { + "line": 11, + "character": 39 + }, + "Name": "44", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 333, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "45", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I1.method>(a: U, b: T): U\n```\n" + } + } + }, + { + "marker": { + "Position": 340, + "LSPosition": { + "line": 12, + "character": 11 + }, + "Name": "46", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 350, + "LSPosition": { + "line": 12, + "character": 21 + }, + "Name": "47", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + } + } + }, + { + "marker": { + "Position": 361, + "LSPosition": { + "line": 12, + "character": 32 + }, + "Name": "48", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) a: U\n```\n" + } + } + }, + { + "marker": { + "Position": 364, + "LSPosition": { + "line": 12, + "character": 35 + }, + "Name": "49", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 367, + "LSPosition": { + "line": 12, + "character": 38 + }, + "Name": "50", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) b: T\n```\n" + } + } + }, + { + "marker": { + "Position": 370, + "LSPosition": { + "line": 12, + "character": 41 + }, + "Name": "51", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 374, + "LSPosition": { + "line": 12, + "character": 45 + }, + "Name": "52", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) U extends I\n```\n" + } + } + }, + { + "marker": { + "Position": 383, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "53", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + } + } + }, + { + "marker": { + "Position": 390, + "LSPosition": { + "line": 14, + "character": 11 + }, + "Name": "54", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I1>\n```\n" + } + } + }, + { + "marker": { + "Position": 393, + "LSPosition": { + "line": 14, + "character": 14 + }, + "Name": "55", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ninterface I\n```\n" + } + } + }, + { + "marker": { + "Position": 409, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "56", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + } + } + }, + { + "marker": { + "Position": 415, + "LSPosition": { + "line": 15, + "character": 10 + }, + "Name": "57", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 421, + "LSPosition": { + "line": 15, + "character": 16 + }, + "Name": "58", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 428, + "LSPosition": { + "line": 16, + "character": 0 + }, + "Name": "59", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + } + } + }, + { + "marker": { + "Position": 434, + "LSPosition": { + "line": 16, + "character": 6 + }, + "Name": "60", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 440, + "LSPosition": { + "line": 16, + "character": 12 + }, + "Name": "61", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 447, + "LSPosition": { + "line": 17, + "character": 0 + }, + "Name": "62", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal1: I1>\n```\n" + } + } + }, + { + "marker": { + "Position": 453, + "LSPosition": { + "line": 17, + "character": 6 + }, + "Name": "63", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) I1.method>(a: I, b: I): I\n```\n" + } + } + }, + { + "marker": { + "Position": 460, + "LSPosition": { + "line": 17, + "character": 13 + }, + "Name": "64", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + }, + { + "marker": { + "Position": 466, + "LSPosition": { + "line": 17, + "character": 19 + }, + "Name": "65", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar iVal: I\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc new file mode 100644 index 0000000000..bbda7b9577 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc @@ -0,0 +1,150 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsTypeParameterInTypeAlias.ts === +// type List = T[] +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type List = T[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T +// | ``` +// | +// | ---------------------------------------------------------------------- +// type List2 = T[]; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type List2 = T[] +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (type parameter) T extends string +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 5, + "LSPosition": { + "line": 0, + "character": 5 + }, + "Name": "0", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype List = T[]\n```\n" + } + } + }, + { + "marker": { + "Position": 10, + "LSPosition": { + "line": 0, + "character": 10 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 15, + "LSPosition": { + "line": 0, + "character": 15 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T\n```\n" + } + } + }, + { + "marker": { + "Position": 24, + "LSPosition": { + "line": 1, + "character": 5 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype List2 = T[]\n```\n" + } + } + }, + { + "marker": { + "Position": 30, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends string\n```\n" + } + } + }, + { + "marker": { + "Position": 50, + "LSPosition": { + "line": 1, + "character": 31 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(type parameter) T extends string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc new file mode 100644 index 0000000000..8cd399f48d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc @@ -0,0 +1,56 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsUsing.ts === +// using a = "a"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | using a: "a" +// | ``` +// | +// | ---------------------------------------------------------------------- +// const f = async () => { +// await using b = { async [Symbol.asyncDispose]() {} }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | await using b: { [Symbol.asyncDispose](): Promise; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// }; +[ + { + "marker": { + "Position": 7, + "LSPosition": { + "line": 0, + "character": 7 + }, + "Name": "a", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nusing a: \"a\"\n```\n" + } + } + }, + { + "marker": { + "Position": 55, + "LSPosition": { + "line": 2, + "character": 16 + }, + "Name": "b", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nawait using b: { [Symbol.asyncDispose](): Promise; }\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc new file mode 100644 index 0000000000..e80c22615a --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc @@ -0,0 +1,355 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsVar.ts === +// var a = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// function foo() { +// var b = a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// module m { +// var c = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var c: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// export var d = 10; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var d: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// var f: () => number; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var g = f; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var g: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var f: () => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// var h: { (a: string): number; (a: number): string; }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// var i = h; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var i: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h(10); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// h("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var h: { (a: string): number; (a: number): string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: number\n```\n" + } + } + }, + { + "marker": { + "Position": 37, + "LSPosition": { + "line": 2, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: number\n```\n" + } + } + }, + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 2, + "character": 12 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: number\n```\n" + } + } + }, + { + "marker": { + "Position": 65, + "LSPosition": { + "line": 5, + "character": 8 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar c: number\n```\n" + } + } + }, + { + "marker": { + "Position": 88, + "LSPosition": { + "line": 6, + "character": 15 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar d: number\n```\n" + } + } + }, + { + "marker": { + "Position": 102, + "LSPosition": { + "line": 8, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 123, + "LSPosition": { + "line": 9, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar g: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 127, + "LSPosition": { + "line": 9, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 130, + "LSPosition": { + "line": 10, + "character": 0 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar f: () => number\n```\n" + } + } + }, + { + "marker": { + "Position": 139, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 193, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar i: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 197, + "LSPosition": { + "line": 12, + "character": 8 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 13, + "character": 0 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 207, + "LSPosition": { + "line": 14, + "character": 0 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc new file mode 100644 index 0000000000..f608f7f0c4 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc @@ -0,0 +1,79 @@ +// === QuickInfo === +=== /quickInfoDisplayPartsVarWithStringTypes01.ts === +// let hello: "hello" | 'hello' = "hello"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let hello: "hello" +// | ``` +// | +// | ---------------------------------------------------------------------- +// let world: 'world' = "world"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let world: "world" +// | ``` +// | +// | ---------------------------------------------------------------------- +// let helloOrWorld: "hello" | 'world'; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | let helloOrWorld: "hello" | "world" +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 4, + "LSPosition": { + "line": 0, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet hello: \"hello\"\n```\n" + } + } + }, + { + "marker": { + "Position": 44, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet world: \"world\"\n```\n" + } + } + }, + { + "marker": { + "Position": 74, + "LSPosition": { + "line": 2, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nlet helloOrWorld: \"hello\" | \"world\"\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc new file mode 100644 index 0000000000..58c5d146ec --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc @@ -0,0 +1,61 @@ +// === QuickInfo === +=== /a.js === +// const foo = { +// f1: (params) => { } +// } +// +// function f2(x) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f2(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo.f1({ x, arguments: [] }); +// } +// +// f2(''); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f2(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 50, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f2(x: any): void\n```\n" + } + } + }, + { + "marker": { + "Position": 94, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f2(x: any): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc new file mode 100644 index 0000000000..270ca1246c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc @@ -0,0 +1,57 @@ +// === QuickInfo === +=== /a.js === +// function f(x) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// arguments; +// } +// +// f(''); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 9, + "LSPosition": { + "line": 0, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\n" + } + } + }, + { + "marker": { + "Position": 33, + "LSPosition": { + "line": 4, + "character": 0 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(x: any): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc new file mode 100644 index 0000000000..58e3a82f0b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc @@ -0,0 +1,104 @@ +// === QuickInfo === +=== /quickInfoForConstAssertions.ts === +// const a = { a: 1 } as const; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +// const b = 1 as const; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +// const c = "c" as const; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +// const d = [1, 2] as const; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type const +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 0, + "character": 22 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + } + } + }, + { + "marker": { + "Position": 44, + "LSPosition": { + "line": 1, + "character": 15 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + } + } + }, + { + "marker": { + "Position": 68, + "LSPosition": { + "line": 2, + "character": 17 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + } + } + }, + { + "marker": { + "Position": 95, + "LSPosition": { + "line": 3, + "character": 20 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype const\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc new file mode 100644 index 0000000000..ad5bd08794 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc @@ -0,0 +1,81 @@ +// === QuickInfo === +=== /quickInfoForJSDocCodefence.ts === +// /** +// * @example +// * ``` +// * 1 + 2 +// * ``` +// */ +// function foo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): string +// | ``` +// | +// | +// | *@example* +// | ``` +// | 1 + 2 +// | ``` +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @example +// * `` +// * 1 + 2 +// * ` +// */ +// function boo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function boo(): string +// | ``` +// | +// | +// | *@example* — `` +// | 1 + 2 +// | ` +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +[ + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example*\n```\n1 + 2\n```\n" + } + } + }, + { + "marker": { + "Position": 129, + "LSPosition": { + "line": 15, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction boo(): string\n```\n\n\n*@example* — ``\n1 + 2\n`\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc new file mode 100644 index 0000000000..7f38a922c6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc @@ -0,0 +1,199 @@ +// === QuickInfo === +=== /quickInfoForJSDocUnknownTag.ts === +// /** +// * @example +// * if (true) { +// * foo() +// * } +// */ +// function foo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): string +// | ``` +// | +// | +// | *@example* — if (true) { +// | foo() +// | } +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// @example +// { +// foo() +// } +// */ +// function foo2() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo2(): string +// | ``` +// | +// | +// | *@example* — { +// | foo() +// | } +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @example +// * x y +// * 12345 +// * b +// */ +// function moo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function moo(): string +// | ``` +// | +// | +// | *@example* — x y +// | 12345 +// | b +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @func +// * @example +// * x y +// * 12345 +// * b +// */ +// function boo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function boo(): string +// | ``` +// | +// | +// | *@func* +// | +// | *@example* — x y +// | 12345 +// | b +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +// /** +// * @func +// * @example x y +// * 12345 +// * b +// */ +// function goo() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function goo(): string +// | ``` +// | +// | +// | *@func* +// | +// | *@example* — x y +// | 12345 +// | b +// | +// | ---------------------------------------------------------------------- +// return '2'; +// } +[ + { + "marker": { + "Position": 64, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example* — if (true) {\n foo()\n}\n" + } + } + }, + { + "marker": { + "Position": 134, + "LSPosition": { + "line": 15, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo2(): string\n```\n\n\n*@example* — {\n foo()\n}\n" + } + } + }, + { + "marker": { + "Position": 219, + "LSPosition": { + "line": 24, + "character": 10 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction moo(): string\n```\n\n\n*@example* — x y\n 12345\n b\n" + } + } + }, + { + "marker": { + "Position": 313, + "LSPosition": { + "line": 34, + "character": 10 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction boo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n 12345\n b\n" + } + } + }, + { + "marker": { + "Position": 426, + "LSPosition": { + "line": 43, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction goo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n12345\n b\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc new file mode 100644 index 0000000000..9944a3a07f --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc @@ -0,0 +1,146 @@ +// === QuickInfo === +=== /quickInfoForJSDocWithHttpLinks.js === +// /** @typedef {number} https://wat */ +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// +// /** +// * @typedef {Object} Oops +// * @property {number} https://wass +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// */ +// +// +// /** @callback http://vad */ +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// +// /** @see https://hvad */ +// var see1 = true +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see1: boolean +// | ``` +// | +// | +// | *@see* `https` — ://hvad +// | ---------------------------------------------------------------------- +// +// /** @see {@link https://hva} */ +// var see2 = true +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see2: boolean +// | ``` +// | +// | +// | *@see* — https://hva +// | ---------------------------------------------------------------------- +// +// /** {@link https://hvaD} */ +// var see3 = true +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see3: boolean +// | ``` +// | https://hvaD +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 22, + "LSPosition": { + "line": 0, + "character": 22 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 88, + "LSPosition": { + "line": 4, + "character": 21 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 120, + "LSPosition": { + "line": 8, + "character": 14 + }, + "Name": "3", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 164, + "LSPosition": { + "line": 11, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see1: boolean\n```\n\n\n*@see* `https` — ://hvad " + } + } + }, + { + "marker": { + "Position": 213, + "LSPosition": { + "line": 14, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — https://hva " + } + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 17, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see3: boolean\n```\nhttps://hvaD" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc new file mode 100644 index 0000000000..fcd61bd90e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc @@ -0,0 +1,59 @@ +// === QuickInfo === +=== /quickInfoForJSDocWithHttpLinks.js === +// /** @see {@link https://hva} */ +// var see2 = true +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see2: boolean +// | ``` +// | +// | +// | *@see* — https://hva +// | ---------------------------------------------------------------------- +// +// /** {@link https://hvaD} */ +// var see3 = true +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var see3: boolean +// | ``` +// | https://hvaD +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 36, + "LSPosition": { + "line": 1, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — https://hva " + } + } + }, + { + "marker": { + "Position": 81, + "LSPosition": { + "line": 4, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar see3: boolean\n```\nhttps://hvaD" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc new file mode 100644 index 0000000000..2a6a51a9be --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc @@ -0,0 +1,38 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName03.ts === +// interface Options { +// /** +// * A description of foo +// */ +// foo: string; +// } +// +// function f({ foo }: Options) { +// foo; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var foo: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 8, + "character": 7 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar foo: string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc new file mode 100644 index 0000000000..96f0152680 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc @@ -0,0 +1,68 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName04.ts === +// interface Options { +// /** +// * A description of 'a' +// */ +// a: { +// /** +// * A description of 'b' +// */ +// b: string; +// } +// } +// +// function f({ a, a: { b } }: Options) { +// a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: { b: string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// b; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var b: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 193, + "LSPosition": { + "line": 13, + "character": 5 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: { b: string; }\n```\n" + } + } + }, + { + "marker": { + "Position": 200, + "LSPosition": { + "line": 14, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar b: string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc new file mode 100644 index 0000000000..26b721dc7a --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc @@ -0,0 +1,41 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName05.ts === +// interface A { +// /** +// * A description of a +// */ +// a: number; +// } +// interface B { +// a: string; +// } +// +// function f({ a }: A | B) { +// a; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var a: string | number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 137, + "LSPosition": { + "line": 11, + "character": 5 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar a: string | number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc new file mode 100644 index 0000000000..2abcbd5a35 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc @@ -0,0 +1,46 @@ +// === QuickInfo === +=== /quickInfoForObjectBindingElementName06.ts === +// type Foo = { +// /** +// * Thing is a bar +// */ +// isBar: boolean +// +// /** +// * Thing is a baz +// */ +// isBaz: boolean +// } +// +// function f(): Foo { +// return undefined as any +// } +// +// const { isBaz: isBar } = f(); +// isBar; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const isBar: boolean +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 217, + "LSPosition": { + "line": 17, + "character": 5 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst isBar: boolean\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc new file mode 100644 index 0000000000..d5ab03079f --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc @@ -0,0 +1,47 @@ +// === QuickInfo === +=== /foo.ts === +// /// +// /// +// import.meta; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) ImportMetaExpression.meta: ImportMeta +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 77, + "LSPosition": { + "line": 2, + "character": 2 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 84, + "LSPosition": { + "line": 2, + "character": 9 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) ImportMetaExpression.meta: ImportMeta\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc new file mode 100644 index 0000000000..3e962e1430 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc @@ -0,0 +1,149 @@ +// === QuickInfo === +=== /quickInfoInheritDoc.ts === +// abstract class BaseClass { +// /** +// * Useful description always applicable +// * +// * @returns {string} Useful description of return value always applicable. +// */ +// public static doSomethingUseful(stuff?: any): string { +// throw new Error('Must be implemented by subclass'); +// } +// +// /** +// * BaseClass.func1 +// * @param {any} stuff1 BaseClass.func1.stuff1 +// * @returns {void} BaseClass.func1.returns +// */ +// public static func1(stuff1: any): void { +// } +// +// /** +// * Applicable description always. +// */ +// public static readonly someProperty: string = 'general value'; +// } +// +// +// +// +// class SubClass extends BaseClass { +// +// /** +// * @inheritDoc +// * +// * @param {{ tiger: string; lion: string; }} [mySpecificStuff] Description of my specific parameter. +// */ +// public static doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string +// | ``` +// | +// | +// | *@inheritDoc* +// | +// | *@param* `mySpecificStuff` — Description of my specific parameter. +// | +// | ---------------------------------------------------------------------- +// let useful = ''; +// +// // do something useful to useful +// +// return useful; +// } +// +// /** +// * @inheritDoc +// * @param {any} stuff1 SubClass.func1.stuff1 +// * @returns {void} SubClass.func1.returns +// */ +// public static func1(stuff1: any): void { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) SubClass.func1(stuff1: any): void +// | ``` +// | +// | +// | *@inheritDoc* +// | +// | *@param* `stuff1` — SubClass.func1.stuff1 +// | +// | +// | *@returns* — SubClass.func1.returns +// | +// | ---------------------------------------------------------------------- +// } +// +// /** +// * text over tag +// * @inheritDoc +// * text after tag +// */ +// public static readonly someProperty: string = 'specific to this class value' +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) SubClass.someProperty: string +// | ``` +// | text over tag +// | +// | *@inheritDoc* — text after tag +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 817, + "LSPosition": { + "line": 34, + "character": 18 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string\n```\n\n\n*@inheritDoc*\n\n*@param* `mySpecificStuff` — Description of my specific parameter.\n" + } + } + }, + { + "marker": { + "Position": 1143, + "LSPosition": { + "line": 47, + "character": 18 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) SubClass.func1(stuff1: any): void\n```\n\n\n*@inheritDoc*\n\n*@param* `stuff1` — SubClass.func1.stuff1\n\n\n*@returns* — SubClass.func1.returns\n" + } + } + }, + { + "marker": { + "Position": 1282, + "LSPosition": { + "line": 55, + "character": 27 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) SubClass.someProperty: string\n```\ntext over tag\n\n*@inheritDoc* — text after tag\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc new file mode 100644 index 0000000000..d29548d380 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc @@ -0,0 +1,45 @@ +// === QuickInfo === +=== /quickInfoInheritDoc2.ts === +// class Base { +// /** +// * Base.prop +// */ +// prop: T | undefined; +// } +// +// class SubClass extends Base { +// /** +// * @inheritdoc +// * SubClass.prop +// */ +// prop: T | undefined; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) SubClass.prop: T +// | ``` +// | +// | +// | *@inheritdoc* — SubClass.prop +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 173, + "LSPosition": { + "line": 12, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) SubClass.prop: T\n```\n\n\n*@inheritdoc* — SubClass.prop\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc new file mode 100644 index 0000000000..f76416b1da --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc @@ -0,0 +1,46 @@ +// === QuickInfo === +=== /quickInfoInheritDoc3.ts === +// function getBaseClass() { +// return class Base { +// /** +// * Base.prop +// */ +// prop: string | undefined; +// } +// } +// class SubClass extends getBaseClass() { +// /** +// * @inheritdoc +// * SubClass.prop +// */ +// prop: string | undefined; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) SubClass.prop: string +// | ``` +// | +// | +// | *@inheritdoc* — SubClass.prop +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 237, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) SubClass.prop: string\n```\n\n\n*@inheritdoc* — SubClass.prop\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc new file mode 100644 index 0000000000..fa23158f8c --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc @@ -0,0 +1,40 @@ +// === QuickInfo === +=== /quickInfoInheritDoc4.ts === +// var A: any; +// +// class B extends A { +// /** +// * @inheritdoc +// */ +// static value() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.value(): any +// | ``` +// | +// | +// | *@inheritdoc* +// | ---------------------------------------------------------------------- +// return undefined; +// } +// } +[ + { + "marker": { + "Position": 79, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc new file mode 100644 index 0000000000..f86c973bda --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc @@ -0,0 +1,40 @@ +// === QuickInfo === +=== /quickInfoInheritDoc5.js === +// function A() {} +// +// class B extends A { +// /** +// * @inheritdoc +// */ +// static value() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.value(): any +// | ``` +// | +// | +// | *@inheritdoc* +// | ---------------------------------------------------------------------- +// return undefined; +// } +// } +[ + { + "marker": { + "Position": 83, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc new file mode 100644 index 0000000000..9e651b20ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc @@ -0,0 +1,38 @@ +// === QuickInfo === +=== /quickInfoInheritDoc6.js === +// class B extends UNRESOLVED_VALUE_DEFINITELY_DOES_NOT_EXIST { +// /** +// * @inheritdoc +// */ +// static value() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.value(): any +// | ``` +// | +// | +// | *@inheritdoc* +// | ---------------------------------------------------------------------- +// return undefined; +// } +// } +[ + { + "marker": { + "Position": 107, + "LSPosition": { + "line": 4, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc new file mode 100644 index 0000000000..6bc22d3678 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc @@ -0,0 +1,99 @@ +// === QuickInfo === +=== /quickInfoJSDocAtBeforeSpace.ts === +// /** +// * @return Don't @ me +// */ +// function f() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | +// | +// | *@return* — Don't @ me +// | +// | ---------------------------------------------------------------------- +// /** +// * @return One final @ +// */ +// function g() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function g(): void +// | ``` +// | +// | +// | *@return* — One final @ +// | +// | ---------------------------------------------------------------------- +// /** +// * @return An @ +// * But another line +// */ +// function h() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function h(): void +// | ``` +// | +// | +// | *@return* — An @ +// | But another line +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 39, + "LSPosition": { + "line": 3, + "character": 9 + }, + "Name": "f", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\n\n\n*@return* — Don't @ me\n" + } + } + }, + { + "marker": { + "Position": 87, + "LSPosition": { + "line": 7, + "character": 9 + }, + "Name": "g", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction g(): void\n```\n\n\n*@return* — One final @\n" + } + } + }, + { + "marker": { + "Position": 148, + "LSPosition": { + "line": 12, + "character": 9 + }, + "Name": "h", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction h(): void\n```\n\n\n*@return* — An @\nBut another line\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc new file mode 100644 index 0000000000..cccda6068d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc @@ -0,0 +1,396 @@ +// === QuickInfo === +=== /quickInfoJSDocTags.ts === +// /** +// * This is class Foo. +// * @mytag comment1 comment2 +// */ +// class Foo { +// /** +// * This is the constructor. +// * @myjsdoctag this is a comment +// */ +// constructor(value: number) {} +// /** +// * method1 documentation +// * @mytag comment1 comment2 +// */ +// static method1() {} +// /** +// * @mytag +// */ +// method2() {} +// /** +// * @mytag comment1 comment2 +// */ +// property1: string; +// /** +// * @mytag1 some comments +// * some more comments about mytag1 +// * @mytag2 +// * here all the comments are on a new line +// * @mytag3 +// * @mytag +// */ +// property2: number; +// /** +// * @returns {number} a value +// */ +// method3(): number { return 3; } +// /** +// * @param {string} foo A value. +// * @returns {number} Another value +// * @mytag +// */ +// method4(foo: string): number { return 3; } +// /** @mytag */ +// method5() {} +// /** method documentation +// * @mytag a JSDoc tag +// */ +// newMethod() {} +// } +// var foo = new Foo(4); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | constructor Foo(value: number): Foo +// | ``` +// | This is the constructor. +// | +// | *@myjsdoctag* — this is a comment +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*10*/. +// | ---------------------------------------------------------------------- +// Foo.method1(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class Foo +// | ``` +// | This is class Foo. +// | +// | *@mytag* — comment1 comment2 +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method1(): void +// | ``` +// | method1 documentation +// | +// | *@mytag* — comment1 comment2 +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*11*/. +// | ---------------------------------------------------------------------- +// foo.method2(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method2(): void +// | ``` +// | +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*12*/. +// | ---------------------------------------------------------------------- +// foo.method3(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method3(): number +// | ``` +// | +// | +// | *@returns* — a value +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*13*/. +// | ---------------------------------------------------------------------- +// foo.method4(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method4(foo: string): number +// | ``` +// | +// | +// | *@param* `foo` — A value. +// | +// | +// | *@returns* — Another value +// | +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// foo.property1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo.property1: string +// | ``` +// | +// | +// | *@mytag* — comment1 comment2 +// | +// | ---------------------------------------------------------------------- +// foo.property2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo.property2: number +// | ``` +// | +// | +// | *@mytag1* — some comments +// | some more comments about mytag1 +// | +// | +// | *@mytag2* — here all the comments are on a new line +// | +// | +// | *@mytag3* +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// foo.method5(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Foo.method5(): void +// | ``` +// | +// | +// | *@mytag* +// | ---------------------------------------------------------------------- +// foo.newMet +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*14*/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 977, + "LSPosition": { + "line": 49, + "character": 14 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconstructor Foo(value: number): Foo\n```\nThis is the constructor.\n\n*@myjsdoctag* — this is a comment\n" + } + } + }, + { + "marker": { + "Position": 981, + "LSPosition": { + "line": 49, + "character": 18 + }, + "Name": "10", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 985, + "LSPosition": { + "line": 50, + "character": 0 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass Foo\n```\nThis is class Foo.\n\n*@mytag* — comment1 comment2\n" + } + } + }, + { + "marker": { + "Position": 989, + "LSPosition": { + "line": 50, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method1(): void\n```\nmethod1 documentation\n\n*@mytag* — comment1 comment2\n" + } + } + }, + { + "marker": { + "Position": 997, + "LSPosition": { + "line": 50, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 1004, + "LSPosition": { + "line": 51, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method2(): void\n```\n\n\n*@mytag*" + } + } + }, + { + "marker": { + "Position": 1012, + "LSPosition": { + "line": 51, + "character": 12 + }, + "Name": "12", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 1019, + "LSPosition": { + "line": 52, + "character": 4 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method3(): number\n```\n\n\n*@returns* — a value\n" + } + } + }, + { + "marker": { + "Position": 1027, + "LSPosition": { + "line": 52, + "character": 12 + }, + "Name": "13", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 1034, + "LSPosition": { + "line": 53, + "character": 4 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method4(foo: string): number\n```\n\n\n*@param* `foo` — A value.\n\n\n*@returns* — Another value\n\n\n*@mytag*" + } + } + }, + { + "marker": { + "Position": 1049, + "LSPosition": { + "line": 54, + "character": 4 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo.property1: string\n```\n\n\n*@mytag* — comment1 comment2\n" + } + } + }, + { + "marker": { + "Position": 1064, + "LSPosition": { + "line": 55, + "character": 4 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo.property2: number\n```\n\n\n*@mytag1* — some comments\nsome more comments about mytag1\n\n\n*@mytag2* — here all the comments are on a new line\n\n\n*@mytag3*\n\n*@mytag*" + } + } + }, + { + "marker": { + "Position": 1079, + "LSPosition": { + "line": 56, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Foo.method5(): void\n```\n\n\n*@mytag*" + } + } + }, + { + "marker": { + "Position": 1100, + "LSPosition": { + "line": 57, + "character": 10 + }, + "Name": "14", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc new file mode 100644 index 0000000000..9b7306bd60 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc @@ -0,0 +1,363 @@ +// === QuickInfo === +=== /quickInfoJsDoc.ts === +// /** +// * A constant +// * @deprecated +// */ +// var foo = "foo"; +// +// /** +// * A function +// * @deprecated +// */ +// function fn() { } +// +// /** +// * A class +// * @deprecated +// */ +// class C { +// /** +// * A field +// * @deprecated +// */ +// field = "field"; +// +// /** +// * A getter +// * @deprecated +// */ +// get getter() { +// return; +// } +// +// /** +// * A method +// * @deprecated +// */ +// m() { } +// +// get a() { +// this.field; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.field: string +// | ``` +// | A field +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.getter; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) C.getter: void +// | ``` +// | A getter +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.m(): void +// | ``` +// | A method +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// foo; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var foo: string +// | ``` +// | A constant +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// C/; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class C +// | ``` +// | A class +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// fn(); +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*5*/. +// | ---------------------------------------------------------------------- +// +// return 1; +// } +// +// set a(value: number) { +// this.field; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.field: string +// | ``` +// | A field +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.getter; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) C.getter: void +// | ``` +// | A getter +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// this.m; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.m(): void +// | ``` +// | A method +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// foo; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var foo: string +// | ``` +// | A constant +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// C; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | class C +// | ``` +// | A class +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// fn(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function fn(): void +// | ``` +// | A function +// | +// | *@deprecated* +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 416, + "LSPosition": { + "line": 38, + "character": 18 + }, + "Name": "0", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 437, + "LSPosition": { + "line": 39, + "character": 19 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 453, + "LSPosition": { + "line": 40, + "character": 14 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 466, + "LSPosition": { + "line": 41, + "character": 11 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 477, + "LSPosition": { + "line": 42, + "character": 9 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 492, + "LSPosition": { + "line": 43, + "character": 12 + }, + "Name": "5", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 565, + "LSPosition": { + "line": 49, + "character": 18 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 586, + "LSPosition": { + "line": 50, + "character": 19 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 602, + "LSPosition": { + "line": 51, + "character": 14 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 615, + "LSPosition": { + "line": 52, + "character": 11 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 626, + "LSPosition": { + "line": 53, + "character": 9 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" + } + } + }, + { + "marker": { + "Position": 638, + "LSPosition": { + "line": 54, + "character": 10 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction fn(): void\n```\nA function\n\n*@deprecated*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc new file mode 100644 index 0000000000..19796c5e87 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc @@ -0,0 +1,22 @@ +// === QuickInfo === +=== /b.ts === +// import { A } from "./a"; +// A() +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 26, + "LSPosition": { + "line": 1, + "character": 1 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc new file mode 100644 index 0000000000..ebcd3ed5b1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc @@ -0,0 +1,291 @@ +// === QuickInfo === +=== /quickInfoJsDocGetterSetter.ts === +// class A { +// /** +// * getter A +// * @returns return A +// */ +// get x(): string { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// return ""; +// } +// /** +// * setter A +// * @param value foo A +// * @todo empty jsdoc +// */ +// set x(value) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// } +// // override both getter and setter +// class B extends A { +// /** +// * getter B +// * @returns return B +// */ +// get x(): string { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) B.x: string +// | ``` +// | getter B +// | +// | *@returns* — return B +// | +// | ---------------------------------------------------------------------- +// return ""; +// } +// /** +// * setter B +// * @param value foo B +// */ +// set x(vale) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) B.x: string +// | ``` +// | getter B +// | +// | *@returns* — return B +// | +// | ---------------------------------------------------------------------- +// } +// // not override +// class C extends A { } +// // only override setter +// class D extends A { +// /** +// * setter D +// * @param value foo D +// */ +// set x(val: string) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) D.x: string +// | ``` +// | setter D +// | +// | *@param* `value` — foo D +// | +// | ---------------------------------------------------------------------- +// } +// new A().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// new B().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) B.x: string +// | ``` +// | getter B +// | +// | *@returns* — return B +// | +// | ---------------------------------------------------------------------- +// new C().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) A.x: string +// | ``` +// | getter A +// | +// | *@returns* — return A +// | +// | ---------------------------------------------------------------------- +// new D().x = "1"; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (accessor) D.x: string +// | ``` +// | setter D +// | +// | *@param* `value` — foo D +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 75, + "LSPosition": { + "line": 5, + "character": 8 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + } + } + }, + { + "marker": { + "Position": 205, + "LSPosition": { + "line": 13, + "character": 8 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + } + } + }, + { + "marker": { + "Position": 340, + "LSPosition": { + "line": 21, + "character": 8 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" + } + } + }, + { + "marker": { + "Position": 445, + "LSPosition": { + "line": 28, + "character": 8 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" + } + } + }, + { + "marker": { + "Position": 607, + "LSPosition": { + "line": 38, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" + } + } + }, + { + "marker": { + "Position": 636, + "LSPosition": { + "line": 40, + "character": 8 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + } + } + }, + { + "marker": { + "Position": 653, + "LSPosition": { + "line": 41, + "character": 8 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" + } + } + }, + { + "marker": { + "Position": 670, + "LSPosition": { + "line": 42, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" + } + } + }, + { + "marker": { + "Position": 687, + "LSPosition": { + "line": 43, + "character": 8 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc new file mode 100644 index 0000000000..cea936d462 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc @@ -0,0 +1,684 @@ +// === QuickInfo === +=== /quickInfoJsDocInheritage.ts === +// interface A { +// /** +// * @description A.foo1 +// */ +// foo1: number; +// /** +// * @description A.foo2 +// */ +// foo2: (para1: string) => number; +// } +// +// interface B { +// /** +// * @description B.foo1 +// */ +// foo1: number; +// /** +// * @description B.foo2 +// */ +// foo2: (para2: string) => number; +// } +// +// // implement multi interfaces with duplicate name +// // method for function signature +// class C implements A, B { +// foo1: number = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2(q: string) { return 1 } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.foo2(q: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// // implement multi interfaces with duplicate name +// // property for function signature +// class D implements A, B { +// foo1: number = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2 = (q: string) => { return 1 } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo2: (q: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// new C().foo1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) C.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new C().foo2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.foo2(q: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new D().foo1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new D().foo2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) D.foo2: (q: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// class Base1 { +// /** +// * @description Base1.foo1 +// */ +// foo1: number = 1; +// +// /** +// * +// * @param q Base1.foo2 parameter +// * @returns Base1.foo2 return +// */ +// foo2(q: string) { return 1 } +// } +// +// // extends class and implement interfaces with duplicate name +// // property override method +// class Drived1 extends Base1 implements A { +// foo1: number = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived1.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2(para1: string) { return 1 }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived1.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// // extends class and implement interfaces with duplicate name +// // method override method +// class Drived2 extends Base1 implements B { +// foo1: number = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2 = (para1: string) => { return 1; }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// class Base2 { +// /** +// * @description Base2.foo1 +// */ +// foo1: number = 1; +// /** +// * +// * @param q Base2.foo2 parameter +// * @returns Base2.foo2 return +// */ +// foo2(q: string) { return 1 } +// } +// +// // extends class and implement interfaces with duplicate name +// // property override method +// class Drived3 extends Base2 implements A { +// foo1: number = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived3.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2(para1: string) { return 1 }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived3.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// // extends class and implement interfaces with duplicate name +// // method override method +// class Drived4 extends Base2 implements B { +// foo1: number = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// foo2 = (para1: string) => { return 1; }; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// new Drived1().foo1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived1.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived1().foo2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived1.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived2().foo1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived2().foo2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived2.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived3().foo1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived3.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived3().foo2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Drived3.foo2(para1: string): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived4().foo1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo1: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// new Drived4().foo2; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Drived4.foo2: (para1: string) => number +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 429, + "LSPosition": { + "line": 25, + "character": 4 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 451, + "LSPosition": { + "line": 26, + "character": 4 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" + } + } + }, + { + "marker": { + "Position": 598, + "LSPosition": { + "line": 32, + "character": 4 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 620, + "LSPosition": { + "line": 33, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 666, + "LSPosition": { + "line": 36, + "character": 8 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) C.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 680, + "LSPosition": { + "line": 37, + "character": 8 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" + } + } + }, + { + "marker": { + "Position": 694, + "LSPosition": { + "line": 38, + "character": 8 + }, + "Name": "7", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 708, + "LSPosition": { + "line": 39, + "character": 8 + }, + "Name": "8", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 1069, + "LSPosition": { + "line": 58, + "character": 4 + }, + "Name": "9", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived1.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1091, + "LSPosition": { + "line": 59, + "character": 4 + }, + "Name": "10", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1263, + "LSPosition": { + "line": 65, + "character": 4 + }, + "Name": "11", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1285, + "LSPosition": { + "line": 66, + "character": 4 + }, + "Name": "12", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 1681, + "LSPosition": { + "line": 85, + "character": 4 + }, + "Name": "13", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived3.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1703, + "LSPosition": { + "line": 86, + "character": 4 + }, + "Name": "14", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1875, + "LSPosition": { + "line": 92, + "character": 4 + }, + "Name": "15", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1897, + "LSPosition": { + "line": 93, + "character": 4 + }, + "Name": "16", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 1955, + "LSPosition": { + "line": 96, + "character": 14 + }, + "Name": "17", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived1.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 1975, + "LSPosition": { + "line": 97, + "character": 14 + }, + "Name": "18", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" + } + } + }, + { + "marker": { + "Position": 1995, + "LSPosition": { + "line": 98, + "character": 14 + }, + "Name": "19", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2015, + "LSPosition": { + "line": 99, + "character": 14 + }, + "Name": "20", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" + } + } + }, + { + "marker": { + "Position": 2035, + "LSPosition": { + "line": 100, + "character": 14 + }, + "Name": "21", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived3.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2055, + "LSPosition": { + "line": 101, + "character": 14 + }, + "Name": "22", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" + } + } + }, + { + "marker": { + "Position": 2075, + "LSPosition": { + "line": 102, + "character": 14 + }, + "Name": "23", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo1: number\n```\n" + } + } + }, + { + "marker": { + "Position": 2095, + "LSPosition": { + "line": 103, + "character": 14 + }, + "Name": "24", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc new file mode 100644 index 0000000000..4c6b2c784b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc @@ -0,0 +1,41 @@ +// === QuickInfo === +=== /quickInfoJsDocTags1.ts === +// /** +// * Doc +// * @author Me +// * @augments {C} Augments it +// * @template T A template +// * @type {number | string} A type +// * @typedef {number | string} NumOrStr +// * @property {number} x The prop +// * @param {number} x The param +// * @returns The result +// * @see x (the parameter) +// */ +// function foo(x) {} +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(x: any): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 298, + "LSPosition": { + "line": 12, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(x: any): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc new file mode 100644 index 0000000000..dc3bfddfdc --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc @@ -0,0 +1,41 @@ +// === QuickInfo === +=== /quickInfoJsDocTags10.js === +// /** +// * @param {T1} a +// * @param {T2} a +// * @template T1,T2 Comment Text +// */ +// const foo = (a, b) => {}; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (a: T1, b: any) => void +// | ``` +// | +// | +// | *@param* `a` +// | +// | *@param* `a` +// | +// | *@template* `T1`, `T2` — Comment Text +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 80, + "LSPosition": { + "line": 5, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (a: T1, b: any) => void\n```\n\n\n*@param* `a`\n\n*@param* `a`\n\n*@template* `T1`, `T2` — Comment Text\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc new file mode 100644 index 0000000000..560ff899d5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc @@ -0,0 +1,45 @@ +// === QuickInfo === +=== /quickInfoJsDocTags11.js === +// /** +// * @param {T1} a +// * @param {T2} b +// * @template {number} T1 Comment T1 +// * @template {number} T2 Comment T2 +// */ +// const foo = (a, b) => {}; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (a: T1, b: T2) => void +// | ``` +// | +// | +// | *@param* `a` +// | +// | *@param* `b` +// | +// | *@template* `T1` — Comment T1 +// | +// | +// | *@template* `T2` — Comment T2 +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 120, + "LSPosition": { + "line": 6, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (a: T1, b: T2) => void\n```\n\n\n*@param* `a`\n\n*@param* `b`\n\n*@template* `T1` — Comment T1\n\n\n*@template* `T2` — Comment T2\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc new file mode 100644 index 0000000000..8dd86acbc7 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc @@ -0,0 +1,45 @@ +// === QuickInfo === +=== /quickInfoJsDocTags12.ts === +// /** +// * @param {Object} options the args object +// * @param {number} options.a first number +// * @param {number} options.b second number +// * @param {Function} callback the callback function +// * @returns {number} +// */ +// function f(options, callback = null) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(options: any, callback?: any): void +// | ``` +// | +// | +// | *@param* `options` — the args object +// | +// | +// | *@param* `callback` — the callback function +// | +// | +// | *@returns* +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 218, + "LSPosition": { + "line": 7, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags13.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags13.baseline.jsonc new file mode 100644 index 0000000000..18ca3b5576 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags13.baseline.jsonc @@ -0,0 +1,100 @@ +// === SignatureHelp === +=== /a.js === +// /** +// * First overload +// * @overload +// * @param {number} a +// * @returns {void} +// */ +// +// /** +// * Second overload +// * @overload +// * @param {string} a +// * @returns {void} +// */ +// +// /** +// * @param {string | number} a +// * @returns {void} +// */ +// function f(a) {} +// +// f(1); +// ^ +// | ---------------------------------------------------------------------- +// | f(**a: number**): void +// | ---------------------------------------------------------------------- +// f(""); +// ^ +// | ---------------------------------------------------------------------- +// | f(**a: string**): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 238, + "LSPosition": { + "line": 20, + "character": 2 + }, + "Name": "a", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number): void", + "parameters": [ + { + "label": "a: number" + } + ] + }, + { + "label": "f(a: string): void", + "parameters": [ + { + "label": "a: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 244, + "LSPosition": { + "line": 21, + "character": 2 + }, + "Name": "b", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number): void", + "parameters": [ + { + "label": "a: number" + } + ] + }, + { + "label": "f(a: string): void", + "parameters": [ + { + "label": "a: string" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc new file mode 100644 index 0000000000..2fe294b332 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc @@ -0,0 +1,46 @@ +// === QuickInfo === +=== /quickInfoJsDocTags14.ts === +// /** +// * @param {Object} options the args object +// * @param {number} options.a first number +// * @param {number} options.b second number +// * @param {Object} options.c sub-object +// * @param {number} options.c.d third number +// * @param {Function} callback the callback function +// * @returns {number} +// */ +// function fn(options, callback = null) { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function fn(options: any, callback?: any): void +// | ``` +// | +// | +// | *@param* `options` — the args object +// | +// | +// | *@param* `callback` — the callback function +// | +// | +// | *@returns* +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 302, + "LSPosition": { + "line": 9, + "character": 9 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction fn(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc new file mode 100644 index 0000000000..12b27ff0f2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc @@ -0,0 +1,67 @@ +// === QuickInfo === +=== /b.js === +// import * as _a from "./a.js"; +// /** +// * @implements {_a.Foo} +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// */ +// class C1 { } +// +// /** +// * @extends {_a.Foo} +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// */ +// class C2 { } +// +// /** +// * @augments {_a.Foo} +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*3*/. +// | ---------------------------------------------------------------------- +// */ +// class C3 { } +[ + { + "marker": { + "Position": 56, + "LSPosition": { + "line": 2, + "character": 22 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 99, + "LSPosition": { + "line": 7, + "character": 19 + }, + "Name": "2", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 143, + "LSPosition": { + "line": 12, + "character": 20 + }, + "Name": "3", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc new file mode 100644 index 0000000000..b6c858ac2a --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc @@ -0,0 +1,68 @@ +// === QuickInfo === +=== /quickInfoJsDocTags16.ts === +// class A { +// /** +// * Description text here. +// * +// * @virtual +// */ +// foo() { } +// } +// +// class B extends A { +// override foo() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) B.foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// +// class C extends B { +// override foo() { } +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) C.foo(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +[ + { + "marker": { + "Position": 129, + "LSPosition": { + "line": 10, + "character": 13 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) B.foo(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 175, + "LSPosition": { + "line": 14, + "character": 13 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) C.foo(): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc new file mode 100644 index 0000000000..63802eb7be --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc @@ -0,0 +1,45 @@ +// === QuickInfo === +=== /quickInfoJsDocTags3.ts === +// interface Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @throws {Error} comment +// */ +// method(x: number, y: number): void; +// } +// +// class Bar implements Foo { +// method(): void { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// throw new Error("Method not implemented."); +// } +// } +[ + { + "marker": { + "Position": 290, + "LSPosition": { + "line": 13, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc new file mode 100644 index 0000000000..eff3013da0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc @@ -0,0 +1,48 @@ +// === QuickInfo === +=== /quickInfoJsDocTags4.ts === +// class Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @returns The result +// */ +// method(x: number, y: number): number { +// return x + y; +// } +// } +// +// class Bar extends Foo { +// method(x: number, y: number): number { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(x: number, y: number): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const res = super.method(x, y) + 100; +// return res; +// } +// } +[ + { + "marker": { + "Position": 309, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(x: number, y: number): number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc new file mode 100644 index 0000000000..dfba523d41 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc @@ -0,0 +1,48 @@ +// === QuickInfo === +=== /quickInfoJsDocTags5.js === +// class Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @returns The result +// */ +// method(x, y) { +// return x + y; +// } +// } +// +// class Bar extends Foo { +// method(x, y) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(x: any, y: any): number +// | ``` +// | +// | ---------------------------------------------------------------------- +// const res = super.method(x, y) + 100; +// return res; +// } +// } +[ + { + "marker": { + "Position": 285, + "LSPosition": { + "line": 15, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc new file mode 100644 index 0000000000..98f1da3ac5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc @@ -0,0 +1,51 @@ +// === QuickInfo === +=== /quickInfoJsDocTags6.js === +// class Foo { +// /** +// * comment +// * @author Me +// * @see x (the parameter) +// * @param {number} x - x comment +// * @param {number} y - y comment +// * @returns The result +// */ +// method(x, y) { +// return x + y; +// } +// } +// +// class Bar extends Foo { +// /** @inheritDoc */ +// method(x, y) { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (method) Bar.method(x: any, y: any): number +// | ``` +// | +// | +// | *@inheritDoc* +// | ---------------------------------------------------------------------- +// const res = super.method(x, y) + 100; +// return res; +// } +// } +[ + { + "marker": { + "Position": 308, + "LSPosition": { + "line": 16, + "character": 4 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n\n\n*@inheritDoc*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc new file mode 100644 index 0000000000..5e563c6730 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc @@ -0,0 +1,39 @@ +// === QuickInfo === +=== /quickInfoJsDocTags7.js === +// /** +// * @typedef {{ [x: string]: any, y: number }} Foo +// */ +// +// /** +// * @type {(t: T) => number} +// * @template T +// */ +// const foo = t => t.y; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (t: T) => number +// | ``` +// | +// | +// | *@template* `T` +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 116, + "LSPosition": { + "line": 8, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc new file mode 100644 index 0000000000..a14cc55397 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc @@ -0,0 +1,39 @@ +// === QuickInfo === +=== /quickInfoJsDocTags8.js === +// /** +// * @typedef {{ [x: string]: any, y: number }} Foo +// */ +// +// /** +// * @type {(t: T) => number} +// * @template {Foo} T +// */ +// const foo = t => t.y; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (t: T) => number +// | ``` +// | +// | +// | *@template* `T` +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 8, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc new file mode 100644 index 0000000000..5f0f6ba7ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc @@ -0,0 +1,40 @@ +// === QuickInfo === +=== /quickInfoJsDocTags9.js === +// /** +// * @typedef {{ [x: string]: any, y: number }} Foo +// */ +// +// /** +// * @type {(t: T) => number} +// * @template {Foo} T Comment Text +// */ +// const foo = t => t.y; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: (t: T) => number +// | ``` +// | +// | +// | *@template* `T` — Comment Text +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 135, + "LSPosition": { + "line": 8, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T` — Comment Text\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc new file mode 100644 index 0000000000..50bd2824be --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc @@ -0,0 +1,55 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsCallback.js === +// /** +// * @callback cb +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// * @param {string} x - x comment +// */ +// +// /** +// * @param {cb} bar -callback comment +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type cb = (x: string) => any +// | ``` +// | +// | ---------------------------------------------------------------------- +// */ +// function foo(bar) { +// bar(bar); +// } +[ + { + "marker": { + "Position": 19, + "LSPosition": { + "line": 1, + "character": 15 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 73, + "LSPosition": { + "line": 6, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype cb = (x: string) => any\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc new file mode 100644 index 0000000000..a3a2dce10d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc @@ -0,0 +1,64 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsFunctionOverload01.ts === +// /** +// * Doc foo +// */ +// declare function foo(): void; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | Doc foo +// | ---------------------------------------------------------------------- +// +// /** +// * Doc foo overloaded +// * @tag Tag text +// */ +// declare function foo(x: number): void +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | Doc foo +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 36, + "LSPosition": { + "line": 3, + "character": 17 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" + } + } + }, + { + "marker": { + "Position": 114, + "LSPosition": { + "line": 9, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc new file mode 100644 index 0000000000..2e07a08600 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc @@ -0,0 +1,61 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsFunctionOverload03.ts === +// declare function foo(): void; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /** +// * Doc foo overloaded +// * @tag Tag text +// */ +// declare function foo(x: number): void +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 0, + "character": 17 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" + } + } + }, + { + "marker": { + "Position": 95, + "LSPosition": { + "line": 6, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc new file mode 100644 index 0000000000..3901bb9548 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc @@ -0,0 +1,60 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsFunctionOverload05.ts === +// declare function foo(): void; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// +// /** +// * @tag Tag text +// */ +// declare function foo(x: number): void +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function foo(): void +// | function foo(x: number): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 17, + "LSPosition": { + "line": 0, + "character": 17 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" + } + } + }, + { + "marker": { + "Position": 73, + "LSPosition": { + "line": 5, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc new file mode 100644 index 0000000000..6f98b6a161 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc @@ -0,0 +1,59 @@ +// === QuickInfo === +=== /quickInfoJsDocTagsTypedef.js === +// /** +// * Bar comment +// * @typedef {Object} Bar +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// * @property {string} baz - baz comment +// * @property {string} qux - qux comment +// */ +// +// /** +// * foo comment +// * @param {Bar} x - x comment +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | type Bar = { baz: string; qux: string; } +// | ``` +// | +// | ---------------------------------------------------------------------- +// * @returns {Bar} +// */ +// function foo(x) { +// return x; +// } +[ + { + "marker": { + "Position": 40, + "LSPosition": { + "line": 2, + "character": 21 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 159, + "LSPosition": { + "line": 9, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\ntype Bar = { baz: string; qux: string; }\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTextFormatting1.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTextFormatting1.baseline.jsonc new file mode 100644 index 0000000000..0a70cac362 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocTextFormatting1.baseline.jsonc @@ -0,0 +1,205 @@ +// === SignatureHelp === +=== /quickInfoJsDocTextFormatting1.ts === +// /** +// * @param {number} var1 **Highlighted text** +// * @param {string} var2 Another **Highlighted text** +// */ +// function f1(var1, var2) { } +// +// /** +// * @param {number} var1 *Regular text with an asterisk +// * @param {string} var2 Another *Regular text with an asterisk +// */ +// function f2(var1, var2) { } +// +// /** +// * @param {number} var1 +// * *Regular text with an asterisk +// * @param {string} var2 +// * Another *Regular text with an asterisk +// */ +// function f3(var1, var2) { } +// +// /** +// * @param {number} var1 +// * **Highlighted text** +// * @param {string} var2 +// * Another **Highlighted text** +// */ +// function f4(var1, var2) { } +// +// /** +// * @param {number} var1 +// **Highlighted text** +// * @param {string} var2 +// Another **Highlighted text** +// */ +// function f5(var1, var2) { } +// +// f1(); +// ^ +// | ---------------------------------------------------------------------- +// | f1(**var1: any**, var2: any): void +// | ---------------------------------------------------------------------- +// f2(); +// ^ +// | ---------------------------------------------------------------------- +// | f2(**var1: any**, var2: any): void +// | ---------------------------------------------------------------------- +// f3(); +// ^ +// | ---------------------------------------------------------------------- +// | f3(**var1: any**, var2: any): void +// | ---------------------------------------------------------------------- +// f4(); +// ^ +// | ---------------------------------------------------------------------- +// | f4(**var1: any**, var2: any): void +// | ---------------------------------------------------------------------- +// f5(); +// ^ +// | ---------------------------------------------------------------------- +// | f5(**var1: any**, var2: any): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 737, + "LSPosition": { + "line": 36, + "character": 3 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(var1: any, var2: any): void", + "parameters": [ + { + "label": "var1: any" + }, + { + "label": "var2: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 743, + "LSPosition": { + "line": 37, + "character": 3 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f2(var1: any, var2: any): void", + "parameters": [ + { + "label": "var1: any" + }, + { + "label": "var2: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 749, + "LSPosition": { + "line": 38, + "character": 3 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f3(var1: any, var2: any): void", + "parameters": [ + { + "label": "var1: any" + }, + { + "label": "var2: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 755, + "LSPosition": { + "line": 39, + "character": 3 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f4(var1: any, var2: any): void", + "parameters": [ + { + "label": "var1: any" + }, + { + "label": "var2: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 761, + "LSPosition": { + "line": 40, + "character": 3 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f5(var1: any, var2: any): void", + "parameters": [ + { + "label": "var1: any" + }, + { + "label": "var2: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc new file mode 100644 index 0000000000..f0e4e4aa86 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc @@ -0,0 +1,34 @@ +// === QuickInfo === +=== /a.ts === +// /** @this {number} */ +// function f() { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | +// | +// | *@this* +// | ---------------------------------------------------------------------- +// this +// } +[ + { + "marker": { + "Position": 32, + "LSPosition": { + "line": 1, + "character": 10 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\n\n\n*@this*" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc new file mode 100644 index 0000000000..9436eebded --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc @@ -0,0 +1,32 @@ +// === QuickInfo === +=== /quickInfoLink10.ts === +// /** +// * start {@link https://vscode.dev/ | end} +// */ +// const a = () => 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: () => number +// | ``` +// | start https://vscode.dev/ | end +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 3, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: () => number\n```\nstart https://vscode.dev/ | end" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc new file mode 100644 index 0000000000..50655f184b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc @@ -0,0 +1,40 @@ +// === QuickInfo === +=== /quickInfoLink11.ts === +// /** +// * {@link https://vscode.dev} +// * [link text]{https://vscode.dev} +// * {@link https://vscode.dev|link text} +// * {@link https://vscode.dev link text} +// */ +// function f() {} +// +// f(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | https://vscode.dev +// | [link text]{https://vscode.dev} +// | https://vscode.dev|link text +// | https://vscode.dev link text +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 170, + "LSPosition": { + "line": 8, + "character": 0 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\nhttps://vscode.dev\n[link text]{https://vscode.dev}\nhttps://vscode.dev|link text\nhttps://vscode.dev link text" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc new file mode 100644 index 0000000000..6064786e91 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc @@ -0,0 +1,33 @@ +// === QuickInfo === +=== /quickInfoLink5.ts === +// const A = 123; +// /** +// * See {@link A| constant A} instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See A| constant A instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 67, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee A| constant A instead" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc new file mode 100644 index 0000000000..44aee68e6e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc @@ -0,0 +1,33 @@ +// === QuickInfo === +=== /quickInfoLink6.ts === +// const A = 123; +// /** +// * See {@link A |constant A} instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See A|constant A instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 67, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee A|constant A instead" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc new file mode 100644 index 0000000000..72b2cb44ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc @@ -0,0 +1,32 @@ +// === QuickInfo === +=== /quickInfoLink7.ts === +// /** +// * See {@link | } instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See | instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 46, + "LSPosition": { + "line": 3, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee | instead" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc new file mode 100644 index 0000000000..d336abcb17 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc @@ -0,0 +1,33 @@ +// === QuickInfo === +=== /quickInfoLink8.ts === +// const A = 123; +// /** +// * See {@link A | constant A} instead +// */ +// const B = 456; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const B: 456 +// | ``` +// | See A| constant A instead +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 67, + "LSPosition": { + "line": 4, + "character": 6 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst B: 456\n```\nSee A| constant A instead" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc new file mode 100644 index 0000000000..c8755dabad --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc @@ -0,0 +1,26 @@ +// === QuickInfo === +=== /quickInfoLink9.ts === +// type Foo = { +// /** +// * Text before {@link a} text after +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +// */ +// c: (a: number) => void; +// } +[ + { + "marker": { + "Position": 47, + "LSPosition": { + "line": 2, + "character": 26 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc new file mode 100644 index 0000000000..655529433b --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc @@ -0,0 +1,48 @@ +// === QuickInfo === +=== /quickInfoNestedExportEqualExportDefault.ts === +// export = (state, messages) => { +// export default { +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) (Anonymous function).default: {} +// | ``` +// | +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*2*/. +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) (Anonymous function).default: {}\n```\n" + } + } + }, + { + "marker": { + "Position": 49, + "LSPosition": { + "line": 1, + "character": 17 + }, + "Name": "2", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc new file mode 100644 index 0000000000..7778999760 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc @@ -0,0 +1,32 @@ +// === QuickInfo === +=== /a.tsx === +// declare namespace JSX { +// interface IntrinsicElements { [elemName: string]: any; } +// } +//
; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 3, + "character": 1 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc new file mode 100644 index 0000000000..897ac34cc1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc @@ -0,0 +1,60 @@ +// === QuickInfo === +=== /a.tsx === +// declare namespace JSX { +// interface IntrinsicElements { +// [k: `foo${string}`]: any; +// [k: `foobar${string}`]: any; +// } +// } +// ; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +// ; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 126, + "LSPosition": { + "line": 6, + "character": 1 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + } + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 7, + "character": 1 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc new file mode 100644 index 0000000000..8dbf51c068 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc @@ -0,0 +1,21 @@ +// === QuickInfo === +=== /a.tsx === +// ; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /**/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 1, + "LSPosition": { + "line": 0, + "character": 1 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc new file mode 100644 index 0000000000..399006c05a --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc @@ -0,0 +1,77 @@ +// === QuickInfo === +=== /quickInfoOnParameterProperties.ts === +// interface IFoo { +// /** this is the name of blabla +// * - use blabla +// * @example blabla +// */ +// name?: string; +// } +// +// // test1 should work +// class Foo implements IFoo { +// //public name: string = ''; +// constructor( +// public name: string, // documentation should leech and work ! +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo.name: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// ) { +// } +// } +// +// // test2 work +// class Foo2 implements IFoo { +// public name: string = ''; // documentation leeched and work ! +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) Foo2.name: string +// | ``` +// | +// | ---------------------------------------------------------------------- +// constructor( +// //public name: string, +// ) { +// } +// } +[ + { + "marker": { + "Position": 226, + "LSPosition": { + "line": 12, + "character": 13 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo.name: string\n```\n" + } + } + }, + { + "marker": { + "Position": 347, + "LSPosition": { + "line": 19, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) Foo2.name: string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc new file mode 100644 index 0000000000..0baad3b4d9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc @@ -0,0 +1,160 @@ +// === QuickInfo === +=== /quickInfoOnThis5.ts === +// const foo = { +// num: 0, +// f() { +// type Y = typeof this; +// ^ +// | ---------------------------------------------------------------------- +// | No quickinfo at /*1*/. +// | ---------------------------------------------------------------------- +// type Z = typeof this.num; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | any +// | ``` +// | +// | ---------------------------------------------------------------------- +// }, +// g(this: number) { +// type X = typeof this; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) this: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +// class Foo { +// num = 0; +// f() { +// type Y = typeof this; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | this +// | ``` +// | +// | ---------------------------------------------------------------------- +// type Z = typeof this.num; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | this +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// g(this: number) { +// type X = typeof this; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (parameter) this: number +// | ``` +// | +// | ---------------------------------------------------------------------- +// } +// } +[ + { + "marker": { + "Position": 62, + "LSPosition": { + "line": 3, + "character": 26 + }, + "Name": "1", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 92, + "LSPosition": { + "line": 4, + "character": 26 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nany\n```\n" + } + } + }, + { + "marker": { + "Position": 155, + "LSPosition": { + "line": 7, + "character": 26 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) this: number\n```\n" + } + } + }, + { + "marker": { + "Position": 228, + "LSPosition": { + "line": 13, + "character": 26 + }, + "Name": "4", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nthis\n```\n" + } + } + }, + { + "marker": { + "Position": 258, + "LSPosition": { + "line": 14, + "character": 26 + }, + "Name": "5", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nthis\n```\n" + } + } + }, + { + "marker": { + "Position": 320, + "LSPosition": { + "line": 17, + "character": 26 + }, + "Name": "6", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(parameter) this: number\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc new file mode 100644 index 0000000000..6de7f6562d --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc @@ -0,0 +1,53 @@ +// === QuickInfo === +=== /quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts === +// export type DocumentFilter = { +// /** A language id, like `typescript`. */ +// language: string; +// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +// scheme?: string; +// /** A glob pattern, like `*.{ts,js}`. */ +// pattern?: string; +// } | { +// /** A language id, like `typescript`. */ +// language?: string; +// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +// scheme: string; +// /** A glob pattern, like `*.{ts,js}`. */ +// pattern?: string; +// } | { +// /** A language id, like `typescript`. */ +// language?: string; +// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +// scheme?: string; +// /** A glob pattern, like `*.{ts,js}`. */ +// pattern: string; +// }; +// +// declare let x: DocumentFilter; +// x.language +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | (property) language: string +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 746, + "LSPosition": { + "line": 24, + "character": 2 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\n(property) language: string\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc new file mode 100644 index 0000000000..d74b904a4e --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc @@ -0,0 +1,38 @@ +// === QuickInfo === +=== /something.js === +// var C = function () { } +// /** +// * The prototype method. +// * @param {string} a Parameter definition. +// */ +// function f(a) {} +// C.prototype.m = f; +// +// var x = new C(); +// x.m(); +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | var x: any +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 155, + "LSPosition": { + "line": 9, + "character": 1 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nvar x: any\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc new file mode 100644 index 0000000000..2f32d40691 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc @@ -0,0 +1,32 @@ +// === QuickInfo === +=== /a.js === +// /** @satisfies {number} comment */ +// const a = 1; +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const a: 1 +// | ``` +// | +// | +// | *@satisfies* — comment +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 41, + "LSPosition": { + "line": 1, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst a: 1\n```\n\n\n*@satisfies* — comment " + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc new file mode 100644 index 0000000000..c82883bc73 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc @@ -0,0 +1,98 @@ +// === QuickInfo === +=== /a.js === +// /** +// * The typedef tag should not appear in the quickinfo. +// * @typedef {{ foo: 'foo' }} Foo +// */ +// function f() { } +// f() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function f(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** +// * A removed comment +// * @tag Usage shows that non-param tags in comments explain the typedef instead of using it +// * @typedef {{ nope: any }} Nope not here +// * @tag comment 2 +// */ +// function g() { } +// g() +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function g(): void +// | ``` +// | +// | ---------------------------------------------------------------------- +// /** +// * The whole thing is kept +// * @param {Local} keep +// * @typedef {{ local: any }} Local kept too +// * @returns {void} also kept +// */ +// function h(keep) { } +// h({ nope: 1 }) +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | function h(keep: Local): void +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 114, + "LSPosition": { + "line": 5, + "character": 1 + }, + "Name": "1", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction f(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 316, + "LSPosition": { + "line": 13, + "character": 1 + }, + "Name": "2", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction g(): void\n```\n" + } + } + }, + { + "marker": { + "Position": 472, + "LSPosition": { + "line": 21, + "character": 1 + }, + "Name": "3", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nfunction h(keep: Local): void\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc new file mode 100644 index 0000000000..e16714bca5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc @@ -0,0 +1,31 @@ +// === QuickInfo === +=== /a.js === +// /** @type {unique symbol} */ +// const foo = Symbol(); +// foo +// ^ +// | ---------------------------------------------------------------------- +// | ```tsx +// | const foo: typeof foo +// | ``` +// | +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 54, + "LSPosition": { + "line": 2, + "character": 3 + }, + "Name": "", + "Data": {} + }, + "item": { + "contents": { + "kind": "markdown", + "value": "```tsx\nconst foo: typeof foo\n```\n" + } + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/reallyLargeFile.baseline.jsonc b/testdata/baselines/reference/fourslash/reallyLargeFile.baseline.jsonc new file mode 100644 index 0000000000..13ba87bdbc --- /dev/null +++ b/testdata/baselines/reference/fourslash/reallyLargeFile.baseline.jsonc @@ -0,0 +1,8 @@ +// === goToDefinition === +// === /file.d.ts === + +// namespace /*GO TO DEFINITION*/[|Foo|] { +// +// +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/referenceInParameterPropertyDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/referenceInParameterPropertyDeclaration.baseline.jsonc new file mode 100644 index 0000000000..8733deae92 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referenceInParameterPropertyDeclaration.baseline.jsonc @@ -0,0 +1,58 @@ +// === findAllReferences === +// === /file1.ts === + +// class Foo { +// constructor(private /*FIND ALL REFS*/[|privateParam|]: number, +// public publicParam: string, +// protected protectedParam: boolean) { +// +// let localPrivate = [|privateParam|]; +// this.[|privateParam|] += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /file1.ts === + +// class Foo { +// constructor(private privateParam: number, +// public /*FIND ALL REFS*/[|publicParam|]: string, +// protected protectedParam: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = [|publicParam|]; +// this.[|publicParam|] += " Hello!"; +// +// let localProtected = protectedParam; +// this.protectedParam = false; +// } +// } + + + + +// === findAllReferences === +// === /file1.ts === + +// class Foo { +// constructor(private privateParam: number, +// public publicParam: string, +// protected /*FIND ALL REFS*/[|protectedParam|]: boolean) { +// +// let localPrivate = privateParam; +// this.privateParam += 10; +// +// let localPublic = publicParam; +// this.publicParam += " Hello!"; +// +// let localProtected = [|protectedParam|]; +// this.[|protectedParam|] = false; +// } +// } diff --git a/testdata/baselines/reference/fourslash/referenceToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/referenceToClass.baseline.jsonc new file mode 100644 index 0000000000..f6bf983e78 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referenceToClass.baseline.jsonc @@ -0,0 +1,146 @@ +// === findAllReferences === +// === /referenceToClass_1.ts === + +// class /*FIND ALL REFS*/[|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + + +// === /referenceToClass_2.ts === + +// var k: [|foo|]; + + + + +// === findAllReferences === +// === /referenceToClass_1.ts === + +// class [|foo|] { +// public n: /*FIND ALL REFS*/[|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + + +// === /referenceToClass_2.ts === + +// var k: [|foo|]; + + + + +// === findAllReferences === +// === /referenceToClass_1.ts === + +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: /*FIND ALL REFS*/[|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + + +// === /referenceToClass_2.ts === + +// var k: [|foo|]; + + + + +// === findAllReferences === +// === /referenceToClass_1.ts === + +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new /*FIND ALL REFS*/[|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + + +// === /referenceToClass_2.ts === + +// var k: [|foo|]; + + + + +// === findAllReferences === +// === /referenceToClass_1.ts === + +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: /*FIND ALL REFS*/[|foo|] = null; +// } + + +// === /referenceToClass_2.ts === + +// var k: [|foo|]; + + + + +// === findAllReferences === +// === /referenceToClass_1.ts === + +// class [|foo|] { +// public n: [|foo|]; +// public foo: number; +// } +// +// class bar { +// public n: [|foo|]; +// public k = new [|foo|](); +// } +// +// module mod { +// var k: [|foo|] = null; +// } + + +// === /referenceToClass_2.ts === + +// var k: /*FIND ALL REFS*/[|foo|]; diff --git a/testdata/baselines/reference/fourslash/referenceToEmptyObject.baseline.jsonc b/testdata/baselines/reference/fourslash/referenceToEmptyObject.baseline.jsonc new file mode 100644 index 0000000000..11e1f74b3f --- /dev/null +++ b/testdata/baselines/reference/fourslash/referenceToEmptyObject.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /referenceToEmptyObject.ts === + +// const obj = {}/*FIND ALL REFS*/; diff --git a/testdata/baselines/reference/fourslash/references01.baseline.jsonc b/testdata/baselines/reference/fourslash/references01.baseline.jsonc new file mode 100644 index 0000000000..ce7a705518 --- /dev/null +++ b/testdata/baselines/reference/fourslash/references01.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /home/src/workspaces/project/referencesForGlobals_1.ts === + +// class [|globalClass|] { +// public f() { } +// } + + +// === /home/src/workspaces/project/referencesForGlobals_2.ts === + +// /// +// var c = /*FIND ALL REFS*/[|globalClass|](); diff --git a/testdata/baselines/reference/fourslash/referencesBloomFilters.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesBloomFilters.baseline.jsonc new file mode 100644 index 0000000000..b373099f0a --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesBloomFilters.baseline.jsonc @@ -0,0 +1,19 @@ +// === findAllReferences === +// === /declaration.ts === + +// var container = { /*FIND ALL REFS*/[|searchProp|] : 1 }; + + +// === /expression.ts === + +// function blah() { return (1 + 2 + container.[|searchProp|]()) === 2; }; + + +// === /redeclaration.ts === + +// container = { "[|searchProp|]" : 18 }; + + +// === /stringIndexer.ts === + +// function blah2() { container["[|searchProp|]"] }; diff --git a/testdata/baselines/reference/fourslash/referencesBloomFilters2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesBloomFilters2.baseline.jsonc new file mode 100644 index 0000000000..294e4ea57c --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesBloomFilters2.baseline.jsonc @@ -0,0 +1,19 @@ +// === findAllReferences === +// === /declaration.ts === + +// var container = { /*FIND ALL REFS*/[|42|]: 1 }; + + +// === /expression.ts === + +// function blah() { return (container[[|42|]]) === 2; }; + + +// === /redeclaration.ts === + +// container = { "[|42|]" : 18 }; + + +// === /stringIndexer.ts === + +// function blah2() { container["[|42|]"] }; diff --git a/testdata/baselines/reference/fourslash/referencesBloomFilters3.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesBloomFilters3.baseline.jsonc new file mode 100644 index 0000000000..c92550b6fb --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesBloomFilters3.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /declaration.ts === + +// enum Test { /*FIND ALL REFS*/"[|42|]" = 1 }; + + +// === /expression.ts === + +// (Test[[|42|]]); + + + + +// === findAllReferences === +// === /declaration.ts === + +// enum Test { "/*FIND ALL REFS*/[|42|]" = 1 }; + + +// === /expression.ts === + +// (Test[[|42|]]); + + + + +// === findAllReferences === +// === /declaration.ts === + +// enum Test { "[|42|]" = 1 }; + + +// === /expression.ts === + +// (Test[/*FIND ALL REFS*/[|42|]]); diff --git a/testdata/baselines/reference/fourslash/referencesForAmbients.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForAmbients.baseline.jsonc new file mode 100644 index 0000000000..5753a79cb1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForAmbients.baseline.jsonc @@ -0,0 +1,238 @@ +// === findAllReferences === +// === /referencesForAmbients.ts === + +// /*FIND ALL REFS*/declare module "foo" { +// var f: number; +// } +// +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "/*FIND ALL REFS*/[|foo|]" { +// var f: number; +// } +// +// declare module "bar" { +// export import foo = require("[|foo|]"); +// var f2: typeof foo.f; +// } +// +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// /*FIND ALL REFS*/var f: number; +// } +// +// declare module "bar" { +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var /*FIND ALL REFS*/[|f|]: number; +// } +// +// declare module "bar" { +// export import foo = require("foo"); +// var f2: typeof foo.[|f|]; +// } +// +// declare module "baz" { +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var f: number; +// } +// +// /*FIND ALL REFS*/declare module "bar" { +// export import foo = require("foo"); +// var f2: typeof foo.f; +// } +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var f: number; +// } +// +// declare module "/*FIND ALL REFS*/[|bar|]" { +// export import foo = require("foo"); +// var f2: typeof foo.f; +// } +// +// declare module "baz" { +// import bar = require("[|bar|]"); +// var f2: typeof bar.foo; +// } + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// /*FIND ALL REFS*/export import foo = require("foo"); +// var f2: typeof foo.f; +// } +// +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// export import /*FIND ALL REFS*/[|foo|] = require("foo"); +// var f2: typeof [|foo|].f; +// } +// +// declare module "baz" { +// import bar = require("bar"); +// var f2: typeof bar.[|foo|]; +// } + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "[|foo|]" { +// var f: number; +// } +// +// declare module "bar" { +// export import foo = require("/*FIND ALL REFS*/[|foo|]"); +// var f2: typeof foo.f; +// } +// +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// export import [|foo|] = require("foo"); +// var f2: typeof /*FIND ALL REFS*/[|foo|].f; +// } +// +// declare module "baz" { +// import bar = require("bar"); +// var f2: typeof bar.[|foo|]; +// } + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var [|f|]: number; +// } +// +// declare module "bar" { +// export import foo = require("foo"); +// var f2: typeof foo./*FIND ALL REFS*/[|f|]; +// } +// +// declare module "baz" { +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// --- (line: 7) skipped --- +// } +// +// declare module "baz" { +// /*FIND ALL REFS*/import bar = require("bar"); +// var f2: typeof bar.foo; +// } + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var f: number; +// } +// +// declare module "[|bar|]" { +// export import foo = require("foo"); +// var f2: typeof foo.f; +// } +// +// declare module "baz" { +// import bar = require("/*FIND ALL REFS*/[|bar|]"); +// var f2: typeof bar.foo; +// } + + + + +// === findAllReferences === +// === /referencesForAmbients.ts === + +// declare module "foo" { +// var f: number; +// } +// +// declare module "bar" { +// export import [|foo|] = require("foo"); +// var f2: typeof [|foo|].f; +// } +// +// declare module "baz" { +// import bar = require("bar"); +// var f2: typeof bar./*FIND ALL REFS*/[|foo|]; +// } diff --git a/testdata/baselines/reference/fourslash/referencesForClassLocal.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForClassLocal.baseline.jsonc new file mode 100644 index 0000000000..075c9aa995 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForClassLocal.baseline.jsonc @@ -0,0 +1,77 @@ +// === findAllReferences === +// === /referencesForClassLocal.ts === + +// var n = 14; +// +// class foo { +// /*FIND ALL REFS*/private n = 0; +// +// public bar() { +// this.n = 9; +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesForClassLocal.ts === + +// var n = 14; +// +// class foo { +// private /*FIND ALL REFS*/[|n|] = 0; +// +// public bar() { +// this.[|n|] = 9; +// } +// +// constructor() { +// this.[|n|] = 4; +// } +// +// public bar2() { +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /referencesForClassLocal.ts === + +// var n = 14; +// +// class foo { +// private [|n|] = 0; +// +// public bar() { +// this./*FIND ALL REFS*/[|n|] = 9; +// } +// +// constructor() { +// this.[|n|] = 4; +// } +// +// public bar2() { +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /referencesForClassLocal.ts === + +// var n = 14; +// +// class foo { +// private [|n|] = 0; +// +// public bar() { +// this.[|n|] = 9; +// } +// +// constructor() { +// this./*FIND ALL REFS*/[|n|] = 4; +// } +// +// public bar2() { +// // --- (line: 15) skipped --- diff --git a/testdata/baselines/reference/fourslash/referencesForClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForClassMembers.baseline.jsonc new file mode 100644 index 0000000000..f340314796 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForClassMembers.baseline.jsonc @@ -0,0 +1,110 @@ +// === findAllReferences === +// === /referencesForClassMembers.ts === + +// class Base { +// /*FIND ALL REFS*/[|a|]: number; +// method(): void { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === + +// class Base { +// [|a|]: number; +// method(): void { } +// } +// class MyClass extends Base { +// /*FIND ALL REFS*/[|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === + +// class Base { +// [|a|]: number; +// method(): void { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c./*FIND ALL REFS*/[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === + +// class Base { +// a: number; +// /*FIND ALL REFS*/[|method|](): void { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === + +// class Base { +// a: number; +// [|method|](): void { } +// } +// class MyClass extends Base { +// a; +// /*FIND ALL REFS*/[|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + + +// === findAllReferences === +// === /referencesForClassMembers.ts === + +// class Base { +// a: number; +// [|method|](): void { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c./*FIND ALL REFS*/[|method|](); diff --git a/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingAbstractClass.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingAbstractClass.baseline.jsonc new file mode 100644 index 0000000000..429d39ba03 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingAbstractClass.baseline.jsonc @@ -0,0 +1,110 @@ +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === + +// abstract class Base { +// abstract /*FIND ALL REFS*/[|a|]: number; +// abstract method(): void; +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === + +// abstract class Base { +// abstract [|a|]: number; +// abstract method(): void; +// } +// class MyClass extends Base { +// /*FIND ALL REFS*/[|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === + +// abstract class Base { +// abstract [|a|]: number; +// abstract method(): void; +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c./*FIND ALL REFS*/[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === + +// abstract class Base { +// abstract a: number; +// abstract /*FIND ALL REFS*/[|method|](): void; +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === + +// abstract class Base { +// abstract a: number; +// abstract [|method|](): void; +// } +// class MyClass extends Base { +// a; +// /*FIND ALL REFS*/[|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingAbstractClass.ts === + +// abstract class Base { +// abstract a: number; +// abstract [|method|](): void; +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c./*FIND ALL REFS*/[|method|](); diff --git a/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingGenericClass.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingGenericClass.baseline.jsonc new file mode 100644 index 0000000000..79cdb2e1dc --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingGenericClass.baseline.jsonc @@ -0,0 +1,110 @@ +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === + +// class Base { +// /*FIND ALL REFS*/[|a|]: this; +// method(a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === + +// class Base { +// [|a|]: this; +// method(a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// /*FIND ALL REFS*/[|a|]; +// method() { } +// } +// +// var c: MyClass; +// c.[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === + +// class Base { +// [|a|]: this; +// method(a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// [|a|]; +// method() { } +// } +// +// var c: MyClass; +// c./*FIND ALL REFS*/[|a|]; +// c.method(); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === + +// class Base { +// a: this; +// /*FIND ALL REFS*/[|method|](a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === + +// class Base { +// a: this; +// [|method|](a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// a; +// /*FIND ALL REFS*/[|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c.[|method|](); + + + + +// === findAllReferences === +// === /referencesForClassMembersExtendingGenericClass.ts === + +// class Base { +// a: this; +// [|method|](a?:T, b?:U): this { } +// } +// class MyClass extends Base { +// a; +// [|method|]() { } +// } +// +// var c: MyClass; +// c.a; +// c./*FIND ALL REFS*/[|method|](); diff --git a/testdata/baselines/reference/fourslash/referencesForClassParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForClassParameter.baseline.jsonc new file mode 100644 index 0000000000..87848b4dc2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForClassParameter.baseline.jsonc @@ -0,0 +1,82 @@ +// === findAllReferences === +// === /referencesForClassParameter.ts === + +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (/*FIND ALL REFS*/public p: any) { +// } +// +// public f(p) { +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /referencesForClassParameter.ts === + +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (public /*FIND ALL REFS*/[|p|]: any) { +// } +// +// public f(p) { +// this.[|p|] = p; +// } +// +// } +// +// var n = new foo(undefined); +// n.[|p|] = null; + + + + +// === findAllReferences === +// === /referencesForClassParameter.ts === + +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (public [|p|]: any) { +// } +// +// public f(p) { +// this./*FIND ALL REFS*/[|p|] = p; +// } +// +// } +// +// var n = new foo(undefined); +// n.[|p|] = null; + + + + +// === findAllReferences === +// === /referencesForClassParameter.ts === + +// var p = 2; +// +// class p { } +// +// class foo { +// constructor (public [|p|]: any) { +// } +// +// public f(p) { +// this.[|p|] = p; +// } +// +// } +// +// var n = new foo(undefined); +// n./*FIND ALL REFS*/[|p|] = null; diff --git a/testdata/baselines/reference/fourslash/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..e9ec25e6c9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /referencesForContextuallyTypedObjectLiteralProperties.ts === + +// interface IFoo { /*FIND ALL REFS*/[|xy|]: number; } +// +// // Assignment +// var a1: IFoo = { [|xy|]: 0 }; +// var a2: IFoo = { [|xy|]: 0 }; +// +// // Function call +// function consumer(f: IFoo) { } +// consumer({ [|xy|]: 1 }); +// +// // Type cast +// var c = { [|xy|]: 0 }; +// +// // Array literal +// var ar: IFoo[] = [{ [|xy|]: 1 }, { [|xy|]: 2 }]; +// +// // Nested object literal +// var ob: { ifoo: IFoo } = { ifoo: { [|xy|]: 0 } }; +// +// // Widened type +// var w: IFoo = { [|xy|]: undefined }; +// +// // Untped -- should not be included +// var u = { xy: 0 }; diff --git a/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties.baseline.jsonc new file mode 100644 index 0000000000..65e37f9a5f --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties.baseline.jsonc @@ -0,0 +1,393 @@ +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// /*FIND ALL REFS*/[|common|]: string; +// } +// +// interface B { +// b: number; +// common: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// --- (line: 4) skipped --- +// +// interface B { +// b: number; +// /*FIND ALL REFS*/[|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, /*FIND ALL REFS*/[|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, /*FIND ALL REFS*/[|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, /*FIND ALL REFS*/[|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { /*FIND ALL REFS*/[|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, /*FIND ALL REFS*/[|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, common: "" }, { b: 0, /*FIND ALL REFS*/[|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, /*FIND ALL REFS*/[|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, [|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; + + + + +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties.ts === + +// interface A { +// a: number; +// [|common|]: string; +// } +// +// interface B { +// b: number; +// [|common|]: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, [|common|]: "" }; +// var v2: A | B = { b: 0, [|common|]: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, b: 0, [|common|]: 1 }); +// +// // Type cast +// var c = { [|common|]: 0, b: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; +// +// // Widened type +// var w: A|B = { a:0, /*FIND ALL REFS*/[|common|]: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; diff --git a/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties2.baseline.jsonc new file mode 100644 index 0000000000..fcf8502a8a --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties2.baseline.jsonc @@ -0,0 +1,34 @@ +// === findAllReferences === +// === /referencesForContextuallyTypedUnionProperties2.ts === + +// --- (line: 3) skipped --- +// } +// +// interface B { +// /*FIND ALL REFS*/[|b|]: number; +// common: number; +// } +// +// // Assignment +// var v1: A | B = { a: 0, common: "" }; +// var v2: A | B = { [|b|]: 0, common: 3 }; +// +// // Function call +// function consumer(f: A | B) { } +// consumer({ a: 0, [|b|]: 0, common: 1 }); +// +// // Type cast +// var c = { common: 0, [|b|]: 0 }; +// +// // Array literal +// var ar: Array = [{ a: 0, common: "" }, { [|b|]: 0, common: 0 }]; +// +// // Nested object literal +// var ob: { aorb: A|B } = { aorb: { [|b|]: 0, common: 0 } }; +// +// // Widened type +// var w: A|B = { [|b|]:undefined, common: undefined }; +// +// // Untped -- should not be included +// var u1 = { a: 0, b: 0, common: "" }; +// var u2 = { b: 0, common: 0 }; diff --git a/testdata/baselines/reference/fourslash/referencesForDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForDeclarationKeywords.baseline.jsonc new file mode 100644 index 0000000000..2db33149e6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForDeclarationKeywords.baseline.jsonc @@ -0,0 +1,255 @@ +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// /*FIND ALL REFS*/class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 /*FIND ALL REFS*/extends Base implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 extends Base /*FIND ALL REFS*/implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 14) skipped --- +// const z = 1; +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 /*FIND ALL REFS*/implements Implemented2, Implemented3 {} +// interface I2 extends Implemented2, Implemented3 {} + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// /*FIND ALL REFS*/get e() { return 1; } +// set e(v) {} +// } +// interface I1 extends Base { } +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// /*FIND ALL REFS*/set e(v) {} +// } +// interface I1 extends Base { } +// type T = { } +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 3) skipped --- +// get e() { return 1; } +// set e(v) {} +// } +// /*FIND ALL REFS*/interface I1 extends Base { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 3) skipped --- +// get e() { return 1; } +// set e(v) {} +// } +// interface I1 /*FIND ALL REFS*/extends Base { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 15) skipped --- +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 implements Implemented2, Implemented3 {} +// interface I2 /*FIND ALL REFS*/extends Implemented2, Implemented3 {} + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 4) skipped --- +// set e(v) {} +// } +// interface I1 extends Base { } +// /*FIND ALL REFS*/type T = { } +// enum E { } +// namespace N { } +// module M { } +// // --- (line: 12) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 5) skipped --- +// } +// interface I1 extends Base { } +// type T = { } +// /*FIND ALL REFS*/enum E { } +// namespace N { } +// module M { } +// function fn() {} +// // --- (line: 13) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 6) skipped --- +// interface I1 extends Base { } +// type T = { } +// enum E { } +// /*FIND ALL REFS*/namespace N { } +// module M { } +// function fn() {} +// var x; +// // --- (line: 14) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 7) skipped --- +// type T = { } +// enum E { } +// namespace N { } +// /*FIND ALL REFS*/module M { } +// function fn() {} +// var x; +// let y; +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 8) skipped --- +// enum E { } +// namespace N { } +// module M { } +// /*FIND ALL REFS*/function fn() {} +// var x; +// let y; +// const z = 1; +// // --- (line: 16) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 9) skipped --- +// namespace N { } +// module M { } +// function fn() {} +// /*FIND ALL REFS*/var x; +// let y; +// const z = 1; +// interface Implemented2 {} +// // --- (line: 17) skipped --- + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 10) skipped --- +// module M { } +// function fn() {} +// var x; +// /*FIND ALL REFS*/let y; +// const z = 1; +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 implements Implemented2, Implemented3 {} +// interface I2 extends Implemented2, Implemented3 {} + + + + +// === findAllReferences === +// === /referencesForDeclarationKeywords.ts === + +// --- (line: 11) skipped --- +// function fn() {} +// var x; +// let y; +// /*FIND ALL REFS*/const z = 1; +// interface Implemented2 {} +// interface Implemented3 {} +// class C2 implements Implemented2, Implemented3 {} +// interface I2 extends Implemented2, Implemented3 {} diff --git a/testdata/baselines/reference/fourslash/referencesForEnums.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForEnums.baseline.jsonc new file mode 100644 index 0000000000..029ee16b94 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForEnums.baseline.jsonc @@ -0,0 +1,149 @@ +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// /*FIND ALL REFS*/[|value1|] = 1, +// "value2" = [|value1|], +// 111 = 11 +// } +// +// E.[|value1|]; +// E["value2"]; +// E.value2; +// E[111]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// value1 = 1, +// /*FIND ALL REFS*/"[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["[|value2|]"]; +// E.[|value2|]; +// E[111]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// value1 = 1, +// "/*FIND ALL REFS*/[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["[|value2|]"]; +// E.[|value2|]; +// E[111]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// [|value1|] = 1, +// "value2" = /*FIND ALL REFS*/[|value1|], +// 111 = 11 +// } +// +// E.[|value1|]; +// E["value2"]; +// E.value2; +// E[111]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// value1 = 1, +// "value2" = value1, +// /*FIND ALL REFS*/[|111|] = 11 +// } +// +// E.value1; +// E["value2"]; +// E.value2; +// E[[|111|]]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// [|value1|] = 1, +// "value2" = [|value1|], +// 111 = 11 +// } +// +// E./*FIND ALL REFS*/[|value1|]; +// E["value2"]; +// E.value2; +// E[111]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// value1 = 1, +// "[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["/*FIND ALL REFS*/[|value2|]"]; +// E.[|value2|]; +// E[111]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// value1 = 1, +// "[|value2|]" = value1, +// 111 = 11 +// } +// +// E.value1; +// E["[|value2|]"]; +// E./*FIND ALL REFS*/[|value2|]; +// E[111]; + + + + +// === findAllReferences === +// === /referencesForEnums.ts === + +// enum E { +// value1 = 1, +// "value2" = value1, +// [|111|] = 11 +// } +// +// E.value1; +// E["value2"]; +// E.value2; +// E[/*FIND ALL REFS*/[|111|]]; diff --git a/testdata/baselines/reference/fourslash/referencesForExpressionKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForExpressionKeywords.baseline.jsonc new file mode 100644 index 0000000000..ff7dbdb0e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForExpressionKeywords.baseline.jsonc @@ -0,0 +1,140 @@ +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// class C { +// static x = 1; +// } +// /*FIND ALL REFS*/new C(); +// void C; +// typeof C; +// delete C.x; +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// class C { +// static x = 1; +// } +// new C(); +// /*FIND ALL REFS*/void C; +// typeof C; +// delete C.x; +// async function* f() { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// class C { +// static x = 1; +// } +// new C(); +// void C; +// /*FIND ALL REFS*/[|typeof|] C; +// delete C.x; +// async function* f() { +// yield C; +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// --- (line: 5) skipped --- +// typeof C; +// delete C.x; +// async function* f() { +// /*FIND ALL REFS*/yield C; +// await C; +// } +// "x" in C; +// undefined instanceof C; +// undefined as C; + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// --- (line: 6) skipped --- +// delete C.x; +// async function* f() { +// yield C; +// /*FIND ALL REFS*/await C; +// } +// "x" in C; +// undefined instanceof C; +// undefined as C; + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// --- (line: 8) skipped --- +// yield C; +// await C; +// } +// "x" /*FIND ALL REFS*/in C; +// undefined instanceof C; +// undefined as C; + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// class [|C|] { +// static x = 1; +// } +// new [|C|](); +// void [|C|]; +// typeof [|C|]; +// delete [|C|].x; +// async function* f() { +// yield [|C|]; +// await [|C|]; +// } +// "x" in [|C|]; +// undefined /*FIND ALL REFS*/instanceof [|C|]; +// undefined as [|C|]; + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// --- (line: 10) skipped --- +// } +// "x" in C; +// undefined instanceof C; +// undefined /*FIND ALL REFS*/as C; + + + + +// === findAllReferences === +// === /referencesForExpressionKeywords.ts === + +// --- (line: 3) skipped --- +// new C(); +// void C; +// typeof C; +// /*FIND ALL REFS*/delete C.x; +// async function* f() { +// yield C; +// await C; +// // --- (line: 11) skipped --- diff --git a/testdata/baselines/reference/fourslash/referencesForExternalModuleNames.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForExternalModuleNames.baseline.jsonc new file mode 100644 index 0000000000..0a8b6fda57 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForExternalModuleNames.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// /*FIND ALL REFS*/declare module "foo" { +// var f: number; +// } + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// declare module "/*FIND ALL REFS*/[|foo|]" { +// var f: number; +// } + + +// === /referencesForGlobals_2.ts === + +// import f = require("[|foo|]"); + + + + +// === findAllReferences === +// === /referencesForGlobals_2.ts === + +// /*FIND ALL REFS*/import f = require("foo"); + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// declare module "[|foo|]" { +// var f: number; +// } + + +// === /referencesForGlobals_2.ts === + +// import f = require("/*FIND ALL REFS*/[|foo|]"); diff --git a/testdata/baselines/reference/fourslash/referencesForFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForFunctionOverloads.baseline.jsonc new file mode 100644 index 0000000000..22e9952724 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForFunctionOverloads.baseline.jsonc @@ -0,0 +1,51 @@ +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === + +// /*FIND ALL REFS*/function foo(x: string); +// function foo(x: string, y: number) { +// foo('', 43); +// } + + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === + +// function /*FIND ALL REFS*/[|foo|](x: string); +// function [|foo|](x: string, y: number) { +// [|foo|]('', 43); +// } + + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === + +// function foo(x: string); +// /*FIND ALL REFS*/function foo(x: string, y: number) { +// foo('', 43); +// } + + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === + +// function [|foo|](x: string); +// function /*FIND ALL REFS*/[|foo|](x: string, y: number) { +// [|foo|]('', 43); +// } + + + + +// === findAllReferences === +// === /referencesForFunctionOverloads.ts === + +// function [|foo|](x: string); +// function [|foo|](x: string, y: number) { +// /*FIND ALL REFS*/[|foo|]('', 43); +// } diff --git a/testdata/baselines/reference/fourslash/referencesForFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..2f6301cdb3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForFunctionParameter.baseline.jsonc @@ -0,0 +1,38 @@ +// === findAllReferences === +// === /referencesForFunctionParameter.ts === + +// var x; +// var n; +// +// function n(x: number, /*FIND ALL REFS*/[|n|]: number) { +// [|n|] = 32; +// x = [|n|]; +// } + + + + +// === findAllReferences === +// === /referencesForFunctionParameter.ts === + +// var x; +// var n; +// +// function n(x: number, [|n|]: number) { +// /*FIND ALL REFS*/[|n|] = 32; +// x = [|n|]; +// } + + + + +// === findAllReferences === +// === /referencesForFunctionParameter.ts === + +// var x; +// var n; +// +// function n(x: number, [|n|]: number) { +// [|n|] = 32; +// x = /*FIND ALL REFS*/[|n|]; +// } diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForGlobals.baseline.jsonc new file mode 100644 index 0000000000..06d99f49ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForGlobals.baseline.jsonc @@ -0,0 +1,128 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// /*FIND ALL REFS*/var global = 2; +// +// class foo { +// constructor (public global) { } +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// var /*FIND ALL REFS*/[|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = [|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = [|global|]; + + +// === /referencesForGlobals_2.ts === + +// var m = [|global|]; + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// var [|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = /*FIND ALL REFS*/[|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = [|global|]; + + +// === /referencesForGlobals_2.ts === + +// var m = [|global|]; + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// var [|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = [|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = /*FIND ALL REFS*/[|global|]; + + +// === /referencesForGlobals_2.ts === + +// var m = [|global|]; + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// var [|global|] = 2; +// +// class foo { +// constructor (public global) { } +// public f(global) { } +// public f2(global) { } +// } +// +// class bar { +// constructor () { +// var n = [|global|]; +// +// var f = new foo(''); +// f.global = ''; +// } +// } +// +// var k = [|global|]; + + +// === /referencesForGlobals_2.ts === + +// var m = /*FIND ALL REFS*/[|global|]; diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForGlobals2.baseline.jsonc new file mode 100644 index 0000000000..4a73d867a2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForGlobals2.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// /*FIND ALL REFS*/class globalClass { +// public f() { } +// } + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// class /*FIND ALL REFS*/[|globalClass|] { +// public f() { } +// } + + +// === /referencesForGlobals_2.ts === + +// var c = [|globalClass|](); + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// class [|globalClass|] { +// public f() { } +// } + + +// === /referencesForGlobals_2.ts === + +// var c = /*FIND ALL REFS*/[|globalClass|](); diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals3.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForGlobals3.baseline.jsonc new file mode 100644 index 0000000000..9947d0964d --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForGlobals3.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// /*FIND ALL REFS*/interface globalInterface { +// f(); +// } + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// interface /*FIND ALL REFS*/[|globalInterface|] { +// f(); +// } + + +// === /referencesForGlobals_2.ts === + +// var i: [|globalInterface|]; + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// interface [|globalInterface|] { +// f(); +// } + + +// === /referencesForGlobals_2.ts === + +// var i: /*FIND ALL REFS*/[|globalInterface|]; diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals4.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForGlobals4.baseline.jsonc new file mode 100644 index 0000000000..2a781957a8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForGlobals4.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// /*FIND ALL REFS*/module globalModule { +// export f() { }; +// } + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// module /*FIND ALL REFS*/[|globalModule|] { +// export f() { }; +// } + + +// === /referencesForGlobals_2.ts === + +// var m = [|globalModule|]; + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// module [|globalModule|] { +// export f() { }; +// } + + +// === /referencesForGlobals_2.ts === + +// var m = /*FIND ALL REFS*/[|globalModule|]; diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals5.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForGlobals5.baseline.jsonc new file mode 100644 index 0000000000..b101632f3e --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForGlobals5.baseline.jsonc @@ -0,0 +1,42 @@ +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// module globalModule { +// export var x; +// } +// +// /*FIND ALL REFS*/import globalAlias = globalModule; + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// module globalModule { +// export var x; +// } +// +// import /*FIND ALL REFS*/[|globalAlias|] = globalModule; + + +// === /referencesForGlobals_2.ts === + +// var m = [|globalAlias|]; + + + + +// === findAllReferences === +// === /referencesForGlobals_1.ts === + +// module globalModule { +// export var x; +// } +// +// import [|globalAlias|] = globalModule; + + +// === /referencesForGlobals_2.ts === + +// var m = /*FIND ALL REFS*/[|globalAlias|]; diff --git a/testdata/baselines/reference/fourslash/referencesForGlobalsInExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForGlobalsInExternalModule.baseline.jsonc new file mode 100644 index 0000000000..4b4a084e07 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForGlobalsInExternalModule.baseline.jsonc @@ -0,0 +1,182 @@ +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// /*FIND ALL REFS*/var topLevelVar = 2; +// var topLevelVar2 = topLevelVar; +// +// class topLevelClass { } +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// var /*FIND ALL REFS*/[|topLevelVar|] = 2; +// var topLevelVar2 = [|topLevelVar|]; +// +// class topLevelClass { } +// var c = new topLevelClass(); +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// var [|topLevelVar|] = 2; +// var topLevelVar2 = /*FIND ALL REFS*/[|topLevelVar|]; +// +// class topLevelClass { } +// var c = new topLevelClass(); +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// var topLevelVar = 2; +// var topLevelVar2 = topLevelVar; +// +// /*FIND ALL REFS*/class topLevelClass { } +// var c = new topLevelClass(); +// +// interface topLevelInterface { } +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// var topLevelVar = 2; +// var topLevelVar2 = topLevelVar; +// +// class /*FIND ALL REFS*/[|topLevelClass|] { } +// var c = new [|topLevelClass|](); +// +// interface topLevelInterface { } +// var i: topLevelInterface; +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// var topLevelVar = 2; +// var topLevelVar2 = topLevelVar; +// +// class [|topLevelClass|] { } +// var c = new /*FIND ALL REFS*/[|topLevelClass|](); +// +// interface topLevelInterface { } +// var i: topLevelInterface; +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// --- (line: 3) skipped --- +// class topLevelClass { } +// var c = new topLevelClass(); +// +// /*FIND ALL REFS*/interface topLevelInterface { } +// var i: topLevelInterface; +// +// module topLevelModule { +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// --- (line: 3) skipped --- +// class topLevelClass { } +// var c = new topLevelClass(); +// +// interface /*FIND ALL REFS*/[|topLevelInterface|] { } +// var i: [|topLevelInterface|]; +// +// module topLevelModule { +// export var x; +// // --- (line: 12) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// --- (line: 3) skipped --- +// class topLevelClass { } +// var c = new topLevelClass(); +// +// interface [|topLevelInterface|] { } +// var i: /*FIND ALL REFS*/[|topLevelInterface|]; +// +// module topLevelModule { +// export var x; +// // --- (line: 12) skipped --- + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// --- (line: 6) skipped --- +// interface topLevelInterface { } +// var i: topLevelInterface; +// +// /*FIND ALL REFS*/module topLevelModule { +// export var x; +// } +// var x = topLevelModule.x; +// +// export = x; + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// --- (line: 6) skipped --- +// interface topLevelInterface { } +// var i: topLevelInterface; +// +// module /*FIND ALL REFS*/[|topLevelModule|] { +// export var x; +// } +// var x = [|topLevelModule|].x; +// +// export = x; + + + + +// === findAllReferences === +// === /referencesForGlobalsInExternalModule.ts === + +// --- (line: 6) skipped --- +// interface topLevelInterface { } +// var i: topLevelInterface; +// +// module [|topLevelModule|] { +// export var x; +// } +// var x = /*FIND ALL REFS*/[|topLevelModule|].x; +// +// export = x; diff --git a/testdata/baselines/reference/fourslash/referencesForIllegalAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForIllegalAssignment.baseline.jsonc new file mode 100644 index 0000000000..bc2eb98e5c --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForIllegalAssignment.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /referencesForIllegalAssignment.ts === + +// f/*FIND ALL REFS*/oo = foo; +// var bar = function () { }; +// bar = bar + 1; + + + + +// === findAllReferences === +// === /referencesForIllegalAssignment.ts === + +// foo = fo/*FIND ALL REFS*/o; +// var bar = function () { }; +// bar = bar + 1; + + + + +// === findAllReferences === +// === /referencesForIllegalAssignment.ts === + +// foo = foo; +// var /*FIND ALL REFS*/[|bar|] = function () { }; +// [|bar|] = [|bar|] + 1; diff --git a/testdata/baselines/reference/fourslash/referencesForImports.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForImports.baseline.jsonc new file mode 100644 index 0000000000..7733371e72 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForImports.baseline.jsonc @@ -0,0 +1,62 @@ +// === findAllReferences === +// === /referencesForImports.ts === + +// declare module "jquery" { +// function $(s: string): any; +// export = $; +// } +// /*FIND ALL REFS*/import $ = require("jquery"); +// $("a"); +// import $ = require("jquery"); + + + + +// === findAllReferences === +// === /referencesForImports.ts === + +// declare module "jquery" { +// function $(s: string): any; +// export = $; +// } +// import /*FIND ALL REFS*/[|$|] = require("jquery"); +// [|$|]("a"); +// import $ = require("jquery"); + + + + +// === findAllReferences === +// === /referencesForImports.ts === + +// declare module "jquery" { +// function $(s: string): any; +// export = $; +// } +// import [|$|] = require("jquery"); +// /*FIND ALL REFS*/[|$|]("a"); +// import $ = require("jquery"); + + + + +// === findAllReferences === +// === /referencesForImports.ts === + +// --- (line: 3) skipped --- +// } +// import $ = require("jquery"); +// $("a"); +// /*FIND ALL REFS*/import $ = require("jquery"); + + + + +// === findAllReferences === +// === /referencesForImports.ts === + +// --- (line: 3) skipped --- +// } +// import $ = require("jquery"); +// $("a"); +// import /*FIND ALL REFS*/[|$|] = require("jquery"); diff --git a/testdata/baselines/reference/fourslash/referencesForIndexProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForIndexProperty.baseline.jsonc new file mode 100644 index 0000000000..9e6d538aff --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForIndexProperty.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /referencesForIndexProperty.ts === + +// class Foo { +// /*FIND ALL REFS*/[|property|]: number; +// method(): void { } +// } +// +// var f: Foo; +// f["[|property|]"]; +// f["method"]; + + + + +// === findAllReferences === +// === /referencesForIndexProperty.ts === + +// class Foo { +// property: number; +// /*FIND ALL REFS*/[|method|](): void { } +// } +// +// var f: Foo; +// f["property"]; +// f["[|method|]"]; + + + + +// === findAllReferences === +// === /referencesForIndexProperty.ts === + +// class Foo { +// [|property|]: number; +// method(): void { } +// } +// +// var f: Foo; +// f["/*FIND ALL REFS*/[|property|]"]; +// f["method"]; + + + + +// === findAllReferences === +// === /referencesForIndexProperty.ts === + +// class Foo { +// property: number; +// [|method|](): void { } +// } +// +// var f: Foo; +// f["property"]; +// f["/*FIND ALL REFS*/[|method|]"]; diff --git a/testdata/baselines/reference/fourslash/referencesForIndexProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForIndexProperty2.baseline.jsonc new file mode 100644 index 0000000000..0699715589 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForIndexProperty2.baseline.jsonc @@ -0,0 +1,5 @@ +// === findAllReferences === +// === /referencesForIndexProperty2.ts === + +// var a; +// a["/*FIND ALL REFS*/blah"]; diff --git a/testdata/baselines/reference/fourslash/referencesForIndexProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForIndexProperty3.baseline.jsonc new file mode 100644 index 0000000000..b7952955f1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForIndexProperty3.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /referencesForIndexProperty3.ts === + +// interface Object { +// /*FIND ALL REFS*/[|toMyString|](); +// } +// +// var y: Object; +// y.[|toMyString|](); +// +// var x = {}; +// x["[|toMyString|]"](); + + + + +// === findAllReferences === +// === /referencesForIndexProperty3.ts === + +// interface Object { +// [|toMyString|](); +// } +// +// var y: Object; +// y./*FIND ALL REFS*/[|toMyString|](); +// +// var x = {}; +// x["[|toMyString|]"](); + + + + +// === findAllReferences === +// === /referencesForIndexProperty3.ts === + +// interface Object { +// [|toMyString|](); +// } +// +// var y: Object; +// y.[|toMyString|](); +// +// var x = {}; +// x["/*FIND ALL REFS*/[|toMyString|]"](); diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties.baseline.jsonc new file mode 100644 index 0000000000..8f54db59c2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties.baseline.jsonc @@ -0,0 +1,104 @@ +// === findAllReferences === +// === /referencesForInheritedProperties.ts === + +// interface interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// [|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); + + + + +// === findAllReferences === +// === /referencesForInheritedProperties.ts === + +// interface interface1 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// /*FIND ALL REFS*/[|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); + + + + +// === findAllReferences === +// === /referencesForInheritedProperties.ts === + +// interface interface1 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// [|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// /*FIND ALL REFS*/[|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); + + + + +// === findAllReferences === +// === /referencesForInheritedProperties.ts === + +// interface interface1 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1{ +// [|doStuff|](): void; +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v./*FIND ALL REFS*/[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..7a4f317ec3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties2.baseline.jsonc @@ -0,0 +1,26 @@ +// === findAllReferences === +// === /referencesForInheritedProperties2.ts === + +// interface interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// } +// +// interface interface2 { +// [|doStuff|](): void; +// } +// +// interface interface2 extends interface1 { +// } +// +// class class1 implements interface2 { +// [|doStuff|]() { +// +// } +// } +// +// class class2 extends class1 { +// +// } +// +// var v: class2; +// v.[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..a5eeb3faaf --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties3.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === + +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v.[|doStuff|](); + + + + +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === + +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: interface1; +// v.[|propName|]; +// v.doStuff(); + + + + +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === + +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// +// var v: interface1; +// v./*FIND ALL REFS*/[|propName|]; +// v.doStuff(); + + + + +// === findAllReferences === +// === /referencesForInheritedProperties3.ts === + +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v./*FIND ALL REFS*/[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..ad772764e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties4.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === + +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var c: class1; +// c.[|doStuff|](); +// c.propName; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === + +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var c: class1; +// c.doStuff(); +// c.[|propName|]; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === + +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var c: class1; +// c./*FIND ALL REFS*/[|doStuff|](); +// c.propName; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties4.ts === + +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var c: class1; +// c.doStuff(); +// c./*FIND ALL REFS*/[|propName|]; diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties5.baseline.jsonc new file mode 100644 index 0000000000..6b6dabb357 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties5.baseline.jsonc @@ -0,0 +1,34 @@ +// === findAllReferences === +// === /referencesForInheritedProperties5.ts === + +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// interface interface2 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// +// var v: interface1; +// v.propName; +// v.[|doStuff|](); + + + + +// === findAllReferences === +// === /referencesForInheritedProperties5.ts === + +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface2 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// +// var v: interface1; +// v.[|propName|]; +// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties6.baseline.jsonc new file mode 100644 index 0000000000..09108f9593 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties6.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /referencesForInheritedProperties6.ts === + +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// } +// class class2 extends class1 { +// [|doStuff|]() { } +// } +// +// var v: class2; +// v.[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties7.baseline.jsonc new file mode 100644 index 0000000000..c2b2b65e94 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties7.baseline.jsonc @@ -0,0 +1,132 @@ +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === + +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === + +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === + +// class class1 extends class1 { +// doStuff() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === + +// --- (line: 3) skipped --- +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === + +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// +// var v: class2; +// v.[|doStuff|](); +// v.propName; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties7.ts === + +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// +// var v: class2; +// v.doStuff(); +// v.[|propName|]; diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties8.baseline.jsonc new file mode 100644 index 0000000000..e3ed80d606 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties8.baseline.jsonc @@ -0,0 +1,30 @@ +// === findAllReferences === +// === /referencesForInheritedProperties8.ts === + +// interface C extends D { +// /*FIND ALL REFS*/[|propD|]: number; +// } +// interface D extends C { +// [|propD|]: string; +// propC: number; +// } +// var d: D; +// d.[|propD|]; +// d.propC; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties8.ts === + +// interface C extends D { +// propD: number; +// } +// interface D extends C { +// propD: string; +// /*FIND ALL REFS*/[|propC|]: number; +// } +// var d: D; +// d.propD; +// d.[|propC|]; diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties9.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForInheritedProperties9.baseline.jsonc new file mode 100644 index 0000000000..bf0a442911 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForInheritedProperties9.baseline.jsonc @@ -0,0 +1,43 @@ +// === findAllReferences === +// === /referencesForInheritedProperties9.ts === + +// class D extends C { +// /*FIND ALL REFS*/[|prop1|]: string; +// } +// +// class C extends D { +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /referencesForInheritedProperties9.ts === + +// class D extends C { +// prop1: string; +// } +// +// class C extends D { +// /*FIND ALL REFS*/[|prop1|]: string; +// } +// +// var c: C; +// c.[|prop1|]; + + + + +// === findAllReferences === +// === /referencesForInheritedProperties9.ts === + +// class D extends C { +// prop1: string; +// } +// +// class C extends D { +// [|prop1|]: string; +// } +// +// var c: C; +// c./*FIND ALL REFS*/[|prop1|]; diff --git a/testdata/baselines/reference/fourslash/referencesForLabel.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForLabel.baseline.jsonc new file mode 100644 index 0000000000..6ddd5eb65e --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForLabel.baseline.jsonc @@ -0,0 +1,80 @@ +// === findAllReferences === +// === /referencesForLabel.ts === + +// /*FIND ALL REFS*/[|label|]: while (true) { +// if (false) break [|label|]; +// if (true) continue [|label|]; +// } +// +// label: while (false) { } +// var label = "label"; + + + + +// === findAllReferences === +// === /referencesForLabel.ts === + +// label: while (true) { +// if (false) /*FIND ALL REFS*/break label; +// if (true) continue label; +// } +// +// label: while (false) { } +// var label = "label"; + + + + +// === findAllReferences === +// === /referencesForLabel.ts === + +// [|label|]: while (true) { +// if (false) break /*FIND ALL REFS*/[|label|]; +// if (true) continue [|label|]; +// } +// +// label: while (false) { } +// var label = "label"; + + + + +// === findAllReferences === +// === /referencesForLabel.ts === + +// label: while (true) { +// if (false) break label; +// if (true) /*FIND ALL REFS*/continue label; +// } +// +// label: while (false) { } +// var label = "label"; + + + + +// === findAllReferences === +// === /referencesForLabel.ts === + +// [|label|]: while (true) { +// if (false) break [|label|]; +// if (true) continue /*FIND ALL REFS*/[|label|]; +// } +// +// label: while (false) { } +// var label = "label"; + + + + +// === findAllReferences === +// === /referencesForLabel.ts === + +// label: while (true) { +// if (false) break label; +// if (true) continue label; +// } +// +// /*FIND ALL REFS*/[|label|]: while (false) { } +// var label = "label"; diff --git a/testdata/baselines/reference/fourslash/referencesForLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForLabel2.baseline.jsonc new file mode 100644 index 0000000000..f102fc70dc --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForLabel2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /referencesForLabel2.ts === + +// var label = "label"; +// while (true) { +// if (false) break /*FIND ALL REFS*/label; +// if (true) continue label; +// } diff --git a/testdata/baselines/reference/fourslash/referencesForLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForLabel3.baseline.jsonc new file mode 100644 index 0000000000..6679b7164c --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForLabel3.baseline.jsonc @@ -0,0 +1,6 @@ +// === findAllReferences === +// === /referencesForLabel3.ts === + +// /*FIND ALL REFS*/[|label|]: while (true) { +// var label = "label"; +// } diff --git a/testdata/baselines/reference/fourslash/referencesForLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForLabel4.baseline.jsonc new file mode 100644 index 0000000000..b2622029e5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForLabel4.baseline.jsonc @@ -0,0 +1,32 @@ +// === findAllReferences === +// === /referencesForLabel4.ts === + +// /*FIND ALL REFS*/[|label|]: function foo(label) { +// while (true) { +// break [|label|]; +// } +// } + + + + +// === findAllReferences === +// === /referencesForLabel4.ts === + +// label: function foo(label) { +// while (true) { +// /*FIND ALL REFS*/break label; +// } +// } + + + + +// === findAllReferences === +// === /referencesForLabel4.ts === + +// [|label|]: function foo(label) { +// while (true) { +// break /*FIND ALL REFS*/[|label|]; +// } +// } diff --git a/testdata/baselines/reference/fourslash/referencesForLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForLabel5.baseline.jsonc new file mode 100644 index 0000000000..1de7e3936e --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForLabel5.baseline.jsonc @@ -0,0 +1,118 @@ +// === findAllReferences === +// === /referencesForLabel5.ts === + +// /*FIND ALL REFS*/[|label|]: while (true) { +// if (false) break [|label|]; +// function blah() { +// label: while (true) { +// if (false) break label; +// } +// } +// if (false) break [|label|]; +// } + + + + +// === findAllReferences === +// === /referencesForLabel5.ts === + +// label: while (true) { +// if (false) /*FIND ALL REFS*/break label; +// function blah() { +// label: while (true) { +// if (false) break label; +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /referencesForLabel5.ts === + +// [|label|]: while (true) { +// if (false) break /*FIND ALL REFS*/[|label|]; +// function blah() { +// label: while (true) { +// if (false) break label; +// } +// } +// if (false) break [|label|]; +// } + + + + +// === findAllReferences === +// === /referencesForLabel5.ts === + +// label: while (true) { +// if (false) break label; +// function blah() { +// /*FIND ALL REFS*/[|label|]: while (true) { +// if (false) break [|label|]; +// } +// } +// if (false) break label; +// } + + + + +// === findAllReferences === +// === /referencesForLabel5.ts === + +// label: while (true) { +// if (false) break label; +// function blah() { +// label: while (true) { +// if (false) /*FIND ALL REFS*/break label; +// } +// } +// if (false) break label; +// } + + + + +// === findAllReferences === +// === /referencesForLabel5.ts === + +// label: while (true) { +// if (false) break label; +// function blah() { +// [|label|]: while (true) { +// if (false) break /*FIND ALL REFS*/[|label|]; +// } +// } +// if (false) break label; +// } + + + + +// === findAllReferences === +// === /referencesForLabel5.ts === + +// --- (line: 4) skipped --- +// if (false) break label; +// } +// } +// if (false) /*FIND ALL REFS*/break label; +// } + + + + +// === findAllReferences === +// === /referencesForLabel5.ts === + +// [|label|]: while (true) { +// if (false) break [|label|]; +// function blah() { +// label: while (true) { +// if (false) break label; +// } +// } +// if (false) break /*FIND ALL REFS*/[|label|]; +// } diff --git a/testdata/baselines/reference/fourslash/referencesForLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForLabel6.baseline.jsonc new file mode 100644 index 0000000000..c2cc04b2ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForLabel6.baseline.jsonc @@ -0,0 +1,40 @@ +// === findAllReferences === +// === /referencesForLabel6.ts === + +// /*FIND ALL REFS*/[|labela|]: while (true) { +// labelb: while (false) { break labelb; } +// break labelc; +// } + + + + +// === findAllReferences === +// === /referencesForLabel6.ts === + +// labela: while (true) { +// /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } +// break labelc; +// } + + + + +// === findAllReferences === +// === /referencesForLabel6.ts === + +// labela: while (true) { +// labelb: while (false) { /*FIND ALL REFS*/break labelb; } +// break labelc; +// } + + + + +// === findAllReferences === +// === /referencesForLabel6.ts === + +// labela: while (true) { +// labelb: while (false) { break /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } +// break labelc; +// } diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations.baseline.jsonc new file mode 100644 index 0000000000..0b741b7e9f --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations.baseline.jsonc @@ -0,0 +1,154 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// /*FIND ALL REFS*/interface Foo { +// } +// +// module Foo { +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// interface /*FIND ALL REFS*/[|Foo|] { +// } +// +// module Foo { +// // --- (line: 5) skipped --- + + +// --- (line: 8) skipped --- +// } +// +// var f1: Foo.Bar; +// var f2: [|Foo|]; +// Foo.bind(this); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// interface Foo { +// } +// +// /*FIND ALL REFS*/module Foo { +// export interface Bar { } +// } +// +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// interface Foo { +// } +// +// module /*FIND ALL REFS*/[|Foo|] { +// export interface Bar { } +// } +// +// function Foo(): void { +// } +// +// var f1: [|Foo|].Bar; +// var f2: Foo; +// Foo.bind(this); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// --- (line: 4) skipped --- +// export interface Bar { } +// } +// +// /*FIND ALL REFS*/function Foo(): void { +// } +// +// var f1: Foo.Bar; +// var f2: Foo; +// Foo.bind(this); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// --- (line: 4) skipped --- +// export interface Bar { } +// } +// +// function /*FIND ALL REFS*/[|Foo|](): void { +// } +// +// var f1: Foo.Bar; +// var f2: Foo; +// [|Foo|].bind(this); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// interface Foo { +// } +// +// module [|Foo|] { +// export interface Bar { } +// } +// +// function Foo(): void { +// } +// +// var f1: /*FIND ALL REFS*/[|Foo|].Bar; +// var f2: Foo; +// Foo.bind(this); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// interface [|Foo|] { +// } +// +// module Foo { +// // --- (line: 5) skipped --- + + +// --- (line: 8) skipped --- +// } +// +// var f1: Foo.Bar; +// var f2: /*FIND ALL REFS*/[|Foo|]; +// Foo.bind(this); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations.ts === + +// --- (line: 4) skipped --- +// export interface Bar { } +// } +// +// function [|Foo|](): void { +// } +// +// var f1: Foo.Bar; +// var f2: Foo; +// /*FIND ALL REFS*/[|Foo|].bind(this); diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations2.baseline.jsonc new file mode 100644 index 0000000000..2cf2e1cd97 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations2.baseline.jsonc @@ -0,0 +1,56 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === + +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// /*FIND ALL REFS*/import alias = ATest; // definition +// +// var a: alias.Bar; // namespace +// alias.call(this); // value + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === + +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// import /*FIND ALL REFS*/[|alias|] = ATest; // definition +// +// var a: [|alias|].Bar; // namespace +// [|alias|].call(this); // value + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === + +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// import [|alias|] = ATest; // definition +// +// var a: /*FIND ALL REFS*/[|alias|].Bar; // namespace +// [|alias|].call(this); // value + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations2.ts === + +// --- (line: 3) skipped --- +// +// function ATest() { } +// +// import [|alias|] = ATest; // definition +// +// var a: [|alias|].Bar; // namespace +// /*FIND ALL REFS*/[|alias|].call(this); // value diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations3.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations3.baseline.jsonc new file mode 100644 index 0000000000..34f1c62143 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations3.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations3.ts === + +// class testClass { +// static staticMethod() { } +// method() { } +// } +// +// module /*FIND ALL REFS*/[|testClass|] { +// export interface Bar { +// +// } +// } +// +// var c1: testClass; +// var c2: [|testClass|].Bar; +// testClass.staticMethod(); +// testClass.prototype.method(); +// testClass.bind(this); +// new testClass(); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations3.ts === + +// class /*FIND ALL REFS*/[|testClass|] { +// static staticMethod() { } +// method() { } +// } +// // --- (line: 5) skipped --- + + +// --- (line: 8) skipped --- +// } +// } +// +// var c1: [|testClass|]; +// var c2: testClass.Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// new [|testClass|](); diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations4.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations4.baseline.jsonc new file mode 100644 index 0000000000..549b9b5a28 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations4.baseline.jsonc @@ -0,0 +1,259 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// /*FIND ALL REFS*/class testClass { +// static staticMethod() { } +// method() { } +// } +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class /*FIND ALL REFS*/[|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class testClass { +// static staticMethod() { } +// method() { } +// } +// +// /*FIND ALL REFS*/module testClass { +// export interface Bar { +// +// } +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module /*FIND ALL REFS*/[|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: /*FIND ALL REFS*/[|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: /*FIND ALL REFS*/[|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// /*FIND ALL REFS*/[|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// /*FIND ALL REFS*/[|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// /*FIND ALL REFS*/[|testClass|].bind(this); +// [|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// /*FIND ALL REFS*/[|testClass|].s; +// new [|testClass|](); + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations4.ts === + +// class [|testClass|] { +// static staticMethod() { } +// method() { } +// } +// +// module [|testClass|] { +// export interface Bar { +// +// } +// export var s = 0; +// } +// +// var c1: [|testClass|]; +// var c2: [|testClass|].Bar; +// [|testClass|].staticMethod(); +// [|testClass|].prototype.method(); +// [|testClass|].bind(this); +// [|testClass|].s; +// new /*FIND ALL REFS*/[|testClass|](); diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations5.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations5.baseline.jsonc new file mode 100644 index 0000000000..0fe019045e --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations5.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === + +// interface /*FIND ALL REFS*/[|Foo|] { } +// module Foo { export interface Bar { } } +// function Foo() { } +// +// export = Foo; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === + +// interface Foo { } +// module /*FIND ALL REFS*/[|Foo|] { export interface Bar { } } +// function Foo() { } +// +// export = Foo; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === + +// interface Foo { } +// module Foo { export interface Bar { } } +// function /*FIND ALL REFS*/[|Foo|]() { } +// +// export = [|Foo|]; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations5.ts === + +// interface Foo { } +// module Foo { export interface Bar { } } +// function [|Foo|]() { } +// +// export = /*FIND ALL REFS*/[|Foo|]; diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations6.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations6.baseline.jsonc new file mode 100644 index 0000000000..39c098d007 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations6.baseline.jsonc @@ -0,0 +1,41 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations6.ts === + +// interface Foo { } +// /*FIND ALL REFS*/module Foo { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations6.ts === + +// interface Foo { } +// module /*FIND ALL REFS*/[|Foo|] { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a1 = [|Foo|]; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations6.ts === + +// interface Foo { } +// module [|Foo|] { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a1 = /*FIND ALL REFS*/[|Foo|]; diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations7.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations7.baseline.jsonc new file mode 100644 index 0000000000..65002364fe --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations7.baseline.jsonc @@ -0,0 +1,58 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === + +// interface Foo { } +// module Foo { +// export interface /*FIND ALL REFS*/[|Bar|] { } +// export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === + +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } +// export function Bar() { } +// } +// +// // module, value and type +// import a2 = Foo.[|Bar|]; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === + +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module Bar { export interface Baz { } } +// export function /*FIND ALL REFS*/[|Bar|]() { } +// } +// +// // module, value and type +// import a2 = Foo.Bar; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations7.ts === + +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module [|Bar|] { export interface Baz { } } +// export function Bar() { } +// } +// +// // module, value and type +// import a2 = Foo./*FIND ALL REFS*/[|Bar|]; diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations8.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations8.baseline.jsonc new file mode 100644 index 0000000000..c8286a452c --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForMergedDeclarations8.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /referencesForMergedDeclarations8.ts === + +// interface Foo { } +// module Foo { +// export interface Bar { } +// /*FIND ALL REFS*/export module Bar { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a3 = Foo.Bar.Baz; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations8.ts === + +// interface Foo { } +// module Foo { +// export interface Bar { } +// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } +// export function Bar() { } +// } +// +// // module +// import a3 = Foo.[|Bar|].Baz; + + + + +// === findAllReferences === +// === /referencesForMergedDeclarations8.ts === + +// interface Foo { } +// module Foo { +// export interface [|Bar|] { } +// export module [|Bar|] { export interface Baz { } } +// export function [|Bar|]() { } +// } +// +// // module +// import a3 = Foo./*FIND ALL REFS*/[|Bar|].Baz; diff --git a/testdata/baselines/reference/fourslash/referencesForModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForModifiers.baseline.jsonc new file mode 100644 index 0000000000..c522e1120e --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForModifiers.baseline.jsonc @@ -0,0 +1,148 @@ +// === findAllReferences === +// === /referencesForModifiers.ts === + +// /*FIND ALL REFS*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// declare /*FIND ALL REFS*/abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// declare abstract class C1 { +// /*FIND ALL REFS*/static a; +// readonly b; +// public c; +// protected d; +// // --- (line: 6) skipped --- + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// declare abstract class C1 { +// static a; +// /*FIND ALL REFS*/readonly b; +// public c; +// protected d; +// private e; +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// declare abstract class C1 { +// static a; +// readonly b; +// /*FIND ALL REFS*/public c; +// protected d; +// private e; +// } +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// declare abstract class C1 { +// static a; +// readonly b; +// public c; +// /*FIND ALL REFS*/protected d; +// private e; +// } +// const enum E { +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// declare abstract class C1 { +// static a; +// readonly b; +// public c; +// protected d; +// /*FIND ALL REFS*/private e; +// } +// const enum E { +// } +// async function fn() {} +// export default class C2 {} + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// --- (line: 4) skipped --- +// protected d; +// private e; +// } +// /*FIND ALL REFS*/const enum E { +// } +// async function fn() {} +// export default class C2 {} + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// --- (line: 6) skipped --- +// } +// const enum E { +// } +// /*FIND ALL REFS*/async function fn() {} +// export default class C2 {} + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// --- (line: 7) skipped --- +// const enum E { +// } +// async function fn() {} +// /*FIND ALL REFS*/export default class C2 {} + + + + +// === findAllReferences === +// === /referencesForModifiers.ts === + +// --- (line: 7) skipped --- +// const enum E { +// } +// async function fn() {} +// export /*FIND ALL REFS*/default class C2 {} diff --git a/testdata/baselines/reference/fourslash/referencesForNoContext.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForNoContext.baseline.jsonc new file mode 100644 index 0000000000..34961ef11d --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForNoContext.baseline.jsonc @@ -0,0 +1,58 @@ +// === findAllReferences === +// === /referencesForNoContext.ts === + +// module modTest { +// //Declare +// export var modVar:number; +// /*FIND ALL REFS*/ +// +// //Increments +// modVar++; +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesForNoContext.ts === + +// --- (line: 6) skipped --- +// modVar++; +// +// class testCls{ +// /*FIND ALL REFS*/ +// } +// +// function testFn(){ +// // --- (line: 14) skipped --- + + + + +// === findAllReferences === +// === /referencesForNoContext.ts === + +// --- (line: 12) skipped --- +// function testFn(){ +// //Increments +// modVar++; +// } /*FIND ALL REFS*/ +// +// module testMod { +// } +// } + + + + +// === findAllReferences === +// === /referencesForNoContext.ts === + +// --- (line: 13) skipped --- +// //Increments +// modVar++; +// } +// /*FIND ALL REFS*/ +// module testMod { +// } +// } diff --git a/testdata/baselines/reference/fourslash/referencesForNumericLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForNumericLiteralPropertyNames.baseline.jsonc new file mode 100644 index 0000000000..0ecddc1b94 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForNumericLiteralPropertyNames.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /referencesForNumericLiteralPropertyNames.ts === + +// class Foo { +// public /*FIND ALL REFS*/[|12|]: any; +// } +// +// var x: Foo; +// x[[|12|]]; +// x = { "[|12|]": 0 }; +// x = { [|12|]: 0 }; diff --git a/testdata/baselines/reference/fourslash/referencesForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForObjectLiteralProperties.baseline.jsonc new file mode 100644 index 0000000000..c4b651e95e --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForObjectLiteralProperties.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === + +// var x = { /*FIND ALL REFS*/[|add|]: 0, b: "string" }; +// x["[|add|]"]; +// x.[|add|]; +// var y = x; +// y.[|add|]; + + + + +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === + +// var x = { [|add|]: 0, b: "string" }; +// x["/*FIND ALL REFS*/[|add|]"]; +// x.[|add|]; +// var y = x; +// y.[|add|]; + + + + +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === + +// var x = { [|add|]: 0, b: "string" }; +// x["[|add|]"]; +// x./*FIND ALL REFS*/[|add|]; +// var y = x; +// y.[|add|]; + + + + +// === findAllReferences === +// === /referencesForObjectLiteralProperties.ts === + +// var x = { [|add|]: 0, b: "string" }; +// x["[|add|]"]; +// x.[|add|]; +// var y = x; +// y./*FIND ALL REFS*/[|add|]; diff --git a/testdata/baselines/reference/fourslash/referencesForOverrides.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForOverrides.baseline.jsonc new file mode 100644 index 0000000000..f23de46f3f --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForOverrides.baseline.jsonc @@ -0,0 +1,175 @@ +// === findAllReferences === +// === /referencesForOverrides.ts === + +// module FindRef3 { +// module SimpleClassTest { +// export class Foo { +// public /*FIND ALL REFS*/[|foo|](): void { +// } +// } +// export class Bar extends Foo { +// public [|foo|](): void { +// } +// } +// } +// // --- (line: 12) skipped --- + + +// --- (line: 58) skipped --- +// +// function test() { +// var x = new SimpleClassTest.Bar(); +// x.[|foo|](); +// +// var y: SimpleInterfaceTest.IBar = null; +// y.ifoo(); +// // --- (line: 66) skipped --- + + + + +// === findAllReferences === +// === /referencesForOverrides.ts === + +// --- (line: 11) skipped --- +// +// module SimpleInterfaceTest { +// export interface IFoo { +// /*FIND ALL REFS*/[|ifoo|](): void; +// } +// export interface IBar extends IFoo { +// [|ifoo|](): void; +// } +// } +// +// // --- (line: 22) skipped --- + + +// --- (line: 61) skipped --- +// x.foo(); +// +// var y: SimpleInterfaceTest.IBar = null; +// y.[|ifoo|](); +// +// var w: SimpleClassInterfaceTest.Bar = null; +// w.icfoo(); +// // --- (line: 69) skipped --- + + + + +// === findAllReferences === +// === /referencesForOverrides.ts === + +// --- (line: 20) skipped --- +// +// module SimpleClassInterfaceTest { +// export interface IFoo { +// /*FIND ALL REFS*/[|icfoo|](): void; +// } +// export class Bar implements IFoo { +// public [|icfoo|](): void { +// } +// } +// } +// // --- (line: 31) skipped --- + + +// --- (line: 64) skipped --- +// y.ifoo(); +// +// var w: SimpleClassInterfaceTest.Bar = null; +// w.[|icfoo|](); +// +// var z = new Test.BarBlah(); +// z.field = ""; +// // --- (line: 72) skipped --- + + + + +// === findAllReferences === +// === /referencesForOverrides.ts === + +// --- (line: 30) skipped --- +// +// module Test { +// export interface IBase { +// /*FIND ALL REFS*/[|field|]: string; +// method(): void; +// } +// +// export interface IBlah extends IBase { +// [|field|]: string; +// } +// +// export interface IBlah2 extends IBlah { +// [|field|]: string; +// } +// +// export interface IDerived extends IBlah2 { +// method(): void; +// } +// +// export class Bar implements IDerived { +// public [|field|]: string; +// public method(): void { } +// } +// +// export class BarBlah extends Bar { +// public [|field|]: string; +// } +// } +// +// // --- (line: 60) skipped --- + + +// --- (line: 67) skipped --- +// w.icfoo(); +// +// var z = new Test.BarBlah(); +// z.[|field|] = ""; +// z.method(); +// } +// } + + + + +// === findAllReferences === +// === /referencesForOverrides.ts === + +// --- (line: 31) skipped --- +// module Test { +// export interface IBase { +// field: string; +// /*FIND ALL REFS*/[|method|](): void; +// } +// +// export interface IBlah extends IBase { +// // --- (line: 39) skipped --- + + +// --- (line: 43) skipped --- +// } +// +// export interface IDerived extends IBlah2 { +// [|method|](): void; +// } +// +// export class Bar implements IDerived { +// public field: string; +// public [|method|](): void { } +// } +// +// export class BarBlah extends Bar { +// // --- (line: 56) skipped --- + + +// --- (line: 68) skipped --- +// +// var z = new Test.BarBlah(); +// z.field = ""; +// z.[|method|](); +// } +// } diff --git a/testdata/baselines/reference/fourslash/referencesForPropertiesOfGenericType.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForPropertiesOfGenericType.baseline.jsonc new file mode 100644 index 0000000000..f6074b0c5a --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForPropertiesOfGenericType.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /referencesForPropertiesOfGenericType.ts === + +// interface IFoo { +// /*FIND ALL REFS*/[|doSomething|](v: T): T; +// } +// +// var x: IFoo; +// x.[|doSomething|]("ss"); +// +// var y: IFoo; +// y.[|doSomething|](12); + + + + +// === findAllReferences === +// === /referencesForPropertiesOfGenericType.ts === + +// interface IFoo { +// [|doSomething|](v: T): T; +// } +// +// var x: IFoo; +// x./*FIND ALL REFS*/[|doSomething|]("ss"); +// +// var y: IFoo; +// y.[|doSomething|](12); + + + + +// === findAllReferences === +// === /referencesForPropertiesOfGenericType.ts === + +// interface IFoo { +// [|doSomething|](v: T): T; +// } +// +// var x: IFoo; +// x.[|doSomething|]("ss"); +// +// var y: IFoo; +// y./*FIND ALL REFS*/[|doSomething|](12); diff --git a/testdata/baselines/reference/fourslash/referencesForStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStatic.baseline.jsonc new file mode 100644 index 0000000000..311ea18043 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStatic.baseline.jsonc @@ -0,0 +1,291 @@ +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// /*FIND ALL REFS*/static n = ''; +// +// public bar() { +// foo.n = "'"; +// // --- (line: 8) skipped --- + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static /*FIND ALL REFS*/[|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo.[|n|]; + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo./*FIND ALL REFS*/[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo.[|n|]; + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo./*FIND ALL REFS*/[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo.[|n|]; + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo./*FIND ALL REFS*/[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo.[|n|]; + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo./*FIND ALL REFS*/[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo.[|n|]; + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo./*FIND ALL REFS*/[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo.[|n|]; + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo./*FIND ALL REFS*/[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo.[|n|]; + + + + +// === findAllReferences === +// === /referencesOnStatic_1.ts === + +// var n = 43; +// +// class foo { +// static [|n|] = ''; +// +// public bar() { +// foo.[|n|] = "'"; +// if(foo.[|n|]) { +// var x = foo.[|n|]; +// } +// } +// } +// +// class foo2 { +// private x = foo.[|n|]; +// constructor() { +// foo.[|n|] = x; +// } +// +// function b(n) { +// n = foo.[|n|]; +// } +// } + + +// === /referencesOnStatic_2.ts === + +// var q = foo./*FIND ALL REFS*/[|n|]; diff --git a/testdata/baselines/reference/fourslash/referencesForStaticsAndMembersWithSameNames.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStaticsAndMembersWithSameNames.baseline.jsonc new file mode 100644 index 0000000000..b4cdf5a0e6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStaticsAndMembersWithSameNames.baseline.jsonc @@ -0,0 +1,250 @@ +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// /*FIND ALL REFS*/[|bar|]: Foo; +// static bar: Foo; +// +// public foo(): void { +// // --- (line: 8) skipped --- + + +// --- (line: 14) skipped --- +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x.foo(); +// x.[|bar|]; +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// // --- (line: 22) skipped --- + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// bar: Foo; +// /*FIND ALL REFS*/static bar: Foo; +// +// public foo(): void { +// } +// // --- (line: 9) skipped --- + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// bar: Foo; +// static /*FIND ALL REFS*/[|bar|]: Foo; +// +// public foo(): void { +// } +// // --- (line: 9) skipped --- + + +// --- (line: 18) skipped --- +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// MixedStaticsClassTest.Foo.[|bar|]; +// } +// } + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// --- (line: 3) skipped --- +// bar: Foo; +// static bar: Foo; +// +// /*FIND ALL REFS*/public foo(): void { +// } +// public static foo(): void { +// } +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// --- (line: 3) skipped --- +// bar: Foo; +// static bar: Foo; +// +// public /*FIND ALL REFS*/[|foo|](): void { +// } +// public static foo(): void { +// } +// } +// } +// +// function test() { +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x.[|foo|](); +// x.bar; +// +// // static function +// // --- (line: 21) skipped --- + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// --- (line: 5) skipped --- +// +// public foo(): void { +// } +// /*FIND ALL REFS*/public static foo(): void { +// } +// } +// } +// // --- (line: 13) skipped --- + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// --- (line: 5) skipped --- +// +// public foo(): void { +// } +// public static /*FIND ALL REFS*/[|foo|](): void { +// } +// } +// } +// // --- (line: 13) skipped --- + + +// --- (line: 17) skipped --- +// x.bar; +// +// // static function +// MixedStaticsClassTest.Foo.[|foo|](); +// MixedStaticsClassTest.Foo.bar; +// } +// } + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// --- (line: 3) skipped --- +// bar: Foo; +// static bar: Foo; +// +// public [|foo|](): void { +// } +// public static foo(): void { +// } +// } +// } +// +// function test() { +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x./*FIND ALL REFS*/[|foo|](); +// x.bar; +// +// // static function +// // --- (line: 21) skipped --- + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// [|bar|]: Foo; +// static bar: Foo; +// +// public foo(): void { +// // --- (line: 8) skipped --- + + +// --- (line: 14) skipped --- +// // instance function +// var x = new MixedStaticsClassTest.Foo(); +// x.foo(); +// x./*FIND ALL REFS*/[|bar|]; +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// // --- (line: 22) skipped --- + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// --- (line: 5) skipped --- +// +// public foo(): void { +// } +// public static [|foo|](): void { +// } +// } +// } +// // --- (line: 13) skipped --- + + +// --- (line: 17) skipped --- +// x.bar; +// +// // static function +// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|foo|](); +// MixedStaticsClassTest.Foo.bar; +// } +// } + + + + +// === findAllReferences === +// === /referencesForStaticsAndMembersWithSameNames.ts === + +// module FindRef4 { +// module MixedStaticsClassTest { +// export class Foo { +// bar: Foo; +// static [|bar|]: Foo; +// +// public foo(): void { +// } +// // --- (line: 9) skipped --- + + +// --- (line: 18) skipped --- +// +// // static function +// MixedStaticsClassTest.Foo.foo(); +// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|bar|]; +// } +// } diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames.baseline.jsonc new file mode 100644 index 0000000000..20796674ce --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames.ts === + +// class Foo { +// public "/*FIND ALL REFS*/[|ss|]": any; +// } +// +// var x: Foo; +// x.[|ss|]; +// x["[|ss|]"]; +// x = { "[|ss|]": 0 }; +// x = { [|ss|]: 0 }; diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames2.baseline.jsonc new file mode 100644 index 0000000000..970e7d9bfc --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames2.baseline.jsonc @@ -0,0 +1,35 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames2.ts === + +// class Foo { +// /*FIND ALL REFS*/"[|blah|]"() { return 0; } +// } +// +// var x: Foo; +// x.[|blah|]; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames2.ts === + +// class Foo { +// "/*FIND ALL REFS*/[|blah|]"() { return 0; } +// } +// +// var x: Foo; +// x.[|blah|]; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames2.ts === + +// class Foo { +// "[|blah|]"() { return 0; } +// } +// +// var x: Foo; +// x./*FIND ALL REFS*/[|blah|]; diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames3.baseline.jsonc new file mode 100644 index 0000000000..b6926bd12f --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames3.baseline.jsonc @@ -0,0 +1,66 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === + +// class Foo2 { +// /*FIND ALL REFS*/get "42"() { return 0; } +// set 42(n) { } +// } +// +// var y: Foo2; +// y[42]; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === + +// class Foo2 { +// get "/*FIND ALL REFS*/[|42|]"() { return 0; } +// set [|42|](n) { } +// } +// +// var y: Foo2; +// y[[|42|]]; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === + +// class Foo2 { +// get "42"() { return 0; } +// /*FIND ALL REFS*/set 42(n) { } +// } +// +// var y: Foo2; +// y[42]; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === + +// class Foo2 { +// get "[|42|]"() { return 0; } +// set /*FIND ALL REFS*/[|42|](n) { } +// } +// +// var y: Foo2; +// y[[|42|]]; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames3.ts === + +// class Foo2 { +// get "[|42|]"() { return 0; } +// set [|42|](n) { } +// } +// +// var y: Foo2; +// y[/*FIND ALL REFS*/[|42|]]; diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames4.baseline.jsonc new file mode 100644 index 0000000000..8cb9891027 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames4.baseline.jsonc @@ -0,0 +1,16 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames4.ts === + +// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } +// x["[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames4.ts === + +// var x = { "[|someProperty|]": 0 } +// x[/*FIND ALL REFS*/"[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames5.baseline.jsonc new file mode 100644 index 0000000000..cb3b350388 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames5.baseline.jsonc @@ -0,0 +1,16 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames5.ts === + +// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } +// x["[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames5.ts === + +// var x = { "[|someProperty|]": 0 } +// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames6.baseline.jsonc new file mode 100644 index 0000000000..2a63bb7088 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames6.baseline.jsonc @@ -0,0 +1,16 @@ +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames6.ts === + +// const x = function () { return 111111; } +// x./*FIND ALL REFS*/[|someProperty|] = 5; +// x["[|someProperty|]"] = 3; + + + + +// === findAllReferences === +// === /referencesForStringLiteralPropertyNames6.ts === + +// const x = function () { return 111111; } +// x.[|someProperty|] = 5; +// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames7.baseline.jsonc new file mode 100644 index 0000000000..5ec03d47fc --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames7.baseline.jsonc @@ -0,0 +1,16 @@ +// === findAllReferences === +// === /foo.js === + +// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } +// x["[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; + + + + +// === findAllReferences === +// === /foo.js === + +// var x = { "[|someProperty|]": 0 } +// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; +// x.[|someProperty|] = 5; diff --git a/testdata/baselines/reference/fourslash/referencesForTypeKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForTypeKeywords.baseline.jsonc new file mode 100644 index 0000000000..92d4825460 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForTypeKeywords.baseline.jsonc @@ -0,0 +1,78 @@ +// === findAllReferences === +// === /referencesForTypeKeywords.ts === + +// interface I {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === + +// interface I {} +// function f() {} +// type A1 = T /*FIND ALL REFS*/extends U ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === + +// interface I {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends /*FIND ALL REFS*/[|infer|] U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === + +// interface I {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P /*FIND ALL REFS*/in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = readonly T[]; + + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === + +// interface I {} +// function f() {} +// type A1 = T extends U ? 1 : 0; +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in [|keyof|] T]: 1 }; +// type A4 = /*FIND ALL REFS*/[|keyof|] T; +// type A5 = readonly T[]; + + + + +// === findAllReferences === +// === /referencesForTypeKeywords.ts === + +// --- (line: 3) skipped --- +// type A2 = T extends infer U ? 1 : 0; +// type A3 = { [P in keyof T]: 1 }; +// type A4 = keyof T; +// type A5 = /*FIND ALL REFS*/[|readonly|] T[]; diff --git a/testdata/baselines/reference/fourslash/referencesForUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesForUnionProperties.baseline.jsonc new file mode 100644 index 0000000000..4db0a2d74d --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesForUnionProperties.baseline.jsonc @@ -0,0 +1,72 @@ +// === findAllReferences === +// === /referencesForUnionProperties.ts === + +// interface One { +// common: { /*FIND ALL REFS*/[|a|]: number; }; +// } +// +// interface Base { +// // --- (line: 6) skipped --- + + +// --- (line: 17) skipped --- +// +// var x : One | Two; +// +// x.common.[|a|]; + + + + +// === findAllReferences === +// === /referencesForUnionProperties.ts === + +// interface One { +// common: { a: number; }; +// } +// +// interface Base { +// /*FIND ALL REFS*/[|a|]: string; +// b: string; +// } +// +// interface HasAOrB extends Base { +// [|a|]: string; +// b: string; +// } +// +// interface Two { +// common: HasAOrB; +// } +// +// var x : One | Two; +// +// x.common.[|a|]; + + + + +// === findAllReferences === +// === /referencesForUnionProperties.ts === + +// interface One { +// common: { [|a|]: number; }; +// } +// +// interface Base { +// [|a|]: string; +// b: string; +// } +// +// interface HasAOrB extends Base { +// [|a|]: string; +// b: string; +// } +// +// interface Two { +// common: HasAOrB; +// } +// +// var x : One | Two; +// +// x.common./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/referencesInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesInConfiguredProject.baseline.jsonc new file mode 100644 index 0000000000..677e1bd466 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesInConfiguredProject.baseline.jsonc @@ -0,0 +1,11 @@ +// === findAllReferences === +// === /home/src/workspaces/project/referencesForGlobals_1.ts === + +// class [|globalClass|] { +// public f() { } +// } + + +// === /home/src/workspaces/project/referencesForGlobals_2.ts === + +// var c = /*FIND ALL REFS*/[|globalClass|](); diff --git a/testdata/baselines/reference/fourslash/referencesInEmptyFileWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesInEmptyFileWithMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..4ed101013b --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesInEmptyFileWithMultipleProjects.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/a.ts === + +// /// +// /*FIND ALL REFS*/; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/b.ts === + +// /*FIND ALL REFS*/; diff --git a/testdata/baselines/reference/fourslash/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..a531446c31 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /home/src/workspaces/project/a/a.ts === + +// /// +// const str: string = "hello/*FIND ALL REFS*/"; + + + + +// === findAllReferences === +// === /home/src/workspaces/project/b/b.ts === + +// const str2: string = "hello/*FIND ALL REFS*/"; diff --git a/testdata/baselines/reference/fourslash/referencesToNonPropertyNameStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesToNonPropertyNameStringLiteral.baseline.jsonc new file mode 100644 index 0000000000..b108a83ef1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesToNonPropertyNameStringLiteral.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /referencesToNonPropertyNameStringLiteral.ts === + +// const str: string = "hello/*FIND ALL REFS*/"; diff --git a/testdata/baselines/reference/fourslash/referencesToStringLiteralValue.baseline.jsonc b/testdata/baselines/reference/fourslash/referencesToStringLiteralValue.baseline.jsonc new file mode 100644 index 0000000000..71842e32eb --- /dev/null +++ b/testdata/baselines/reference/fourslash/referencesToStringLiteralValue.baseline.jsonc @@ -0,0 +1,4 @@ +// === findAllReferences === +// === /referencesToStringLiteralValue.ts === + +// const s: string = "some /*FIND ALL REFS*/ string"; diff --git a/testdata/baselines/reference/fourslash/remoteGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/remoteGetReferences.baseline.jsonc new file mode 100644 index 0000000000..a9c778558f --- /dev/null +++ b/testdata/baselines/reference/fourslash/remoteGetReferences.baseline.jsonc @@ -0,0 +1,1941 @@ +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: /*FIND ALL REFS*/[|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new /*FIND ALL REFS*/[|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls(/*FIND ALL REFS*/[|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo(/*FIND ALL REFS*/[|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// /*FIND ALL REFS*/[|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_2.ts === + +// /*FIND ALL REFS*/var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// // --- (line: 5) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var /*FIND ALL REFS*/[|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// /*FIND ALL REFS*/class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// // --- (line: 7) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class /*FIND ALL REFS*/[|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// /*FIND ALL REFS*/[|remoteclsVar|] = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.[|remoteclsVar|]++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// /*FIND ALL REFS*/static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// // --- (line: 10) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static /*FIND ALL REFS*/[|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// [|remoteclsVar|] = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this./*FIND ALL REFS*/[|remoteclsVar|]++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// // --- (line: 15) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; +// +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo([|remoteglobalVar|]); +// +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// +// //ETC - Other cases +// [|remoteglobalVar|] = 3; +// +// //Find References misses method param +// var +// // --- (line: 102) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var [|remoteglobalVar|]: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// [|remoteglobalVar|]++; +// this.remoteclsVar++; +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// // --- (line: 14) skipped --- + + +// --- (line: 20) skipped --- +// +// //Increments +// remotefooCls.remoteclsSVar++; +// [|remoteglobalVar|]++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// +// // --- (line: 28) skipped --- + + +// --- (line: 33) skipped --- +// export var remotemodVar: number; +// +// //Increments +// [|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// +// // --- (line: 41) skipped --- + + +// --- (line: 45) skipped --- +// static remoteboo = remotefoo; +// +// //Increments +// /*FIND ALL REFS*/[|remoteglobalVar|]++; +// remotefooCls.remoteclsSVar++; +// remotemodVar++; +// } +// // --- (line: 53) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 82) skipped --- +// +// //Remotes +// //Type test +// var remoteclsTest: [|remotefooCls|]; +// +// //Arguments +// remoteclsTest = new [|remotefooCls|](remoteglobalVar); +// remotefoo(remoteglobalVar); +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class [|remotefooCls|] { +// //Declare +// remoteclsVar = 1; +// static remoteclsSVar = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// [|remotefooCls|].remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// [|remotefooCls|].remoteclsSVar++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// [|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- + + + + +// === findAllReferences === +// === /remoteGetReferences_1.ts === + +// --- (line: 89) skipped --- +// remotefoo(remoteglobalVar); +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remotemodTest.remotemodVar++; +// remoteglobalVar = remoteglobalVar + remoteglobalVar; +// +// // --- (line: 97) skipped --- + + +// === /remoteGetReferences_2.ts === + +// var remoteglobalVar: number = 2; +// +// class remotefooCls { +// //Declare +// remoteclsVar = 1; +// static [|remoteclsSVar|] = 1; +// +// constructor(public remoteclsParam: number) { +// //Increments +// remoteglobalVar++; +// this.remoteclsVar++; +// remotefooCls.[|remoteclsSVar|]++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// } +// // --- (line: 16) skipped --- + + +// --- (line: 19) skipped --- +// var remotefnVar = 1; +// +// //Increments +// remotefooCls.[|remoteclsSVar|]++; +// remoteglobalVar++; +// remotemodTest.remotemodVar++; +// remotefnVar++; +// // --- (line: 27) skipped --- + + +// --- (line: 34) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls.[|remoteclsSVar|]++; +// remotemodVar++; +// +// class remotetestCls { +// // --- (line: 42) skipped --- + + +// --- (line: 46) skipped --- +// +// //Increments +// remoteglobalVar++; +// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; +// remotemodVar++; +// } +// +// // --- (line: 54) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename01.baseline.jsonc new file mode 100644 index 0000000000..95c9953d73 --- /dev/null +++ b/testdata/baselines/reference/fourslash/rename01.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /rename01.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..0159527d42 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,34 @@ +// === findRenameLocations === +// === /a.ts === + +// var /*RENAME*/[|xRENAME|]: number; + + +// === /b.ts === + +// /// +// [|xRENAME|]++; + + +// === /c.ts === + +// /// +// [|xRENAME|]++; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*//// +// x++; + + + + +// === findRenameLocations === +// === /c.ts === + +// /*RENAME*//// +// x++; diff --git a/testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc new file mode 100644 index 0000000000..6a90b4e50a --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc @@ -0,0 +1,16 @@ +// === findRenameLocations === +// === /renameAlias.ts === + +// module SomeModule { export class SomeClass { } } +// import /*RENAME*/[|MRENAME|] = SomeModule; +// import C = [|MRENAME|].SomeClass; + + + + +// === findRenameLocations === +// === /renameAlias.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// import M = SomeModule; +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc new file mode 100644 index 0000000000..3f204cb766 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc @@ -0,0 +1,16 @@ +// === findRenameLocations === +// === /renameAlias2.ts === + +// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } +// import M = [|SomeModuleRENAME|]; +// import C = M.SomeClass; + + + + +// === findRenameLocations === +// === /renameAlias2.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// import M = SomeModule; +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc new file mode 100644 index 0000000000..06968d0843 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc @@ -0,0 +1,16 @@ +// === findRenameLocations === +// === /renameAlias3.ts === + +// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } +// import M = SomeModule; +// import C = M.SomeClass; + + + + +// === findRenameLocations === +// === /renameAlias3.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// import M = SomeModule; +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc new file mode 100644 index 0000000000..2a9bff9aad --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /b.ts === + +// import /*RENAME*/[|MRENAME|] = require("./a"); +// import C = [|MRENAME|].SomeClass; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc new file mode 100644 index 0000000000..cdd53ab6ea --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// export = SomeModule; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/module SomeModule { export class SomeClass { } } +// export = SomeModule; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc new file mode 100644 index 0000000000..7e751429c2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /a.ts === + +// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } +// export = SomeModule; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import M = require("./a"); +// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc new file mode 100644 index 0000000000..1f55b894bb --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc @@ -0,0 +1,80 @@ +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// const /*RENAME*/[|externalRENAME|] = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === + +// /*RENAME*/const external = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc new file mode 100644 index 0000000000..cbba4347b8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc @@ -0,0 +1,61 @@ +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// function f({required, optional = required}: {/*RENAME*/[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({[|requiredRENAME|]: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); + + + + +// === findRenameLocations === +// === /renameBindingElementInitializerProperty.ts === + +// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// console.log("required", required); +// console.log("optional", optional); +// } +// +// f({required: 10}); diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc new file mode 100644 index 0000000000..096caa9e1d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings1.ts === + +// /// +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc new file mode 100644 index 0000000000..5fdc3f76ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings2.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc new file mode 100644 index 0000000000..ace93735f1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings3.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" +// } diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc new file mode 100644 index 0000000000..35d778a150 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings4.ts === + +// /*RENAME*//// +// function Bar() { +// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc new file mode 100644 index 0000000000..8363ebb904 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc @@ -0,0 +1,395 @@ +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// /*RENAME*/[|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// /*RENAME*/[|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// /*RENAME*/[|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get /*RENAME*/[|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set [|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// interface I { +// [|prop1RENAME|]: () => void; +// prop2(): void; +// } +// +// var o1: I = { +// [|prop1RENAME|]() { }, +// prop2() { } +// }; +// +// var o2: I = { +// [|prop1RENAME|]: () => { }, +// prop2: () => { } +// }; +// +// var o3: I = { +// get [|prop1RENAME|]() { return () => { }; }, +// get prop2() { return () => { }; } +// }; +// +// var o4: I = { +// set /*RENAME*/[|prop1RENAME|](v) { }, +// set prop2(v) { } +// }; +// +// var o5: I = { +// "[|prop1RENAME|]"() { }, +// "prop2"() { } +// }; +// +// var o6: I = { +// "[|prop1RENAME|]": function () { }, +// "prop2": function () { } +// }; +// +// var o7: I = { +// ["[|prop1RENAME|]"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// var o8: I = { +// ["[|prop1RENAME|]"]() { }, +// ["prop2"]() { } +// }; +// +// var o9: I = { +// get ["[|prop1RENAME|]"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["[|prop1RENAME|]"](v) { }, +// set ["prop2"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 23) skipped --- +// }; +// +// var o5: I = { +// "/*RENAME*/prop1"() { }, +// "prop2"() { } +// }; +// +// // --- (line: 31) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 28) skipped --- +// }; +// +// var o6: I = { +// "/*RENAME*/prop1": function () { }, +// "prop2": function () { } +// }; +// +// // --- (line: 36) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 33) skipped --- +// }; +// +// var o7: I = { +// ["/*RENAME*/prop1"]: function () { }, +// ["prop2"]: function () { } +// }; +// +// // --- (line: 41) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 38) skipped --- +// }; +// +// var o8: I = { +// ["/*RENAME*/prop1"]() { }, +// ["prop2"]() { } +// }; +// +// // --- (line: 46) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 43) skipped --- +// }; +// +// var o9: I = { +// get ["/*RENAME*/prop1"]() { return () => { }; }, +// get ["prop2"]() { return () => { }; } +// }; +// +// // --- (line: 51) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties.ts === + +// --- (line: 48) skipped --- +// }; +// +// var o10: I = { +// set ["/*RENAME*/prop1"](v) { }, +// set ["prop2"](v) { } +// }; diff --git a/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc new file mode 100644 index 0000000000..e9c6610faf --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc @@ -0,0 +1,394 @@ +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// /*RENAME*/[|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// /*RENAME*/[|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// /*RENAME*/[|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get /*RENAME*/[|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set [|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// interface I { +// prop1: () => void; +// [|prop2RENAME|](): void; +// } +// +// var o1: I = { +// prop1() { }, +// [|prop2RENAME|]() { } +// }; +// +// var o2: I = { +// prop1: () => { }, +// [|prop2RENAME|]: () => { } +// }; +// +// var o3: I = { +// get prop1() { return () => { }; }, +// get [|prop2RENAME|]() { return () => { }; } +// }; +// +// var o4: I = { +// set prop1(v) { }, +// set /*RENAME*/[|prop2RENAME|](v) { } +// }; +// +// var o5: I = { +// "prop1"() { }, +// "[|prop2RENAME|]"() { } +// }; +// +// var o6: I = { +// "prop1": function () { }, +// "[|prop2RENAME|]": function () { } +// }; +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["[|prop2RENAME|]"]: function () { } +// }; +// +// var o8: I = { +// ["prop1"]() { }, +// ["[|prop2RENAME|]"]() { } +// }; +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["[|prop2RENAME|]"]() { return () => { }; } +// }; +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["[|prop2RENAME|]"](v) { } +// }; + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 24) skipped --- +// +// var o5: I = { +// "prop1"() { }, +// "/*RENAME*/prop2"() { } +// }; +// +// var o6: I = { +// // --- (line: 32) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 29) skipped --- +// +// var o6: I = { +// "prop1": function () { }, +// "/*RENAME*/prop2": function () { } +// }; +// +// var o7: I = { +// // --- (line: 37) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 34) skipped --- +// +// var o7: I = { +// ["prop1"]: function () { }, +// ["/*RENAME*/prop2"]: function () { } +// }; +// +// var o8: I = { +// // --- (line: 42) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 39) skipped --- +// +// var o8: I = { +// ["prop1"]() { }, +// ["/*RENAME*/prop2"]() { } +// }; +// +// var o9: I = { +// // --- (line: 47) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 44) skipped --- +// +// var o9: I = { +// get ["prop1"]() { return () => { }; }, +// get ["/*RENAME*/prop2"]() { return () => { }; } +// }; +// +// var o10: I = { +// // --- (line: 52) skipped --- + + + + +// === findRenameLocations === +// === /renameContextuallyTypedProperties2.ts === + +// --- (line: 49) skipped --- +// +// var o10: I = { +// set ["prop1"](v) { }, +// set ["/*RENAME*/prop2"](v) { } +// }; diff --git a/testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc new file mode 100644 index 0000000000..19ba7ab61d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc @@ -0,0 +1,212 @@ +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class /*RENAME*/[|C1RENAME|] extends Base implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } +// // --- (line: 7) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// /*RENAME*/class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// /*RENAME*/class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// /*RENAME*/get e() { return 1; } +// set e(v) {} +// } +// interface I1 extends Base { } +// // --- (line: 8) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// /*RENAME*/set e(v) {} +// } +// interface I1 extends Base { } +// type T = { } +// // --- (line: 9) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 3) skipped --- +// get e() { return 1; } +// set e(v) {} +// } +// interface /*RENAME*/[|I1RENAME|] extends Base { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// /*RENAME*/class Base {} +// interface Implemented1 {} +// class C1 extends Base implements Implemented1 { +// get e() { return 1; } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 4) skipped --- +// set e(v) {} +// } +// interface I1 extends Base { } +// type /*RENAME*/[|TRENAME|] = { } +// enum E { } +// namespace N { } +// module M { } +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 5) skipped --- +// } +// interface I1 extends Base { } +// type T = { } +// enum /*RENAME*/[|ERENAME|] { } +// namespace N { } +// module M { } +// function fn() {} +// // --- (line: 13) skipped --- + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 6) skipped --- +// interface I1 extends Base { } +// type T = { } +// enum E { } +// namespace /*RENAME*/[|NRENAME|] { } +// module M { } +// function fn() {} +// var x; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 7) skipped --- +// type T = { } +// enum E { } +// namespace N { } +// module /*RENAME*/[|MRENAME|] { } +// function fn() {} +// var x; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 8) skipped --- +// enum E { } +// namespace N { } +// module M { } +// function /*RENAME*/[|fnRENAME|]() {} +// var x; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 9) skipped --- +// namespace N { } +// module M { } +// function fn() {} +// var /*RENAME*/[|xRENAME|]; +// let y; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 10) skipped --- +// module M { } +// function fn() {} +// var x; +// let /*RENAME*/[|yRENAME|]; +// const z = 1; + + + + +// === findRenameLocations === +// === /renameDeclarationKeywords.ts === + +// --- (line: 11) skipped --- +// function fn() {} +// var x; +// let y; +// const /*RENAME*/[|zRENAME|] = 1; diff --git a/testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc new file mode 100644 index 0000000000..401eb0406f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /file1.ts === + +// /*RENAME*/var test = "foo"; +// console.log(test); diff --git a/testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc new file mode 100644 index 0000000000..44420f1298 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameDestructuringAssignment.ts === + +// interface I { +// /*RENAME*/[|xRENAME|]: number; +// } +// var a: I; +// var x; +// ({ [|xRENAME|]: x } = a); + + + + +// === findRenameLocations === +// === /renameDestructuringAssignment.ts === + +// interface I { +// [|xRENAME|]: number; +// } +// var a: I; +// var x; +// ({ /*RENAME*/[|xRENAME|]: x } = a); diff --git a/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc new file mode 100644 index 0000000000..0e8448e012 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc new file mode 100644 index 0000000000..77f28ace03 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc @@ -0,0 +1,56 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc new file mode 100644 index 0000000000..452c7c75e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc @@ -0,0 +1,56 @@ +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === + +// /*RENAME*/class A { +// foo: string; +// } +// class B { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc new file mode 100644 index 0000000000..1ac4ed6b4c --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc new file mode 100644 index 0000000000..b4daf047b3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === + +// /*RENAME*/interface I { +// property1: number; +// property2: string; +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..edd4f72fd9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc @@ -0,0 +1,26 @@ +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === + +// /*RENAME*/function f({a}: {a}) { +// f({a}); +// } + + + + +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === + +// /*RENAME*/function f({a}: {a}) { +// f({a}); +// } + + + + +// === findRenameLocations === +// === /renameDestructuringFunctionParameter.ts === + +// /*RENAME*/function f({a}: {a}) { +// f({a}); +// } diff --git a/testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc new file mode 100644 index 0000000000..987e2f3613 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === + +// /*RENAME*/interface MultiRobot { +// name: string; +// skills: { +// primary: string; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc new file mode 100644 index 0000000000..292ef092c5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /Foo.js === + +// let [|aRENAME|]; +// module.exports = /*RENAME*/[|aRENAME|]; +// exports["foo"] = [|aRENAME|]; diff --git a/testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc new file mode 100644 index 0000000000..3a1676e6cb --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /a.ts === + +// const name = {}; +// export { name as name/*RENAME*/ }; diff --git a/testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc new file mode 100644 index 0000000000..49da7e7525 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /a.ts === + +// const [|nameRENAME|] = {}; +// export { name/*RENAME*/ }; diff --git a/testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc new file mode 100644 index 0000000000..7b556fb8a6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /a.ts === + +// interface Foo { +// property: /*RENAME*/"foo"; +// } +// /** +// * @type {{ property: "foo"}} +// // --- (line: 6) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc new file mode 100644 index 0000000000..21df074896 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /renameFunctionParameter1.ts === + +// function Foo() { +// /** +// * @param {number} p +// */ +// this.foo = function foo(p/*RENAME*/[|pRENAME|]) { +// return [|pRENAME|]; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc new file mode 100644 index 0000000000..e21a2c619c --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameFunctionParameter2.ts === + +// /** +// * @param {number} p +// */ +// const foo = function foo(p/*RENAME*/[|pRENAME|]) { +// return [|pRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc new file mode 100644 index 0000000000..55c2ecc84f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameImportAndExport.ts === + +// /*RENAME*/import a from "module"; +// export { a }; + + + + +// === findRenameLocations === +// === /renameImportAndExport.ts === + +// /*RENAME*/import a from "module"; +// export { a }; diff --git a/testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc new file mode 100644 index 0000000000..4a2feb9b7c --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc @@ -0,0 +1,70 @@ +// === findAllReferences === +// === /a.ts === + +// export var /*FIND ALL REFS*/[|a|]; + + +// === /b.ts === + +// import { [|a|] } from './a'; +// export { a }; + + + + +// === findAllReferences === +// === /a.ts === + +// export var [|a|]; + + +// === /b.ts === + +// import { /*FIND ALL REFS*/[|a|] } from './a'; +// export { a }; + + + + +// === findAllReferences === +// === /a.ts === + +// export var [|a|]; + + +// === /b.ts === + +// import { [|a|] } from './a'; +// export { /*FIND ALL REFS*/a }; + + + + +// === findRenameLocations === +// === /a.ts === + +// export var /*RENAME*/[|aRENAME|]; + + +// === /b.ts === + +// import { [|aRENAME|] } from './a'; +// export { a }; + + + + +// === findRenameLocations === +// === /b.ts === + +// import { /*RENAME*/[|aRENAME|] } from './a'; +// export { a }; + + + + +// === findRenameLocations === +// === /b.ts === + +// import { [|aRENAME|] } from './a'; +// export { /*RENAME*/a }; diff --git a/testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc new file mode 100644 index 0000000000..c5c9238f13 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameImportAndShorthand.ts === + +// /*RENAME*/import foo from 'bar'; +// const bar = { foo }; + + + + +// === findRenameLocations === +// === /renameImportAndShorthand.ts === + +// /*RENAME*/import foo from 'bar'; +// const bar = { foo }; diff --git a/testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc new file mode 100644 index 0000000000..550de3d42f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameImportNamespaceAndShorthand.ts === + +// /*RENAME*/import * as foo from 'bar'; +// const bar = { foo }; + + + + +// === findRenameLocations === +// === /renameImportNamespaceAndShorthand.ts === + +// /*RENAME*/import * as foo from 'bar'; +// const bar = { foo }; diff --git a/testdata/baselines/reference/fourslash/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportOfExportEquals.baseline.jsonc new file mode 100644 index 0000000000..0c7b3ac27f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameImportOfExportEquals.baseline.jsonc @@ -0,0 +1,194 @@ +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace /*FIND ALL REFS*/[|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as [|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace [|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as /*FIND ALL REFS*/[|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace [|N|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|N|]; +// } +// declare module "a" { +// import * as [|N|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { /*FIND ALL REFS*/[|N|] } from "a"; +// export const y: typeof [|N|].x; +// } + + + + +// === findAllReferences === +// === /renameImportOfExportEquals.ts === + +// declare namespace N { +// export var /*FIND ALL REFS*/[|x|]: number; +// } +// declare module "mod" { +// export = N; +// // --- (line: 6) skipped --- + + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.[|x|]; +// } + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// declare namespace N { +// export var /*RENAME*/[|xRENAME|]: number; +// } +// declare module "mod" { +// export = N; +// // --- (line: 6) skipped --- + + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.[|xRENAME|]; +// } + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// /*RENAME*/declare namespace N { +// export var x: number; +// } +// declare module "mod" { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// --- (line: 4) skipped --- +// export = N; +// } +// declare module "a" { +// import * as /*RENAME*/[|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// /*RENAME*/declare namespace N { +// export var x: number; +// } +// declare module "mod" { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// --- (line: 8) skipped --- +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { /*RENAME*/[|NRENAME|] } from "a"; +// export const y: typeof [|NRENAME|].x; +// } + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// /*RENAME*/declare namespace N { +// export var x: number; +// } +// declare module "mod" { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// declare namespace /*RENAME*/[|NRENAME|] { +// export var x: number; +// } +// declare module "mod" { +// export = [|NRENAME|]; +// } +// declare module "a" { +// import * as [|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /renameImportOfExportEquals.ts === + +// /*RENAME*/declare namespace N { +// export var x: number; +// } +// declare module "mod" { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc new file mode 100644 index 0000000000..df7e7c6868 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc @@ -0,0 +1,58 @@ +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/import e = require("mod4"); +// e; +// a = { e }; +// export { e }; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import { e } from "./a"; +// export { e }; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/import { e } from "./a"; +// export { e }; diff --git a/testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc new file mode 100644 index 0000000000..b6d213a13f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc @@ -0,0 +1,4 @@ +// === findRenameLocations === +// === /canada.ts === + +// export interface /*RENAME*/[|GingerRENAME|] {} diff --git a/testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc new file mode 100644 index 0000000000..c28a20b58d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc @@ -0,0 +1,12 @@ +// === findRenameLocations === +// === /referencesForGlobals_1.ts === + +// /*RENAME*/var globalName = 0; + + + + +// === findRenameLocations === +// === /referencesForGlobals_2.ts === + +// /*RENAME*/var y = globalName; diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc new file mode 100644 index 0000000000..3ff816acc3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties1.ts === + +// class class1 extends class1 { +// /*RENAME*/[|propNameRENAME|]: string; +// } +// +// var v: class1; +// v.[|propNameRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties1.ts === + +// /*RENAME*/ class class1 extends class1 { +// propName: string; +// } +// +// var v: class1; +// v.propName; diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..08b679b79d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties2.ts === + +// class class1 extends class1 { +// /*RENAME*/[|doStuffRENAME|]() { } +// } +// +// var v: class1; +// v.[|doStuffRENAME|](); + + + + +// === findRenameLocations === +// === /renameInheritedProperties2.ts === + +// /*RENAME*/ class class1 extends class1 { +// doStuff() { } +// } +// +// var v: class1; +// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..0b64ed73fa --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties3.ts === + +// interface interface1 extends interface1 { +// /*RENAME*/[|propNameRENAME|]: string; +// } +// +// var v: interface1; +// v.[|propNameRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties3.ts === + +// /*RENAME*/ interface interface1 extends interface1 { +// propName: string; +// } +// +// var v: interface1; +// v.propName; diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..692b84192b --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renameInheritedProperties4.ts === + +// interface interface1 extends interface1 { +// /*RENAME*/[|doStuffRENAME|](): string; +// } +// +// var v: interface1; +// v.[|doStuffRENAME|](); + + + + +// === findRenameLocations === +// === /renameInheritedProperties4.ts === + +// /*RENAME*/ interface interface1 extends interface1 { +// doStuff(): string; +// } +// +// var v: interface1; +// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc new file mode 100644 index 0000000000..5be0e9682c --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /renameInheritedProperties5.ts === + +// interface C extends D { +// propC: number; +// } +// interface D extends C { +// /*RENAME*/[|propDRENAME|]: string; +// } +// var d: D; +// d.[|propDRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties5.ts === + +// /*RENAME*/interface C extends D { +// propC: number; +// } +// interface D extends C { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc new file mode 100644 index 0000000000..b396aa45a6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /renameInheritedProperties6.ts === + +// interface C extends D { +// propD: number; +// } +// interface D extends C { +// /*RENAME*/[|propCRENAME|]: number; +// } +// var d: D; +// d.[|propCRENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties6.ts === + +// /*RENAME*/interface C extends D { +// propD: number; +// } +// interface D extends C { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc new file mode 100644 index 0000000000..2450b2c01d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc @@ -0,0 +1,25 @@ +// === findRenameLocations === +// === /renameInheritedProperties7.ts === + +// class C extends D { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// class D extends C { +// prop1: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties7.ts === + +// /*RENAME*/ class C extends D { +// prop1: string; +// } +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc new file mode 100644 index 0000000000..6f4a7034db --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc @@ -0,0 +1,42 @@ +// === findRenameLocations === +// === /renameInheritedProperties8.ts === + +// class C implements D { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// interface D extends C { +// [|prop1RENAME|]: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties8.ts === + +// class C implements D { +// [|prop1RENAME|]: string; +// } +// +// interface D extends C { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + + +// === findRenameLocations === +// === /renameInheritedProperties8.ts === + +// /*RENAME*/ class C implements D { +// prop1: string; +// } +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc new file mode 100644 index 0000000000..8f16494b3d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameJSDocNamepath.ts === + +// /** +// * @type {module:foo/A} x +// */ +// var x = 1 +// var /*RENAME*/[|ARENAME|] = 0; diff --git a/testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc new file mode 100644 index 0000000000..5cc0363b6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /a.js === + +// /** +// * @import { A } from "./b"; +// */ +// +// /** +// * @param { A/*RENAME*/[|ARENAME|] } a +// */ +// function f(a) {} diff --git a/testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc new file mode 100644 index 0000000000..e308039562 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /a.js === + +// /** +// * @param {Object} options +// * @param {string} options.foo +// * @param {number} options.bar +// */ +// function foo(/*RENAME*/[|optionsRENAME|]) {} diff --git a/testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc new file mode 100644 index 0000000000..f29d392321 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc @@ -0,0 +1,27 @@ +// === findAllReferences === +// === /a.js === + +// exports.[|area|] = function (r) { return r * r; } + + +// === /b.js === + +// var mod = require('./a'); +// var t = mod./*FIND ALL REFS*/area(10); + + + + +// === findRenameLocations === +// === /a.js === + +// exports./*RENAME*/[|areaRENAME|] = function (r) { return r * r; } + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/var mod = require('./a'); +// var t = mod.area(10); diff --git a/testdata/baselines/reference/fourslash/renameJsExports02.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsExports02.baseline.jsonc new file mode 100644 index 0000000000..acdb42aec6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsExports02.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /a.js === + +// module.exports = class /*FIND ALL REFS*/[|A|] {} + + + + +// === findAllReferences === +// === /b.js === + +// const /*FIND ALL REFS*/[|A|] = require("./a"); diff --git a/testdata/baselines/reference/fourslash/renameJsExports03.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsExports03.baseline.jsonc new file mode 100644 index 0000000000..e0fd047e6b --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsExports03.baseline.jsonc @@ -0,0 +1,36 @@ +// === findAllReferences === +// === /a.js === + +// class /*FIND ALL REFS*/[|A|] { +// constructor() { } +// } +// module.exports = [|A|]; + + + + +// === findAllReferences === +// === /a.js === + +// class [|A|] { +// /*FIND ALL REFS*/constructor() { } +// } +// module.exports = [|A|]; + + + + +// === findAllReferences === +// === /b.js === + +// const /*FIND ALL REFS*/[|A|] = require("./a"); +// new [|A|]; + + + + +// === findAllReferences === +// === /b.js === + +// const [|A|] = require("./a"); +// new /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc new file mode 100644 index 0000000000..310f80d7b9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc @@ -0,0 +1,10 @@ +// === findRenameLocations === +// === /foo.js === + +// --- (line: 9) skipped --- +// * @param {unknown} x +// * @returns {unknown} +// */ +// function foo(x/*RENAME*/[|xRENAME|]) { +// return [|xRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc new file mode 100644 index 0000000000..cd3317c84f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar./*RENAME*/[|fooRENAME|] = "foo"; +// console.log(bar.[|fooRENAME|]); + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/function bar() { +// } +// bar.foo = "foo"; +// console.log(bar.foo); diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc new file mode 100644 index 0000000000..b52fc08b65 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// class Minimatch { +// } +// Minimatch./*RENAME*/[|staticPropertyRENAME|] = "string"; +// console.log(Minimatch.[|staticPropertyRENAME|]); + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/class Minimatch { +// } +// Minimatch.staticProperty = "string"; +// console.log(Minimatch.staticProperty); diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc new file mode 100644 index 0000000000..da6fe0055e --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// var C = class { +// } +// C./*RENAME*/[|staticPropertyRENAME|] = "string"; +// console.log(C.[|staticPropertyRENAME|]); + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/var C = class { +// } +// C.staticProperty = "string"; +// console.log(C.staticProperty); diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc new file mode 100644 index 0000000000..00aebe58bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc @@ -0,0 +1,18 @@ +// === findRenameLocations === +// === /a.js === + +// function f() { +// var /*RENAME*/[|fooRENAME|] = this; +// [|fooRENAME|].x = 1; +// } + + + + +// === findRenameLocations === +// === /a.js === + +// function f() { +// var [|fooRENAME|] = this; +// /*RENAME*/[|fooRENAME|].x = 1; +// } diff --git a/testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc new file mode 100644 index 0000000000..0607885f53 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype./*RENAME*/x = 10; +// var t = new bar(); +// t.x = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype.x = 10; +// var t = new bar(); +// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc new file mode 100644 index 0000000000..0607885f53 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype./*RENAME*/x = 10; +// var t = new bar(); +// t.x = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// function bar() { +// } +// bar.prototype.x = 10; +// var t = new bar(); +// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc new file mode 100644 index 0000000000..5d46b7840b --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /a.js === + +// function bar() { +// this./*RENAME*/x = 10; +// } +// var t = new bar(); +// t.x = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// function bar() { +// this.x = 10; +// } +// var t = new bar(); +// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc new file mode 100644 index 0000000000..61b25a2d6d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc @@ -0,0 +1,24 @@ +// === findRenameLocations === +// === /a.js === + +// class C { +// constructor(y) { +// this./*RENAME*/[|xRENAME|] = y; +// } +// } +// var t = new C(12); +// t.[|xRENAME|] = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// class C { +// constructor(y) { +// this.[|xRENAME|] = y; +// } +// } +// var t = new C(12); +// t./*RENAME*/[|xRENAME|] = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc new file mode 100644 index 0000000000..0975429736 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /a.js === + +// class C { +// constructor(y) { +// this.x = y; +// } +// } +// C.prototype./*RENAME*/z = 1; +// var t = new C(12); +// t.z = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// --- (line: 4) skipped --- +// } +// C.prototype.z = 1; +// var t = new C(12); +// t./*RENAME*/z = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc new file mode 100644 index 0000000000..a4df38f6dd --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /a.js === + +// var C = class { +// constructor(y) { +// this.x = y; +// } +// } +// C.prototype./*RENAME*/z = 1; +// var t = new C(12); +// t.z = 11; + + + + +// === findRenameLocations === +// === /a.js === + +// --- (line: 4) skipped --- +// } +// C.prototype.z = 1; +// var t = new C(12); +// t./*RENAME*/z = 11; diff --git a/testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc new file mode 100644 index 0000000000..8052de8b13 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /renameLabel1.ts === + +// [|fooRENAME|]: { +// break /*RENAME*/[|fooRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc new file mode 100644 index 0000000000..90e5de9a9e --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc @@ -0,0 +1,6 @@ +// === findRenameLocations === +// === /renameLabel2.ts === + +// /*RENAME*/[|fooRENAME|]: { +// break [|fooRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc new file mode 100644 index 0000000000..0fddfa042b --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel3.ts === + +// /*RENAME*/[|loopRENAME|]: +// for (let i = 0; i <= 10; i++) { +// if (i === 0) continue [|loopRENAME|]; +// if (i === 1) continue [|loopRENAME|]; +// if (i === 10) break [|loopRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc new file mode 100644 index 0000000000..9a92975063 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel4.ts === + +// [|loopRENAME|]: +// for (let i = 0; i <= 10; i++) { +// if (i === 0) continue [|loopRENAME|]; +// if (i === 1) continue /*RENAME*/[|loopRENAME|]; +// if (i === 10) break [|loopRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc new file mode 100644 index 0000000000..d9fabf7505 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel5.ts === + +// [|loop1RENAME|]: for (let i = 0; i <= 10; i++) { +// loop2: for (let j = 0; j <= 10; j++) { +// if (i === 5) continue /*RENAME*/[|loop1RENAME|]; +// if (j === 5) break loop2; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc new file mode 100644 index 0000000000..eb521ed370 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameLabel6.ts === + +// loop1: for (let i = 0; i <= 10; i++) { +// [|loop2RENAME|]: for (let j = 0; j <= 10; j++) { +// if (i === 5) continue loop1; +// if (j === 5) break /*RENAME*/[|loop2RENAME|]; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc new file mode 100644 index 0000000000..25f1ddbcaf --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc @@ -0,0 +1,41 @@ +// === findRenameLocations === +// === /renameLocationsForClassExpression01.ts === + +// class Foo { +// } +// +// var x = class /*RENAME*/[|FooRENAME|] { +// doIt() { +// return [|FooRENAME|]; +// } +// +// static doItStatically() { +// return [|FooRENAME|].y; +// } +// } +// +// // --- (line: 14) skipped --- + + + + +// === findRenameLocations === +// === /renameLocationsForClassExpression01.ts === + +// /*RENAME*/class Foo { +// } +// +// var x = class Foo { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameLocationsForClassExpression01.ts === + +// /*RENAME*/class Foo { +// } +// +// var x = class Foo { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc new file mode 100644 index 0000000000..f0dfea41e6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc @@ -0,0 +1,26 @@ +// === findRenameLocations === +// === /renameLocationsForFunctionExpression01.ts === + +// var x = function /*RENAME*/[|fRENAME|](g: any, h: any) { +// [|fRENAME|]([|fRENAME|], g); +// } + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression01.ts === + +// /*RENAME*/var x = function f(g: any, h: any) { +// f(f, g); +// } + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression01.ts === + +// /*RENAME*/var x = function f(g: any, h: any) { +// f(f, g); +// } diff --git a/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc new file mode 100644 index 0000000000..0842391fc6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc @@ -0,0 +1,36 @@ +// === findRenameLocations === +// === /renameLocationsForFunctionExpression02.ts === + +// function f() { +// +// } +// var x = function /*RENAME*/[|fRENAME|](g: any, h: any) { +// +// let helper = function f(): any { f(); } +// +// let foo = () => [|fRENAME|]([|fRENAME|], g); +// } + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression02.ts === + +// /*RENAME*/function f() { +// +// } +// var x = function f(g: any, h: any) { +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameLocationsForFunctionExpression02.ts === + +// /*RENAME*/function f() { +// +// } +// var x = function f(g: any, h: any) { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc new file mode 100644 index 0000000000..842d23609f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc @@ -0,0 +1,132 @@ +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// declare abstract class /*RENAME*/[|C1RENAME|] { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// --- (line: 4) skipped --- +// protected d; +// private e; +// } +// const enum /*RENAME*/[|ERENAME|] { +// } +// async function fn() {} +// export default class C2 {} + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// --- (line: 6) skipped --- +// } +// const enum E { +// } +// async function /*RENAME*/[|fnRENAME|]() {} +// export default class C2 {} + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameModifiers.ts === + +// --- (line: 7) skipped --- +// const enum E { +// } +// async function fn() {} +// export default class /*RENAME*/[|C2RENAME|] {} diff --git a/testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc new file mode 100644 index 0000000000..4c234f33c1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameModuleExportsProperties1.ts === + +// /*RENAME*/class A {} +// module.exports = { A } + + + + +// === findRenameLocations === +// === /renameModuleExportsProperties1.ts === + +// /*RENAME*/class A {} +// module.exports = { A } diff --git a/testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc new file mode 100644 index 0000000000..1dcc985090 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameModuleExportsProperties2.ts === + +// /*RENAME*/class A {} +// module.exports = { B: A } + + + + +// === findRenameLocations === +// === /renameModuleExportsProperties2.ts === + +// /*RENAME*/class A {} +// module.exports = { B: A } diff --git a/testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc new file mode 100644 index 0000000000..1a76495d46 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/class A {} +// module.exports = { A } + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/class A {} +// module.exports = { A } diff --git a/testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc new file mode 100644 index 0000000000..c3cbf98e5f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /home/src/workspaces/project/src/index.ts === + +// import { /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; +// [|someExportedVariableRENAME|]; diff --git a/testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc new file mode 100644 index 0000000000..29f6081e21 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc @@ -0,0 +1,5 @@ +// === findRenameLocations === +// === /home/src/workspaces/project/src/index.ts === + +// import * as /*RENAME*/[|libRENAME|] from '../lib/index'; +// [|libRENAME|].someExportedVariable; diff --git a/testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc new file mode 100644 index 0000000000..56d118f523 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameNumericalIndex.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; + + + + +// === findRenameLocations === +// === /renameNumericalIndex.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; diff --git a/testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc new file mode 100644 index 0000000000..060d984c32 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /renameNumericalIndexSingleQuoted.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; + + + + +// === findRenameLocations === +// === /renameNumericalIndexSingleQuoted.ts === + +// /*RENAME*/const foo = { 0: true }; +// foo[0]; diff --git a/testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc new file mode 100644 index 0000000000..16eef71662 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc @@ -0,0 +1,24 @@ +// === findRenameLocations === +// === /renameObjectBindingElementPropertyName01.ts === + +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// +// var foo: I; +// var { [|property1RENAME|]: prop1 } = foo; + + + + +// === findRenameLocations === +// === /renameObjectBindingElementPropertyName01.ts === + +// interface I { +// [|property1RENAME|]: number; +// property2: string; +// } +// +// var foo: I; +// var { /*RENAME*/[|property1RENAME|]: prop1 } = foo; diff --git a/testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc new file mode 100644 index 0000000000..0184684b36 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameObjectSpread.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a; + + + + +// === findRenameLocations === +// === /renameObjectSpread.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a; + + + + +// === findRenameLocations === +// === /renameObjectSpread.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; +// a12.a; diff --git a/testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc new file mode 100644 index 0000000000..361b508fd3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc @@ -0,0 +1,44 @@ +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; + + + + +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; + + + + +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; + + + + +// === findRenameLocations === +// === /renameObjectSpreadAssignment.ts === + +// /*RENAME*/interface A1 { a: number }; +// interface A2 { a?: number }; +// let a1: A1; +// let a2: A2; +// let a12 = { ...a1, ...a2 }; diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc new file mode 100644 index 0000000000..22ff061a1d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration1.ts === + +// class Foo { +// constructor(private /*RENAME*/[|privateParamRENAME|]: number) { +// let localPrivate = [|privateParamRENAME|]; +// this.[|privateParamRENAME|] += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration1.ts === + +// /*RENAME*/class Foo { +// constructor(private privateParam: number) { +// let localPrivate = privateParam; +// this.privateParam += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration1.ts === + +// /*RENAME*/class Foo { +// constructor(private privateParam: number) { +// let localPrivate = privateParam; +// this.privateParam += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc new file mode 100644 index 0000000000..3ef54137ed --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration2.ts === + +// class Foo { +// constructor(public /*RENAME*/[|publicParamRENAME|]: number) { +// let publicParam = [|publicParamRENAME|]; +// this.[|publicParamRENAME|] += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration2.ts === + +// /*RENAME*/class Foo { +// constructor(public publicParam: number) { +// let publicParam = publicParam; +// this.publicParam += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration2.ts === + +// /*RENAME*/class Foo { +// constructor(public publicParam: number) { +// let publicParam = publicParam; +// this.publicParam += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc new file mode 100644 index 0000000000..86b2967ef6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration3.ts === + +// class Foo { +// constructor(protected /*RENAME*/[|protectedParamRENAME|]: number) { +// let protectedParam = [|protectedParamRENAME|]; +// this.[|protectedParamRENAME|] += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration3.ts === + +// /*RENAME*/class Foo { +// constructor(protected protectedParam: number) { +// let protectedParam = protectedParam; +// this.protectedParam += 10; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration3.ts === + +// /*RENAME*/class Foo { +// constructor(protected protectedParam: number) { +// let protectedParam = protectedParam; +// this.protectedParam += 10; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc new file mode 100644 index 0000000000..cfe486d4a5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration4.ts === + +// /*RENAME*/class Foo { +// constructor(protected { protectedParam }) { +// let myProtectedParam = protectedParam; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration4.ts === + +// /*RENAME*/class Foo { +// constructor(protected { protectedParam }) { +// let myProtectedParam = protectedParam; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc new file mode 100644 index 0000000000..94775fef82 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameParameterPropertyDeclaration5.ts === + +// class Foo { +// constructor(protected [ /*RENAME*/[|protectedParamRENAME|] ]) { +// let myProtectedParam = [|protectedParamRENAME|]; +// } +// } + + + + +// === findRenameLocations === +// === /renameParameterPropertyDeclaration5.ts === + +// /*RENAME*/class Foo { +// constructor(protected [ protectedParam ]) { +// let myProtectedParam = protectedParam; +// } +// } diff --git a/testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc new file mode 100644 index 0000000000..3fb81dd12c --- /dev/null +++ b/testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc @@ -0,0 +1,36 @@ +// === findRenameLocations === +// === /renamePrivateAccessor.ts === + +// class Foo { +// get /*RENAME*/#foo() { return 1 } +// set #foo(value: number) { } +// retFoo() { +// return this.#foo; +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateAccessor.ts === + +// class Foo { +// get #foo() { return 1 } +// set /*RENAME*/#foo(value: number) { } +// retFoo() { +// return this.#foo; +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateAccessor.ts === + +// /*RENAME*/class Foo { +// get #foo() { return 1 } +// set #foo(value: number) { } +// retFoo() { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc new file mode 100644 index 0000000000..8467bc25b6 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renamePrivateFields1.ts === + +// class Foo { +// /*RENAME*/#foo = 1; +// +// getFoo() { +// return this.#foo; +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateFields1.ts === + +// /*RENAME*/class Foo { +// #foo = 1; +// +// getFoo() { +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc new file mode 100644 index 0000000000..50f1136d57 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /renamePrivateMethod.ts === + +// class Foo { +// /*RENAME*/#foo() { } +// callFoo() { +// return this.#foo(); +// } +// } + + + + +// === findRenameLocations === +// === /renamePrivateMethod.ts === + +// /*RENAME*/class Foo { +// #foo() { } +// callFoo() { +// return this.#foo(); +// } +// } diff --git a/testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc new file mode 100644 index 0000000000..26666e85bd --- /dev/null +++ b/testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc @@ -0,0 +1,35 @@ +// === findRenameLocations === +// === /renamePropertyAccessExpressionHeritageClause.ts === + +// class B {} +// function foo() { +// return {/*RENAME*/[|BRENAME|]: B}; +// } +// class C extends (foo()).[|BRENAME|] {} +// class C1 extends foo().[|BRENAME|] {} + + + + +// === findRenameLocations === +// === /renamePropertyAccessExpressionHeritageClause.ts === + +// /*RENAME*/class B {} +// function foo() { +// return {B: B}; +// } +// class C extends (foo()).B {} +// class C1 extends foo().B {} + + + + +// === findRenameLocations === +// === /renamePropertyAccessExpressionHeritageClause.ts === + +// /*RENAME*/class B {} +// function foo() { +// return {B: B}; +// } +// class C extends (foo()).B {} +// class C1 extends foo().B {} diff --git a/testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc new file mode 100644 index 0000000000..a3d425fedf --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc @@ -0,0 +1,53 @@ +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as b } from "./b"; +// import { default as bee } from "./b"; +// import b from "./b"; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as b } from "./b"; +// import { default as bee } from "./b"; +// import b from "./b"; + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as b } from "./b"; +// import { default as bee } from "./b"; +// import b from "./b"; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/const b = 0; +// export default b; + + + + +// === findRenameLocations === +// === /b.ts === + +// /*RENAME*/const b = 0; +// export default b; diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc new file mode 100644 index 0000000000..e8d98ace55 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /renameReferenceFromLinkTag1.ts === + +// enum E { +// /** {@link /*RENAME*/[|ARENAME|]} */ +// [|ARENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc new file mode 100644 index 0000000000..95e0419a90 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc @@ -0,0 +1,10 @@ +// === findRenameLocations === +// === /a.ts === + +// enum E { +// /** {@link /*RENAME*/[|FooRENAME|]} */ +// [|FooRENAME|] +// } +// interface Foo { +// foo: E.[|FooRENAME|]; +// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc new file mode 100644 index 0000000000..9ae1143321 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc @@ -0,0 +1,14 @@ +// === findRenameLocations === +// === /a.ts === + +// interface Foo { +// foo: E.[|FooRENAME|]; +// } + + +// === /b.ts === + +// enum E { +// /** {@link /*RENAME*/[|FooRENAME|]} */ +// [|FooRENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc new file mode 100644 index 0000000000..cdce4f1722 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameReferenceFromLinkTag4.ts === + +// enum E { +// /** {@link /*RENAME*/[|BRENAME|]} */ +// A, +// [|BRENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc new file mode 100644 index 0000000000..09fe5ebbc3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc @@ -0,0 +1,7 @@ +// === findRenameLocations === +// === /renameReferenceFromLinkTag5.ts === + +// enum E { +// /** {@link E./*RENAME*/[|ARENAME|]} */ +// [|ARENAME|] +// } diff --git a/testdata/baselines/reference/fourslash/renameRest.baseline.jsonc b/testdata/baselines/reference/fourslash/renameRest.baseline.jsonc new file mode 100644 index 0000000000..a38db9c1da --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameRest.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /renameRest.ts === + +// interface Gen { +// x: number; +// /*RENAME*/[|parentRENAME|]: Gen; +// millenial: string; +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest.[|parentRENAME|]; + + + + +// === findRenameLocations === +// === /renameRest.ts === + +// /*RENAME*/interface Gen { +// x: number; +// parent: Gen; +// millenial: string; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc new file mode 100644 index 0000000000..069823071c --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameRestBindingElement.ts === + +// /*RENAME*/interface I { +// a: number; +// b: number; +// c: number; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc new file mode 100644 index 0000000000..ee096940ae --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /renameStringLiteralOk.ts === + +// /*RENAME*/interface Foo { +// f: 'foo' | 'bar' +// } +// const d: 'foo' = 'foo' +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralOk.ts === + +// /*RENAME*/interface Foo { +// f: 'foo' | 'bar' +// } +// const d: 'foo' = 'foo' +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralOk.ts === + +// /*RENAME*/interface Foo { +// f: 'foo' | 'bar' +// } +// const d: 'foo' = 'foo' +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc new file mode 100644 index 0000000000..8e83ee0395 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameStringLiteralOk1.ts === + +// /*RENAME*/declare function f(): 'foo' | 'bar' +// class Foo { +// f = f() +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralOk1.ts === + +// /*RENAME*/declare function f(): 'foo' | 'bar' +// class Foo { +// f = f() +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc new file mode 100644 index 0000000000..bbcf860952 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc @@ -0,0 +1,20 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes1.ts === + +// /*RENAME*/interface AnimationOptions { +// deltaX: number; +// deltaY: number; +// easing: "ease-in" | "ease-out" | "ease-in-out"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes1.ts === + +// /*RENAME*/interface AnimationOptions { +// deltaX: number; +// deltaY: number; +// easing: "ease-in" | "ease-out" | "ease-in-out"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc new file mode 100644 index 0000000000..e171de1553 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc @@ -0,0 +1,116 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc new file mode 100644 index 0000000000..d7a7f4218e --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === + +// /*RENAME*/type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc new file mode 100644 index 0000000000..4eb7404ce2 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes4.ts === + +// --- (line: 3) skipped --- +// +// declare const fn: (p: K) => void +// +// fn("Prop 1"/*RENAME*/) diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc new file mode 100644 index 0000000000..e1a505609f --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes5.ts === + +// --- (line: 3) skipped --- +// +// declare const fn: (p: K) => void +// +// fn("Prop 1"/*RENAME*/) diff --git a/testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc new file mode 100644 index 0000000000..1ec338da15 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc @@ -0,0 +1,68 @@ +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// var o = { +// /*RENAME*/[|propRENAME|]: 0 +// }; +// +// o = { +// "[|propRENAME|]": 1 +// }; +// +// o["[|propRENAME|]"]; +// o['[|propRENAME|]']; +// o.[|propRENAME|]; + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// var o = { +// prop: 0 +// }; +// +// o = { +// "/*RENAME*/prop": 1 +// }; +// +// o["prop"]; +// o['prop']; +// o.prop; + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// /*RENAME*/var o = { +// prop: 0 +// }; +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// /*RENAME*/var o = { +// prop: 0 +// }; +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /renameStringPropertyNames.ts === + +// /*RENAME*/var o = { +// prop: 0 +// }; +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc new file mode 100644 index 0000000000..655994e633 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc @@ -0,0 +1,8 @@ +// === findRenameLocations === +// === /renameStringPropertyNames2.ts === + +// --- (line: 4) skipped --- +// let { foo }: Props = null as any; +// foo; +// +// let asd: Props = { "foo"/*RENAME*/: true }; // rename foo here diff --git a/testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc new file mode 100644 index 0000000000..4f507d328d --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc @@ -0,0 +1,231 @@ +// === findRenameLocations === +// === /a.ts === + +// interface Obj { +// [`/*RENAME*/num`]: number; +// ['bool']: boolean; +// } +// +// // --- (line: 6) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 3) skipped --- +// } +// +// let o: Obj = { +// [`/*RENAME*/num`]: 0, +// ['bool']: true, +// }; +// +// // --- (line: 11) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 8) skipped --- +// }; +// +// o = { +// ['/*RENAME*/num']: 1, +// [`bool`]: false, +// }; +// +// // --- (line: 16) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// interface Obj { +// [`num`]: number; +// ['/*RENAME*/bool']: boolean; +// } +// +// let o: Obj = { +// // --- (line: 7) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 4) skipped --- +// +// let o: Obj = { +// [`num`]: 0, +// ['/*RENAME*/bool']: true, +// }; +// +// o = { +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// --- (line: 9) skipped --- +// +// o = { +// ['num']: 1, +// [`/*RENAME*/bool`]: false, +// }; +// +// o.num; +// // --- (line: 17) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.ts === + +// /*RENAME*/interface Obj { +// [`num`]: number; +// ['bool']: boolean; +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /b.js === + +// /*RENAME*/import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc b/testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc new file mode 100644 index 0000000000..738e7f4598 --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc @@ -0,0 +1,73 @@ +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// obj = { +// [`/*RENAME*/prop`]: 1 +// }; +// +// obj.prop; +// // --- (line: 10) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /a.js === + +// /*RENAME*/let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc new file mode 100644 index 0000000000..e3b5f1b76a --- /dev/null +++ b/testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /0.d.ts === + +// export function doThing(): string; +// export function doTheOtherThing(): void; +// export as namespace /*RENAME*/[|myLibRENAME|]; + + +// === /1.ts === + +// /// +// [|myLibRENAME|].doThing(); + + + + +// === findRenameLocations === +// === /1.ts === + +// /*RENAME*//// +// myLib.doThing(); diff --git a/testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc new file mode 100644 index 0000000000..8049e26f53 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc @@ -0,0 +1,428 @@ +// === SignatureHelp === +=== /signatureHelpAfterParameter.ts === +// type Type = (a, b, c) => void +// const a: Type = (a, b) => {} +// ^ +// | ---------------------------------------------------------------------- +// | Type(**a: any**, b: any, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(a: any, **b: any**, c: any): void +// | ---------------------------------------------------------------------- +// const b: Type = function (a, b) {} +// ^ +// | ---------------------------------------------------------------------- +// | Type(**a: any**, b: any, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(a: any, **b: any**, c: any): void +// | ---------------------------------------------------------------------- +// const c: Type = ({ a: { b }} = { }, [b], ...c) => {} +// ^ +// | ---------------------------------------------------------------------- +// | Type(**a: any**, b: any, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(**a: any**, b: any, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(**a: any**, b: any, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(**a: any**, b: any, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(a: any, **b: any**, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(a: any, **b: any**, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(a: any, b: any, **c: any**): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | Type(a: any, b: any, **c: any**): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 48, + "LSPosition": { + "line": 1, + "character": 18 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 51, + "LSPosition": { + "line": 1, + "character": 21 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 86, + "LSPosition": { + "line": 2, + "character": 27 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 89, + "LSPosition": { + "line": 2, + "character": 30 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 113, + "LSPosition": { + "line": 3, + "character": 19 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 119, + "LSPosition": { + "line": 3, + "character": 25 + }, + "Name": "6", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 122, + "LSPosition": { + "line": 3, + "character": 28 + }, + "Name": "7", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 128, + "LSPosition": { + "line": 3, + "character": 34 + }, + "Name": "8", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 132, + "LSPosition": { + "line": 3, + "character": 38 + }, + "Name": "9", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 133, + "LSPosition": { + "line": 3, + "character": 39 + }, + "Name": "10", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 138, + "LSPosition": { + "line": 3, + "character": 44 + }, + "Name": "11", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 139, + "LSPosition": { + "line": 3, + "character": 45 + }, + "Name": "12", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Type(a: any, b: any, c: any): void", + "parameters": [ + { + "label": "a: any" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc new file mode 100644 index 0000000000..3ac1bec561 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc @@ -0,0 +1,215 @@ +// === SignatureHelp === +=== /signatureHelpCommentsClass.ts === +// /** This is class c2 without constructor*/ +// class c2 { +// } +// var i2 = new c2(); +// ^ +// | ---------------------------------------------------------------------- +// | c2(): c2 +// | ---------------------------------------------------------------------- +// var i2_c = c2; +// class c3 { +// /** Constructor comment*/ +// constructor() { +// } +// } +// var i3 = new c3(); +// ^ +// | ---------------------------------------------------------------------- +// | c3(): c3 +// | ---------------------------------------------------------------------- +// var i3_c = c3; +// /** Class comment*/ +// class c4 { +// /** Constructor comment*/ +// constructor() { +// } +// } +// var i4 = new c4(); +// ^ +// | ---------------------------------------------------------------------- +// | c4(): c4 +// | ---------------------------------------------------------------------- +// var i4_c = c4; +// /** Class with statics*/ +// class c5 { +// static s1: number; +// } +// var i5 = new c5(); +// ^ +// | ---------------------------------------------------------------------- +// | c5(): c5 +// | ---------------------------------------------------------------------- +// var i5_c = c5; +// /** class with statics and constructor*/ +// class c6 { +// /** s1 comment*/ +// static s1: number; +// /** constructor comment*/ +// constructor() { +// } +// } +// var i6 = new c6(); +// ^ +// | ---------------------------------------------------------------------- +// | c6(): c6 +// | ---------------------------------------------------------------------- +// var i6_c = c6; +// +// class a { +// /** +// constructor for a +// @param a this is my a +// */ +// constructor(a: string) { +// } +// } +// new a("Hello"); +// ^ +// | ---------------------------------------------------------------------- +// | a(**a: string**): a +// | ---------------------------------------------------------------------- +// module m { +// export module m2 { +// /** class comment */ +// export class c1 { +// /** constructor comment*/ +// constructor() { +// } +// } +// } +// } +// var myVar = new m.m2.c1(); +[ + { + "marker": { + "Position": 72, + "LSPosition": { + "line": 3, + "character": 16 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "c2(): c2", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 175, + "LSPosition": { + "line": 10, + "character": 16 + }, + "Name": "8", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "c3(): c3", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 298, + "LSPosition": { + "line": 18, + "character": 16 + }, + "Name": "13", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "c4(): c4", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 393, + "LSPosition": { + "line": 24, + "character": 16 + }, + "Name": "18", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "c5(): c5", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 581, + "LSPosition": { + "line": 34, + "character": 16 + }, + "Name": "23", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "c6(): c6", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 716, + "LSPosition": { + "line": 45, + "character": 6 + }, + "Name": "27", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "a(a: string): a", + "parameters": [ + { + "label": "a: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc new file mode 100644 index 0000000000..3240abb65d --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc @@ -0,0 +1,624 @@ +// === SignatureHelp === +=== /signatureHelpCommentsClassMembers.ts === +// /** This is comment for c1*/ +// class c1 { +// /** p1 is property of c1*/ +// public p1: number; +// /** sum with property*/ +// public p2(/** number to add*/b: number) { +// return this.p1 + b; +// } +// /** getter property 1*/ +// public get p3() { +// return this.p2(this.p1); +// ^ +// | ---------------------------------------------------------------------- +// | p2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// /** setter property 1*/ +// public set p3(/** this is value*/value: number) { +// this.p1 = this.p2(value); +// ^ +// | ---------------------------------------------------------------------- +// | p2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// /** pp1 is property of c1*/ +// private pp1: number; +// /** sum with property*/ +// private pp2(/** number to add*/b: number) { +// return this.p1 + b; +// } +// /** getter property 2*/ +// private get pp3() { +// return this.pp2(this.pp1); +// ^ +// | ---------------------------------------------------------------------- +// | pp2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// /** setter property 2*/ +// private set pp3( /** this is value*/value: number) { +// this.pp1 = this.pp2(value); +// ^ +// | ---------------------------------------------------------------------- +// | pp2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// /** Constructor method*/ +// constructor() { +// } +// /** s1 is static property of c1*/ +// static s1: number; +// /** static sum with property*/ +// static s2(/** number to add*/b: number) { +// return c1.s1 + b; +// } +// /** static getter property*/ +// static get s3() { +// return c1.s2(c1.s1); +// ^ +// | ---------------------------------------------------------------------- +// | s2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// /** setter property 3*/ +// static set s3( /** this is value*/value: number) { +// c1.s1 = c1.s2(value); +// ^ +// | ---------------------------------------------------------------------- +// | s2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// public nc_p1: number; +// public nc_p2(b: number) { +// return this.nc_p1 + b; +// } +// public get nc_p3() { +// return this.nc_p2(this.nc_p1); +// ^ +// | ---------------------------------------------------------------------- +// | nc_p2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// public set nc_p3(value: number) { +// this.nc_p1 = this.nc_p2(value); +// ^ +// | ---------------------------------------------------------------------- +// | nc_p2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// private nc_pp1: number; +// private nc_pp2(b: number) { +// return this.nc_pp1 + b; +// } +// private get nc_pp3() { +// return this.nc_pp2(this.nc_pp1); +// ^ +// | ---------------------------------------------------------------------- +// | nc_pp2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// private set nc_pp3(value: number) { +// this.nc_pp1 = this.nc_pp2(value); +// ^ +// | ---------------------------------------------------------------------- +// | nc_pp2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// static nc_s1: number; +// static nc_s2(b: number) { +// return c1.nc_s1 + b; +// } +// static get nc_s3() { +// return c1.nc_s2(c1.nc_s1); +// ^ +// | ---------------------------------------------------------------------- +// | nc_s2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// static set nc_s3(value: number) { +// c1.nc_s1 = c1.nc_s2(value); +// ^ +// | ---------------------------------------------------------------------- +// | nc_s2(**b: number**): number +// | ---------------------------------------------------------------------- +// } +// } +// var i1 = new c1(); +// ^ +// | ---------------------------------------------------------------------- +// | c1(): c1 +// | ---------------------------------------------------------------------- +// var i1_p = i1.p1; +// var i1_f = i1.p2; +// var i1_r = i1.p2(20); +// ^ +// | ---------------------------------------------------------------------- +// | p2(**b: number**): number +// | ---------------------------------------------------------------------- +// var i1_prop = i1.p3; +// i1.p3 = i1_prop; +// var i1_nc_p = i1.nc_p1; +// var i1_ncf = i1.nc_p2; +// var i1_ncr = i1.nc_p2(20); +// ^ +// | ---------------------------------------------------------------------- +// | nc_p2(**b: number**): number +// | ---------------------------------------------------------------------- +// var i1_ncprop = i1.nc_p3; +// i1.nc_p3 = i1_ncprop; +// var i1_s_p = c1.s1; +// var i1_s_f = c1.s2; +// var i1_s_r = c1.s2(20); +// ^ +// | ---------------------------------------------------------------------- +// | s2(**b: number**): number +// | ---------------------------------------------------------------------- +// var i1_s_prop = c1.s3; +// c1.s3 = i1_s_prop; +// var i1_s_nc_p = c1.nc_s1; +// var i1_s_ncf = c1.nc_s2; +// var i1_s_ncr = c1.nc_s2(20); +// ^ +// | ---------------------------------------------------------------------- +// | nc_s2(**b: number**): number +// | ---------------------------------------------------------------------- +// var i1_s_ncprop = c1.nc_s3; +// c1.nc_s3 = i1_s_ncprop; +// var i1_c = c1; +// +// class cProperties { +// private val: number; +// /** getter only property*/ +// public get p1() { +// return this.val; +// } +// public get nc_p1() { +// return this.val; +// } +// /**setter only property*/ +// public set p2(value: number) { +// this.val = value; +// } +// public set nc_p2(value: number) { +// this.val = value; +// } +// } +// var cProperties_i = new cProperties(); +// cProperties_i.p2 = cProperties_i.p1; +// cProperties_i.nc_p2 = cProperties_i.nc_p1; +// class cWithConstructorProperty { +// /** +// * this is class cWithConstructorProperty's constructor +// * @param a this is first parameter a +// */ +// constructor(/**more info about a*/public a: number) { +// var bbbb = 10; +// this.a = a + 2 + bbbb; +// } +// } +[ + { + "marker": { + "Position": 275, + "LSPosition": { + "line": 10, + "character": 23 + }, + "Name": "8", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "p2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 399, + "LSPosition": { + "line": 14, + "character": 26 + }, + "Name": "13", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "p2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 656, + "LSPosition": { + "line": 24, + "character": 24 + }, + "Name": "20", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "pp2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 786, + "LSPosition": { + "line": 28, + "character": 28 + }, + "Name": "25", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "pp2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1105, + "LSPosition": { + "line": 41, + "character": 21 + }, + "Name": "35", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "s2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1224, + "LSPosition": { + "line": 45, + "character": 22 + }, + "Name": "42", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "s2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1382, + "LSPosition": { + "line": 52, + "character": 26 + }, + "Name": "47", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_p2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1471, + "LSPosition": { + "line": 55, + "character": 32 + }, + "Name": "49", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_p2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1637, + "LSPosition": { + "line": 62, + "character": 27 + }, + "Name": "54", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_pp2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1731, + "LSPosition": { + "line": 65, + "character": 34 + }, + "Name": "56", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_pp2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1885, + "LSPosition": { + "line": 72, + "character": 24 + }, + "Name": "61", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_s2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1968, + "LSPosition": { + "line": 75, + "character": 28 + }, + "Name": "63", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_s2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2000, + "LSPosition": { + "line": 78, + "character": 16 + }, + "Name": "65", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "c1(): c1", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2056, + "LSPosition": { + "line": 81, + "character": 17 + }, + "Name": "71", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "p2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2168, + "LSPosition": { + "line": 86, + "character": 22 + }, + "Name": "81", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_p2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2280, + "LSPosition": { + "line": 91, + "character": 19 + }, + "Name": "92", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "s2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2402, + "LSPosition": { + "line": 96, + "character": 24 + }, + "Name": "102", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "nc_s2(b: number): number", + "parameters": [ + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc new file mode 100644 index 0000000000..e347d6162a --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc @@ -0,0 +1,1658 @@ +// === SignatureHelp === +=== /signatureHelpCommentsCommentParsing.ts === +// /// This is simple /// comments +// function simple() { +// } +// +// simple( ); +// ^ +// | ---------------------------------------------------------------------- +// | simple(): void +// | ---------------------------------------------------------------------- +// +// /// multiLine /// Comments +// /// This is example of multiline /// comments +// /// Another multiLine +// function multiLine() { +// } +// multiLine( ); +// ^ +// | ---------------------------------------------------------------------- +// | multiLine(): void +// | ---------------------------------------------------------------------- +// +// /** this is eg of single line jsdoc style comment */ +// function jsDocSingleLine() { +// } +// jsDocSingleLine(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocSingleLine(): void +// | ---------------------------------------------------------------------- +// +// +// /** this is multiple line jsdoc stule comment +// *New line1 +// *New Line2*/ +// function jsDocMultiLine() { +// } +// jsDocMultiLine(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMultiLine(): void +// | ---------------------------------------------------------------------- +// +// /** multiple line jsdoc comments no longer merge +// *New line1 +// *New Line2*/ +// /** Shoul mege this line as well +// * and this too*/ /** Another this one too*/ +// function jsDocMultiLineMerge() { +// } +// jsDocMultiLineMerge(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMultiLineMerge(): void +// | ---------------------------------------------------------------------- +// +// +// /// Triple slash comment +// /** jsdoc comment */ +// function jsDocMixedComments1() { +// } +// jsDocMixedComments1(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMixedComments1(): void +// | ---------------------------------------------------------------------- +// +// /// Triple slash comment +// /** jsdoc comment */ /** another jsDocComment*/ +// function jsDocMixedComments2() { +// } +// jsDocMixedComments2(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMixedComments2(): void +// | ---------------------------------------------------------------------- +// +// /** jsdoc comment */ /*** triplestar jsDocComment*/ +// /// Triple slash comment +// function jsDocMixedComments3() { +// } +// jsDocMixedComments3(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMixedComments3(): void +// | ---------------------------------------------------------------------- +// +// /** jsdoc comment */ /** another jsDocComment*/ +// /// Triple slash comment +// /// Triple slash comment 2 +// function jsDocMixedComments4() { +// } +// jsDocMixedComments4(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMixedComments4(): void +// | ---------------------------------------------------------------------- +// +// /// Triple slash comment 1 +// /** jsdoc comment */ /** another jsDocComment*/ +// /// Triple slash comment +// /// Triple slash comment 2 +// function jsDocMixedComments5() { +// } +// jsDocMixedComments5(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMixedComments5(): void +// | ---------------------------------------------------------------------- +// +// /** another jsDocComment*/ +// /// Triple slash comment 1 +// /// Triple slash comment +// /// Triple slash comment 2 +// /** jsdoc comment */ +// function jsDocMixedComments6() { +// } +// jsDocMixedComments6(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocMixedComments6(): void +// | ---------------------------------------------------------------------- +// +// // This shoulnot be help comment +// function noHelpComment1() { +// } +// noHelpComment1(); +// ^ +// | ---------------------------------------------------------------------- +// | noHelpComment1(): void +// | ---------------------------------------------------------------------- +// +// /* This shoulnot be help comment */ +// function noHelpComment2() { +// } +// noHelpComment2(); +// ^ +// | ---------------------------------------------------------------------- +// | noHelpComment2(): void +// | ---------------------------------------------------------------------- +// +// function noHelpComment3() { +// } +// noHelpComment3(); +// ^ +// | ---------------------------------------------------------------------- +// | noHelpComment3(): void +// | ---------------------------------------------------------------------- +// /** Adds two integers and returns the result +// * @param {number} a first number +// * @param b second number +// */ +// function sum(a: number, b: number) { +// return a + b; +// } +// sum(10, 20); +// ^ +// | ---------------------------------------------------------------------- +// | sum(**a: number**, b: number): number +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | sum(a: number, **b: number**): number +// | ---------------------------------------------------------------------- +// /** This is multiplication function +// * @param +// * @param a first number +// * @param b +// * @param c { +// @param d @anotherTag +// * @param e LastParam @anotherTag*/ +// function multiply(a: number, b: number, c?: number, d?, e?) { +// } +// multiply(10, 20, 30, 40, 50); +// ^ +// | ---------------------------------------------------------------------- +// | multiply(**a: number**, b: number, c?: number, d?: any, e?: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | multiply(a: number, **b: number**, c?: number, d?: any, e?: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | multiply(a: number, b: number, **c?: number**, d?: any, e?: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | multiply(a: number, b: number, c?: number, **d?: any**, e?: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | multiply(a: number, b: number, c?: number, d?: any, **e?: any**): void +// | ---------------------------------------------------------------------- +// /** fn f1 with number +// * @param { string} b about b +// */ +// function f1(a: number); +// function f1(b: string); +// /**@param opt optional parameter*/ +// function f1(aOrb, opt?) { +// return aOrb; +// } +// f1(10); +// ^ +// | ---------------------------------------------------------------------- +// | f1(**a: number**): any +// | ---------------------------------------------------------------------- +// f1("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | f1(**b: string**): any +// | ---------------------------------------------------------------------- +// +// /** This is subtract function +// @param { a +// *@param { number | } b this is about b +// @param { { () => string; } } c this is optional param c +// @param { { () => string; } d this is optional param d +// @param { { () => string; } } e this is optional param e +// @param { { { () => string; } } f this is optional param f +// */ +// function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { +// } +// subtract(10, 20, null, null, null, null); +// ^ +// | ---------------------------------------------------------------------- +// | subtract(**a: number**, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | subtract(a: number, **b: number**, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | subtract(a: number, b: number, **c?: () => string**, d?: () => string, e?: () => string, f?: () => string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | subtract(a: number, b: number, c?: () => string, **d?: () => string**, e?: () => string, f?: () => string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | subtract(a: number, b: number, c?: () => string, d?: () => string, **e?: () => string**, f?: () => string): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, **f?: () => string**): void +// | ---------------------------------------------------------------------- +// /** this is square function +// @paramTag { number } a this is input number of paramTag +// @param { number } a this is input number +// @returnType { number } it is return type +// */ +// function square(a: number) { +// return a * a; +// } +// square(10); +// ^ +// | ---------------------------------------------------------------------- +// | square(**a: number**): number +// | ---------------------------------------------------------------------- +// /** this is divide function +// @param { number} a this is a +// @paramTag { number } g this is optional param g +// @param { number} b this is b +// */ +// function divide(a: number, b: number) { +// } +// divide(10, 20); +// ^ +// | ---------------------------------------------------------------------- +// | divide(**a: number**, b: number): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | divide(a: number, **b: number**): void +// | ---------------------------------------------------------------------- +// /** +// Function returns string concat of foo and bar +// @param {string} foo is string +// @param {string} bar is second string +// */ +// function fooBar(foo: string, bar: string) { +// return foo + bar; +// } +// fooBar("foo","bar"); +// ^ +// | ---------------------------------------------------------------------- +// | fooBar(**foo: string**, bar: string): string +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | fooBar(foo: string, **bar: string**): string +// | ---------------------------------------------------------------------- +// /** This is a comment */ +// var x; +// /** +// * This is a comment +// */ +// var y; +// /** this is jsdoc style function with param tag as well as inline parameter help +// *@param a it is first parameter +// *@param c it is third parameter +// */ +// function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { +// return a + b + c + d; +// ^ +// | ---------------------------------------------------------------------- +// | No signaturehelp at /*39*/. +// | ---------------------------------------------------------------------- +// } +// jsDocParamTest(30, 40, 50, 60); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocParamTest(**a: number**, b: number, c: number, d: number): number +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | jsDocParamTest(a: number, **b: number**, c: number, d: number): number +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | jsDocParamTest(a: number, b: number, **c: number**, d: number): number +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | jsDocParamTest(a: number, b: number, c: number, **d: number**): number +// | ---------------------------------------------------------------------- +// /** This is function comment +// * And properly aligned comment +// */ +// function jsDocCommentAlignmentTest1() { +// } +// jsDocCommentAlignmentTest1(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocCommentAlignmentTest1(): void +// | ---------------------------------------------------------------------- +// /** This is function comment +// * And aligned with 4 space char margin +// */ +// function jsDocCommentAlignmentTest2() { +// } +// jsDocCommentAlignmentTest2(); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocCommentAlignmentTest2(): void +// | ---------------------------------------------------------------------- +// /** This is function comment +// * And aligned with 4 space char margin +// * @param {string} a this is info about a +// * spanning on two lines and aligned perfectly +// * @param b this is info about b +// * spanning on two lines and aligned perfectly +// * spanning one more line alined perfectly +// * spanning another line with more margin +// * @param c this is info about b +// * not aligned text about parameter will eat only one space +// */ +// function jsDocCommentAlignmentTest3(a: string, b, c) { +// } +// jsDocCommentAlignmentTest3("hello",1, 2); +// ^ +// | ---------------------------------------------------------------------- +// | jsDocCommentAlignmentTest3(**a: string**, b: any, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | jsDocCommentAlignmentTest3(a: string, **b: any**, c: any): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | jsDocCommentAlignmentTest3(a: string, b: any, **c: any**): void +// | ---------------------------------------------------------------------- +// +// ^ +// | ---------------------------------------------------------------------- +// | No signaturehelp at /**/. +// | ---------------------------------------------------------------------- +// class NoQuickInfoClass { +// } +[ + { + "marker": { + "Position": 63, + "LSPosition": { + "line": 4, + "character": 8 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "simple(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 198, + "LSPosition": { + "line": 11, + "character": 11 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "multiLine(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 302, + "LSPosition": { + "line": 16, + "character": 16 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocSingleLine(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 422, + "LSPosition": { + "line": 24, + "character": 15 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMultiLine(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 631, + "LSPosition": { + "line": 33, + "character": 20 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMultiLineMerge(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 737, + "LSPosition": { + "line": 40, + "character": 20 + }, + "Name": "6", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMixedComments1(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 869, + "LSPosition": { + "line": 46, + "character": 20 + }, + "Name": "7", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMixedComments2(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1005, + "LSPosition": { + "line": 52, + "character": 20 + }, + "Name": "8", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMixedComments3(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1164, + "LSPosition": { + "line": 59, + "character": 20 + }, + "Name": "9", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMixedComments4(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1350, + "LSPosition": { + "line": 67, + "character": 20 + }, + "Name": "10", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMixedComments5(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1536, + "LSPosition": { + "line": 76, + "character": 20 + }, + "Name": "11", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocMixedComments6(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1618, + "LSPosition": { + "line": 81, + "character": 15 + }, + "Name": "12", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "noHelpComment1(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1703, + "LSPosition": { + "line": 86, + "character": 15 + }, + "Name": "13", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "noHelpComment2(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1752, + "LSPosition": { + "line": 90, + "character": 15 + }, + "Name": "14", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "noHelpComment3(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1928, + "LSPosition": { + "line": 98, + "character": 4 + }, + "Name": "16", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "sum(a: number, b: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1932, + "LSPosition": { + "line": 98, + "character": 8 + }, + "Name": "17", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "sum(a: number, b: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 2166, + "LSPosition": { + "line": 108, + "character": 9 + }, + "Name": "19", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: number" + }, + { + "label": "d?: any" + }, + { + "label": "e?: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2169, + "LSPosition": { + "line": 108, + "character": 12 + }, + "Name": "20", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: number" + }, + { + "label": "d?: any" + }, + { + "label": "e?: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 2173, + "LSPosition": { + "line": 108, + "character": 16 + }, + "Name": "21", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: number" + }, + { + "label": "d?: any" + }, + { + "label": "e?: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 2178, + "LSPosition": { + "line": 108, + "character": 21 + }, + "Name": "22", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: number" + }, + { + "label": "d?: any" + }, + { + "label": "e?: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 3 + } + }, + { + "marker": { + "Position": 2182, + "LSPosition": { + "line": 108, + "character": 25 + }, + "Name": "23", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: number" + }, + { + "label": "d?: any" + }, + { + "label": "e?: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 4 + } + }, + { + "marker": { + "Position": 2372, + "LSPosition": { + "line": 118, + "character": 3 + }, + "Name": "25", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(a: number): any", + "parameters": [ + { + "label": "a: number" + } + ] + }, + { + "label": "f1(b: string): any", + "parameters": [ + { + "label": "b: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2380, + "LSPosition": { + "line": 119, + "character": 3 + }, + "Name": "26", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f1(a: number): any", + "parameters": [ + { + "label": "a: number" + } + ] + }, + { + "label": "f1(b: string): any", + "parameters": [ + { + "label": "b: string" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2823, + "LSPosition": { + "line": 131, + "character": 9 + }, + "Name": "28", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: () => string" + }, + { + "label": "d?: () => string" + }, + { + "label": "e?: () => string" + }, + { + "label": "f?: () => string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 2827, + "LSPosition": { + "line": 131, + "character": 13 + }, + "Name": "29", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: () => string" + }, + { + "label": "d?: () => string" + }, + { + "label": "e?: () => string" + }, + { + "label": "f?: () => string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 2832, + "LSPosition": { + "line": 131, + "character": 18 + }, + "Name": "30", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: () => string" + }, + { + "label": "d?: () => string" + }, + { + "label": "e?: () => string" + }, + { + "label": "f?: () => string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 2839, + "LSPosition": { + "line": 131, + "character": 25 + }, + "Name": "31", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: () => string" + }, + { + "label": "d?: () => string" + }, + { + "label": "e?: () => string" + }, + { + "label": "f?: () => string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 3 + } + }, + { + "marker": { + "Position": 2846, + "LSPosition": { + "line": 131, + "character": 32 + }, + "Name": "32", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: () => string" + }, + { + "label": "d?: () => string" + }, + { + "label": "e?: () => string" + }, + { + "label": "f?: () => string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 4 + } + }, + { + "marker": { + "Position": 2853, + "LSPosition": { + "line": 131, + "character": 39 + }, + "Name": "33", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c?: () => string" + }, + { + "label": "d?: () => string" + }, + { + "label": "e?: () => string" + }, + { + "label": "f?: () => string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 5 + } + }, + { + "marker": { + "Position": 3085, + "LSPosition": { + "line": 140, + "character": 7 + }, + "Name": "34", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "square(a: number): number", + "parameters": [ + { + "label": "a: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 3276, + "LSPosition": { + "line": 148, + "character": 7 + }, + "Name": "35", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "divide(a: number, b: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 3280, + "LSPosition": { + "line": 148, + "character": 11 + }, + "Name": "36", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "divide(a: number, b: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 3491, + "LSPosition": { + "line": 157, + "character": 7 + }, + "Name": "37", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fooBar(foo: string, bar: string): string", + "parameters": [ + { + "label": "foo: string" + }, + { + "label": "bar: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 3497, + "LSPosition": { + "line": 157, + "character": 13 + }, + "Name": "38", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fooBar(foo: string, bar: string): string", + "parameters": [ + { + "label": "foo: string" + }, + { + "label": "bar: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 3874, + "LSPosition": { + "line": 169, + "character": 11 + }, + "Name": "39", + "Data": {} + }, + "item": null + }, + { + "marker": { + "Position": 3906, + "LSPosition": { + "line": 171, + "character": 15 + }, + "Name": "40", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + }, + { + "label": "d: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 3910, + "LSPosition": { + "line": 171, + "character": 19 + }, + "Name": "41", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + }, + { + "label": "d: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 3914, + "LSPosition": { + "line": 171, + "character": 23 + }, + "Name": "42", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + }, + { + "label": "d: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 3918, + "LSPosition": { + "line": 171, + "character": 27 + }, + "Name": "43", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + }, + { + "label": "d: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 3 + } + }, + { + "marker": { + "Position": 4059, + "LSPosition": { + "line": 177, + "character": 27 + }, + "Name": "45", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocCommentAlignmentTest1(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 4210, + "LSPosition": { + "line": 183, + "character": 27 + }, + "Name": "46", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocCommentAlignmentTest2(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 4826, + "LSPosition": { + "line": 197, + "character": 27 + }, + "Name": "47", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocCommentAlignmentTest3(a: string, b: any, c: any): void", + "parameters": [ + { + "label": "a: string" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 4834, + "LSPosition": { + "line": 197, + "character": 35 + }, + "Name": "48", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocCommentAlignmentTest3(a: string, b: any, c: any): void", + "parameters": [ + { + "label": "a: string" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 4837, + "LSPosition": { + "line": 197, + "character": 38 + }, + "Name": "49", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "jsDocCommentAlignmentTest3(a: string, b: any, c: any): void", + "parameters": [ + { + "label": "a: string" + }, + { + "label": "b: any" + }, + { + "label": "c: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 4841, + "LSPosition": { + "line": 198, + "character": 0 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc new file mode 100644 index 0000000000..7eeca6af5e --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc @@ -0,0 +1,139 @@ +// === SignatureHelp === +=== /signatureHelpCommentsFunctionDeclaration.ts === +// /** This comment should appear for foo*/ +// function foo() { +// } +// foo(); +// ^ +// | ---------------------------------------------------------------------- +// | foo(): void +// | ---------------------------------------------------------------------- +// /** This is comment for function signature*/ +// function fooWithParameters(/** this is comment about a*/a: string, +// /** this is comment for b*/ +// b: number) { +// var d = a; +// } +// fooWithParameters("a",10); +// ^ +// | ---------------------------------------------------------------------- +// | fooWithParameters(**a: string**, b: number): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | fooWithParameters(a: string, **b: number**): void +// | ---------------------------------------------------------------------- +// /** +// * Does something +// * @param a a string +// */ +// declare function fn(a: string); +// fn("hello"); +// ^ +// | ---------------------------------------------------------------------- +// | fn(**a: string**): any +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 64, + "LSPosition": { + "line": 3, + "character": 4 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "foo(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 263, + "LSPosition": { + "line": 10, + "character": 18 + }, + "Name": "10", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fooWithParameters(a: string, b: number): void", + "parameters": [ + { + "label": "a: string" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 267, + "LSPosition": { + "line": 10, + "character": 22 + }, + "Name": "11", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fooWithParameters(a: string, b: number): void", + "parameters": [ + { + "label": "a: string" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 351, + "LSPosition": { + "line": 16, + "character": 3 + }, + "Name": "12", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: string): any", + "parameters": [ + { + "label": "a: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc new file mode 100644 index 0000000000..ddd0d0daad --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc @@ -0,0 +1,123 @@ +// === SignatureHelp === +=== /signatureHelpCommentsFunctionExpression.ts === +// /** lambdaFoo var comment*/ +// var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; +// var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; +// lambdaFoo(10, 20); +// ^ +// | ---------------------------------------------------------------------- +// | lambdaFoo(**a: number**, b: number): number +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | lambdaFoo(a: number, **b: number**): number +// | ---------------------------------------------------------------------- +// function anotherFunc(a: number) { +// /** documentation +// @param b {string} inner parameter */ +// var lambdaVar = /** inner docs */(b: string) => { +// var localVar = "Hello "; +// return localVar + b; +// } +// return lambdaVar("World") + a; +// } +// /** +// * On variable +// * @param s the first parameter! +// * @returns the parameter's length +// */ +// var assigned = /** +// * Summary on expression +// * @param s param on expression +// * @returns return on expression +// */function(/** On parameter */s: string) { +// return s.length; +// } +// assigned("hey"); +// ^ +// | ---------------------------------------------------------------------- +// | assigned(**s: string**): number +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 259, + "LSPosition": { + "line": 3, + "character": 10 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "lambdaFoo(a: number, b: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 263, + "LSPosition": { + "line": 3, + "character": 14 + }, + "Name": "6", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "lambdaFoo(a: number, b: number): number", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 862, + "LSPosition": { + "line": 25, + "character": 9 + }, + "Name": "18", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "assigned(s: string): number", + "parameters": [ + { + "label": "s: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc new file mode 100644 index 0000000000..a9c2da5bea --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc @@ -0,0 +1,42 @@ +// === SignatureHelp === +=== /signatureHelpConstructorCallParamProperties.ts === +// class Circle { +// /** +// * Initialize a circle. +// * @param radius The radius of the circle. +// */ +// constructor(private radius: number) { +// } +// } +// var a = new Circle( +// ^ +// | ---------------------------------------------------------------------- +// | Circle(**radius: number**): Circle +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 179, + "LSPosition": { + "line": 8, + "character": 19 + }, + "Name": "", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Circle(radius: number): Circle", + "parameters": [ + { + "label": "radius: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc new file mode 100644 index 0000000000..97fcdc0a24 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc @@ -0,0 +1,1339 @@ +// === SignatureHelp === +=== /signatureHelpExpandedRestTuplesLocalLabels1.ts === +// interface AppleInfo { +// color: "green" | "red"; +// } +// +// interface BananaInfo { +// curvature: number; +// } +// +// type FruitAndInfo1 = ["apple", AppleInfo] | ["banana", BananaInfo]; +// +// function logFruitTuple1(...[fruit, info]: FruitAndInfo1) {} +// logFruitTuple1(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple1(**fruit: "apple"**, info: AppleInfo): void +// | ---------------------------------------------------------------------- +// +// function logFruitTuple2(...[, info]: FruitAndInfo1) {} +// logFruitTuple2(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple2(**arg_0: "apple"**, info: AppleInfo): void +// | ---------------------------------------------------------------------- +// logFruitTuple2("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple2(arg_0: "apple", **info: AppleInfo**): void +// | ---------------------------------------------------------------------- +// +// function logFruitTuple3(...[fruit, ...rest]: FruitAndInfo1) {} +// logFruitTuple3(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple3(**fruit: "apple"**, rest_0: AppleInfo): void +// | ---------------------------------------------------------------------- +// logFruitTuple3("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple3(fruit: "apple", **rest_0: AppleInfo**): void +// | ---------------------------------------------------------------------- +// function logFruitTuple4(...[fruit, ...[info]]: FruitAndInfo1) {} +// logFruitTuple4(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple4(**fruit: "apple"**, info: AppleInfo): void +// | ---------------------------------------------------------------------- +// logFruitTuple4("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple4(fruit: "apple", **info: AppleInfo**): void +// | ---------------------------------------------------------------------- +// +// type FruitAndInfo2 = ["apple", ...AppleInfo[]] | ["banana", ...BananaInfo[]]; +// +// function logFruitTuple5(...[fruit, firstInfo]: FruitAndInfo2) {} +// logFruitTuple5(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple5(**fruit: "apple"**, ...firstInfo_n: AppleInfo[]): void +// | ---------------------------------------------------------------------- +// logFruitTuple5("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple5(fruit: "apple", **...firstInfo_n: AppleInfo[]**): void +// | ---------------------------------------------------------------------- +// +// function logFruitTuple6(...[fruit, ...fruitInfo]: FruitAndInfo2) {} +// logFruitTuple6(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple6(**fruit: "apple"**, ...fruitInfo: AppleInfo[]): void +// | ---------------------------------------------------------------------- +// logFruitTuple6("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple6(fruit: "apple", **...fruitInfo: AppleInfo[]**): void +// | ---------------------------------------------------------------------- +// +// type FruitAndInfo3 = ["apple", ...AppleInfo[], number] | ["banana", ...BananaInfo[], number]; +// +// function logFruitTuple7(...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]: FruitAndInfo3) {} +// logFruitTuple7(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple7(**fruit: "apple"**, ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple7("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple7(fruit: "apple", **...fruitInfoOrNumber_n: AppleInfo[]**, secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple7("apple", { color: "red" }, ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple7(fruit: "apple", ...fruitInfoOrNumber_n: AppleInfo[], **secondFruitInfoOrNumber: number**): void +// | ---------------------------------------------------------------------- +// +// function logFruitTuple8(...[fruit, , secondFruitInfoOrNumber]: FruitAndInfo3) {} +// logFruitTuple8(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple8(**fruit: "apple"**, ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple8("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple8(fruit: "apple", **...arg_1: AppleInfo[]**, secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple8("apple", { color: "red" }, ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple8(fruit: "apple", ...arg_1: AppleInfo[], **secondFruitInfoOrNumber: number**): void +// | ---------------------------------------------------------------------- +// +// function logFruitTuple9(...[...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]]: FruitAndInfo3) {} +// logFruitTuple9(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple9(**fruit: "apple"**, ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple9("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple9(fruit: "apple", **...fruitInfoOrNumber_n: AppleInfo[]**, secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple9("apple", { color: "red" }, ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple9(fruit: "apple", ...fruitInfoOrNumber_n: AppleInfo[], **secondFruitInfoOrNumber: number**): void +// | ---------------------------------------------------------------------- +// +// function logFruitTuple10(...[fruit, {}, secondFruitInfoOrNumber]: FruitAndInfo3) {} +// logFruitTuple10(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple10(**fruit: "apple"**, ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple10("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple10(fruit: "apple", **...arg_1: AppleInfo[]**, secondFruitInfoOrNumber: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple10("apple", { color: "red" }, ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple10(fruit: "apple", ...arg_1: AppleInfo[], **secondFruitInfoOrNumber: number**): void +// | ---------------------------------------------------------------------- +// +// function logFruitTuple11(...{}: FruitAndInfo3) {} +// logFruitTuple11(); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple11(**arg_0: "apple"**, ...arg_1: AppleInfo[], arg_2: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple11("apple", ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple11(arg_0: "apple", **...arg_1: AppleInfo[]**, arg_2: number): void +// | ---------------------------------------------------------------------- +// logFruitTuple11("apple", { color: "red" }, ); +// ^ +// | ---------------------------------------------------------------------- +// | logFruitTuple11(arg_0: "apple", ...arg_1: AppleInfo[], **arg_2: number**): void +// | ---------------------------------------------------------------------- +// function withPair(...[first, second]: [number, named: string]) {} +// withPair(); +// ^ +// | ---------------------------------------------------------------------- +// | withPair(**first: number**, named: string): void +// | ---------------------------------------------------------------------- +// withPair(101, ); +// ^ +// | ---------------------------------------------------------------------- +// | withPair(first: number, **named: string**): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 251, + "LSPosition": { + "line": 11, + "character": 16 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple1(fruit: \"apple\", info: AppleInfo): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "info: AppleInfo" + } + ] + }, + { + "label": "logFruitTuple1(fruit: \"banana\", info: BananaInfo): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "info: BananaInfo" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 327, + "LSPosition": { + "line": 14, + "character": 16 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple2(arg_0: \"apple\", info: AppleInfo): void", + "parameters": [ + { + "label": "arg_0: \"apple\"" + }, + { + "label": "info: AppleInfo" + } + ] + }, + { + "label": "logFruitTuple2(arg_0: \"banana\", info: BananaInfo): void", + "parameters": [ + { + "label": "arg_0: \"banana\"" + }, + { + "label": "info: BananaInfo" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 355, + "LSPosition": { + "line": 15, + "character": 25 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple2(arg_0: \"apple\", info: AppleInfo): void", + "parameters": [ + { + "label": "arg_0: \"apple\"" + }, + { + "label": "info: AppleInfo" + } + ] + }, + { + "label": "logFruitTuple2(arg_0: \"banana\", info: BananaInfo): void", + "parameters": [ + { + "label": "arg_0: \"banana\"" + }, + { + "label": "info: BananaInfo" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 439, + "LSPosition": { + "line": 18, + "character": 16 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple3(fruit: \"apple\", rest_0: AppleInfo): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "rest_0: AppleInfo" + } + ] + }, + { + "label": "logFruitTuple3(fruit: \"banana\", rest_0: BananaInfo): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "rest_0: BananaInfo" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 467, + "LSPosition": { + "line": 19, + "character": 25 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple3(fruit: \"apple\", rest_0: AppleInfo): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "rest_0: AppleInfo" + } + ] + }, + { + "label": "logFruitTuple3(fruit: \"banana\", rest_0: BananaInfo): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "rest_0: BananaInfo" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 552, + "LSPosition": { + "line": 21, + "character": 16 + }, + "Name": "6", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple4(fruit: \"apple\", info: AppleInfo): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "info: AppleInfo" + } + ] + }, + { + "label": "logFruitTuple4(fruit: \"banana\", info: BananaInfo): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "info: BananaInfo" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 580, + "LSPosition": { + "line": 22, + "character": 25 + }, + "Name": "7", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple4(fruit: \"apple\", info: AppleInfo): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "info: AppleInfo" + } + ] + }, + { + "label": "logFruitTuple4(fruit: \"banana\", info: BananaInfo): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "info: BananaInfo" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 746, + "LSPosition": { + "line": 27, + "character": 16 + }, + "Name": "8", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple5(fruit: \"apple\", ...firstInfo_n: AppleInfo[]): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...firstInfo_n: AppleInfo[]" + } + ] + }, + { + "label": "logFruitTuple5(fruit: \"banana\", ...firstInfo_n: BananaInfo[]): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...firstInfo_n: BananaInfo[]" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 774, + "LSPosition": { + "line": 28, + "character": 25 + }, + "Name": "9", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple5(fruit: \"apple\", ...firstInfo_n: AppleInfo[]): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...firstInfo_n: AppleInfo[]" + } + ] + }, + { + "label": "logFruitTuple5(fruit: \"banana\", ...firstInfo_n: BananaInfo[]): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...firstInfo_n: BananaInfo[]" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 863, + "LSPosition": { + "line": 31, + "character": 16 + }, + "Name": "10", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple6(fruit: \"apple\", ...fruitInfo: AppleInfo[]): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfo: AppleInfo[]" + } + ] + }, + { + "label": "logFruitTuple6(fruit: \"banana\", ...fruitInfo: BananaInfo[]): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfo: BananaInfo[]" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 891, + "LSPosition": { + "line": 32, + "character": 25 + }, + "Name": "11", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple6(fruit: \"apple\", ...fruitInfo: AppleInfo[]): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfo: AppleInfo[]" + } + ] + }, + { + "label": "logFruitTuple6(fruit: \"banana\", ...fruitInfo: BananaInfo[]): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfo: BananaInfo[]" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 1106, + "LSPosition": { + "line": 37, + "character": 16 + }, + "Name": "12", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple7(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfoOrNumber_n: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple7(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfoOrNumber_n: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1134, + "LSPosition": { + "line": 38, + "character": 25 + }, + "Name": "13", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple7(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfoOrNumber_n: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple7(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfoOrNumber_n: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 1180, + "LSPosition": { + "line": 39, + "character": 43 + }, + "Name": "14", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple7(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfoOrNumber_n: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple7(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfoOrNumber_n: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 1282, + "LSPosition": { + "line": 42, + "character": 16 + }, + "Name": "15", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple8(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple8(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1310, + "LSPosition": { + "line": 43, + "character": 25 + }, + "Name": "16", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple8(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple8(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 1356, + "LSPosition": { + "line": 44, + "character": 43 + }, + "Name": "17", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple8(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple8(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 1480, + "LSPosition": { + "line": 47, + "character": 16 + }, + "Name": "18", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple9(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfoOrNumber_n: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple9(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfoOrNumber_n: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1508, + "LSPosition": { + "line": 48, + "character": 25 + }, + "Name": "19", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple9(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfoOrNumber_n: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple9(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfoOrNumber_n: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 1554, + "LSPosition": { + "line": 49, + "character": 43 + }, + "Name": "20", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple9(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...fruitInfoOrNumber_n: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple9(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...fruitInfoOrNumber_n: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 1660, + "LSPosition": { + "line": 52, + "character": 17 + }, + "Name": "21", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple10(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple10(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1689, + "LSPosition": { + "line": 53, + "character": 26 + }, + "Name": "22", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple10(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple10(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 1736, + "LSPosition": { + "line": 54, + "character": 44 + }, + "Name": "23", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple10(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + }, + { + "label": "logFruitTuple10(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", + "parameters": [ + { + "label": "fruit: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "secondFruitInfoOrNumber: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 1808, + "LSPosition": { + "line": 57, + "character": 17 + }, + "Name": "24", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple11(arg_0: \"apple\", ...arg_1: AppleInfo[], arg_2: number): void", + "parameters": [ + { + "label": "arg_0: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "arg_2: number" + } + ] + }, + { + "label": "logFruitTuple11(arg_0: \"banana\", ...arg_1: BananaInfo[], arg_2: number): void", + "parameters": [ + { + "label": "arg_0: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "arg_2: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1837, + "LSPosition": { + "line": 58, + "character": 26 + }, + "Name": "25", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple11(arg_0: \"apple\", ...arg_1: AppleInfo[], arg_2: number): void", + "parameters": [ + { + "label": "arg_0: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "arg_2: number" + } + ] + }, + { + "label": "logFruitTuple11(arg_0: \"banana\", ...arg_1: BananaInfo[], arg_2: number): void", + "parameters": [ + { + "label": "arg_0: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "arg_2: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 1884, + "LSPosition": { + "line": 59, + "character": 44 + }, + "Name": "26", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "logFruitTuple11(arg_0: \"apple\", ...arg_1: AppleInfo[], arg_2: number): void", + "parameters": [ + { + "label": "arg_0: \"apple\"" + }, + { + "label": "...arg_1: AppleInfo[]" + }, + { + "label": "arg_2: number" + } + ] + }, + { + "label": "logFruitTuple11(arg_0: \"banana\", ...arg_1: BananaInfo[], arg_2: number): void", + "parameters": [ + { + "label": "arg_0: \"banana\"" + }, + { + "label": "...arg_1: BananaInfo[]" + }, + { + "label": "arg_2: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 1964, + "LSPosition": { + "line": 61, + "character": 10 + }, + "Name": "27", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "withPair(first: number, named: string): void", + "parameters": [ + { + "label": "first: number" + }, + { + "label": "named: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1982, + "LSPosition": { + "line": 62, + "character": 15 + }, + "Name": "28", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "withPair(first: number, named: string): void", + "parameters": [ + { + "label": "first: number" + }, + { + "label": "named: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc new file mode 100644 index 0000000000..eda29800b5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc @@ -0,0 +1,287 @@ +// === SignatureHelp === +=== /signatureHelpIteratorNext.ts === +// declare const iterator: Iterator; +// +// iterator.next(); +// ^ +// | ---------------------------------------------------------------------- +// | next(): IteratorResult +// | ---------------------------------------------------------------------- +// iterator.next( 0); +// ^ +// | ---------------------------------------------------------------------- +// | next(**value: number**): IteratorResult +// | ---------------------------------------------------------------------- +// +// declare const generator: Generator; +// +// generator.next(); +// ^ +// | ---------------------------------------------------------------------- +// | next(): IteratorResult +// | ---------------------------------------------------------------------- +// generator.next( 0); +// ^ +// | ---------------------------------------------------------------------- +// | next(**value: number**): IteratorResult +// | ---------------------------------------------------------------------- +// +// declare const asyncIterator: AsyncIterator; +// +// asyncIterator.next(); +// ^ +// | ---------------------------------------------------------------------- +// | next(): Promise> +// | ---------------------------------------------------------------------- +// asyncIterator.next( 0); +// ^ +// | ---------------------------------------------------------------------- +// | next(**value: number**): Promise> +// | ---------------------------------------------------------------------- +// +// declare const asyncGenerator: AsyncGenerator; +// +// asyncGenerator.next(); +// ^ +// | ---------------------------------------------------------------------- +// | next(): Promise> +// | ---------------------------------------------------------------------- +// asyncGenerator.next( 0); +// ^ +// | ---------------------------------------------------------------------- +// | next(**value: number**): Promise> +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 73, + "LSPosition": { + "line": 2, + "character": 15 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): IteratorResult", + "parameters": [] + }, + { + "label": "next(value: number): IteratorResult", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 91, + "LSPosition": { + "line": 3, + "character": 15 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): IteratorResult", + "parameters": [] + }, + { + "label": "next(value: number): IteratorResult", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 173, + "LSPosition": { + "line": 7, + "character": 16 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): IteratorResult", + "parameters": [] + }, + { + "label": "next(value: number): IteratorResult", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 192, + "LSPosition": { + "line": 8, + "character": 16 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): IteratorResult", + "parameters": [] + }, + { + "label": "next(value: number): IteratorResult", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 286, + "LSPosition": { + "line": 12, + "character": 20 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): Promise>", + "parameters": [] + }, + { + "label": "next(value: number): Promise>", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 309, + "LSPosition": { + "line": 13, + "character": 20 + }, + "Name": "6", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): Promise>", + "parameters": [] + }, + { + "label": "next(value: number): Promise>", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 406, + "LSPosition": { + "line": 17, + "character": 21 + }, + "Name": "7", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): Promise>", + "parameters": [] + }, + { + "label": "next(value: number): Promise>", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 430, + "LSPosition": { + "line": 18, + "character": 21 + }, + "Name": "8", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "next(): Promise>", + "parameters": [] + }, + { + "label": "next(value: number): Promise>", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc new file mode 100644 index 0000000000..d9d476bfcb --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc @@ -0,0 +1,131 @@ +// === SignatureHelp === +=== /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("!", 12, false); +// ^ +// | ---------------------------------------------------------------------- +// | t(**eventName: string**, eventName2: string | number, eventName3: any): number +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | t(eventName: string, **eventName2: string | number**, eventName3: any): number +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | t(eventName: string, eventName2: string | number, **eventName3: any**): number +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 480, + "LSPosition": { + "line": 21, + "character": 2 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "t(eventName: string, eventName2: string | number, eventName3: any): number", + "parameters": [ + { + "label": "eventName: string" + }, + { + "label": "eventName2: string | number" + }, + { + "label": "eventName3: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 485, + "LSPosition": { + "line": 21, + "character": 7 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "t(eventName: string, eventName2: string | number, eventName3: any): number", + "parameters": [ + { + "label": "eventName: string" + }, + { + "label": "eventName2: string | number" + }, + { + "label": "eventName3: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 489, + "LSPosition": { + "line": 21, + "character": 11 + }, + "Name": "6", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "t(eventName: string, eventName2: string | number, eventName3: any): number", + "parameters": [ + { + "label": "eventName: string" + }, + { + "label": "eventName2: string | number" + }, + { + "label": "eventName3: any" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc new file mode 100644 index 0000000000..b4af169f8c --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc @@ -0,0 +1,166 @@ +// === SignatureHelp === +=== /signatureHelpJSDocTags.ts === +// /** +// * This is class Foo. +// * @mytag comment1 comment2 +// */ +// class Foo { +// /** +// * This is the constructor. +// * @myjsdoctag this is a comment +// */ +// constructor(value: number) {} +// /** +// * method1 documentation +// * @mytag comment1 comment2 +// */ +// static method1() {} +// /** +// * @mytag +// */ +// method2() {} +// /** +// * @mytag comment1 comment2 +// */ +// property1: string; +// /** +// * @mytag1 some comments +// * some more comments about mytag1 +// * @mytag2 +// * here all the comments are on a new line +// * @mytag3 +// * @mytag +// */ +// property2: number; +// /** +// * @returns {number} a value +// */ +// method3(): number { return 3; } +// /** +// * @param {string} foo A value. +// * @returns {number} Another value +// * @mytag +// */ +// method4(foo: string): number { return 3; } +// /** @mytag */ +// method5() {} +// /** method documentation +// * @mytag a JSDoc tag +// */ +// newMethod() {} +// } +// var foo = new Foo(4); +// ^ +// | ---------------------------------------------------------------------- +// | Foo(**value: number**): Foo +// | ---------------------------------------------------------------------- +// Foo.method1(); +// ^ +// | ---------------------------------------------------------------------- +// | method1(): void +// | ---------------------------------------------------------------------- +// foo.method2(); +// ^ +// | ---------------------------------------------------------------------- +// | method2(): void +// | ---------------------------------------------------------------------- +// foo.method3(); +// ^ +// | ---------------------------------------------------------------------- +// | method3(): number +// | ---------------------------------------------------------------------- +// foo.method4(); +// foo.property1; +// foo.property2; +// foo.method5(); +// foo.newMet +[ + { + "marker": { + "Position": 981, + "LSPosition": { + "line": 49, + "character": 18 + }, + "Name": "10", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Foo(value: number): Foo", + "parameters": [ + { + "label": "value: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 997, + "LSPosition": { + "line": 50, + "character": 12 + }, + "Name": "11", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "method1(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1012, + "LSPosition": { + "line": 51, + "character": 12 + }, + "Name": "12", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "method2(): void", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 1027, + "LSPosition": { + "line": 52, + "character": 12 + }, + "Name": "13", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "method3(): number", + "parameters": [] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc new file mode 100644 index 0000000000..3ef7b0bf7a --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc @@ -0,0 +1,21 @@ +// === SignatureHelp === +=== /test.js === +// foo.filter() +// ^ +// | ---------------------------------------------------------------------- +// | No signaturehelp at /**/. +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 11, + "LSPosition": { + "line": 0, + "character": 11 + }, + "Name": "", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc new file mode 100644 index 0000000000..4dd6dc8b41 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc @@ -0,0 +1,188 @@ +// === SignatureHelp === +=== /signatureHelpRestArgs1.ts === +// function fn(a: number, b: number, c: number) {} +// const a = [1, 2] as const; +// const b = [1] as const; +// +// fn(...a, ); +// ^ +// | ---------------------------------------------------------------------- +// | fn(a: number, b: number, **c: number**): void +// | ---------------------------------------------------------------------- +// fn(, ...a); +// ^ +// | ---------------------------------------------------------------------- +// | fn(**a: number**, b: number, c: number): void +// | ---------------------------------------------------------------------- +// +// fn(...b, ); +// ^ +// | ---------------------------------------------------------------------- +// | fn(a: number, **b: number**, c: number): void +// | ---------------------------------------------------------------------- +// fn(, ...b, ); +// ^ +// | ---------------------------------------------------------------------- +// | fn(**a: number**, b: number, c: number): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | fn(a: number, b: number, **c: number**): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 109, + "LSPosition": { + "line": 4, + "character": 9 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 115, + "LSPosition": { + "line": 5, + "character": 3 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 134, + "LSPosition": { + "line": 7, + "character": 9 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 140, + "LSPosition": { + "line": 8, + "character": 3 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 148, + "LSPosition": { + "line": 8, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc new file mode 100644 index 0000000000..42f95f62b8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc @@ -0,0 +1,28 @@ +// === SignatureHelp === +=== /index.js === +// const promisify = function (thisArg, fnName) { +// const fn = thisArg[fnName]; +// return function () { +// return new Promise((resolve) => { +// fn.call(thisArg, ...arguments, ); +// ^ +// | ---------------------------------------------------------------------- +// | No signaturehelp at /*1*/. +// | ---------------------------------------------------------------------- +// }); +// }; +// }; +[ + { + "marker": { + "Position": 189, + "LSPosition": { + "line": 4, + "character": 43 + }, + "Name": "1", + "Data": {} + }, + "item": null + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc new file mode 100644 index 0000000000..4da40c046b --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc @@ -0,0 +1,79 @@ +// === SignatureHelp === +=== /signatureHelpRestArgs3.ts === +// const layers = Object.assign({}, ...[]); +// ^ +// | ---------------------------------------------------------------------- +// | assign(target: object, **...sources: any[]**): any +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 33, + "LSPosition": { + "line": 0, + "character": 33 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "assign(target: T, source: U): T & U", + "parameters": [ + { + "label": "target: T" + }, + { + "label": "source: U" + } + ] + }, + { + "label": "assign(target: T, source1: U, source2: V): T & U & V", + "parameters": [ + { + "label": "target: T" + }, + { + "label": "source1: U" + }, + { + "label": "source2: V" + } + ] + }, + { + "label": "assign(target: T, source1: U, source2: V, source3: W): T & U & V & W", + "parameters": [ + { + "label": "target: T" + }, + { + "label": "source1: U" + }, + { + "label": "source2: V" + }, + { + "label": "source3: W" + } + ] + }, + { + "label": "assign(target: object, ...sources: any[]): any", + "parameters": [ + { + "label": "target: object" + }, + { + "label": "...sources: any[]" + } + ] + } + ], + "activeSignature": 3, + "activeParameter": 1 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc new file mode 100644 index 0000000000..72b1c36645 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc @@ -0,0 +1,181 @@ +// === SignatureHelp === +=== /signatureHelpSkippedArgs1.ts === +// function fn(a: number, b: number, c: number) {} +// fn(, , , , ); +// ^ +// | ---------------------------------------------------------------------- +// | fn(**a: number**, b: number, c: number): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | fn(a: number, **b: number**, c: number): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | fn(a: number, b: number, **c: number**): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | fn(a: number, b: number, c: number): void +// | ---------------------------------------------------------------------- +// ^ +// | ---------------------------------------------------------------------- +// | fn(a: number, b: number, c: number): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 51, + "LSPosition": { + "line": 1, + "character": 3 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 53, + "LSPosition": { + "line": 1, + "character": 5 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 55, + "LSPosition": { + "line": 1, + "character": 7 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 57, + "LSPosition": { + "line": 1, + "character": 9 + }, + "Name": "4", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 3 + } + }, + { + "marker": { + "Position": 59, + "LSPosition": { + "line": 1, + "character": 11 + }, + "Name": "5", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "fn(a: number, b: number, c: number): void", + "parameters": [ + { + "label": "a: number" + }, + { + "label": "b: number" + }, + { + "label": "c: number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 4 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc new file mode 100644 index 0000000000..b18da8a20e --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc @@ -0,0 +1,168 @@ +// === SignatureHelp === +=== /signatureHelpTypeArguments2.ts === +// /** some documentation +// * @template T some documentation 2 +// * @template W +// * @template U,V others +// * @param a ok +// * @param b not ok +// */ +// function f(a: number, b: string, c: boolean): void { } +// f<; +// ^ +// | ---------------------------------------------------------------------- +// | f<**T**, U, V, W>(a: number, b: string, c: boolean): void +// | ---------------------------------------------------------------------- +// f(a: number, b: string, c: boolean): void +// | ---------------------------------------------------------------------- +// f(a: number, b: string, c: boolean): void +// | ---------------------------------------------------------------------- +// f(a: number, b: string, c: boolean): void +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 205, + "LSPosition": { + "line": 8, + "character": 2 + }, + "Name": "f0", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number, b: string, c: boolean): void", + "parameters": [ + { + "label": "T" + }, + { + "label": "U" + }, + { + "label": "V" + }, + { + "label": "W" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 217, + "LSPosition": { + "line": 9, + "character": 10 + }, + "Name": "f1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number, b: string, c: boolean): void", + "parameters": [ + { + "label": "T" + }, + { + "label": "U" + }, + { + "label": "V" + }, + { + "label": "W" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 237, + "LSPosition": { + "line": 10, + "character": 18 + }, + "Name": "f2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number, b: string, c: boolean): void", + "parameters": [ + { + "label": "T" + }, + { + "label": "U" + }, + { + "label": "V" + }, + { + "label": "W" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 2 + } + }, + { + "marker": { + "Position": 266, + "LSPosition": { + "line": 11, + "character": 27 + }, + "Name": "f3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: number, b: string, c: boolean): void", + "parameters": [ + { + "label": "T" + }, + { + "label": "U" + }, + { + "label": "V" + }, + { + "label": "W" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 3 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc new file mode 100644 index 0000000000..b0c6b6254b --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc @@ -0,0 +1,34 @@ +// === SignatureHelp === +=== /signatureHelpWithUnknown.ts === +// eval(\ +// ^ +// | ---------------------------------------------------------------------- +// | eval(**x: string**): any +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 6, + "LSPosition": { + "line": 0, + "character": 6 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "eval(x: string): any", + "parameters": [ + { + "label": "x: string" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc new file mode 100644 index 0000000000..dfd2d40524 --- /dev/null +++ b/testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc @@ -0,0 +1,107 @@ +// === SignatureHelp === +=== /signatureHelp_unionType.ts === +// declare const a: (fn?: ((x: string) => string) | ((y: number) => number)) => void; +// declare const b: (x: string | number) => void; +// +// interface Callback { +// (x: string): string; +// (x: number): number; +// (x: string | number): string | number; +// } +// declare function c(callback: Callback): void; +// a(() => { +// ^ +// | ---------------------------------------------------------------------- +// | a(**fn?: ((x: string) => string) | ((y: number) => number)**): void +// | ---------------------------------------------------------------------- +// return undefined; +// }); +// +// b(); +// ^ +// | ---------------------------------------------------------------------- +// | b(**x: string | number**): void +// | ---------------------------------------------------------------------- +// +// c(() => {}); +// ^ +// | ---------------------------------------------------------------------- +// | Callback(**x: string | number**): string | number +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 296, + "LSPosition": { + "line": 9, + "character": 3 + }, + "Name": "1", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "a(fn?: ((x: string) => string) | ((y: number) => number)): void", + "parameters": [ + { + "label": "fn?: ((x: string) => string) | ((y: number) => number)" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 332, + "LSPosition": { + "line": 13, + "character": 2 + }, + "Name": "2", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "b(x: string | number): void", + "parameters": [ + { + "label": "x: string | number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + }, + { + "marker": { + "Position": 339, + "LSPosition": { + "line": 15, + "character": 3 + }, + "Name": "3", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "Callback(x: string | number): string | number", + "parameters": [ + { + "label": "x: string | number" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 0 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc b/testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc new file mode 100644 index 0000000000..3de5364af9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc @@ -0,0 +1,85 @@ +// === SignatureHelp === +=== /trailingCommaSignatureHelp.ts === +// function str(n: number): string; +// /** +// * Stringifies a number with radix +// * @param radix The radix +// */ +// function str(n: number, radix: number): string; +// function str(n: number, radix?: number): string { return ""; } +// +// str(1, ) +// ^ +// | ---------------------------------------------------------------------- +// | str(n: number, **radix: number**): string +// | ---------------------------------------------------------------------- +// +// declare function f(a: T): T; +// f(2, ); +// ^ +// | ---------------------------------------------------------------------- +// | f(a: 2): 2 +// | ---------------------------------------------------------------------- +[ + { + "marker": { + "Position": 221, + "LSPosition": { + "line": 8, + "character": 7 + }, + "Name": "a", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "str(n: number): string", + "parameters": [ + { + "label": "n: number" + } + ] + }, + { + "label": "str(n: number, radix: number): string", + "parameters": [ + { + "label": "n: number" + }, + { + "label": "radix: number" + } + ] + } + ], + "activeSignature": 1, + "activeParameter": 1 + } + }, + { + "marker": { + "Position": 261, + "LSPosition": { + "line": 11, + "character": 5 + }, + "Name": "b", + "Data": {} + }, + "item": { + "signatures": [ + { + "label": "f(a: 2): 2", + "parameters": [ + { + "label": "a: 2" + } + ] + } + ], + "activeSignature": 0, + "activeParameter": 1 + } + } +] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences1.baseline.jsonc new file mode 100644 index 0000000000..01c418bc1b --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences1.baseline.jsonc @@ -0,0 +1,44 @@ +// === findAllReferences === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// /*FIND ALL REFS*/[|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = <[|div|] />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 7) skipped --- +// span: { n: string; }; +// } +// } +// var x = /*FIND ALL REFS*/
; + + + + +// === findAllReferences === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences10.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences10.baseline.jsonc new file mode 100644 index 0000000000..0b6ea0c89d --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences10.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// className?: string; +// } +// interface ButtonProps extends ClickableProps { +// /*FIND ALL REFS*/[|onClick|](event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// goTo: string; +// // --- (line: 16) skipped --- diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences11.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences11.baseline.jsonc new file mode 100644 index 0000000000..8e1dfbe19f --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences11.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 16) skipped --- +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences2.baseline.jsonc new file mode 100644 index 0000000000..86ad70002b --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences2.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// /*FIND ALL REFS*/[|name|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// // --- (line: 9) skipped --- diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences3.baseline.jsonc new file mode 100644 index 0000000000..57c04e416b --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences3.baseline.jsonc @@ -0,0 +1,13 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 5) skipped --- +// } +// class MyClass { +// props: { +// /*FIND ALL REFS*/[|name|]?: string; +// size?: number; +// } +// +// +// var x = ; diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences4.baseline.jsonc new file mode 100644 index 0000000000..41588be2b5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences4.baseline.jsonc @@ -0,0 +1,81 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// /*FIND ALL REFS*/class MyClass { +// props: { +// name?: string; +// size?: number; +// // --- (line: 11) skipped --- + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// class /*FIND ALL REFS*/[|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } +// +// +// var x = <[|MyClass|] name='hello'>; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// +// +// var x = /*FIND ALL REFS*/; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// class [|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } +// +// +// var x = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props } +// } +// class [|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } +// +// +// var x = ; diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences5.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences5.baseline.jsonc new file mode 100644 index 0000000000..d528f1bf15 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences5.baseline.jsonc @@ -0,0 +1,185 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// /*FIND ALL REFS*/declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function /*FIND ALL REFS*/[|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 9) skipped --- +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = /*FIND ALL REFS*/; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = /*FIND ALL REFS*/; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = ; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 11) skipped --- +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = /*FIND ALL REFS*/; +// let opt3 = ; +// let opt4 = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = ; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 12) skipped --- +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = /*FIND ALL REFS*/; +// let opt4 = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = ; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = /*FIND ALL REFS*/; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = ; diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences6.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences6.baseline.jsonc new file mode 100644 index 0000000000..3e0b7e2016 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences6.baseline.jsonc @@ -0,0 +1,8 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 9) skipped --- +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences7.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences7.baseline.jsonc new file mode 100644 index 0000000000..99ce269af9 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences7.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// /*FIND ALL REFS*/[|propx|]: number +// propString: string +// optional?: boolean +// } +// // --- (line: 12) skipped --- diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences8.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences8.baseline.jsonc new file mode 100644 index 0000000000..44906820c0 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences8.baseline.jsonc @@ -0,0 +1,311 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// /*FIND ALL REFS*/declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// // --- (line: 21) skipped --- + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function /*FIND ALL REFS*/[|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 14) skipped --- +// goTo: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// /*FIND ALL REFS*/declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// // --- (line: 22) skipped --- + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function /*FIND ALL REFS*/[|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 15) skipped --- +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// /*FIND ALL REFS*/declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// // --- (line: 23) skipped --- + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function /*FIND ALL REFS*/[|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 16) skipped --- +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = /*FIND ALL REFS*/; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 17) skipped --- +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = /*FIND ALL REFS*/; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = ; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 18) skipped --- +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = /*FIND ALL REFS*/{}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = {}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = /*FIND ALL REFS*/{}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = {}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 20) skipped --- +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = /*FIND ALL REFS*/; +// let opt = ; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = ; +// let opt = <[|MainButton|] wrong />; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 21) skipped --- +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = /*FIND ALL REFS*/; + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = ; diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences9.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferences9.baseline.jsonc new file mode 100644 index 0000000000..8d8013277b --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferences9.baseline.jsonc @@ -0,0 +1,12 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 11) skipped --- +// onClick(event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// /*FIND ALL REFS*/[|goTo|]: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// // --- (line: 19) skipped --- diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType1.baseline.jsonc new file mode 100644 index 0000000000..8fe7b18660 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType1.baseline.jsonc @@ -0,0 +1,47 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 9) skipped --- +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// /*FIND ALL REFS*/var SFCComp = SFC1 || SFC2; +// + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 9) skipped --- +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var /*FIND ALL REFS*/[|SFCComp|] = SFC1 || SFC2; +// <[|SFCComp|] x={ "hi" } /> + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 10) skipped --- +// return

World

; +// } +// var SFCComp = SFC1 || SFC2; +// /*FIND ALL REFS*/ + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 9) skipped --- +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var [|SFCComp|] = SFC1 || SFC2; +// diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType2.baseline.jsonc new file mode 100644 index 0000000000..fc1df9cfc5 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType2.baseline.jsonc @@ -0,0 +1,47 @@ +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// /*FIND ALL REFS*/var RCComp = RC1 || RC2; +// + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// var /*FIND ALL REFS*/[|RCComp|] = RC1 || RC2; +// <[|RCComp|] /> + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 9) skipped --- +// private method() { } +// } +// var RCComp = RC1 || RC2; +// /*FIND ALL REFS*/ + + + + +// === findAllReferences === +// === /file.tsx === + +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// var [|RCComp|] = RC1 || RC2; +// diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionClasses.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxGoToDefinitionClasses.baseline.jsonc new file mode 100644 index 0000000000..eb2a326717 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxGoToDefinitionClasses.baseline.jsonc @@ -0,0 +1,53 @@ +// === goToDefinition === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { } +// interface ElementAttributesProperty { props; } +// } +// class [|MyClass|] { +// props: { +// foo: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 4) skipped --- +// } +// class MyClass { +// props: { +// [|foo|]: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { } +// interface ElementAttributesProperty { props; } +// } +// class [|MyClass|] { +// props: { +// foo: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionIntrinsics.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxGoToDefinitionIntrinsics.baseline.jsonc new file mode 100644 index 0000000000..4d2fb8c68d --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxGoToDefinitionIntrinsics.baseline.jsonc @@ -0,0 +1,53 @@ +// === goToDefinition === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; +// var y = ; +// var z =
; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 4) skipped --- +// name?: string; +// isOpen?: boolean; +// }; +// [|span|]: { n: string; }; +// } +// } +// var x =
; +// var y = ; +// var z =
; + + + + +// === goToDefinition === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// [|name|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x =
; +// var y = ; +// var z =
; diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction1.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction1.baseline.jsonc new file mode 100644 index 0000000000..9e4d44a42d --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction1.baseline.jsonc @@ -0,0 +1,98 @@ +// === goToDefinition === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// [|propx|]: number +// propString: "hell" +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 6) skipped --- +// interface OptionPropBag { +// propx: number +// propString: "hell" +// [|optional|]?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction2.baseline.jsonc new file mode 100644 index 0000000000..e32802af73 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction2.baseline.jsonc @@ -0,0 +1,115 @@ +// === goToDefinition === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt =
; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt =
; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt =
{}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt =
{}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 14) skipped --- +// goTo: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt =
; +// let opt = ; + + + + +// === goToDefinition === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt =
; diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType1.baseline.jsonc new file mode 100644 index 0000000000..365fd3d34e --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType1.baseline.jsonc @@ -0,0 +1,15 @@ +// === goToDefinition === +// === /file.tsx === + +// --- (line: 3) skipped --- +// } +// interface ElementAttributesProperty { props; } +// } +// function [|SFC1|](prop: { x: number }) { +// return
hello
; +// }; +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var [|SFCComp|] = SFC1 || SFC2; +// diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType2.baseline.jsonc new file mode 100644 index 0000000000..e0dde11950 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType2.baseline.jsonc @@ -0,0 +1,9 @@ +// === goToDefinition === +// === /file.tsx === + +// --- (line: 8) skipped --- +// } +// private method() { } +// } +// var [|RCComp|] = RC1 || RC2; +// diff --git a/testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc new file mode 100644 index 0000000000..c7d52d86ff --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc @@ -0,0 +1,32 @@ +// === findRenameLocations === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// /*RENAME*/[|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = <[|divRENAME|] />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc new file mode 100644 index 0000000000..ff27b9a654 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc @@ -0,0 +1,24 @@ +// === findRenameLocations === +// === /file.tsx === + +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// /*RENAME*/[|nameRENAME|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// // --- (line: 9) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 7) skipped --- +// span: { n: string; }; +// } +// } +// var x =
; diff --git a/testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc new file mode 100644 index 0000000000..706e37cefe --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc @@ -0,0 +1,25 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 5) skipped --- +// } +// class MyClass { +// props: { +// /*RENAME*/[|nameRENAME|]?: string; +// size?: number; +// } +// +// +// var x = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// +// +// var x = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc new file mode 100644 index 0000000000..64441c8ff3 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 9) skipped --- +// size?: number; +// } +// +// var /*RENAME*/[|nnRENAME|]: string; +// var x = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// /*RENAME*/ declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// } +// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc new file mode 100644 index 0000000000..ccbeed823f --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc @@ -0,0 +1,98 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function /*RENAME*/[|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = ; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = ; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = ; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc new file mode 100644 index 0000000000..9f4bae05e1 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc @@ -0,0 +1,39 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// /*RENAME*/[|propxRENAME|]: number +// propString: string +// optional?: boolean +// } +// // --- (line: 12) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 10) skipped --- +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 11) skipped --- +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc new file mode 100644 index 0000000000..257d1b6d88 --- /dev/null +++ b/testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc @@ -0,0 +1,274 @@ +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 8) skipped --- +// className?: string; +// } +// interface ButtonProps extends ClickableProps { +// /*RENAME*/[|onClickRENAME|](event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// goTo: string; +// // --- (line: 16) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 18) skipped --- +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 11) skipped --- +// onClick(event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// /*RENAME*/[|goToRENAME|]: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// // --- (line: 19) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 20) skipped --- +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function /*RENAME*/[|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = {}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = {}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] wrong />; + + + + +// === findRenameLocations === +// === /file.tsx === + +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = ; + + + + +// === findRenameLocations === +// === /file.tsx === + +// /*RENAME*/ declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// } +// // --- (line: 5) skipped --- + + + + +// === findRenameLocations === +// === /file.tsx === + +// /*RENAME*/ declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// } +// // --- (line: 5) skipped --- From 40474974d2da70ac96cadc870705af73f6d9f880 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Mon, 8 Sep 2025 13:03:16 -0700 Subject: [PATCH 07/18] WIP: re-split baseline files per command --- internal/fourslash/baselineutil.go | 24 +- internal/fourslash/fourslash.go | 70 +- .../autoImportCompletion1.baseline.md} | 0 .../autoImportCompletion2.baseline.md} | 0 .../autoImportCompletion3.baseline.md} | 0 ...lesImportCompletions1Baseline.baseline.md} | 0 ...ContextSensitiveParameterNoCrash.baseline} | 0 ...deprecatedInheritedJSDocOverload.baseline} | 0 .../jsDocAliasQuickInfo.baseline} | 0 .../jsDocTypeTagQuickInfo1.baseline} | 0 .../jsDocTypeTagQuickInfo2.baseline} | 0 .../jsDocTypedefQuickInfo1.baseline} | 0 .../jsdocLink1.baseline} | 0 .../jsdocLink4.baseline} | 0 .../jsdocLink5.baseline} | 0 .../jsdocOnInheritedMembers1.baseline} | 0 .../jsdocOnInheritedMembers2.baseline} | 0 ...AtPropWithAmbientDeclarationInJs.baseline} | 0 ...oCircularInstantiationExpression.baseline} | 0 .../quickInfoCommentsClass.baseline} | 0 .../quickInfoCommentsClassMembers.baseline} | 0 .../quickInfoCommentsCommentParsing.baseline} | 0 ...kInfoCommentsFunctionDeclaration.baseline} | 0 ...ckInfoCommentsFunctionExpression.baseline} | 0 ...playPartsArrowFunctionExpression.baseline} | 0 .../quickInfoDisplayPartsClass.baseline} | 0 ...ckInfoDisplayPartsClassAccessors.baseline} | 0 ...foDisplayPartsClassAutoAccessors.baseline} | 0 ...InfoDisplayPartsClassConstructor.baseline} | 0 ...isplayPartsClassDefaultAnonymous.baseline} | 0 ...nfoDisplayPartsClassDefaultNamed.baseline} | 0 ...kInfoDisplayPartsClassIncomplete.baseline} | 0 ...quickInfoDisplayPartsClassMethod.baseline} | 0 ...ickInfoDisplayPartsClassProperty.baseline} | 0 .../quickInfoDisplayPartsConst.baseline} | 0 .../quickInfoDisplayPartsEnum1.baseline} | 0 .../quickInfoDisplayPartsEnum2.baseline} | 0 .../quickInfoDisplayPartsEnum3.baseline} | 0 .../quickInfoDisplayPartsEnum4.baseline} | 0 ...oDisplayPartsExternalModuleAlias.baseline} | 0 ...kInfoDisplayPartsExternalModules.baseline} | 0 .../quickInfoDisplayPartsFunction.baseline} | 0 ...foDisplayPartsFunctionExpression.baseline} | 0 ...foDisplayPartsFunctionIncomplete.baseline} | 0 .../quickInfoDisplayPartsInterface.baseline} | 0 ...InfoDisplayPartsInterfaceMembers.baseline} | 0 ...oDisplayPartsInternalModuleAlias.baseline} | 0 .../quickInfoDisplayPartsLet.baseline} | 0 ...foDisplayPartsLiteralLikeNames01.baseline} | 0 ...ickInfoDisplayPartsLocalFunction.baseline} | 0 .../quickInfoDisplayPartsModules.baseline} | 0 .../quickInfoDisplayPartsParameters.baseline} | 0 .../quickInfoDisplayPartsTypeAlias.baseline} | 0 ...DisplayPartsTypeParameterInClass.baseline} | 0 ...playPartsTypeParameterInFunction.baseline} | 0 ...rameterInFunctionLikeInTypeAlias.baseline} | 0 ...layPartsTypeParameterInInterface.baseline} | 0 ...layPartsTypeParameterInTypeAlias.baseline} | 0 .../quickInfoDisplayPartsUsing.baseline} | 0 .../quickInfoDisplayPartsVar.baseline} | 0 ...DisplayPartsVarWithStringTypes01.baseline} | 0 ...orArgumentsPropertyNameInJsMode1.baseline} | 0 ...orArgumentsPropertyNameInJsMode2.baseline} | 0 .../quickInfoForConstAssertions.baseline} | 0 .../quickInfoForJSDocCodefence.baseline} | 0 .../quickInfoForJSDocUnknownTag.baseline} | 0 .../quickInfoForJSDocWithHttpLinks.baseline} | 0 ...oForJSDocWithUnresolvedHttpLinks.baseline} | 0 ...nfoForObjectBindingElementName03.baseline} | 0 ...nfoForObjectBindingElementName04.baseline} | 0 ...nfoForObjectBindingElementName05.baseline} | 0 ...nfoForObjectBindingElementName06.baseline} | 0 .../quickInfoImportMeta.baseline} | 0 .../quickInfoInheritDoc.baseline} | 0 .../quickInfoInheritDoc2.baseline} | 0 .../quickInfoInheritDoc3.baseline} | 0 .../quickInfoInheritDoc4.baseline} | 0 .../quickInfoInheritDoc5.baseline} | 0 .../quickInfoInheritDoc6.baseline} | 0 .../quickInfoJSDocAtBeforeSpace.baseline} | 0 .../quickInfoJSDocTags.baseline} | 0 .../quickInfoJsDoc.baseline} | 0 .../quickInfoJsDocAlias.baseline} | 0 .../quickInfoJsDocGetterSetter.baseline} | 0 .../quickInfoJsDocInheritage.baseline} | 0 .../quickInfoJsDocTags1.baseline} | 0 .../quickInfoJsDocTags10.baseline} | 0 .../quickInfoJsDocTags11.baseline} | 0 .../quickInfoJsDocTags12.baseline} | 0 .../quickInfoJsDocTags14.baseline} | 0 .../quickInfoJsDocTags15.baseline} | 0 .../quickInfoJsDocTags16.baseline} | 0 .../quickInfoJsDocTags3.baseline} | 0 .../quickInfoJsDocTags4.baseline} | 0 .../quickInfoJsDocTags5.baseline} | 0 .../quickInfoJsDocTags6.baseline} | 0 .../quickInfoJsDocTags7.baseline} | 0 .../quickInfoJsDocTags8.baseline} | 0 .../quickInfoJsDocTags9.baseline} | 0 .../quickInfoJsDocTagsCallback.baseline} | 0 ...kInfoJsDocTagsFunctionOverload01.baseline} | 0 ...kInfoJsDocTagsFunctionOverload03.baseline} | 0 ...kInfoJsDocTagsFunctionOverload05.baseline} | 0 .../quickInfoJsDocTagsTypedef.baseline} | 0 .../quickInfoJsDocThisTag.baseline} | 0 .../quickInfoLink10.baseline} | 0 .../quickInfoLink11.baseline} | 0 .../quickInfoLink5.baseline} | 0 .../quickInfoLink6.baseline} | 0 .../quickInfoLink7.baseline} | 0 .../quickInfoLink8.baseline} | 0 .../quickInfoLink9.baseline} | 0 ...foNestedExportEqualExportDefault.baseline} | 0 ...aredUsingCatchCallIndexSignature.baseline} | 0 ...ingTemplateLiteralTypeSignatures.baseline} | 0 .../quickInfoOnJsxNamespacedName.baseline} | 0 .../quickInfoOnParameterProperties.baseline} | 0 .../quickInfoOnThis5.baseline} | 0 ...tiesWithIdenticalJSDocComments01.baseline} | 0 ...odsOnAssignedFunctionExpressions.baseline} | 0 .../quickInfoSatisfiesTag.baseline} | 0 .../quickInfoTypedefTag.baseline} | 0 .../quickInfoUniqueSymbolJsDoc.baseline} | 0 ...AmbientShorthandFindAllRefs.baseline.jsonc | 12 - ...ortProvider_referencesCrash.baseline.jsonc | 12 - ...nstructorFindAllReferences1.baseline.jsonc | 9 - ...nstructorFindAllReferences2.baseline.jsonc | 9 - ...nstructorFindAllReferences3.baseline.jsonc | 9 - ...nstructorFindAllReferences4.baseline.jsonc | 9 - ...uleInteropFindAllReferences.baseline.jsonc | 38 - ...leInteropFindAllReferences2.baseline.jsonc | 35 - ...sNodeNextWithTypesReference.baseline.jsonc | 6 - ...essExpressionHeritageClause.baseline.jsonc | 35 - ...FilteringMappedTypeProperty.baseline.jsonc | 26 - ...rencesFromLinkTagReference1.baseline.jsonc | 7 - ...rencesFromLinkTagReference2.baseline.jsonc | 10 - ...rencesFromLinkTagReference3.baseline.jsonc | 14 - ...rencesFromLinkTagReference4.baseline.jsonc | 8 - ...rencesFromLinkTagReference5.baseline.jsonc | 7 - ...FindAllReferencesImportMeta.baseline.jsonc | 6 - ...lReferencesJSDocFunctionNew.baseline.jsonc | 5 - ...ReferencesJSDocFunctionThis.baseline.jsonc | 5 - ...lReferencesJsDocTypeLiteral.baseline.jsonc | 24 - ...OverloadedFunctionParameter.baseline.jsonc | 10 - ...encesJsRequireDestructuring.baseline.jsonc | 4 - ...ncesJsRequireDestructuring1.baseline.jsonc | 4 - .../FindAllReferencesLinkTag1.baseline.jsonc | 176 -- .../FindAllReferencesLinkTag2.baseline.jsonc | 106 - .../FindAllReferencesLinkTag3.baseline.jsonc | 110 - ...cesNonExistentExportBinding.baseline.jsonc | 4 - ...dAllReferencesOfConstructor.baseline.jsonc | 137 - ...esOfConstructor_badOverload.baseline.jsonc | 18 - ...ndAllReferencesOfJsonModule.baseline.jsonc | 23 - ...indAllReferencesTripleSlash.baseline.jsonc | 14 - .../FindAllReferencesUndefined.baseline.jsonc | 11 - .../FindAllRefsBadImport.baseline.jsonc | 12 - .../FindAllRefsCatchClause.baseline.jsonc | 18 - ...FindAllRefsClassExpression0.baseline.jsonc | 60 - ...FindAllRefsClassExpression1.baseline.jsonc | 22 - ...FindAllRefsClassExpression2.baseline.jsonc | 38 - ...indAllRefsClassStaticBlocks.baseline.jsonc | 39 - ...AllRefsConstructorFunctions.baseline.jsonc | 64 - .../FindAllRefsDeclareClass.baseline.jsonc | 16 - .../FindAllRefsDefaultImport.baseline.jsonc | 22 - .../FindAllRefsDefinition.baseline.jsonc | 14 - ...ndAllRefsDestructureGeneric.baseline.jsonc | 20 - ...indAllRefsDestructureGetter.baseline.jsonc | 80 - .../FindAllRefsEnumAsNamespace.baseline.jsonc | 23 - .../FindAllRefsEnumMember.baseline.jsonc | 23 - ...RefsExportConstEqualToClass.baseline.jsonc | 24 - ...portDefaultClassConstructor.baseline.jsonc | 6 - ...dAllRefsExportNotAtTopLevel.baseline.jsonc | 29 - ...llRefsForComputedProperties.baseline.jsonc | 50 - ...lRefsForComputedProperties2.baseline.jsonc | 50 - ...ndAllRefsForDefaultExport01.baseline.jsonc | 48 - ...ndAllRefsForDefaultExport02.baseline.jsonc | 102 - ...ndAllRefsForDefaultExport04.baseline.jsonc | 53 - ...ndAllRefsForDefaultExport09.baseline.jsonc | 106 - ...sForDefaultExport_anonymous.baseline.jsonc | 4 - ...fsForDefaultExport_reExport.baseline.jsonc | 30 - ...indAllRefsForDefaultKeyword.baseline.jsonc | 67 - ...RefsForFunctionExpression01.baseline.jsonc | 66 - .../FindAllRefsForImportCall.baseline.jsonc | 17 - ...indAllRefsForImportCallType.baseline.jsonc | 11 - .../FindAllRefsForMappedType.baseline.jsonc | 8 - ...sForObjectLiteralProperties.baseline.jsonc | 50 - .../FindAllRefsForObjectSpread.baseline.jsonc | 52 - .../FindAllRefsForRest.baseline.jsonc | 26 - ...icInstanceMethodInheritance.baseline.jsonc | 100 - ...InstancePropertyInheritance.baseline.jsonc | 232 -- ...FindAllRefsForStringLiteral.baseline.jsonc | 9 - ...llRefsForStringLiteralTypes.baseline.jsonc | 14 - ...ndAllRefsForUMDModuleAlias1.baseline.jsonc | 38 - ...orVariableInExtendsClause01.baseline.jsonc | 23 - ...orVariableInExtendsClause02.baseline.jsonc | 32 - ...ariableInImplementsClause01.baseline.jsonc | 5 - ...fsGlobalThisKeywordInModule.baseline.jsonc | 5 - .../FindAllRefsImportEquals.baseline.jsonc | 5 - .../FindAllRefsImportType.baseline.jsonc | 27 - ...indAllRefsInClassExpression.baseline.jsonc | 18 - ...ndAllRefsIndexedAccessTypes.baseline.jsonc | 56 - ...AllRefsInheritedProperties1.baseline.jsonc | 56 - ...AllRefsInheritedProperties2.baseline.jsonc | 56 - ...AllRefsInheritedProperties3.baseline.jsonc | 178 -- ...AllRefsInheritedProperties4.baseline.jsonc | 79 - ...AllRefsInheritedProperties5.baseline.jsonc | 69 - ...FindAllRefsInsideTemplates1.baseline.jsonc | 32 - ...FindAllRefsInsideTemplates2.baseline.jsonc | 41 - .../FindAllRefsInsideWithBlock.baseline.jsonc | 53 - .../FindAllRefsIsDefinition.baseline.jsonc | 115 - .../FindAllRefsJsDocImportTag.baseline.jsonc | 11 - .../FindAllRefsJsDocImportTag2.baseline.jsonc | 30 - .../FindAllRefsJsDocImportTag3.baseline.jsonc | 30 - .../FindAllRefsJsDocImportTag4.baseline.jsonc | 9 - .../FindAllRefsJsDocImportTag5.baseline.jsonc | 12 - ...lRefsJsDocTemplateTag_class.baseline.jsonc | 14 - ...fsJsDocTemplateTag_function.baseline.jsonc | 14 - .../FindAllRefsJsDocTypeDef.baseline.jsonc | 5 - ...efsJsThisPropertyAssignment.baseline.jsonc | 30 - ...fsJsThisPropertyAssignment2.baseline.jsonc | 64 - .../FindAllRefsMappedType.baseline.jsonc | 35 - ...fsMappedType_nonHomomorphic.baseline.jsonc | 18 - ...odulesOverlappingSpecifiers.baseline.jsonc | 16 - .../FindAllRefsNoImportClause.baseline.jsonc | 12 - ...tionTemplateLiteralNoCrash1.baseline.jsonc | 4 - .../FindAllRefsNonModule.baseline.jsonc | 22 - ...NonexistentPropertyNoCrash1.baseline.jsonc | 12 - ...indingElementPropertyName01.baseline.jsonc | 36 - ...indingElementPropertyName02.baseline.jsonc | 36 - ...indingElementPropertyName03.baseline.jsonc | 24 - ...indingElementPropertyName04.baseline.jsonc | 66 - ...indingElementPropertyName05.baseline.jsonc | 11 - ...indingElementPropertyName06.baseline.jsonc | 106 - ...indingElementPropertyName07.baseline.jsonc | 6 - ...indingElementPropertyName10.baseline.jsonc | 52 - ...sOfConstructor_withModifier.baseline.jsonc | 7 - .../FindAllRefsOnDecorators.baseline.jsonc | 107 - .../FindAllRefsOnDefinition.baseline.jsonc | 62 - .../FindAllRefsOnDefinition2.baseline.jsonc | 51 - .../FindAllRefsOnImportAliases.baseline.jsonc | 44 - ...OnPrivateParameterProperty1.baseline.jsonc | 39 - ...rameterPropertyDeclaration1.baseline.jsonc | 9 - ...rameterPropertyDeclaration2.baseline.jsonc | 35 - ...rameterPropertyDeclaration3.baseline.jsonc | 35 - ...ertyDeclaration_inheritance.baseline.jsonc | 61 - .../FindAllRefsPrimitiveJsDoc.baseline.jsonc | 44 - ...AllRefsPrivateNameAccessors.baseline.jsonc | 155 -- ...ndAllRefsPrivateNameMethods.baseline.jsonc | 58 - ...llRefsPrivateNameProperties.baseline.jsonc | 76 - ...textuallyTypedByTypeParam01.baseline.jsonc | 19 - .../FindAllRefsReExport_broken.baseline.jsonc | 12 - ...FindAllRefsReExport_broken2.baseline.jsonc | 12 - ...dPropertyInDerivedInterface.baseline.jsonc | 56 - .../FindAllRefsRootSymbols.baseline.jsonc | 40 - .../FindAllRefsThisKeyword.baseline.jsonc | 170 -- ...efsThisKeywordMultipleFiles.baseline.jsonc | 70 - ...eParameterInMergedInterface.baseline.jsonc | 32 - .../FindAllRefsTypedef.baseline.jsonc | 38 - ...ndAllRefsTypedef_importType.baseline.jsonc | 25 - .../FindAllRefsTypeofImport.baseline.jsonc | 26 - .../FindAllRefsUnionProperty.baseline.jsonc | 167 -- ...ndAllRefsUnresolvedSymbols1.baseline.jsonc | 126 - ...ndAllRefsUnresolvedSymbols2.baseline.jsonc | 155 -- ...ndAllRefsUnresolvedSymbols3.baseline.jsonc | 155 -- ...WithLeadingUnderscoreNames1.baseline.jsonc | 35 - ...WithLeadingUnderscoreNames2.baseline.jsonc | 35 - ...WithLeadingUnderscoreNames3.baseline.jsonc | 35 - ...WithLeadingUnderscoreNames4.baseline.jsonc | 35 - ...WithLeadingUnderscoreNames5.baseline.jsonc | 49 - ...WithLeadingUnderscoreNames6.baseline.jsonc | 48 - ...WithLeadingUnderscoreNames7.baseline.jsonc | 26 - ...WithLeadingUnderscoreNames8.baseline.jsonc | 26 - ...WithLeadingUnderscoreNames9.baseline.jsonc | 26 - ...ShorthandPropertyAssignment.baseline.jsonc | 56 - ...horthandPropertyAssignment2.baseline.jsonc | 53 - .../FindAllRefsWriteAccess.baseline.jsonc | 20 - .../FindAllRefs_importType_js4.baseline.jsonc | 9 - ...mportType_meaningAtLocation.baseline.jsonc | 74 - ...indAllRefs_importType_named.baseline.jsonc | 74 - .../FindAllRefs_jsEnum.baseline.jsonc | 56 - ...encesAcrossMultipleProjects.baseline.jsonc | 64 - .../FindReferencesAfterEdit.baseline.jsonc | 36 - ...encesDefinitionDisplayParts.baseline.jsonc | 50 - .../FindReferencesJSXTagName.baseline.jsonc | 32 - .../FindReferencesJSXTagName2.baseline.jsonc | 23 - .../FindReferencesSeeTagInTs.baseline.jsonc | 8 - ...IsDefinitionOfArrowFunction.baseline.jsonc | 23 - ...sDefinitionOfBindingPattern.baseline.jsonc | 23 - ...urrencesIsDefinitionOfClass.baseline.jsonc | 36 - ...efinitionOfComputedProperty.baseline.jsonc | 36 - ...currencesIsDefinitionOfEnum.baseline.jsonc | 32 - ...rrencesIsDefinitionOfExport.baseline.jsonc | 24 - ...encesIsDefinitionOfFunction.baseline.jsonc | 26 - ...ncesIsDefinitionOfInterface.baseline.jsonc | 29 - ...nitionOfInterfaceClassMerge.baseline.jsonc | 139 - ...ncesIsDefinitionOfNamespace.baseline.jsonc | 29 - ...nitionOfNumberNamedProperty.baseline.jsonc | 14 - ...ncesIsDefinitionOfParameter.baseline.jsonc | 16 - ...nitionOfStringNamedProperty.baseline.jsonc | 23 - ...ncesIsDefinitionOfTypeAlias.baseline.jsonc | 23 - ...encesIsDefinitionOfVariable.baseline.jsonc | 368 --- .../IndirectJsRequireRename.baseline.jsonc | 9 - ...initionAcrossGlobalProjects.baseline.jsonc | 138 - ...initionAcrossModuleProjects.baseline.jsonc | 254 -- ...tionInterfaceImplementation.baseline.jsonc | 30 - .../IsDefinitionOverloads.baseline.jsonc | 35 - ...DefinitionShorthandProperty.baseline.jsonc | 23 - .../IsDefinitionSingleImport.baseline.jsonc | 22 - ...IsDefinitionSingleReference.baseline.jsonc | 14 - ...tisfiesTagFindAllReferences.baseline.jsonc | 10 - ...ThrowsTag_findAllReferences.baseline.jsonc | 8 - ...cTypedefTagSemanticMeaning0.baseline.jsonc | 62 - ...cTypedefTagSemanticMeaning1.baseline.jsonc | 40 - ...arameterPropertyDeclaration.baseline.jsonc | 58 - .../ReferenceToClass.baseline.jsonc | 146 - .../ReferenceToEmptyObject.baseline.jsonc | 4 - .../findAllRef/References01.baseline.jsonc | 12 - .../ReferencesBloomFilters.baseline.jsonc | 19 - .../ReferencesBloomFilters2.baseline.jsonc | 19 - .../ReferencesBloomFilters3.baseline.jsonc | 35 - .../ReferencesForAmbients.baseline.jsonc | 238 -- .../ReferencesForClassLocal.baseline.jsonc | 77 - .../ReferencesForClassMembers.baseline.jsonc | 110 - ...mbersExtendingAbstractClass.baseline.jsonc | 110 - ...embersExtendingGenericClass.baseline.jsonc | 110 - ...ReferencesForClassParameter.baseline.jsonc | 82 - ...ypedObjectLiteralProperties.baseline.jsonc | 27 - ...xtuallyTypedUnionProperties.baseline.jsonc | 393 --- ...tuallyTypedUnionProperties2.baseline.jsonc | 34 - ...encesForDeclarationKeywords.baseline.jsonc | 255 -- .../ReferencesForEnums.baseline.jsonc | 149 -- ...rencesForExpressionKeywords.baseline.jsonc | 140 - ...encesForExternalModuleNames.baseline.jsonc | 44 - ...erencesForFunctionOverloads.baseline.jsonc | 51 - ...erencesForFunctionParameter.baseline.jsonc | 38 - .../ReferencesForGlobals.baseline.jsonc | 128 - .../ReferencesForGlobals2.baseline.jsonc | 36 - .../ReferencesForGlobals3.baseline.jsonc | 36 - .../ReferencesForGlobals4.baseline.jsonc | 36 - .../ReferencesForGlobals5.baseline.jsonc | 42 - ...sForGlobalsInExternalModule.baseline.jsonc | 182 -- ...erencesForIllegalAssignment.baseline.jsonc | 26 - .../ReferencesForImports.baseline.jsonc | 62 - .../ReferencesForIndexProperty.baseline.jsonc | 56 - ...ReferencesForIndexProperty2.baseline.jsonc | 5 - ...ReferencesForIndexProperty3.baseline.jsonc | 44 - ...encesForInheritedProperties.baseline.jsonc | 104 - ...ncesForInheritedProperties2.baseline.jsonc | 26 - ...ncesForInheritedProperties3.baseline.jsonc | 56 - ...ncesForInheritedProperties4.baseline.jsonc | 56 - ...ncesForInheritedProperties5.baseline.jsonc | 34 - ...ncesForInheritedProperties6.baseline.jsonc | 12 - ...ncesForInheritedProperties7.baseline.jsonc | 132 - ...ncesForInheritedProperties8.baseline.jsonc | 30 - ...ncesForInheritedProperties9.baseline.jsonc | 43 - .../ReferencesForLabel.baseline.jsonc | 80 - .../ReferencesForLabel2.baseline.jsonc | 8 - .../ReferencesForLabel3.baseline.jsonc | 6 - .../ReferencesForLabel4.baseline.jsonc | 32 - .../ReferencesForLabel5.baseline.jsonc | 118 - .../ReferencesForLabel6.baseline.jsonc | 40 - ...rencesForMergedDeclarations.baseline.jsonc | 154 -- ...encesForMergedDeclarations2.baseline.jsonc | 56 - ...encesForMergedDeclarations3.baseline.jsonc | 44 - ...encesForMergedDeclarations4.baseline.jsonc | 259 -- ...encesForMergedDeclarations5.baseline.jsonc | 44 - ...encesForMergedDeclarations6.baseline.jsonc | 41 - ...encesForMergedDeclarations7.baseline.jsonc | 58 - ...encesForMergedDeclarations8.baseline.jsonc | 44 - .../ReferencesForModifiers.baseline.jsonc | 148 -- .../ReferencesForNoContext.baseline.jsonc | 58 - ...NumericLiteralPropertyNames.baseline.jsonc | 11 - ...sForObjectLiteralProperties.baseline.jsonc | 44 - .../ReferencesForOverrides.baseline.jsonc | 175 -- ...sForPropertiesOfGenericType.baseline.jsonc | 44 - .../ReferencesForStatic.baseline.jsonc | 291 -- ...ticsAndMembersWithSameNames.baseline.jsonc | 250 -- ...rStringLiteralPropertyNames.baseline.jsonc | 12 - ...StringLiteralPropertyNames2.baseline.jsonc | 35 - ...StringLiteralPropertyNames3.baseline.jsonc | 66 - ...StringLiteralPropertyNames4.baseline.jsonc | 16 - ...StringLiteralPropertyNames5.baseline.jsonc | 16 - ...StringLiteralPropertyNames6.baseline.jsonc | 16 - ...StringLiteralPropertyNames7.baseline.jsonc | 16 - .../ReferencesForTypeKeywords.baseline.jsonc | 78 - ...eferencesForUnionProperties.baseline.jsonc | 72 - ...ferencesInConfiguredProject.baseline.jsonc | 11 - ...ptyFileWithMultipleProjects.baseline.jsonc | 13 - ...alValueWithMultipleProjects.baseline.jsonc | 13 - ...onPropertyNameStringLiteral.baseline.jsonc | 4 - ...erencesToStringLiteralValue.baseline.jsonc | 4 - .../RemoteGetReferences.baseline.jsonc | 1941 -------------- .../RenameJsExports02.baseline.jsonc | 12 - .../RenameJsExports03.baseline.jsonc | 36 - .../TsxFindAllReferences1.baseline.jsonc | 44 - .../TsxFindAllReferences10.baseline.jsonc | 12 - .../TsxFindAllReferences11.baseline.jsonc | 8 - .../TsxFindAllReferences2.baseline.jsonc | 12 - .../TsxFindAllReferences3.baseline.jsonc | 13 - .../TsxFindAllReferences4.baseline.jsonc | 81 - .../TsxFindAllReferences5.baseline.jsonc | 185 -- .../TsxFindAllReferences6.baseline.jsonc | 8 - .../TsxFindAllReferences7.baseline.jsonc | 12 - .../TsxFindAllReferences8.baseline.jsonc | 311 --- .../TsxFindAllReferences9.baseline.jsonc | 12 - ...ReferencesUnionElementType1.baseline.jsonc | 47 - ...ReferencesUnionElementType2.baseline.jsonc | 47 - ...ambientShorthandFindAllRefs.baseline.jsonc | 0 ...ortProvider_referencesCrash.baseline.jsonc | 0 ...nstructorFindAllReferences1.baseline.jsonc | 0 ...nstructorFindAllReferences2.baseline.jsonc | 0 ...nstructorFindAllReferences3.baseline.jsonc | 0 ...nstructorFindAllReferences4.baseline.jsonc | 0 ...uleInteropFindAllReferences.baseline.jsonc | 0 ...leInteropFindAllReferences2.baseline.jsonc | 0 ...sNodeNextWithTypesReference.baseline.jsonc | 0 ...essExpressionHeritageClause.baseline.jsonc | 0 ...llReferencesDynamicImport2.baseline.jsonc} | 0 ...llReferencesDynamicImport3.baseline.jsonc} | 0 ...FilteringMappedTypeProperty.baseline.jsonc | 0 ...rencesFromLinkTagReference1.baseline.jsonc | 0 ...rencesFromLinkTagReference2.baseline.jsonc | 0 ...rencesFromLinkTagReference3.baseline.jsonc | 0 ...rencesFromLinkTagReference4.baseline.jsonc | 0 ...rencesFromLinkTagReference5.baseline.jsonc | 0 ...findAllReferencesImportMeta.baseline.jsonc | 0 ...lReferencesJSDocFunctionNew.baseline.jsonc | 0 ...ReferencesJSDocFunctionThis.baseline.jsonc | 0 ...lReferencesJsDocTypeLiteral.baseline.jsonc | 0 ...OverloadedFunctionParameter.baseline.jsonc | 0 ...encesJsRequireDestructuring.baseline.jsonc | 0 ...ncesJsRequireDestructuring1.baseline.jsonc | 0 .../findAllReferencesLinkTag1.baseline.jsonc | 0 .../findAllReferencesLinkTag2.baseline.jsonc | 0 .../findAllReferencesLinkTag3.baseline.jsonc | 0 ...cesNonExistentExportBinding.baseline.jsonc | 0 ...dAllReferencesOfConstructor.baseline.jsonc | 0 ...esOfConstructor_badOverload.baseline.jsonc | 0 ...ndAllReferencesOfJsonModule.baseline.jsonc | 0 .../findAllReferencesUndefined.baseline.jsonc | 0 .../findAllRefsBadImport.baseline.jsonc | 0 .../findAllRefsCatchClause.baseline.jsonc | 0 ...findAllRefsClassExpression0.baseline.jsonc | 0 ...findAllRefsClassExpression1.baseline.jsonc | 0 ...findAllRefsClassExpression2.baseline.jsonc | 0 ...indAllRefsClassStaticBlocks.baseline.jsonc | 0 ...sClassWithStaticThisAccess.baseline.jsonc} | 0 ...AllRefsConstructorFunctions.baseline.jsonc | 0 .../findAllRefsDeclareClass.baseline.jsonc | 0 .../findAllRefsDefaultImport.baseline.jsonc | 0 .../findAllRefsDefinition.baseline.jsonc | 0 ...ndAllRefsDestructureGeneric.baseline.jsonc | 0 ...indAllRefsDestructureGetter.baseline.jsonc | 0 .../findAllRefsEnumAsNamespace.baseline.jsonc | 0 .../findAllRefsEnumMember.baseline.jsonc | 0 ...RefsExportConstEqualToClass.baseline.jsonc | 0 ...portDefaultClassConstructor.baseline.jsonc | 0 ...dAllRefsExportNotAtTopLevel.baseline.jsonc | 0 ...llRefsForComputedProperties.baseline.jsonc | 0 ...lRefsForComputedProperties2.baseline.jsonc | 0 ...indAllRefsForDefaultExport.baseline.jsonc} | 0 ...ndAllRefsForDefaultExport01.baseline.jsonc | 0 ...ndAllRefsForDefaultExport02.baseline.jsonc | 0 ...ndAllRefsForDefaultExport04.baseline.jsonc | 0 ...ndAllRefsForDefaultExport09.baseline.jsonc | 0 ...sForDefaultExport_anonymous.baseline.jsonc | 0 ...fsForDefaultExport_reExport.baseline.jsonc | 0 ...indAllRefsForDefaultKeyword.baseline.jsonc | 0 ...RefsForFunctionExpression01.baseline.jsonc | 0 .../findAllRefsForImportCall.baseline.jsonc | 0 ...indAllRefsForImportCallType.baseline.jsonc | 0 .../findAllRefsForMappedType.baseline.jsonc | 0 ...sForObjectLiteralProperties.baseline.jsonc | 0 .../findAllRefsForObjectSpread.baseline.jsonc | 0 .../findAllRefsForRest.baseline.jsonc | 0 ...icInstanceMethodInheritance.baseline.jsonc | 0 ...InstancePropertyInheritance.baseline.jsonc | 0 ...findAllRefsForStringLiteral.baseline.jsonc | 0 ...llRefsForStringLiteralTypes.baseline.jsonc | 0 ...ndAllRefsForUMDModuleAlias1.baseline.jsonc | 0 ...orVariableInExtendsClause01.baseline.jsonc | 0 ...orVariableInExtendsClause02.baseline.jsonc | 0 ...ariableInImplementsClause01.baseline.jsonc | 0 ...fsGlobalThisKeywordInModule.baseline.jsonc | 0 .../findAllRefsImportEquals.baseline.jsonc | 0 .../findAllRefsImportType.baseline.jsonc | 0 ...indAllRefsInClassExpression.baseline.jsonc | 0 ...ndAllRefsIndexedAccessTypes.baseline.jsonc | 0 ...AllRefsInheritedProperties1.baseline.jsonc | 0 ...AllRefsInheritedProperties2.baseline.jsonc | 0 ...AllRefsInheritedProperties3.baseline.jsonc | 0 ...AllRefsInheritedProperties4.baseline.jsonc | 0 ...AllRefsInheritedProperties5.baseline.jsonc | 0 ...findAllRefsInsideTemplates1.baseline.jsonc | 0 ...findAllRefsInsideTemplates2.baseline.jsonc | 0 .../findAllRefsInsideWithBlock.baseline.jsonc | 0 .../findAllRefsIsDefinition.baseline.jsonc | 0 .../findAllRefsJsDocImportTag.baseline.jsonc | 0 .../findAllRefsJsDocImportTag2.baseline.jsonc | 0 .../findAllRefsJsDocImportTag3.baseline.jsonc | 0 .../findAllRefsJsDocImportTag4.baseline.jsonc | 0 .../findAllRefsJsDocImportTag5.baseline.jsonc | 0 ...lRefsJsDocTemplateTag_class.baseline.jsonc | 0 ...fsJsDocTemplateTag_function.baseline.jsonc | 0 .../findAllRefsJsDocTypeDef.baseline.jsonc | 0 ...efsJsThisPropertyAssignment.baseline.jsonc | 0 ...fsJsThisPropertyAssignment2.baseline.jsonc | 0 .../findAllRefsMappedType.baseline.jsonc | 0 ...fsMappedType_nonHomomorphic.baseline.jsonc | 0 ...odulesOverlappingSpecifiers.baseline.jsonc | 0 .../findAllRefsNoImportClause.baseline.jsonc | 0 ...tionTemplateLiteralNoCrash1.baseline.jsonc | 0 .../findAllRefsNonModule.baseline.jsonc | 0 ...NonexistentPropertyNoCrash1.baseline.jsonc | 0 ...indingElementPropertyName01.baseline.jsonc | 0 ...indingElementPropertyName02.baseline.jsonc | 0 ...indingElementPropertyName03.baseline.jsonc | 0 ...indingElementPropertyName04.baseline.jsonc | 0 ...indingElementPropertyName05.baseline.jsonc | 0 ...indingElementPropertyName06.baseline.jsonc | 0 ...indingElementPropertyName07.baseline.jsonc | 0 ...indingElementPropertyName10.baseline.jsonc | 0 ...sOfConstructor_withModifier.baseline.jsonc | 0 .../findAllRefsOnDecorators.baseline.jsonc | 0 .../findAllRefsOnDefinition.baseline.jsonc | 0 .../findAllRefsOnDefinition2.baseline.jsonc | 0 .../findAllRefsOnImportAliases.baseline.jsonc | 0 ...indAllRefsOnImportAliases2.baseline.jsonc} | 0 ...OnPrivateParameterProperty1.baseline.jsonc | 0 ...rameterPropertyDeclaration1.baseline.jsonc | 0 ...rameterPropertyDeclaration2.baseline.jsonc | 0 ...rameterPropertyDeclaration3.baseline.jsonc | 0 ...ertyDeclaration_inheritance.baseline.jsonc | 0 .../findAllRefsPrimitiveJsDoc.baseline.jsonc | 0 ...AllRefsPrivateNameAccessors.baseline.jsonc | 0 ...ndAllRefsPrivateNameMethods.baseline.jsonc | 0 ...llRefsPrivateNameProperties.baseline.jsonc | 0 ...textuallyTypedByTypeParam01.baseline.jsonc | 0 ...findAllRefsReExport_broken2.baseline.jsonc | 0 ...dPropertyInDerivedInterface.baseline.jsonc | 0 .../findAllRefsRootSymbols.baseline.jsonc | 0 .../findAllRefsThisKeyword.baseline.jsonc | 0 ...efsThisKeywordMultipleFiles.baseline.jsonc | 0 ...eParameterInMergedInterface.baseline.jsonc | 0 .../findAllRefsTypedef.baseline.jsonc | 0 ...ndAllRefsTypedef_importType.baseline.jsonc | 0 .../findAllRefsTypeofImport.baseline.jsonc | 0 .../findAllRefsUnionProperty.baseline.jsonc | 0 ...ndAllRefsUnresolvedSymbols1.baseline.jsonc | 0 ...ndAllRefsUnresolvedSymbols2.baseline.jsonc | 0 ...ndAllRefsUnresolvedSymbols3.baseline.jsonc | 0 ...WithLeadingUnderscoreNames1.baseline.jsonc | 0 ...WithLeadingUnderscoreNames2.baseline.jsonc | 0 ...WithLeadingUnderscoreNames3.baseline.jsonc | 0 ...WithLeadingUnderscoreNames4.baseline.jsonc | 0 ...WithLeadingUnderscoreNames5.baseline.jsonc | 0 ...WithLeadingUnderscoreNames6.baseline.jsonc | 0 ...WithLeadingUnderscoreNames7.baseline.jsonc | 0 ...WithLeadingUnderscoreNames8.baseline.jsonc | 0 ...WithLeadingUnderscoreNames9.baseline.jsonc | 0 ...ShorthandPropertyAssignment.baseline.jsonc | 0 ...horthandPropertyAssignment2.baseline.jsonc | 0 .../findAllRefsWriteAccess.baseline.jsonc | 0 .../findAllRefs_importType_js4.baseline.jsonc | 0 ...mportType_meaningAtLocation.baseline.jsonc | 0 ...indAllRefs_importType_named.baseline.jsonc | 0 .../findAllRefs_jsEnum.baseline.jsonc | 0 ...encesAcrossMultipleProjects.baseline.jsonc | 0 ...encesDefinitionDisplayParts.baseline.jsonc | 0 .../findReferencesJSXTagName.baseline.jsonc | 0 .../findReferencesJSXTagName2.baseline.jsonc | 0 .../findReferencesSeeTagInTs.baseline.jsonc | 0 ...IsDefinitionOfArrowFunction.baseline.jsonc | 0 ...sDefinitionOfBindingPattern.baseline.jsonc | 0 ...urrencesIsDefinitionOfClass.baseline.jsonc | 0 ...efinitionOfComputedProperty.baseline.jsonc | 0 ...currencesIsDefinitionOfEnum.baseline.jsonc | 0 ...rrencesIsDefinitionOfExport.baseline.jsonc | 0 ...encesIsDefinitionOfFunction.baseline.jsonc | 0 ...ncesIsDefinitionOfInterface.baseline.jsonc | 0 ...nitionOfInterfaceClassMerge.baseline.jsonc | 0 ...ncesIsDefinitionOfNamespace.baseline.jsonc | 0 ...nitionOfNumberNamedProperty.baseline.jsonc | 0 ...ncesIsDefinitionOfParameter.baseline.jsonc | 0 ...nitionOfStringNamedProperty.baseline.jsonc | 0 ...ncesIsDefinitionOfTypeAlias.baseline.jsonc | 0 ...encesIsDefinitionOfVariable.baseline.jsonc | 0 .../indirectJsRequireRename.baseline.jsonc | 0 ...initionAcrossGlobalProjects.baseline.jsonc | 0 ...initionAcrossModuleProjects.baseline.jsonc | 0 ...tionInterfaceImplementation.baseline.jsonc | 0 .../isDefinitionOverloads.baseline.jsonc | 0 ...DefinitionShorthandProperty.baseline.jsonc | 0 .../isDefinitionSingleImport.baseline.jsonc | 0 ...isDefinitionSingleReference.baseline.jsonc | 0 ...tisfiesTagFindAllReferences.baseline.jsonc | 0 ...ThrowsTag_findAllReferences.baseline.jsonc | 0 ...cTypedefTagSemanticMeaning0.baseline.jsonc | 0 ...cTypedefTagSemanticMeaning1.baseline.jsonc | 0 ...arameterPropertyDeclaration.baseline.jsonc | 0 .../referenceToClass.baseline.jsonc | 0 .../referenceToEmptyObject.baseline.jsonc | 0 .../references01.baseline.jsonc | 0 .../referencesBloomFilters.baseline.jsonc | 0 .../referencesBloomFilters2.baseline.jsonc | 0 .../referencesBloomFilters3.baseline.jsonc | 0 .../referencesForAmbients.baseline.jsonc | 0 .../referencesForClassLocal.baseline.jsonc | 0 .../referencesForClassMembers.baseline.jsonc | 0 ...mbersExtendingAbstractClass.baseline.jsonc | 0 ...embersExtendingGenericClass.baseline.jsonc | 0 ...referencesForClassParameter.baseline.jsonc | 0 ...ypedObjectLiteralProperties.baseline.jsonc | 0 ...xtuallyTypedUnionProperties.baseline.jsonc | 0 ...tuallyTypedUnionProperties2.baseline.jsonc | 0 ...encesForDeclarationKeywords.baseline.jsonc | 0 .../referencesForEnums.baseline.jsonc | 0 ...rencesForExpressionKeywords.baseline.jsonc | 0 ...encesForExternalModuleNames.baseline.jsonc | 0 ...erencesForFunctionOverloads.baseline.jsonc | 0 ...erencesForFunctionParameter.baseline.jsonc | 0 .../referencesForGlobals.baseline.jsonc | 0 .../referencesForGlobals2.baseline.jsonc | 0 .../referencesForGlobals3.baseline.jsonc | 0 .../referencesForGlobals4.baseline.jsonc | 0 .../referencesForGlobals5.baseline.jsonc | 0 ...sForGlobalsInExternalModule.baseline.jsonc | 0 ...erencesForIllegalAssignment.baseline.jsonc | 0 .../referencesForImports.baseline.jsonc | 0 .../referencesForIndexProperty.baseline.jsonc | 0 ...referencesForIndexProperty2.baseline.jsonc | 0 ...referencesForIndexProperty3.baseline.jsonc | 0 ...encesForInheritedProperties.baseline.jsonc | 0 ...ncesForInheritedProperties2.baseline.jsonc | 0 ...ncesForInheritedProperties3.baseline.jsonc | 0 ...ncesForInheritedProperties4.baseline.jsonc | 0 ...ncesForInheritedProperties5.baseline.jsonc | 0 ...ncesForInheritedProperties6.baseline.jsonc | 0 ...ncesForInheritedProperties7.baseline.jsonc | 0 ...ncesForInheritedProperties8.baseline.jsonc | 0 ...ncesForInheritedProperties9.baseline.jsonc | 0 .../referencesForLabel.baseline.jsonc | 0 .../referencesForLabel2.baseline.jsonc | 0 .../referencesForLabel3.baseline.jsonc | 0 .../referencesForLabel4.baseline.jsonc | 0 .../referencesForLabel5.baseline.jsonc | 0 .../referencesForLabel6.baseline.jsonc | 0 ...rencesForMergedDeclarations.baseline.jsonc | 0 ...encesForMergedDeclarations2.baseline.jsonc | 0 ...encesForMergedDeclarations3.baseline.jsonc | 0 ...encesForMergedDeclarations4.baseline.jsonc | 0 ...encesForMergedDeclarations5.baseline.jsonc | 0 ...encesForMergedDeclarations6.baseline.jsonc | 0 ...encesForMergedDeclarations7.baseline.jsonc | 0 ...encesForMergedDeclarations8.baseline.jsonc | 0 .../referencesForModifiers.baseline.jsonc | 0 .../referencesForNoContext.baseline.jsonc | 0 ...NumericLiteralPropertyNames.baseline.jsonc | 0 ...sForObjectLiteralProperties.baseline.jsonc | 0 .../referencesForOverrides.baseline.jsonc | 0 ...sForPropertiesOfGenericType.baseline.jsonc | 0 .../referencesForStatic.baseline.jsonc | 0 ...ticsAndMembersWithSameNames.baseline.jsonc | 0 ...rStringLiteralPropertyNames.baseline.jsonc | 0 ...StringLiteralPropertyNames2.baseline.jsonc | 0 ...StringLiteralPropertyNames3.baseline.jsonc | 0 ...StringLiteralPropertyNames4.baseline.jsonc | 0 ...StringLiteralPropertyNames5.baseline.jsonc | 0 ...StringLiteralPropertyNames6.baseline.jsonc | 0 ...StringLiteralPropertyNames7.baseline.jsonc | 0 .../referencesForTypeKeywords.baseline.jsonc | 0 ...eferencesForUnionProperties.baseline.jsonc | 0 ...ferencesInConfiguredProject.baseline.jsonc | 0 ...ptyFileWithMultipleProjects.baseline.jsonc | 0 ...alValueWithMultipleProjects.baseline.jsonc | 0 ...onPropertyNameStringLiteral.baseline.jsonc | 0 ...erencesToStringLiteralValue.baseline.jsonc | 0 .../remoteGetReferences.baseline.jsonc | 0 ...ImportAndExportInDiffFiles.baseline.jsonc} | 0 ...renameImportOfExportEquals.baseline.jsonc} | 0 .../renameJsExports01.baseline.jsonc} | 0 .../renameJsExports02.baseline.jsonc | 0 .../renameJsExports03.baseline.jsonc | 0 .../tsxFindAllReferences1.baseline.jsonc | 0 .../tsxFindAllReferences10.baseline.jsonc | 0 .../tsxFindAllReferences11.baseline.jsonc | 0 .../tsxFindAllReferences2.baseline.jsonc | 0 .../tsxFindAllReferences3.baseline.jsonc | 0 .../tsxFindAllReferences4.baseline.jsonc | 0 .../tsxFindAllReferences5.baseline.jsonc | 0 .../tsxFindAllReferences6.baseline.jsonc | 0 .../tsxFindAllReferences7.baseline.jsonc | 0 .../tsxFindAllReferences8.baseline.jsonc | 0 .../tsxFindAllReferences9.baseline.jsonc | 0 ...ReferencesUnionElementType1.baseline.jsonc | 0 ...ReferencesUnionElementType2.baseline.jsonc | 0 ...AllReferencesDynamicImport2.baseline.jsonc | 44 - ...AllReferencesDynamicImport3.baseline.jsonc | 32 - ...fsClassWithStaticThisAccess.baseline.jsonc | 56 - ...findAllRefsForDefaultExport.baseline.jsonc | 33 - ...findAllRefsOnImportAliases2.baseline.jsonc | 162 -- .../doubleUnderscoreRenames.baseline.jsonc | 0 ...AllReferencesDynamicImport2.baseline.jsonc | 0 ...AllReferencesDynamicImport3.baseline.jsonc | 0 ...fsClassWithStaticThisAccess.baseline.jsonc | 0 ...findAllRefsOnImportAliases2.baseline.jsonc | 0 ...sForExportFromUnfoundModule.baseline.jsonc | 0 .../javaScriptClass2.baseline.jsonc | 0 .../jsDocSee_rename1.baseline.jsonc | 0 .../jsdocCallbackTagRename01.baseline.jsonc | 0 .../jsdocSatisfiesTagRename.baseline.jsonc | 0 .../jsdocThrowsTag_rename.baseline.jsonc | 0 .../jsdocTypedefTagRename01.baseline.jsonc | 0 .../jsdocTypedefTagRename02.baseline.jsonc | 0 .../jsdocTypedefTagRename03.baseline.jsonc | 0 .../jsxSpreadReference.baseline.jsonc | 0 .../processInvalidSyntax1.baseline.jsonc | 0 .../rename01.baseline.jsonc | 0 ...enameAcrossMultipleProjects.baseline.jsonc | 0 .../renameAlias.baseline.jsonc | 0 .../renameAlias2.baseline.jsonc | 0 .../renameAlias3.baseline.jsonc | 0 .../renameAliasExternalModule.baseline.jsonc | 0 .../renameAliasExternalModule2.baseline.jsonc | 0 .../renameAliasExternalModule3.baseline.jsonc | 0 ...gElementInitializerExternal.baseline.jsonc | 0 ...gElementInitializerProperty.baseline.jsonc | 0 .../renameCommentsAndStrings1.baseline.jsonc | 0 .../renameCommentsAndStrings2.baseline.jsonc | 0 .../renameCommentsAndStrings3.baseline.jsonc | 0 .../renameCommentsAndStrings4.baseline.jsonc | 0 ...ContextuallyTypedProperties.baseline.jsonc | 0 ...ontextuallyTypedProperties2.baseline.jsonc | 0 .../renameDeclarationKeywords.baseline.jsonc | 0 .../renameDefaultLibDontWork.baseline.jsonc | 0 ...nameDestructuringAssignment.baseline.jsonc | 0 ...ignmentNestedInArrayLiteral.baseline.jsonc | 0 ...ingAssignmentNestedInForOf2.baseline.jsonc | 0 ...eDestructuringClassProperty.baseline.jsonc | 0 ...structuringDeclarationInFor.baseline.jsonc | 0 ...ructuringDeclarationInForOf.baseline.jsonc | 0 ...tructuringFunctionParameter.baseline.jsonc | 0 ...cturingNestedBindingElement.baseline.jsonc | 0 .../renameExportCrash.baseline.jsonc | 0 .../renameExportSpecifier.baseline.jsonc | 0 .../renameExportSpecifier2.baseline.jsonc | 0 .../renameForStringLiteral.baseline.jsonc | 0 .../renameFunctionParameter1.baseline.jsonc | 0 .../renameFunctionParameter2.baseline.jsonc | 0 .../renameImportAndExport.baseline.jsonc | 0 ...eImportAndExportInDiffFiles.baseline.jsonc | 0 .../renameImportAndShorthand.baseline.jsonc | 0 ...ImportNamespaceAndShorthand.baseline.jsonc | 0 .../renameImportOfExportEquals.baseline.jsonc | 80 - .../renameImportRequire.baseline.jsonc | 0 ...ImportSpecifierPropertyName.baseline.jsonc | 0 .../renameInConfiguredProject.baseline.jsonc | 0 .../renameInheritedProperties1.baseline.jsonc | 0 .../renameInheritedProperties2.baseline.jsonc | 0 .../renameInheritedProperties3.baseline.jsonc | 0 .../renameInheritedProperties4.baseline.jsonc | 0 .../renameInheritedProperties5.baseline.jsonc | 0 .../renameInheritedProperties6.baseline.jsonc | 0 .../renameInheritedProperties7.baseline.jsonc | 0 .../renameInheritedProperties8.baseline.jsonc | 0 .../renameJSDocNamepath.baseline.jsonc | 0 .../renameJsDocImportTag.baseline.jsonc | 0 .../renameJsDocTypeLiteral.baseline.jsonc | 0 .../renameJsExports01.baseline.jsonc | 0 ...OverloadedFunctionParameter.baseline.jsonc | 0 .../renameJsPropertyAssignment.baseline.jsonc | 0 ...renameJsPropertyAssignment2.baseline.jsonc | 0 ...renameJsPropertyAssignment3.baseline.jsonc | 0 ...renameJsPropertyAssignment4.baseline.jsonc | 0 ...renameJsPrototypeProperty01.baseline.jsonc | 0 ...renameJsPrototypeProperty02.baseline.jsonc | 0 .../renameJsThisProperty01.baseline.jsonc | 0 .../renameJsThisProperty03.baseline.jsonc | 0 .../renameJsThisProperty05.baseline.jsonc | 0 .../renameJsThisProperty06.baseline.jsonc | 0 .../renameLabel1.baseline.jsonc | 0 .../renameLabel2.baseline.jsonc | 0 .../renameLabel3.baseline.jsonc | 0 .../renameLabel4.baseline.jsonc | 0 .../renameLabel5.baseline.jsonc | 0 .../renameLabel6.baseline.jsonc | 0 ...cationsForClassExpression01.baseline.jsonc | 0 ...ionsForFunctionExpression01.baseline.jsonc | 0 ...ionsForFunctionExpression02.baseline.jsonc | 0 .../renameModifiers.baseline.jsonc | 0 ...ameModuleExportsProperties1.baseline.jsonc | 0 ...ameModuleExportsProperties2.baseline.jsonc | 0 ...ameModuleExportsProperties3.baseline.jsonc | 0 .../renameNamedImport.baseline.jsonc | 0 .../renameNamespaceImport.baseline.jsonc | 0 .../renameNumericalIndex.baseline.jsonc | 0 ...eNumericalIndexSingleQuoted.baseline.jsonc | 0 ...indingElementPropertyName01.baseline.jsonc | 0 .../renameObjectSpread.baseline.jsonc | 0 ...enameObjectSpreadAssignment.baseline.jsonc | 0 ...rameterPropertyDeclaration1.baseline.jsonc | 0 ...rameterPropertyDeclaration2.baseline.jsonc | 0 ...rameterPropertyDeclaration3.baseline.jsonc | 0 ...rameterPropertyDeclaration4.baseline.jsonc | 0 ...rameterPropertyDeclaration5.baseline.jsonc | 0 .../renamePrivateAccessor.baseline.jsonc | 0 .../renamePrivateFields1.baseline.jsonc | 0 .../renamePrivateMethod.baseline.jsonc | 0 ...essExpressionHeritageClause.baseline.jsonc | 0 .../renameReExportDefault.baseline.jsonc | 0 ...renameReferenceFromLinkTag1.baseline.jsonc | 0 ...renameReferenceFromLinkTag2.baseline.jsonc | 0 ...renameReferenceFromLinkTag3.baseline.jsonc | 0 ...renameReferenceFromLinkTag4.baseline.jsonc | 0 ...renameReferenceFromLinkTag5.baseline.jsonc | 0 .../renameRest.baseline.jsonc | 0 .../renameRestBindingElement.baseline.jsonc | 0 .../renameStringLiteralOk.baseline.jsonc | 0 .../renameStringLiteralOk1.baseline.jsonc | 0 .../renameStringLiteralTypes1.baseline.jsonc | 0 .../renameStringLiteralTypes2.baseline.jsonc | 0 .../renameStringLiteralTypes3.baseline.jsonc | 0 .../renameStringLiteralTypes4.baseline.jsonc | 0 .../renameStringLiteralTypes5.baseline.jsonc | 0 .../renameStringPropertyNames.baseline.jsonc | 0 .../renameStringPropertyNames2.baseline.jsonc | 0 ...eLiteralsComputedProperties.baseline.jsonc | 0 ...ateLiteralsDefinePropertyJs.baseline.jsonc | 0 .../renameUMDModuleAlias1.baseline.jsonc | 0 .../tsxRename1.baseline.jsonc | 0 .../tsxRename2.baseline.jsonc | 0 .../tsxRename3.baseline.jsonc | 0 .../tsxRename5.baseline.jsonc | 0 .../tsxRename6.baseline.jsonc | 0 .../tsxRename7.baseline.jsonc | 0 .../tsxRename9.baseline.jsonc | 0 ...eclarationMapGoToDefinition.baseline.jsonc | 17 - ...efinitionRelativeSourceRoot.baseline.jsonc | 17 - ...nSameNameDifferentDirectory.baseline.jsonc | 46 - ...arationMapsOutOfDateMapping.baseline.jsonc | 12 - .../goToDef/Definition.baseline.jsonc | 10 - .../goToDef/Definition01.baseline.jsonc | 10 - .../DefinitionNameOnEnumMember.baseline.jsonc | 9 - ...itionAcrossMultipleProjects.baseline.jsonc | 28 - .../GoToDefinitionAlias.baseline.jsonc | 72 - .../GoToDefinitionAmbiants.baseline.jsonc | 96 - ...itionApparentTypeProperties.baseline.jsonc | 24 - .../GoToDefinitionAwait1.baseline.jsonc | 22 - .../GoToDefinitionAwait2.baseline.jsonc | 4 - .../GoToDefinitionAwait3.baseline.jsonc | 26 - .../GoToDefinitionAwait4.baseline.jsonc | 8 - .../GoToDefinitionBuiltInTypes.baseline.jsonc | 40 - ...GoToDefinitionBuiltInValues.baseline.jsonc | 56 - ...tionCSSPatternAmbientModule.baseline.jsonc | 12 - ...DefinitionClassConstructors.baseline.jsonc | 76 - ...DefinitionClassStaticBlocks.baseline.jsonc | 39 - ...structorOfClassExpression01.baseline.jsonc | 152 -- ...lassIsPrecededByNamespace01.baseline.jsonc | 13 - ...initionConstructorOverloads.baseline.jsonc | 90 - .../GoToDefinitionDecorator.baseline.jsonc | 40 - ...efinitionDecoratorOverloads.baseline.jsonc | 32 - ...initionDestructuredRequire1.baseline.jsonc | 11 - ...initionDestructuredRequire2.baseline.jsonc | 11 - ...GoToDefinitionDifferentFile.baseline.jsonc | 101 - ...tionDifferentFileIndirectly.baseline.jsonc | 101 - ...oToDefinitionDynamicImport1.baseline.jsonc | 16 - ...oToDefinitionDynamicImport2.baseline.jsonc | 8 - ...oToDefinitionDynamicImport3.baseline.jsonc | 5 - ...oToDefinitionDynamicImport4.baseline.jsonc | 5 - ...GoToDefinitionExpandoClass1.baseline.jsonc | 10 - ...GoToDefinitionExpandoClass2.baseline.jsonc | 12 - ...initionExpandoElementAccess.baseline.jsonc | 6 - ...efinitionExternalModuleName.baseline.jsonc | 10 - ...finitionExternalModuleName2.baseline.jsonc | 11 - ...finitionExternalModuleName3.baseline.jsonc | 12 - ...finitionExternalModuleName4.baseline.jsonc | 4 - ...finitionExternalModuleName5.baseline.jsonc | 6 - ...finitionExternalModuleName6.baseline.jsonc | 11 - ...finitionExternalModuleName7.baseline.jsonc | 11 - ...finitionExternalModuleName8.baseline.jsonc | 11 - ...finitionExternalModuleName9.baseline.jsonc | 11 - ...DefinitionFunctionOverloads.baseline.jsonc | 52 - ...ionFunctionOverloadsInClass.baseline.jsonc | 28 - .../GoToDefinitionFunctionType.baseline.jsonc | 40 - ...finitionImplicitConstructor.baseline.jsonc | 6 - .../GoToDefinitionImport1.baseline.jsonc | 9 - .../GoToDefinitionImport2.baseline.jsonc | 4 - .../GoToDefinitionImport3.baseline.jsonc | 4 - ...GoToDefinitionImportedNames.baseline.jsonc | 16 - ...ToDefinitionImportedNames10.baseline.jsonc | 13 - ...ToDefinitionImportedNames11.baseline.jsonc | 13 - ...oToDefinitionImportedNames2.baseline.jsonc | 16 - ...oToDefinitionImportedNames3.baseline.jsonc | 38 - ...oToDefinitionImportedNames4.baseline.jsonc | 16 - ...oToDefinitionImportedNames5.baseline.jsonc | 16 - ...oToDefinitionImportedNames6.baseline.jsonc | 16 - ...oToDefinitionImportedNames7.baseline.jsonc | 12 - ...oToDefinitionImportedNames8.baseline.jsonc | 12 - ...oToDefinitionImportedNames9.baseline.jsonc | 13 - .../GoToDefinitionImports.baseline.jsonc | 70 - ...finitionInMemberDeclaration.baseline.jsonc | 171 -- ...oToDefinitionInTypeArgument.baseline.jsonc | 20 - ...oToDefinitionIndexSignature.baseline.jsonc | 109 - ...ToDefinitionIndexSignature2.baseline.jsonc | 5 - .../GoToDefinitionInstanceof1.baseline.jsonc | 7 - .../GoToDefinitionInstanceof2.baseline.jsonc | 8 - ...tionInterfaceAfterImplement.baseline.jsonc | 13 - ...ToDefinitionJsDocImportTag1.baseline.jsonc | 6 - ...ToDefinitionJsDocImportTag2.baseline.jsonc | 6 - ...ToDefinitionJsDocImportTag3.baseline.jsonc | 6 - ...ToDefinitionJsDocImportTag4.baseline.jsonc | 6 - ...ToDefinitionJsDocImportTag5.baseline.jsonc | 16 - ...ToDefinitionJsModuleExports.baseline.jsonc | 18 - .../GoToDefinitionJsModuleName.baseline.jsonc | 9 - ...ionJsModuleNameAtImportName.baseline.jsonc | 68 - .../GoToDefinitionJsxCall.baseline.jsonc | 9 - .../GoToDefinitionJsxNotSet.baseline.jsonc | 13 - .../GoToDefinitionLabels.baseline.jsonc | 56 - .../GoToDefinitionMember.baseline.jsonc | 6 - .../GoToDefinitionMetaProperty.baseline.jsonc | 59 - ...ToDefinitionMethodOverloads.baseline.jsonc | 117 - .../GoToDefinitionModifiers.baseline.jsonc | 230 -- ...finitionMultipleDefinitions.baseline.jsonc | 41 - ...NewExpressionTargetNotClass.baseline.jsonc | 26 - ...indingElementPropertyName01.baseline.jsonc | 10 - ...tionObjectLiteralProperties.baseline.jsonc | 96 - ...ionObjectLiteralProperties1.baseline.jsonc | 32 - .../GoToDefinitionObjectSpread.baseline.jsonc | 9 - ...sInMultiplePropertyAccesses.baseline.jsonc | 11 - ...DefinitionOverriddenMember1.baseline.jsonc | 9 - ...efinitionOverriddenMember10.baseline.jsonc | 8 - ...efinitionOverriddenMember11.baseline.jsonc | 66 - ...efinitionOverriddenMember12.baseline.jsonc | 9 - ...efinitionOverriddenMember13.baseline.jsonc | 9 - ...efinitionOverriddenMember14.baseline.jsonc | 10 - ...efinitionOverriddenMember15.baseline.jsonc | 10 - ...efinitionOverriddenMember16.baseline.jsonc | 10 - ...DefinitionOverriddenMember2.baseline.jsonc | 10 - ...DefinitionOverriddenMember3.baseline.jsonc | 10 - ...DefinitionOverriddenMember4.baseline.jsonc | 11 - ...DefinitionOverriddenMember5.baseline.jsonc | 8 - ...DefinitionOverriddenMember6.baseline.jsonc | 9 - ...DefinitionOverriddenMember7.baseline.jsonc | 6 - ...DefinitionOverriddenMember8.baseline.jsonc | 14 - ...DefinitionOverriddenMember9.baseline.jsonc | 12 - ...nitionPartialImplementation.baseline.jsonc | 19 - .../GoToDefinitionPrimitives.baseline.jsonc | 4 - .../GoToDefinitionPrivateName.baseline.jsonc | 50 - ...efinitionPropertyAssignment.baseline.jsonc | 22 - .../goToDef/GoToDefinitionRest.baseline.jsonc | 11 - .../GoToDefinitionReturn1.baseline.jsonc | 6 - .../GoToDefinitionReturn2.baseline.jsonc | 8 - .../GoToDefinitionReturn3.baseline.jsonc | 8 - .../GoToDefinitionReturn4.baseline.jsonc | 4 - .../GoToDefinitionReturn5.baseline.jsonc | 8 - .../GoToDefinitionReturn6.baseline.jsonc | 8 - .../GoToDefinitionReturn7.baseline.jsonc | 8 - .../GoToDefinitionSameFile.baseline.jsonc | 91 - ...initionSatisfiesExpression1.baseline.jsonc | 22 - .../GoToDefinitionScriptImport.baseline.jsonc | 14 - ...efinitionScriptImportServer.baseline.jsonc | 26 - ...oToDefinitionShadowVariable.baseline.jsonc | 8 - ...nShadowVariableInsideModule.baseline.jsonc | 7 - ...finitionShorthandProperty01.baseline.jsonc | 48 - ...finitionShorthandProperty02.baseline.jsonc | 6 - ...finitionShorthandProperty03.baseline.jsonc | 22 - ...finitionShorthandProperty04.baseline.jsonc | 10 - ...finitionShorthandProperty05.baseline.jsonc | 10 - ...finitionShorthandProperty06.baseline.jsonc | 10 - ...itionSignatureAlias_require.baseline.jsonc | 24 - .../GoToDefinitionSimple.baseline.jsonc | 24 - .../GoToDefinitionSourceUnit.baseline.jsonc | 25 - .../GoToDefinitionSwitchCase1.baseline.jsonc | 6 - .../GoToDefinitionSwitchCase2.baseline.jsonc | 6 - .../GoToDefinitionSwitchCase3.baseline.jsonc | 24 - .../GoToDefinitionSwitchCase4.baseline.jsonc | 10 - .../GoToDefinitionSwitchCase5.baseline.jsonc | 4 - .../GoToDefinitionSwitchCase6.baseline.jsonc | 26 - .../GoToDefinitionSwitchCase7.baseline.jsonc | 6 - ...tionTaggedTemplateOverloads.baseline.jsonc | 22 - .../goToDef/GoToDefinitionThis.baseline.jsonc | 38 - ...oToDefinitionTypeOnlyImport.baseline.jsonc | 11 - ...GoToDefinitionTypePredicate.baseline.jsonc | 18 - ...itionTypeReferenceDirective.baseline.jsonc | 5 - .../GoToDefinitionTypeofThis.baseline.jsonc | 38 - ...oDefinitionUndefinedSymbols.baseline.jsonc | 40 - ...efinitionUnionTypeProperty1.baseline.jsonc | 17 - ...efinitionUnionTypeProperty2.baseline.jsonc | 19 - ...efinitionUnionTypeProperty3.baseline.jsonc | 11 - ...efinitionUnionTypeProperty4.baseline.jsonc | 20 - ...nTypeProperty_discriminated.baseline.jsonc | 102 - ...efinitionVariableAssignment.baseline.jsonc | 7 - ...finitionVariableAssignment1.baseline.jsonc | 6 - ...finitionVariableAssignment2.baseline.jsonc | 7 - ...finitionVariableAssignment3.baseline.jsonc | 6 - .../GoToDefinitionYield1.baseline.jsonc | 24 - .../GoToDefinitionYield2.baseline.jsonc | 9 - .../GoToDefinitionYield3.baseline.jsonc | 26 - .../GoToDefinitionYield4.baseline.jsonc | 6 - ..._filteringGenericMappedType.baseline.jsonc | 16 - ...inition_filteringMappedType.baseline.jsonc | 6 - .../GoToDefinition_mappedType.baseline.jsonc | 6 - .../GoToDefinition_super.baseline.jsonc | 51 - ...oToDefinition_untypedModule.baseline.jsonc | 5 - .../GoToModuleAliasDefinition.baseline.jsonc | 5 - ...finitionConstructorFunction.baseline.jsonc | 11 - ...tionInObjectBindingPattern1.baseline.jsonc | 8 - ...tionInObjectBindingPattern2.baseline.jsonc | 23 - .../GotoDefinitionLinkTag1.baseline.jsonc | 99 - .../GotoDefinitionLinkTag2.baseline.jsonc | 7 - .../GotoDefinitionLinkTag3.baseline.jsonc | 10 - .../GotoDefinitionLinkTag4.baseline.jsonc | 7 - .../GotoDefinitionLinkTag5.baseline.jsonc | 8 - .../GotoDefinitionLinkTag6.baseline.jsonc | 7 - ...essExpressionHeritageClause.baseline.jsonc | 22 - .../GotoDefinitionSatisfiesTag.baseline.jsonc | 10 - .../GotoDefinitionThrowsTag.baseline.jsonc | 9 - ...mportTypeNodeGoToDefinition.baseline.jsonc | 122 - .../goToDef/JavaScriptClass3.baseline.jsonc | 30 - .../goToDef/JsDocSee1.baseline.jsonc | 73 - .../goToDef/JsDocSee2.baseline.jsonc | 99 - .../goToDef/JsDocSee3.baseline.jsonc | 10 - .../goToDef/JsDocSee4.baseline.jsonc | 52 - ...docTypedefTagGoToDefinition.baseline.jsonc | 37 - .../goToDef/ReallyLargeFile.baseline.jsonc | 8 - .../TsxGoToDefinitionClasses.baseline.jsonc | 53 - ...TsxGoToDefinitionIntrinsics.baseline.jsonc | 53 - ...efinitionStatelessFunction1.baseline.jsonc | 98 - ...efinitionStatelessFunction2.baseline.jsonc | 115 - ...DefinitionUnionElementType1.baseline.jsonc | 15 - ...DefinitionUnionElementType2.baseline.jsonc | 9 - ...eclarationMapGoToDefinition.baseline.jsonc | 0 ...efinitionRelativeSourceRoot.baseline.jsonc | 0 ...nSameNameDifferentDirectory.baseline.jsonc | 0 ...arationMapsOutOfDateMapping.baseline.jsonc | 0 .../definition.baseline.jsonc | 0 .../definition01.baseline.jsonc | 0 .../definitionNameOnEnumMember.baseline.jsonc | 0 ...indAllRefsForDefaultExport.baseline.jsonc} | 0 ...itionAcrossMultipleProjects.baseline.jsonc | 0 .../goToDefinitionAlias.baseline.jsonc | 0 .../goToDefinitionAmbiants.baseline.jsonc | 0 ...itionApparentTypeProperties.baseline.jsonc | 0 .../goToDefinitionAwait1.baseline.jsonc | 0 .../goToDefinitionAwait2.baseline.jsonc | 0 .../goToDefinitionAwait3.baseline.jsonc | 0 .../goToDefinitionAwait4.baseline.jsonc | 0 .../goToDefinitionBuiltInTypes.baseline.jsonc | 0 ...goToDefinitionBuiltInValues.baseline.jsonc | 0 ...tionCSSPatternAmbientModule.baseline.jsonc | 0 ...DefinitionClassConstructors.baseline.jsonc | 0 ...DefinitionClassStaticBlocks.baseline.jsonc | 0 ...structorOfClassExpression01.baseline.jsonc | 0 ...lassIsPrecededByNamespace01.baseline.jsonc | 0 ...initionConstructorOverloads.baseline.jsonc | 0 .../goToDefinitionDecorator.baseline.jsonc | 0 ...efinitionDecoratorOverloads.baseline.jsonc | 0 ...initionDestructuredRequire1.baseline.jsonc | 0 ...initionDestructuredRequire2.baseline.jsonc | 0 ...goToDefinitionDifferentFile.baseline.jsonc | 0 ...tionDifferentFileIndirectly.baseline.jsonc | 0 ...oToDefinitionDynamicImport1.baseline.jsonc | 0 ...oToDefinitionDynamicImport2.baseline.jsonc | 0 ...oToDefinitionDynamicImport3.baseline.jsonc | 0 ...oToDefinitionDynamicImport4.baseline.jsonc | 0 ...goToDefinitionExpandoClass1.baseline.jsonc | 0 ...goToDefinitionExpandoClass2.baseline.jsonc | 0 ...initionExpandoElementAccess.baseline.jsonc | 0 ...efinitionExternalModuleName.baseline.jsonc | 0 ...finitionExternalModuleName2.baseline.jsonc | 0 ...finitionExternalModuleName3.baseline.jsonc | 0 ...finitionExternalModuleName4.baseline.jsonc | 0 ...finitionExternalModuleName5.baseline.jsonc | 0 ...finitionExternalModuleName6.baseline.jsonc | 0 ...finitionExternalModuleName7.baseline.jsonc | 0 ...finitionExternalModuleName8.baseline.jsonc | 0 ...finitionExternalModuleName9.baseline.jsonc | 0 ...DefinitionFunctionOverloads.baseline.jsonc | 0 ...ionFunctionOverloadsInClass.baseline.jsonc | 0 .../goToDefinitionFunctionType.baseline.jsonc | 0 ...finitionImplicitConstructor.baseline.jsonc | 0 .../goToDefinitionImport1.baseline.jsonc | 0 .../goToDefinitionImport2.baseline.jsonc | 0 .../goToDefinitionImport3.baseline.jsonc | 0 ...goToDefinitionImportedNames.baseline.jsonc | 0 ...ToDefinitionImportedNames10.baseline.jsonc | 0 ...ToDefinitionImportedNames11.baseline.jsonc | 0 ...oToDefinitionImportedNames2.baseline.jsonc | 0 ...oToDefinitionImportedNames3.baseline.jsonc | 0 ...oToDefinitionImportedNames4.baseline.jsonc | 0 ...oToDefinitionImportedNames5.baseline.jsonc | 0 ...oToDefinitionImportedNames6.baseline.jsonc | 0 ...oToDefinitionImportedNames7.baseline.jsonc | 0 ...oToDefinitionImportedNames8.baseline.jsonc | 0 ...oToDefinitionImportedNames9.baseline.jsonc | 0 .../goToDefinitionImports.baseline.jsonc | 0 ...finitionInMemberDeclaration.baseline.jsonc | 0 ...oToDefinitionInTypeArgument.baseline.jsonc | 0 ...oToDefinitionIndexSignature.baseline.jsonc | 0 ...ToDefinitionIndexSignature2.baseline.jsonc | 0 .../goToDefinitionInstanceof1.baseline.jsonc | 0 .../goToDefinitionInstanceof2.baseline.jsonc | 0 ...tionInterfaceAfterImplement.baseline.jsonc | 0 ...ToDefinitionJsDocImportTag1.baseline.jsonc | 0 ...ToDefinitionJsDocImportTag2.baseline.jsonc | 0 ...ToDefinitionJsDocImportTag3.baseline.jsonc | 0 ...ToDefinitionJsDocImportTag4.baseline.jsonc | 0 ...ToDefinitionJsDocImportTag5.baseline.jsonc | 0 ...ToDefinitionJsModuleExports.baseline.jsonc | 0 .../goToDefinitionJsModuleName.baseline.jsonc | 0 ...ionJsModuleNameAtImportName.baseline.jsonc | 0 .../goToDefinitionJsxCall.baseline.jsonc | 0 .../goToDefinitionJsxNotSet.baseline.jsonc | 0 .../goToDefinitionLabels.baseline.jsonc | 0 .../goToDefinitionMember.baseline.jsonc | 0 .../goToDefinitionMetaProperty.baseline.jsonc | 0 ...ToDefinitionMethodOverloads.baseline.jsonc | 0 .../goToDefinitionModifiers.baseline.jsonc | 0 ...finitionMultipleDefinitions.baseline.jsonc | 0 ...NewExpressionTargetNotClass.baseline.jsonc | 0 ...indingElementPropertyName01.baseline.jsonc | 0 ...tionObjectLiteralProperties.baseline.jsonc | 0 ...ionObjectLiteralProperties1.baseline.jsonc | 0 .../goToDefinitionObjectSpread.baseline.jsonc | 0 ...sInMultiplePropertyAccesses.baseline.jsonc | 0 ...DefinitionOverriddenMember1.baseline.jsonc | 0 ...efinitionOverriddenMember10.baseline.jsonc | 0 ...efinitionOverriddenMember11.baseline.jsonc | 0 ...efinitionOverriddenMember12.baseline.jsonc | 0 ...efinitionOverriddenMember13.baseline.jsonc | 0 ...efinitionOverriddenMember14.baseline.jsonc | 0 ...efinitionOverriddenMember15.baseline.jsonc | 0 ...efinitionOverriddenMember16.baseline.jsonc | 0 ...DefinitionOverriddenMember2.baseline.jsonc | 0 ...DefinitionOverriddenMember3.baseline.jsonc | 0 ...DefinitionOverriddenMember4.baseline.jsonc | 0 ...DefinitionOverriddenMember5.baseline.jsonc | 0 ...DefinitionOverriddenMember6.baseline.jsonc | 0 ...DefinitionOverriddenMember7.baseline.jsonc | 0 ...DefinitionOverriddenMember8.baseline.jsonc | 0 ...DefinitionOverriddenMember9.baseline.jsonc | 0 ...nitionPartialImplementation.baseline.jsonc | 0 .../goToDefinitionPrimitives.baseline.jsonc | 0 .../goToDefinitionPrivateName.baseline.jsonc | 0 ...efinitionPropertyAssignment.baseline.jsonc | 0 .../goToDefinitionRest.baseline.jsonc | 0 .../goToDefinitionReturn1.baseline.jsonc | 0 .../goToDefinitionReturn2.baseline.jsonc | 0 .../goToDefinitionReturn3.baseline.jsonc | 0 .../goToDefinitionReturn4.baseline.jsonc | 0 .../goToDefinitionReturn5.baseline.jsonc | 0 .../goToDefinitionReturn6.baseline.jsonc | 0 .../goToDefinitionReturn7.baseline.jsonc | 0 .../goToDefinitionSameFile.baseline.jsonc | 0 ...initionSatisfiesExpression1.baseline.jsonc | 0 .../goToDefinitionScriptImport.baseline.jsonc | 0 ...efinitionScriptImportServer.baseline.jsonc | 0 ...oToDefinitionShadowVariable.baseline.jsonc | 0 ...nShadowVariableInsideModule.baseline.jsonc | 0 ...finitionShorthandProperty01.baseline.jsonc | 0 ...finitionShorthandProperty02.baseline.jsonc | 0 ...finitionShorthandProperty03.baseline.jsonc | 0 ...finitionShorthandProperty04.baseline.jsonc | 0 ...finitionShorthandProperty05.baseline.jsonc | 0 ...finitionShorthandProperty06.baseline.jsonc | 0 ...itionSignatureAlias_require.baseline.jsonc | 0 .../goToDefinitionSimple.baseline.jsonc | 0 .../goToDefinitionSourceUnit.baseline.jsonc | 0 .../goToDefinitionSwitchCase1.baseline.jsonc | 0 .../goToDefinitionSwitchCase2.baseline.jsonc | 0 .../goToDefinitionSwitchCase3.baseline.jsonc | 0 .../goToDefinitionSwitchCase4.baseline.jsonc | 0 .../goToDefinitionSwitchCase5.baseline.jsonc | 0 .../goToDefinitionSwitchCase6.baseline.jsonc | 0 .../goToDefinitionSwitchCase7.baseline.jsonc | 0 ...tionTaggedTemplateOverloads.baseline.jsonc | 0 .../goToDefinitionThis.baseline.jsonc | 0 ...oToDefinitionTypeOnlyImport.baseline.jsonc | 0 ...goToDefinitionTypePredicate.baseline.jsonc | 0 ...itionTypeReferenceDirective.baseline.jsonc | 0 .../goToDefinitionTypeofThis.baseline.jsonc | 0 ...oDefinitionUndefinedSymbols.baseline.jsonc | 0 ...efinitionUnionTypeProperty1.baseline.jsonc | 0 ...efinitionUnionTypeProperty2.baseline.jsonc | 0 ...efinitionUnionTypeProperty3.baseline.jsonc | 0 ...efinitionUnionTypeProperty4.baseline.jsonc | 0 ...nTypeProperty_discriminated.baseline.jsonc | 0 ...efinitionVariableAssignment.baseline.jsonc | 0 ...finitionVariableAssignment1.baseline.jsonc | 0 ...finitionVariableAssignment2.baseline.jsonc | 0 ...finitionVariableAssignment3.baseline.jsonc | 0 .../goToDefinitionYield1.baseline.jsonc | 0 .../goToDefinitionYield2.baseline.jsonc | 0 .../goToDefinitionYield3.baseline.jsonc | 0 .../goToDefinitionYield4.baseline.jsonc | 0 ..._filteringGenericMappedType.baseline.jsonc | 0 ...inition_filteringMappedType.baseline.jsonc | 0 .../goToDefinition_mappedType.baseline.jsonc | 0 .../goToDefinition_super.baseline.jsonc | 0 ...oToDefinition_untypedModule.baseline.jsonc | 0 .../goToModuleAliasDefinition.baseline.jsonc | 0 ...finitionConstructorFunction.baseline.jsonc | 0 ...tionInObjectBindingPattern1.baseline.jsonc | 0 ...tionInObjectBindingPattern2.baseline.jsonc | 0 .../gotoDefinitionLinkTag1.baseline.jsonc | 0 .../gotoDefinitionLinkTag2.baseline.jsonc | 0 .../gotoDefinitionLinkTag3.baseline.jsonc | 0 .../gotoDefinitionLinkTag4.baseline.jsonc | 0 .../gotoDefinitionLinkTag5.baseline.jsonc | 0 .../gotoDefinitionLinkTag6.baseline.jsonc | 0 ...essExpressionHeritageClause.baseline.jsonc | 0 .../gotoDefinitionSatisfiesTag.baseline.jsonc | 0 .../gotoDefinitionThrowsTag.baseline.jsonc | 0 ...mportTypeNodeGoToDefinition.baseline.jsonc | 0 .../javaScriptClass3.baseline.jsonc | 0 .../jsDocSee1.baseline.jsonc | 0 .../jsDocSee2.baseline.jsonc | 0 .../jsDocSee3.baseline.jsonc | 0 .../jsDocSee4.baseline.jsonc | 0 ...docTypedefTagGoToDefinition.baseline.jsonc | 0 .../jsxSpreadReference.baseline.jsonc} | 0 .../reallyLargeFile.baseline.jsonc | 0 .../tsxGoToDefinitionClasses.baseline.jsonc | 0 ...tsxGoToDefinitionIntrinsics.baseline.jsonc | 0 ...efinitionStatelessFunction1.baseline.jsonc | 0 ...efinitionStatelessFunction2.baseline.jsonc | 0 ...DefinitionUnionElementType1.baseline.jsonc | 0 ...DefinitionUnionElementType2.baseline.jsonc | 0 ...fContextSensitiveParameterNoCrash.baseline | 114 - .../DeprecatedInheritedJSDocOverload.baseline | 53 - .../jsDocAliasQuickInfo.baseline.jsonc | 61 - .../jsDocTypeTagQuickInfo1.baseline.jsonc | 342 --- .../jsDocTypeTagQuickInfo2.baseline.jsonc | 316 --- .../jsDocTypedefQuickInfo1.baseline.jsonc | 78 - .../fourslash/jsdocLink1.baseline.jsonc | 48 - .../fourslash/jsdocLink4.baseline.jsonc | 92 - .../fourslash/jsdocLink5.baseline.jsonc | 37 - .../jsdocOnInheritedMembers1.baseline.jsonc | 41 - .../jsdocOnInheritedMembers2.baseline.jsonc | 41 - .../jsxSpreadReference.baseline.jsonc | 35 - ...pWithAmbientDeclarationInJs.baseline.jsonc | 29 - ...ularInstantiationExpression.baseline.jsonc | 30 - .../quickInfoCommentsClass.baseline.jsonc | 685 ----- ...ickInfoCommentsClassMembers.baseline.jsonc | 2346 ----------------- ...kInfoCommentsCommentParsing.baseline.jsonc | 1630 ------------ ...CommentsFunctionDeclaration.baseline.jsonc | 141 - ...oCommentsFunctionExpression.baseline.jsonc | 310 --- ...artsArrowFunctionExpression.baseline.jsonc | 200 -- .../quickInfoDisplayPartsClass.baseline.jsonc | 128 - ...oDisplayPartsClassAccessors.baseline.jsonc | 807 ------ ...playPartsClassAutoAccessors.baseline.jsonc | 657 ----- ...isplayPartsClassConstructor.baseline.jsonc | 665 ----- ...yPartsClassDefaultAnonymous.baseline.jsonc | 70 - ...splayPartsClassDefaultNamed.baseline.jsonc | 94 - ...DisplayPartsClassIncomplete.baseline.jsonc | 38 - ...InfoDisplayPartsClassMethod.baseline.jsonc | 407 --- ...foDisplayPartsClassProperty.baseline.jsonc | 407 --- .../quickInfoDisplayPartsConst.baseline.jsonc | 409 --- .../quickInfoDisplayPartsEnum1.baseline.jsonc | 742 ------ .../quickInfoDisplayPartsEnum2.baseline.jsonc | 742 ------ .../quickInfoDisplayPartsEnum3.baseline.jsonc | 742 ------ .../quickInfoDisplayPartsEnum4.baseline.jsonc | 58 - ...layPartsExternalModuleAlias.baseline.jsonc | 104 - ...DisplayPartsExternalModules.baseline.jsonc | 416 --- ...ickInfoDisplayPartsFunction.baseline.jsonc | 370 --- ...playPartsFunctionExpression.baseline.jsonc | 156 -- ...playPartsFunctionIncomplete.baseline.jsonc | 72 - ...ckInfoDisplayPartsInterface.baseline.jsonc | 79 - ...isplayPartsInterfaceMembers.baseline.jsonc | 230 -- ...layPartsInternalModuleAlias.baseline.jsonc | 210 -- .../quickInfoDisplayPartsLet.baseline.jsonc | 409 --- ...playPartsLiteralLikeNames01.baseline.jsonc | 257 -- ...foDisplayPartsLocalFunction.baseline.jsonc | 421 --- ...uickInfoDisplayPartsModules.baseline.jsonc | 416 --- ...kInfoDisplayPartsParameters.baseline.jsonc | 229 -- ...ckInfoDisplayPartsTypeAlias.baseline.jsonc | 152 -- ...ayPartsTypeParameterInClass.baseline.jsonc | 1008 ------- ...artsTypeParameterInFunction.baseline.jsonc | 300 --- ...erInFunctionLikeInTypeAlias.baseline.jsonc | 78 - ...rtsTypeParameterInInterface.baseline.jsonc | 1582 ----------- ...rtsTypeParameterInTypeAlias.baseline.jsonc | 150 -- .../quickInfoDisplayPartsUsing.baseline.jsonc | 56 - .../quickInfoDisplayPartsVar.baseline.jsonc | 355 --- ...ayPartsVarWithStringTypes01.baseline.jsonc | 79 - ...umentsPropertyNameInJsMode1.baseline.jsonc | 61 - ...umentsPropertyNameInJsMode2.baseline.jsonc | 57 - ...quickInfoForConstAssertions.baseline.jsonc | 104 - .../quickInfoForJSDocCodefence.baseline.jsonc | 81 - ...quickInfoForJSDocUnknownTag.baseline.jsonc | 199 -- ...ckInfoForJSDocWithHttpLinks.baseline.jsonc | 146 - ...SDocWithUnresolvedHttpLinks.baseline.jsonc | 59 - ...rObjectBindingElementName03.baseline.jsonc | 38 - ...rObjectBindingElementName04.baseline.jsonc | 68 - ...rObjectBindingElementName05.baseline.jsonc | 41 - ...rObjectBindingElementName06.baseline.jsonc | 46 - .../quickInfoImportMeta.baseline.jsonc | 47 - .../quickInfoInheritDoc.baseline.jsonc | 149 -- .../quickInfoInheritDoc2.baseline.jsonc | 45 - .../quickInfoInheritDoc3.baseline.jsonc | 46 - .../quickInfoInheritDoc4.baseline.jsonc | 40 - .../quickInfoInheritDoc5.baseline.jsonc | 40 - .../quickInfoInheritDoc6.baseline.jsonc | 38 - ...quickInfoJSDocAtBeforeSpace.baseline.jsonc | 99 - .../quickInfoJSDocTags.baseline.jsonc | 396 --- .../fourslash/quickInfoJsDoc.baseline.jsonc | 363 --- .../quickInfoJsDocAlias.baseline.jsonc | 22 - .../quickInfoJsDocGetterSetter.baseline.jsonc | 291 -- .../quickInfoJsDocInheritage.baseline.jsonc | 684 ----- .../quickInfoJsDocTags1.baseline.jsonc | 41 - .../quickInfoJsDocTags10.baseline.jsonc | 41 - .../quickInfoJsDocTags11.baseline.jsonc | 45 - .../quickInfoJsDocTags12.baseline.jsonc | 45 - .../quickInfoJsDocTags14.baseline.jsonc | 46 - .../quickInfoJsDocTags15.baseline.jsonc | 67 - .../quickInfoJsDocTags16.baseline.jsonc | 68 - .../quickInfoJsDocTags3.baseline.jsonc | 45 - .../quickInfoJsDocTags4.baseline.jsonc | 48 - .../quickInfoJsDocTags5.baseline.jsonc | 48 - .../quickInfoJsDocTags6.baseline.jsonc | 51 - .../quickInfoJsDocTags7.baseline.jsonc | 39 - .../quickInfoJsDocTags8.baseline.jsonc | 39 - .../quickInfoJsDocTags9.baseline.jsonc | 40 - .../quickInfoJsDocTagsCallback.baseline.jsonc | 55 - ...JsDocTagsFunctionOverload01.baseline.jsonc | 64 - ...JsDocTagsFunctionOverload03.baseline.jsonc | 61 - ...JsDocTagsFunctionOverload05.baseline.jsonc | 60 - .../quickInfoJsDocTagsTypedef.baseline.jsonc | 59 - .../quickInfoJsDocThisTag.baseline.jsonc | 34 - .../fourslash/quickInfoLink10.baseline.jsonc | 32 - .../fourslash/quickInfoLink11.baseline.jsonc | 40 - .../fourslash/quickInfoLink5.baseline.jsonc | 33 - .../fourslash/quickInfoLink6.baseline.jsonc | 33 - .../fourslash/quickInfoLink7.baseline.jsonc | 32 - .../fourslash/quickInfoLink8.baseline.jsonc | 33 - .../fourslash/quickInfoLink9.baseline.jsonc | 26 - ...tedExportEqualExportDefault.baseline.jsonc | 48 - ...singCatchCallIndexSignature.baseline.jsonc | 32 - ...mplateLiteralTypeSignatures.baseline.jsonc | 60 - ...uickInfoOnJsxNamespacedName.baseline.jsonc | 21 - ...ckInfoOnParameterProperties.baseline.jsonc | 77 - .../fourslash/quickInfoOnThis5.baseline.jsonc | 160 -- ...ithIdenticalJSDocComments01.baseline.jsonc | 53 - ...AssignedFunctionExpressions.baseline.jsonc | 38 - .../quickInfoSatisfiesTag.baseline.jsonc | 32 - .../quickInfoTypedefTag.baseline.jsonc | 98 - .../quickInfoUniqueSymbolJsDoc.baseline.jsonc | 31 - .../doubleUnderscoreRenames.baseline.jsonc | 30 - ...sForExportFromUnfoundModule.baseline.jsonc | 6 - .../rename/javaScriptClass2.baseline.jsonc | 52 - .../rename/jsDocSee_rename1.baseline.jsonc | 32 - .../jsdocCallbackTagRename01.baseline.jsonc | 8 - .../jsdocSatisfiesTagRename.baseline.jsonc | 10 - .../jsdocThrowsTag_rename.baseline.jsonc | 8 - .../jsdocTypedefTagRename01.baseline.jsonc | 32 - .../jsdocTypedefTagRename02.baseline.jsonc | 18 - .../jsdocTypedefTagRename03.baseline.jsonc | 21 - .../processInvalidSyntax1.baseline.jsonc | 21 - .../renameImportOfExportEquals.baseline.jsonc | 27 - .../fourslash/rename01.baseline.jsonc | 8 - ...enameAcrossMultipleProjects.baseline.jsonc | 34 - .../fourslash/renameAlias.baseline.jsonc | 16 - .../fourslash/renameAlias2.baseline.jsonc | 16 - .../fourslash/renameAlias3.baseline.jsonc | 16 - .../renameAliasExternalModule.baseline.jsonc | 14 - .../renameAliasExternalModule2.baseline.jsonc | 32 - .../renameAliasExternalModule3.baseline.jsonc | 14 - ...gElementInitializerExternal.baseline.jsonc | 80 - ...gElementInitializerProperty.baseline.jsonc | 61 - .../renameCommentsAndStrings1.baseline.jsonc | 8 - .../renameCommentsAndStrings2.baseline.jsonc | 8 - .../renameCommentsAndStrings3.baseline.jsonc | 8 - .../renameCommentsAndStrings4.baseline.jsonc | 8 - ...ContextuallyTypedProperties.baseline.jsonc | 395 --- ...ontextuallyTypedProperties2.baseline.jsonc | 394 --- .../renameDeclarationKeywords.baseline.jsonc | 212 -- .../renameDefaultLibDontWork.baseline.jsonc | 5 - ...nameDestructuringAssignment.baseline.jsonc | 22 - ...ignmentNestedInArrayLiteral.baseline.jsonc | 44 - ...ingAssignmentNestedInForOf2.baseline.jsonc | 56 - ...eDestructuringClassProperty.baseline.jsonc | 56 - ...structuringDeclarationInFor.baseline.jsonc | 44 - ...ructuringDeclarationInForOf.baseline.jsonc | 44 - ...tructuringFunctionParameter.baseline.jsonc | 26 - ...cturingNestedBindingElement.baseline.jsonc | 44 - .../renameExportCrash.baseline.jsonc | 6 - .../renameExportSpecifier.baseline.jsonc | 5 - .../renameExportSpecifier2.baseline.jsonc | 5 - .../renameForStringLiteral.baseline.jsonc | 9 - .../renameFunctionParameter1.baseline.jsonc | 11 - .../renameFunctionParameter2.baseline.jsonc | 9 - .../renameImportAndExport.baseline.jsonc | 14 - ...eImportAndExportInDiffFiles.baseline.jsonc | 70 - .../renameImportAndShorthand.baseline.jsonc | 14 - ...ImportNamespaceAndShorthand.baseline.jsonc | 14 - .../renameImportRequire.baseline.jsonc | 58 - ...ImportSpecifierPropertyName.baseline.jsonc | 4 - .../renameInConfiguredProject.baseline.jsonc | 12 - .../renameInheritedProperties1.baseline.jsonc | 22 - .../renameInheritedProperties2.baseline.jsonc | 22 - .../renameInheritedProperties3.baseline.jsonc | 22 - .../renameInheritedProperties4.baseline.jsonc | 22 - .../renameInheritedProperties5.baseline.jsonc | 23 - .../renameInheritedProperties6.baseline.jsonc | 23 - .../renameInheritedProperties7.baseline.jsonc | 25 - .../renameInheritedProperties8.baseline.jsonc | 42 - .../renameJSDocNamepath.baseline.jsonc | 8 - .../renameJsDocImportTag.baseline.jsonc | 11 - .../renameJsDocTypeLiteral.baseline.jsonc | 9 - .../renameJsExports01.baseline.jsonc | 27 - ...OverloadedFunctionParameter.baseline.jsonc | 10 - .../renameJsPropertyAssignment.baseline.jsonc | 18 - ...renameJsPropertyAssignment2.baseline.jsonc | 18 - ...renameJsPropertyAssignment3.baseline.jsonc | 18 - ...renameJsPropertyAssignment4.baseline.jsonc | 18 - ...renameJsPrototypeProperty01.baseline.jsonc | 20 - ...renameJsPrototypeProperty02.baseline.jsonc | 20 - .../renameJsThisProperty01.baseline.jsonc | 20 - .../renameJsThisProperty03.baseline.jsonc | 24 - .../renameJsThisProperty05.baseline.jsonc | 23 - .../renameJsThisProperty06.baseline.jsonc | 23 - .../fourslash/renameLabel1.baseline.jsonc | 6 - .../fourslash/renameLabel2.baseline.jsonc | 6 - .../fourslash/renameLabel3.baseline.jsonc | 9 - .../fourslash/renameLabel4.baseline.jsonc | 9 - .../fourslash/renameLabel5.baseline.jsonc | 9 - .../fourslash/renameLabel6.baseline.jsonc | 9 - ...cationsForClassExpression01.baseline.jsonc | 41 - ...ionsForFunctionExpression01.baseline.jsonc | 26 - ...ionsForFunctionExpression02.baseline.jsonc | 36 - .../fourslash/renameModifiers.baseline.jsonc | 132 - ...ameModuleExportsProperties1.baseline.jsonc | 14 - ...ameModuleExportsProperties2.baseline.jsonc | 14 - ...ameModuleExportsProperties3.baseline.jsonc | 14 - .../renameNamedImport.baseline.jsonc | 5 - .../renameNamespaceImport.baseline.jsonc | 5 - .../renameNumericalIndex.baseline.jsonc | 14 - ...eNumericalIndexSingleQuoted.baseline.jsonc | 14 - ...indingElementPropertyName01.baseline.jsonc | 24 - .../renameObjectSpread.baseline.jsonc | 35 - ...enameObjectSpreadAssignment.baseline.jsonc | 44 - ...rameterPropertyDeclaration1.baseline.jsonc | 35 - ...rameterPropertyDeclaration2.baseline.jsonc | 35 - ...rameterPropertyDeclaration3.baseline.jsonc | 35 - ...rameterPropertyDeclaration4.baseline.jsonc | 20 - ...rameterPropertyDeclaration5.baseline.jsonc | 20 - .../renamePrivateAccessor.baseline.jsonc | 36 - .../renamePrivateFields1.baseline.jsonc | 22 - .../renamePrivateMethod.baseline.jsonc | 22 - ...essExpressionHeritageClause.baseline.jsonc | 35 - .../renameReExportDefault.baseline.jsonc | 53 - ...renameReferenceFromLinkTag1.baseline.jsonc | 7 - ...renameReferenceFromLinkTag2.baseline.jsonc | 10 - ...renameReferenceFromLinkTag3.baseline.jsonc | 14 - ...renameReferenceFromLinkTag4.baseline.jsonc | 8 - ...renameReferenceFromLinkTag5.baseline.jsonc | 7 - .../fourslash/renameRest.baseline.jsonc | 23 - .../renameRestBindingElement.baseline.jsonc | 8 - .../renameStringLiteralOk.baseline.jsonc | 32 - .../renameStringLiteralOk1.baseline.jsonc | 20 - .../renameStringLiteralTypes1.baseline.jsonc | 20 - .../renameStringLiteralTypes2.baseline.jsonc | 116 - .../renameStringLiteralTypes3.baseline.jsonc | 32 - .../renameStringLiteralTypes4.baseline.jsonc | 8 - .../renameStringLiteralTypes5.baseline.jsonc | 8 - .../renameStringPropertyNames.baseline.jsonc | 68 - .../renameStringPropertyNames2.baseline.jsonc | 8 - ...eLiteralsComputedProperties.baseline.jsonc | 231 -- ...ateLiteralsDefinePropertyJs.baseline.jsonc | 73 - .../renameUMDModuleAlias1.baseline.jsonc | 21 - .../JsDocDontBreakWithNamespaces.baseline | 94 - .../JsDocFunctionSignatures5.baseline | 54 - .../JsDocFunctionSignatures6.baseline | 164 -- .../JsDocSignature_43394.baseline | 25 - .../signatureHelp/JsdocReturnsTag.baseline | 46 - .../QuickInfoJsDocTags13.baseline | 100 - .../QuickInfoJsDocTextFormatting1.baseline | 205 -- .../jsDocDontBreakWithNamespaces.baseline} | 0 .../jsDocFunctionSignatures5.baseline} | 0 .../jsDocFunctionSignatures6.baseline} | 0 .../jsDocSignature_43394.baseline} | 0 .../jsdocReturnsTag.baseline} | 0 .../quickInfoJsDocTags13.baseline} | 0 .../quickInfoJsDocTextFormatting1.baseline} | 0 ...e => signatureHelpAfterParameter.baseline} | 0 ...ne => signatureHelpCommentsClass.baseline} | 0 ...ignatureHelpCommentsClassMembers.baseline} | 0 ...natureHelpCommentsCommentParsing.baseline} | 0 ...eHelpCommentsFunctionDeclaration.baseline} | 0 ...reHelpCommentsFunctionExpression.baseline} | 0 ...lpConstructorCallParamProperties.baseline} | 0 ...lpExpandedRestTuplesLocalLabels1.baseline} | 0 ...ine => signatureHelpIteratorNext.baseline} | 0 ...=> signatureHelpJSDocCallbackTag.baseline} | 0 ...seline => signatureHelpJSDocTags.baseline} | 0 ...atureHelpJSMissingPropertyAccess.baseline} | 0 ...seline => signatureHelpRestArgs1.baseline} | 0 ...seline => signatureHelpRestArgs2.baseline} | 0 ...seline => signatureHelpRestArgs3.baseline} | 0 ...ine => signatureHelpSkippedArgs1.baseline} | 0 ...e => signatureHelpTypeArguments2.baseline} | 0 ...line => signatureHelpWithUnknown.baseline} | 0 ...eline => signatureHelp_unionType.baseline} | 0 ...ne => trailingCommaSignatureHelp.baseline} | 0 ...signatureHelpAfterParameter.baseline.jsonc | 428 --- .../signatureHelpCommentsClass.baseline.jsonc | 215 -- ...ureHelpCommentsClassMembers.baseline.jsonc | 624 ----- ...eHelpCommentsCommentParsing.baseline.jsonc | 1658 ------------ ...CommentsFunctionDeclaration.baseline.jsonc | 139 - ...pCommentsFunctionExpression.baseline.jsonc | 123 - ...structorCallParamProperties.baseline.jsonc | 42 - ...andedRestTuplesLocalLabels1.baseline.jsonc | 1339 ---------- .../signatureHelpIteratorNext.baseline.jsonc | 287 -- ...gnatureHelpJSDocCallbackTag.baseline.jsonc | 131 - .../signatureHelpJSDocTags.baseline.jsonc | 166 -- ...HelpJSMissingPropertyAccess.baseline.jsonc | 21 - .../signatureHelpRestArgs1.baseline.jsonc | 188 -- .../signatureHelpRestArgs2.baseline.jsonc | 28 - .../signatureHelpRestArgs3.baseline.jsonc | 79 - .../signatureHelpSkippedArgs1.baseline.jsonc | 181 -- ...signatureHelpTypeArguments2.baseline.jsonc | 168 -- .../signatureHelpWithUnknown.baseline.jsonc | 34 - .../signatureHelp_unionType.baseline.jsonc | 107 - .../trailingCommaSignatureHelp.baseline.jsonc | 85 - .../fourslash/tsxRename1.baseline.jsonc | 32 - .../fourslash/tsxRename2.baseline.jsonc | 24 - .../fourslash/tsxRename3.baseline.jsonc | 25 - .../fourslash/tsxRename5.baseline.jsonc | 21 - .../fourslash/tsxRename6.baseline.jsonc | 98 - .../fourslash/tsxRename7.baseline.jsonc | 39 - .../fourslash/tsxRename9.baseline.jsonc | 274 -- 1530 files changed, 48 insertions(+), 58559 deletions(-) rename testdata/baselines/reference/fourslash/{autoImport/AutoImportCompletion1.baseline.md => Auto Imports/autoImportCompletion1.baseline.md} (100%) rename testdata/baselines/reference/fourslash/{autoImport/AutoImportCompletion2.baseline.md => Auto Imports/autoImportCompletion2.baseline.md} (100%) rename testdata/baselines/reference/fourslash/{autoImport/AutoImportCompletion3.baseline.md => Auto Imports/autoImportCompletion3.baseline.md} (100%) rename testdata/baselines/reference/fourslash/{autoImport/NodeModulesImportCompletions1Baseline.baseline.md => Auto Imports/nodeModulesImportCompletions1Baseline.baseline.md} (100%) rename testdata/baselines/reference/fourslash/{completionDetailsOfContextSensitiveParameterNoCrash.baseline.jsonc => QuickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline} (100%) rename testdata/baselines/reference/fourslash/{deprecatedInheritedJSDocOverload.baseline.jsonc => QuickInfo/deprecatedInheritedJSDocOverload.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsDocAliasQuickInfo.baseline => QuickInfo/jsDocAliasQuickInfo.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsDocTypeTagQuickInfo1.baseline => QuickInfo/jsDocTypeTagQuickInfo1.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsDocTypeTagQuickInfo2.baseline => QuickInfo/jsDocTypeTagQuickInfo2.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsDocTypedefQuickInfo1.baseline => QuickInfo/jsDocTypedefQuickInfo1.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsdocLink1.baseline => QuickInfo/jsdocLink1.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsdocLink4.baseline => QuickInfo/jsdocLink4.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsdocLink5.baseline => QuickInfo/jsdocLink5.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsdocOnInheritedMembers1.baseline => QuickInfo/jsdocOnInheritedMembers1.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/JsdocOnInheritedMembers2.baseline => QuickInfo/jsdocOnInheritedMembers2.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoAtPropWithAmbientDeclarationInJs.baseline => QuickInfo/quickInfoAtPropWithAmbientDeclarationInJs.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoCircularInstantiationExpression.baseline => QuickInfo/quickInfoCircularInstantiationExpression.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoCommentsClass.baseline => QuickInfo/quickInfoCommentsClass.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoCommentsClassMembers.baseline => QuickInfo/quickInfoCommentsClassMembers.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoCommentsCommentParsing.baseline => QuickInfo/quickInfoCommentsCommentParsing.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoCommentsFunctionDeclaration.baseline => QuickInfo/quickInfoCommentsFunctionDeclaration.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoCommentsFunctionExpression.baseline => QuickInfo/quickInfoCommentsFunctionExpression.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsArrowFunctionExpression.baseline => QuickInfo/quickInfoDisplayPartsArrowFunctionExpression.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClass.baseline => QuickInfo/quickInfoDisplayPartsClass.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassAccessors.baseline => QuickInfo/quickInfoDisplayPartsClassAccessors.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassAutoAccessors.baseline => QuickInfo/quickInfoDisplayPartsClassAutoAccessors.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassConstructor.baseline => QuickInfo/quickInfoDisplayPartsClassConstructor.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassDefaultAnonymous.baseline => QuickInfo/quickInfoDisplayPartsClassDefaultAnonymous.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassDefaultNamed.baseline => QuickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassIncomplete.baseline => QuickInfo/quickInfoDisplayPartsClassIncomplete.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassMethod.baseline => QuickInfo/quickInfoDisplayPartsClassMethod.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsClassProperty.baseline => QuickInfo/quickInfoDisplayPartsClassProperty.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsConst.baseline => QuickInfo/quickInfoDisplayPartsConst.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsEnum1.baseline => QuickInfo/quickInfoDisplayPartsEnum1.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsEnum2.baseline => QuickInfo/quickInfoDisplayPartsEnum2.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsEnum3.baseline => QuickInfo/quickInfoDisplayPartsEnum3.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsEnum4.baseline => QuickInfo/quickInfoDisplayPartsEnum4.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsExternalModuleAlias.baseline => QuickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsExternalModules.baseline => QuickInfo/quickInfoDisplayPartsExternalModules.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsFunction.baseline => QuickInfo/quickInfoDisplayPartsFunction.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsFunctionExpression.baseline => QuickInfo/quickInfoDisplayPartsFunctionExpression.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsFunctionIncomplete.baseline => QuickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsInterface.baseline => QuickInfo/quickInfoDisplayPartsInterface.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsInterfaceMembers.baseline => QuickInfo/quickInfoDisplayPartsInterfaceMembers.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsInternalModuleAlias.baseline => QuickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsLet.baseline => QuickInfo/quickInfoDisplayPartsLet.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsLiteralLikeNames01.baseline => QuickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsLocalFunction.baseline => QuickInfo/quickInfoDisplayPartsLocalFunction.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsModules.baseline => QuickInfo/quickInfoDisplayPartsModules.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsParameters.baseline => QuickInfo/quickInfoDisplayPartsParameters.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsTypeAlias.baseline => QuickInfo/quickInfoDisplayPartsTypeAlias.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsTypeParameterInClass.baseline => QuickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsTypeParameterInFunction.baseline => QuickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline => QuickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsTypeParameterInInterface.baseline => QuickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsTypeParameterInTypeAlias.baseline => QuickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsUsing.baseline => QuickInfo/quickInfoDisplayPartsUsing.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsVar.baseline => QuickInfo/quickInfoDisplayPartsVar.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoDisplayPartsVarWithStringTypes01.baseline => QuickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForArgumentsPropertyNameInJsMode1.baseline => QuickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForArgumentsPropertyNameInJsMode2.baseline => QuickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForConstAssertions.baseline => QuickInfo/quickInfoForConstAssertions.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForJSDocCodefence.baseline => QuickInfo/quickInfoForJSDocCodefence.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForJSDocUnknownTag.baseline => QuickInfo/quickInfoForJSDocUnknownTag.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForJSDocWithHttpLinks.baseline => QuickInfo/quickInfoForJSDocWithHttpLinks.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForJSDocWithUnresolvedHttpLinks.baseline => QuickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForObjectBindingElementName03.baseline => QuickInfo/quickInfoForObjectBindingElementName03.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForObjectBindingElementName04.baseline => QuickInfo/quickInfoForObjectBindingElementName04.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForObjectBindingElementName05.baseline => QuickInfo/quickInfoForObjectBindingElementName05.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoForObjectBindingElementName06.baseline => QuickInfo/quickInfoForObjectBindingElementName06.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoImportMeta.baseline => QuickInfo/quickInfoImportMeta.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoInheritDoc.baseline => QuickInfo/quickInfoInheritDoc.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoInheritDoc2.baseline => QuickInfo/quickInfoInheritDoc2.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoInheritDoc3.baseline => QuickInfo/quickInfoInheritDoc3.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoInheritDoc4.baseline => QuickInfo/quickInfoInheritDoc4.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoInheritDoc5.baseline => QuickInfo/quickInfoInheritDoc5.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoInheritDoc6.baseline => QuickInfo/quickInfoInheritDoc6.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJSDocAtBeforeSpace.baseline => QuickInfo/quickInfoJSDocAtBeforeSpace.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJSDocTags.baseline => QuickInfo/quickInfoJSDocTags.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDoc.baseline => QuickInfo/quickInfoJsDoc.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocAlias.baseline => QuickInfo/quickInfoJsDocAlias.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocGetterSetter.baseline => QuickInfo/quickInfoJsDocGetterSetter.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocInheritage.baseline => QuickInfo/quickInfoJsDocInheritage.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags1.baseline => QuickInfo/quickInfoJsDocTags1.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags10.baseline => QuickInfo/quickInfoJsDocTags10.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags11.baseline => QuickInfo/quickInfoJsDocTags11.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags12.baseline => QuickInfo/quickInfoJsDocTags12.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags14.baseline => QuickInfo/quickInfoJsDocTags14.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags15.baseline => QuickInfo/quickInfoJsDocTags15.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags16.baseline => QuickInfo/quickInfoJsDocTags16.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags3.baseline => QuickInfo/quickInfoJsDocTags3.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags4.baseline => QuickInfo/quickInfoJsDocTags4.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags5.baseline => QuickInfo/quickInfoJsDocTags5.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags6.baseline => QuickInfo/quickInfoJsDocTags6.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags7.baseline => QuickInfo/quickInfoJsDocTags7.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags8.baseline => QuickInfo/quickInfoJsDocTags8.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTags9.baseline => QuickInfo/quickInfoJsDocTags9.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTagsCallback.baseline => QuickInfo/quickInfoJsDocTagsCallback.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTagsFunctionOverload01.baseline => QuickInfo/quickInfoJsDocTagsFunctionOverload01.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTagsFunctionOverload03.baseline => QuickInfo/quickInfoJsDocTagsFunctionOverload03.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTagsFunctionOverload05.baseline => QuickInfo/quickInfoJsDocTagsFunctionOverload05.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocTagsTypedef.baseline => QuickInfo/quickInfoJsDocTagsTypedef.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoJsDocThisTag.baseline => QuickInfo/quickInfoJsDocThisTag.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoLink10.baseline => QuickInfo/quickInfoLink10.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoLink11.baseline => QuickInfo/quickInfoLink11.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoLink5.baseline => QuickInfo/quickInfoLink5.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoLink6.baseline => QuickInfo/quickInfoLink6.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoLink7.baseline => QuickInfo/quickInfoLink7.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoLink8.baseline => QuickInfo/quickInfoLink8.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoLink9.baseline => QuickInfo/quickInfoLink9.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoNestedExportEqualExportDefault.baseline => QuickInfo/quickInfoNestedExportEqualExportDefault.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline => QuickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline => QuickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoOnJsxNamespacedName.baseline => QuickInfo/quickInfoOnJsxNamespacedName.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoOnParameterProperties.baseline => QuickInfo/quickInfoOnParameterProperties.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoOnThis5.baseline => QuickInfo/quickInfoOnThis5.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline => QuickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline => QuickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoSatisfiesTag.baseline => QuickInfo/quickInfoSatisfiesTag.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoTypedefTag.baseline => QuickInfo/quickInfoTypedefTag.baseline} (100%) rename testdata/baselines/reference/fourslash/{hover/QuickInfoUniqueSymbolJsDoc.baseline => QuickInfo/quickInfoUniqueSymbolJsDoc.baseline} (100%) delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/AmbientShorthandFindAllRefs.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/AutoImportProvider_referencesCrash.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ExplainFilesNodeNextWithTypesReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFilteringMappedTypeProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesImportMeta.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionNew.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsDocTypeLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsOverloadedFunctionParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesNonExistentExportBinding.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor_badOverload.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfJsonModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesUndefined.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsBadImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsCatchClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression0.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassStaticBlocks.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsConstructorFunctions.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDeclareClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefaultImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGeneric.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGetter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumAsNamespace.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumMember.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportConstEqualToClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportDefaultClassConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportNotAtTopLevel.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport09.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_anonymous.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_reExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultKeyword.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForFunctionExpression01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCall.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCallType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectSpread.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForRest.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstanceMethodInheritance.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstancePropertyInheritance.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteralTypes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForUMDModuleAlias1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInImplementsClause01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsGlobalThisKeywordInModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportEquals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInClassExpression.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIndexedAccessTypes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideWithBlock.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIsDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_class.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_function.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTypeDef.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType_nonHomomorphic.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoImportClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonexistentPropertyNoCrash1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName05.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName06.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName07.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOfConstructor_withModifier.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDecorators.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnPrivateParameterProperty1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrimitiveJsDoc.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameAccessors.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameMethods.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRootSymbols.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeyword.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeywordMultipleFiles.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeParameterInMergedInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef_importType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeofImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnionProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWriteAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_js4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_meaningAtLocation.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_named.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_jsEnum.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindReferencesAcrossMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindReferencesDefinitionDisplayParts.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindReferencesSeeTagInTs.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfEnum.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNamespace.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfVariable.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IndirectJsRequireRename.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossGlobalProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossModuleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IsDefinitionInterfaceImplementation.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IsDefinitionOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IsDefinitionShorthandProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/JsdocSatisfiesTagFindAllReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/JsdocThrowsTag_findAllReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning0.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferenceInParameterPropertyDeclaration.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferenceToClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferenceToEmptyObject.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/References01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForAmbients.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassLocal.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingAbstractClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingGenericClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForDeclarationKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForEnums.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForExpressionKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForExternalModuleNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobalsInExternalModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForIllegalAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForImports.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForModifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForNoContext.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForNumericLiteralPropertyNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForOverrides.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForPropertiesOfGenericType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStatic.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStaticsAndMembersWithSameNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForTypeKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesForUnionProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesInConfiguredProject.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesInEmptyFileWithMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesInStringLiteralValueWithMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesToNonPropertyNameStringLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/ReferencesToStringLiteralValue.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/RemoteGetReferences.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/RenameJsExports02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/RenameJsExports03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType2.baseline.jsonc rename testdata/baselines/reference/fourslash/{ => findAllReferences}/ambientShorthandFindAllRefs.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/autoImportProvider_referencesCrash.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/constructorFindAllReferences1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/constructorFindAllReferences2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/constructorFindAllReferences3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/constructorFindAllReferences4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/esModuleInteropFindAllReferences.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/esModuleInteropFindAllReferences2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/explainFilesNodeNextWithTypesReference.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{findAllRef/FindAllReferencesDynamicImport2.baseline.jsonc => findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{findAllRef/FindAllReferencesDynamicImport3.baseline.jsonc => findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesFromLinkTagReference1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesFromLinkTagReference2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesFromLinkTagReference3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesFromLinkTagReference4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesFromLinkTagReference5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesImportMeta.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesJSDocFunctionNew.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesJSDocFunctionThis.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesJsDocTypeLiteral.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesJsRequireDestructuring.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesJsRequireDestructuring1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesLinkTag1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesLinkTag2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesLinkTag3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesNonExistentExportBinding.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesOfConstructor.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesOfConstructor_badOverload.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesOfJsonModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllReferencesUndefined.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsBadImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsCatchClause.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsClassExpression0.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsClassExpression1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsClassExpression2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsClassStaticBlocks.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{findAllRef/FindAllRefsClassWithStaticThisAccess.baseline.jsonc => findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsConstructorFunctions.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsDeclareClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsDefaultImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsDefinition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsDestructureGeneric.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsDestructureGetter.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsEnumAsNamespace.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsEnumMember.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsExportConstEqualToClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsExportDefaultClassConstructor.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsExportNotAtTopLevel.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForComputedProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForComputedProperties2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{findAllRef/FindAllRefsForDefaultExport.baseline.jsonc => findAllReferences/findAllRefsForDefaultExport.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForDefaultExport01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForDefaultExport02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForDefaultExport04.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForDefaultExport09.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForDefaultExport_anonymous.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForDefaultExport_reExport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForDefaultKeyword.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForFunctionExpression01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForImportCall.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForImportCallType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForMappedType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForObjectLiteralProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForObjectSpread.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForRest.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForStringLiteral.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForStringLiteralTypes.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForUMDModuleAlias1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForVariableInExtendsClause01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForVariableInExtendsClause02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsForVariableInImplementsClause01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsGlobalThisKeywordInModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsImportEquals.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsImportType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInClassExpression.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsIndexedAccessTypes.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInheritedProperties1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInheritedProperties2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInheritedProperties3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInheritedProperties4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInheritedProperties5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInsideTemplates1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInsideTemplates2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsInsideWithBlock.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsIsDefinition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocImportTag.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocImportTag2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocImportTag3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocImportTag4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocImportTag5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocTemplateTag_class.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocTemplateTag_function.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsDocTypeDef.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsThisPropertyAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsJsThisPropertyAssignment2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsMappedType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsMappedType_nonHomomorphic.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsNoImportClause.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsNonModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsOfConstructor_withModifier.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsOnDecorators.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsOnDefinition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsOnDefinition2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsOnImportAliases.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{findAllRef/FindAllRefsOnImportAliases2.baseline.jsonc => findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsOnPrivateParameterProperty1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsParameterPropertyDeclaration1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsParameterPropertyDeclaration2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsParameterPropertyDeclaration3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsPrimitiveJsDoc.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsPrivateNameAccessors.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsPrivateNameMethods.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsPrivateNameProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsReExport_broken2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsRootSymbols.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsThisKeyword.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsThisKeywordMultipleFiles.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsTypeParameterInMergedInterface.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsTypedef.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsTypedef_importType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsTypeofImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsUnionProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsUnresolvedSymbols1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsUnresolvedSymbols2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsUnresolvedSymbols3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefsWriteAccess.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefs_importType_js4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefs_importType_meaningAtLocation.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefs_importType_named.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findAllRefs_jsEnum.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findReferencesAcrossMultipleProjects.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findReferencesDefinitionDisplayParts.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findReferencesJSXTagName.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findReferencesJSXTagName2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/findReferencesSeeTagInTs.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfEnum.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfExport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfFunction.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfInterface.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfParameter.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/getOccurrencesIsDefinitionOfVariable.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/indirectJsRequireRename.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/isDefinitionAcrossGlobalProjects.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/isDefinitionAcrossModuleProjects.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/isDefinitionInterfaceImplementation.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/isDefinitionOverloads.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/isDefinitionShorthandProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/isDefinitionSingleImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/isDefinitionSingleReference.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/jsdocSatisfiesTagFindAllReferences.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/jsdocThrowsTag_findAllReferences.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/jsdocTypedefTagSemanticMeaning0.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/jsdocTypedefTagSemanticMeaning1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referenceInParameterPropertyDeclaration.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referenceToClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referenceToEmptyObject.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/references01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesBloomFilters.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesBloomFilters2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesBloomFilters3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForAmbients.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForClassLocal.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForClassMembers.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForClassMembersExtendingAbstractClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForClassMembersExtendingGenericClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForClassParameter.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForContextuallyTypedUnionProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForContextuallyTypedUnionProperties2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForDeclarationKeywords.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForEnums.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForExpressionKeywords.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForExternalModuleNames.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForFunctionOverloads.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForFunctionParameter.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForGlobals.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForGlobals2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForGlobals3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForGlobals4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForGlobals5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForGlobalsInExternalModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForIllegalAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForImports.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForIndexProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForIndexProperty2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForIndexProperty3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForInheritedProperties9.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForLabel.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForLabel2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForLabel3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForLabel4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForLabel5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForLabel6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForMergedDeclarations8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForModifiers.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForNoContext.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForNumericLiteralPropertyNames.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForObjectLiteralProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForOverrides.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForPropertiesOfGenericType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStatic.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStaticsAndMembersWithSameNames.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStringLiteralPropertyNames.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStringLiteralPropertyNames2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStringLiteralPropertyNames3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStringLiteralPropertyNames4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStringLiteralPropertyNames5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStringLiteralPropertyNames6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForStringLiteralPropertyNames7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForTypeKeywords.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesForUnionProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesInConfiguredProject.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesInEmptyFileWithMultipleProjects.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesToNonPropertyNameStringLiteral.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/referencesToStringLiteralValue.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/remoteGetReferences.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{findAllRef/RenameImportAndExportInDiffFiles.baseline.jsonc => findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{findAllRef/RenameImportOfExportEquals.baseline.jsonc => findAllReferences/renameImportOfExportEquals.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{findAllRef/RenameJsExports01.baseline.jsonc => findAllReferences/renameJsExports01.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/renameJsExports02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/renameJsExports03.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences10.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences11.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferences9.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferencesUnionElementType1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findAllReferences}/tsxFindAllReferencesUnionElementType2.baseline.jsonc (100%) delete mode 100644 testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/doubleUnderscoreRenames.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/findAllReferencesDynamicImport2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/findAllReferencesDynamicImport3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/findAllRefsClassWithStaticThisAccess.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/findAllRefsOnImportAliases2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/highlightsForExportFromUnfoundModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/javaScriptClass2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/jsDocSee_rename1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/jsdocCallbackTagRename01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/jsdocSatisfiesTagRename.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/jsdocThrowsTag_rename.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/jsdocTypedefTagRename01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/jsdocTypedefTagRename02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/jsdocTypedefTagRename03.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/jsxSpreadReference.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/processInvalidSyntax1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/rename01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameAcrossMultipleProjects.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameAlias.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameAlias2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameAlias3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameAliasExternalModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameAliasExternalModule2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameAliasExternalModule3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameBindingElementInitializerExternal.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameBindingElementInitializerProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameCommentsAndStrings1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameCommentsAndStrings2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameCommentsAndStrings3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameCommentsAndStrings4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameContextuallyTypedProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameContextuallyTypedProperties2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDeclarationKeywords.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDefaultLibDontWork.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringClassProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringDeclarationInFor.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringDeclarationInForOf.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringFunctionParameter.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameDestructuringNestedBindingElement.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameExportCrash.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameExportSpecifier.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameExportSpecifier2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameForStringLiteral.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameFunctionParameter1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameFunctionParameter2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameImportAndExport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameImportAndExportInDiffFiles.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameImportAndShorthand.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameImportNamespaceAndShorthand.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => findRenameLocations}/renameImportOfExportEquals.baseline.jsonc (58%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameImportRequire.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameImportSpecifierPropertyName.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInConfiguredProject.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameInheritedProperties8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJSDocNamepath.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsDocImportTag.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsDocTypeLiteral.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsExports01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsOverloadedFunctionParameter.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsPropertyAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsPropertyAssignment2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsPropertyAssignment3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsPropertyAssignment4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsPrototypeProperty01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsPrototypeProperty02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsThisProperty01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsThisProperty03.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsThisProperty05.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameJsThisProperty06.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLabel1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLabel2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLabel3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLabel4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLabel5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLabel6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLocationsForClassExpression01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLocationsForFunctionExpression01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameLocationsForFunctionExpression02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameModifiers.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameModuleExportsProperties1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameModuleExportsProperties2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameModuleExportsProperties3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameNamedImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameNamespaceImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameNumericalIndex.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameNumericalIndexSingleQuoted.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameObjectBindingElementPropertyName01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameObjectSpread.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameObjectSpreadAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameParameterPropertyDeclaration1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameParameterPropertyDeclaration2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameParameterPropertyDeclaration3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameParameterPropertyDeclaration4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameParameterPropertyDeclaration5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renamePrivateAccessor.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renamePrivateFields1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renamePrivateMethod.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renamePropertyAccessExpressionHeritageClause.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameReExportDefault.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameReferenceFromLinkTag1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameReferenceFromLinkTag2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameReferenceFromLinkTag3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameReferenceFromLinkTag4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameReferenceFromLinkTag5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameRest.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameRestBindingElement.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringLiteralOk.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringLiteralOk1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringLiteralTypes1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringLiteralTypes2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringLiteralTypes3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringLiteralTypes4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringLiteralTypes5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringPropertyNames.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameStringPropertyNames2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameTemplateLiteralsComputedProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/renameUMDModuleAlias1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/tsxRename1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/tsxRename2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/tsxRename3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/tsxRename5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/tsxRename6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/tsxRename7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{rename => findRenameLocations}/tsxRename9.baseline.jsonc (100%) delete mode 100644 testdata/baselines/reference/fourslash/goToDef/DeclarationMapGoToDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/DeclarationMapsOutOfDateMapping.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/Definition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/Definition01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/DefinitionNameOnEnumMember.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAcrossMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAmbiants.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionApparentTypeProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInTypes.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInValues.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionCSSPatternAmbientModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassConstructors.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassStaticBlocks.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassExpression01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecorator.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecoratorOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFile.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFileIndirectly.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoElementAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloadsInClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImplicitConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImports.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInMemberDeclaration.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInTypeArgument.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInterfaceAfterImplement.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleExports.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleNameAtImportName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxCall.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxNotSet.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionLabels.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMember.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMetaProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMethodOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionModifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMultipleDefinitions.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionNewExpressionTargetNotClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectBindingElementPropertyName01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectSpread.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember12.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember13.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember14.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember15.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember16.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPartialImplementation.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrimitives.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrivateName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPropertyAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionRest.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSameFile.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSatisfiesExpression1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImportServer.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariable.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariableInsideModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty05.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty06.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSignatureAlias_require.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSimple.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSourceUnit.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTaggedTemplateOverloads.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeOnlyImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypePredicate.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeReferenceDirective.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeofThis.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUndefinedSymbols.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty_discriminated.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringGenericMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringMappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinition_mappedType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinition_super.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToDefinition_untypedModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GoToModuleAliasDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionConstructorFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionSatisfiesTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/GotoDefinitionThrowsTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/ImportTypeNodeGoToDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/JavaScriptClass3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/JsDocSee1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/JsDocSee2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/JsDocSee3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/JsDocSee4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/JsdocTypedefTagGoToDefinition.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/ReallyLargeFile.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionClasses.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionIntrinsics.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType2.baseline.jsonc rename testdata/baselines/reference/fourslash/{ => goToDefinition}/declarationMapGoToDefinition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/declarationMapsOutOfDateMapping.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/definition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/definition01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/definitionNameOnEnumMember.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{goToDef/FindAllRefsForDefaultExport.baseline.jsonc => goToDefinition/findAllRefsForDefaultExport.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionAcrossMultipleProjects.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionAlias.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionAmbiants.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionApparentTypeProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionAwait1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionAwait2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionAwait3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionAwait4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionBuiltInTypes.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionBuiltInValues.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionCSSPatternAmbientModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionClassConstructors.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionClassStaticBlocks.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionConstructorOfClassExpression01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionConstructorOverloads.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDecorator.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDecoratorOverloads.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDestructuredRequire1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDestructuredRequire2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDifferentFile.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDifferentFileIndirectly.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDynamicImport1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDynamicImport2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDynamicImport3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionDynamicImport4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExpandoClass1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExpandoClass2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExpandoElementAccess.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionExternalModuleName9.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionFunctionOverloads.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionFunctionOverloadsInClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionFunctionType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImplicitConstructor.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImport1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImport2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImport3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames10.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames11.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImportedNames9.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionImports.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionInMemberDeclaration.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionInTypeArgument.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionIndexSignature.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionIndexSignature2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionInstanceof1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionInstanceof2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionInterfaceAfterImplement.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsDocImportTag1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsDocImportTag2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsDocImportTag3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsDocImportTag4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsDocImportTag5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsModuleExports.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsModuleName.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsModuleNameAtImportName.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsxCall.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionJsxNotSet.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionLabels.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionMember.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionMetaProperty.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionMethodOverloads.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionModifiers.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionMultipleDefinitions.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionObjectLiteralProperties.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionObjectLiteralProperties1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionObjectSpread.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember10.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember11.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember12.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember13.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember14.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember15.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember16.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember8.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionOverriddenMember9.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionPartialImplementation.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionPrimitives.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionPrivateName.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionPropertyAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionRest.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionReturn1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionReturn2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionReturn3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionReturn4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionReturn5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionReturn6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionReturn7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSameFile.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSatisfiesExpression1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionScriptImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionScriptImportServer.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShadowVariable.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShadowVariableInsideModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShorthandProperty01.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShorthandProperty02.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShorthandProperty03.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShorthandProperty04.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShorthandProperty05.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionShorthandProperty06.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSignatureAlias_require.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSimple.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSourceUnit.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSwitchCase1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSwitchCase2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSwitchCase3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSwitchCase4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSwitchCase5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSwitchCase6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionSwitchCase7.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionTaggedTemplateOverloads.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionThis.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionTypeOnlyImport.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionTypePredicate.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionTypeReferenceDirective.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionTypeofThis.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionUndefinedSymbols.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionUnionTypeProperty1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionUnionTypeProperty2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionUnionTypeProperty3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionUnionTypeProperty4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionVariableAssignment.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionVariableAssignment1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionVariableAssignment2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionVariableAssignment3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionYield1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionYield2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionYield3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinitionYield4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinition_filteringGenericMappedType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinition_filteringMappedType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinition_mappedType.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinition_super.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToDefinition_untypedModule.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/goToModuleAliasDefinition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionConstructorFunction.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionInObjectBindingPattern1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionInObjectBindingPattern2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionLinkTag1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionLinkTag2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionLinkTag3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionLinkTag4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionLinkTag5.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionLinkTag6.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionSatisfiesTag.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/gotoDefinitionThrowsTag.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/importTypeNodeGoToDefinition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/javaScriptClass3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/jsDocSee1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/jsDocSee2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/jsDocSee3.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/jsDocSee4.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/jsdocTypedefTagGoToDefinition.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{goToDef/JsxSpreadReference.baseline.jsonc => goToDefinition/jsxSpreadReference.baseline.jsonc} (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/reallyLargeFile.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/tsxGoToDefinitionClasses.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/tsxGoToDefinitionIntrinsics.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/tsxGoToDefinitionStatelessFunction1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/tsxGoToDefinitionStatelessFunction2.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/tsxGoToDefinitionUnionElementType1.baseline.jsonc (100%) rename testdata/baselines/reference/fourslash/{ => goToDefinition}/tsxGoToDefinitionUnionElementType2.baseline.jsonc (100%) delete mode 100644 testdata/baselines/reference/fourslash/hover/CompletionDetailsOfContextSensitiveParameterNoCrash.baseline delete mode 100644 testdata/baselines/reference/fourslash/hover/DeprecatedInheritedJSDocOverload.baseline delete mode 100644 testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/rename01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameRest.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/JsDocDontBreakWithNamespaces.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures5.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures6.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/JsDocSignature_43394.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/JsdocReturnsTag.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTags13.baseline delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTextFormatting1.baseline rename testdata/baselines/reference/fourslash/{jsDocDontBreakWithNamespaces.baseline.jsonc => signatureHelp/jsDocDontBreakWithNamespaces.baseline} (100%) rename testdata/baselines/reference/fourslash/{jsDocFunctionSignatures5.baseline.jsonc => signatureHelp/jsDocFunctionSignatures5.baseline} (100%) rename testdata/baselines/reference/fourslash/{jsDocFunctionSignatures6.baseline.jsonc => signatureHelp/jsDocFunctionSignatures6.baseline} (100%) rename testdata/baselines/reference/fourslash/{jsDocSignature_43394.baseline.jsonc => signatureHelp/jsDocSignature_43394.baseline} (100%) rename testdata/baselines/reference/fourslash/{jsdocReturnsTag.baseline.jsonc => signatureHelp/jsdocReturnsTag.baseline} (100%) rename testdata/baselines/reference/fourslash/{quickInfoJsDocTags13.baseline.jsonc => signatureHelp/quickInfoJsDocTags13.baseline} (100%) rename testdata/baselines/reference/fourslash/{quickInfoJsDocTextFormatting1.baseline.jsonc => signatureHelp/quickInfoJsDocTextFormatting1.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpAfterParameter.baseline => signatureHelpAfterParameter.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpCommentsClass.baseline => signatureHelpCommentsClass.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpCommentsClassMembers.baseline => signatureHelpCommentsClassMembers.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpCommentsCommentParsing.baseline => signatureHelpCommentsCommentParsing.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpCommentsFunctionDeclaration.baseline => signatureHelpCommentsFunctionDeclaration.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpCommentsFunctionExpression.baseline => signatureHelpCommentsFunctionExpression.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpConstructorCallParamProperties.baseline => signatureHelpConstructorCallParamProperties.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpExpandedRestTuplesLocalLabels1.baseline => signatureHelpExpandedRestTuplesLocalLabels1.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpIteratorNext.baseline => signatureHelpIteratorNext.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpJSDocCallbackTag.baseline => signatureHelpJSDocCallbackTag.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpJSDocTags.baseline => signatureHelpJSDocTags.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpJSMissingPropertyAccess.baseline => signatureHelpJSMissingPropertyAccess.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpRestArgs1.baseline => signatureHelpRestArgs1.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpRestArgs2.baseline => signatureHelpRestArgs2.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpRestArgs3.baseline => signatureHelpRestArgs3.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpSkippedArgs1.baseline => signatureHelpSkippedArgs1.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpTypeArguments2.baseline => signatureHelpTypeArguments2.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelpWithUnknown.baseline => signatureHelpWithUnknown.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{SignatureHelp_unionType.baseline => signatureHelp_unionType.baseline} (100%) rename testdata/baselines/reference/fourslash/signatureHelp/{TrailingCommaSignatureHelp.baseline => trailingCommaSignatureHelp.baseline} (100%) delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index bcdf73d1f5..a22fb48d73 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -17,21 +17,17 @@ import ( "github.com/microsoft/typescript-go/internal/vfs" ) -type baselineFromTest struct { - content *strings.Builder - - baselineName, ext string -} - -func (b *baselineFromTest) addResult(command, actual string) { - if b.content.Len() != 0 { - b.content.WriteString("\n\n\n\n") +func getBaselineExtension(command string) string { + switch command { + case "QuickInfo", "SignatureHelp": + return "baseline" + case "Auto Imports": + return "baseline.md" + case "findAllReferences", "goToDefinition", "findRenameLocations": + return "baseline.jsonc" + default: + return "baseline.jsonc" } - b.content.WriteString(`// === ` + command + " ===\n" + actual) -} - -func (b *baselineFromTest) getBaselineFileName() string { - return "fourslash/" + b.baselineName + b.ext } type baselineFourslashLocationsOptions struct { diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index e3e2d7d72e..39d291ae8c 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -35,7 +35,7 @@ type FourslashTest struct { vfs vfs.FS testData *TestData // !!! consolidate test files from test data and script info - baseline *baselineFromTest + baselines map[string]*strings.Builder rangesByText *collections.MultiMap[string, *RangeMarker] scriptInfos map[string]*scriptInfo @@ -184,6 +184,7 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten vfs: fs, scriptInfos: scriptInfos, converters: converters, + baselines: make(map[string]*strings.Builder), } // !!! temporary; remove when we have `handleDidChangeConfiguration`/implicit project config support @@ -794,7 +795,7 @@ func (f *FourslashTest) VerifyBaselineFindAllReferences( } } - f.addToBaseline(t, "findAllReferences", f.getBaselineForLocationsWithFileContents(*result.Locations, baselineFourslashLocationsOptions{ + f.addResultToBaseline(t, "findAllReferences", f.getBaselineForLocationsWithFileContents(*result.Locations, baselineFourslashLocationsOptions{ marker: markerOrRange.GetMarker(), markerName: "/*FIND ALL REFS*/", })) @@ -844,7 +845,7 @@ func (f *FourslashTest) VerifyBaselineGoToDefinition( t.Fatalf("Unexpected definition response type at marker '%s': %T", *f.lastKnownMarkerName, result.DefinitionLinks) } - f.addToBaseline(t, "goToDefinition", f.getBaselineForLocationsWithFileContents(resultAsLocations, baselineFourslashLocationsOptions{ + f.addResultToBaseline(t, "goToDefinition", f.getBaselineForLocationsWithFileContents(resultAsLocations, baselineFourslashLocationsOptions{ marker: markerOrRange.GetMarker(), markerName: "/*GO TO DEFINITION*/", })) @@ -907,9 +908,9 @@ func (f *FourslashTest) VerifyBaselineHover(t *testing.T) { return result } - f.addToBaseline(t, "QuickInfo", annotateContentWithTooltips(t, f, markersAndItems, "quickinfo", getRange, getTooltipLines)) + f.addResultToBaseline(t, "QuickInfo", annotateContentWithTooltips(t, f, markersAndItems, "quickinfo", getRange, getTooltipLines)) if jsonStr, err := core.StringifyJson(markersAndItems, "", " "); err == nil { - f.baseline.content.WriteString(jsonStr) + f.writeToBaseline("QuickInfo", jsonStr) } else { t.Fatalf("Failed to stringify markers and items for baseline: %v", err) } @@ -1022,9 +1023,9 @@ func (f *FourslashTest) VerifyBaselineSignatureHelp(t *testing.T) { return result } - f.addToBaseline(t, "SignatureHelp", annotateContentWithTooltips(t, f, markersAndItems, "signaturehelp", getRange, getTooltipLines)) + f.addResultToBaseline(t, "SignatureHelp", annotateContentWithTooltips(t, f, markersAndItems, "signaturehelp", getRange, getTooltipLines)) if jsonStr, err := core.StringifyJson(markersAndItems, "", " "); err == nil { - f.baseline.content.WriteString(jsonStr) + f.writeToBaseline("SignatureHelp", jsonStr) } else { t.Fatalf("Failed to stringify markers and items for baseline: %v", err) } @@ -1371,15 +1372,6 @@ func (f *FourslashTest) getCurrentPositionPrefix() string { } func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames []string) { - if f.baseline != nil { - t.Fatalf("Error during test '%s': Another baseline is already in progress", t.Name()) - } else { - f.baseline = &baselineFromTest{ - content: &strings.Builder{}, - baselineName: "autoImport/" + strings.TrimPrefix(t.Name(), "Test"), - ext: ".baseline.md", - } - } for _, markerName := range markerNames { f.GoToMarker(t, markerName) params := &lsproto.CompletionParams{ @@ -1399,7 +1391,7 @@ func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames t.Fatalf(prefix+"Unexpected response type for completion request for autoimports: %T", resMsg.AsResponse().Result) } - f.baseline.content.WriteString("// === Auto Imports === \n") + f.writeToBaseline("Auto Imports", "// === Auto Imports === \n") fileContent, ok := f.vfs.ReadFile(f.activeFilename) if !ok { @@ -1409,10 +1401,10 @@ func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames marker := f.testData.MarkerPositions[markerName] ext := strings.TrimPrefix(tspath.GetAnyExtensionFromPath(f.activeFilename, nil, true), ".") lang := core.IfElse(ext == "mts" || ext == "cts", "ts", ext) - f.baseline.content.WriteString(codeFence( + f.writeToBaseline("Auto Imports", (codeFence( lang, "// @FileName: "+f.activeFilename+"\n"+fileContent[:marker.Position]+"/*"+markerName+"*/"+fileContent[marker.Position:], - )) + ))) currentFile := newScriptInfo(f.activeFilename, fileContent) converters := ls.NewConverters(lsproto.PositionEncodingKindUTF8, func(_ string) *ls.LineMap { @@ -1421,7 +1413,7 @@ func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames var list []*lsproto.CompletionItem if result.Items == nil || len(*result.Items) == 0 { if result.List == nil || result.List.Items == nil || len(result.List.Items) == 0 { - f.baseline.content.WriteString("no autoimport completions found" + "\n\n") + f.writeToBaseline("Auto Imports", "no autoimport completions found"+"\n\n") continue } @@ -1467,7 +1459,7 @@ func (f *FourslashTest) BaselineAutoImportsCompletions(t *testing.T, markerNames for _, change := range allChanges { newFileContent = newFileContent[:converters.LineAndCharacterToPosition(currentFile, change.Range.Start)] + change.NewText + newFileContent[converters.LineAndCharacterToPosition(currentFile, change.Range.End):] } - f.baseline.content.WriteString(codeFence(lang, newFileContent) + "\n\n") + f.writeToBaseline("Auto Imports", codeFence(lang, newFileContent)+"\n\n") } } } @@ -1536,7 +1528,7 @@ func (f *FourslashTest) verifyBaselineRename( } } // !!! include options in string - f.addToBaseline(t, + f.addResultToBaseline(t, "findRenameLocations", f.getBaselineForGroupedLocationsWithFileContents( &fileToRange, @@ -1605,18 +1597,32 @@ func (f *FourslashTest) getRangeText(r *RangeMarker) string { } func (f *FourslashTest) verifyBaselines(t *testing.T) { - if f.baseline != nil { - baseline.Run(t, f.baseline.getBaselineFileName(), f.baseline.content.String(), baseline.Options{}) // !!! options + for command, content := range f.baselines { + baseline.Run(t, getBaselineFileName(t, command), content.String(), baseline.Options{}) // !!! options } } -func (f *FourslashTest) addToBaseline(t *testing.T, command string, actual string) { - if f.baseline == nil { - f.baseline = &baselineFromTest{ - content: &strings.Builder{}, - baselineName: getBaseFileNameFromTest(t), - ext: ".baseline.jsonc", - } +func (f *FourslashTest) addResultToBaseline(t *testing.T, command string, actual string) { + b, ok := f.baselines[command] + if !ok { + f.baselines[command] = &strings.Builder{} + b = f.baselines[command] + } + if b.Len() != 0 { + b.WriteString("\n\n\n\n") } - f.baseline.addResult(command, actual) + b.WriteString(`// === ` + command + " ===\n" + actual) +} + +func (f *FourslashTest) writeToBaseline(command string, content string) { + b, ok := f.baselines[command] + if !ok { + f.baselines[command] = &strings.Builder{} + b = f.baselines[command] + } + b.WriteString(content) +} + +func getBaselineFileName(t *testing.T, command string) string { + return "fourslash/" + command + "/" + getBaseFileNameFromTest(t) + "." + getBaselineExtension(command) } diff --git a/testdata/baselines/reference/fourslash/autoImport/AutoImportCompletion1.baseline.md b/testdata/baselines/reference/fourslash/Auto Imports/autoImportCompletion1.baseline.md similarity index 100% rename from testdata/baselines/reference/fourslash/autoImport/AutoImportCompletion1.baseline.md rename to testdata/baselines/reference/fourslash/Auto Imports/autoImportCompletion1.baseline.md diff --git a/testdata/baselines/reference/fourslash/autoImport/AutoImportCompletion2.baseline.md b/testdata/baselines/reference/fourslash/Auto Imports/autoImportCompletion2.baseline.md similarity index 100% rename from testdata/baselines/reference/fourslash/autoImport/AutoImportCompletion2.baseline.md rename to testdata/baselines/reference/fourslash/Auto Imports/autoImportCompletion2.baseline.md diff --git a/testdata/baselines/reference/fourslash/autoImport/AutoImportCompletion3.baseline.md b/testdata/baselines/reference/fourslash/Auto Imports/autoImportCompletion3.baseline.md similarity index 100% rename from testdata/baselines/reference/fourslash/autoImport/AutoImportCompletion3.baseline.md rename to testdata/baselines/reference/fourslash/Auto Imports/autoImportCompletion3.baseline.md diff --git a/testdata/baselines/reference/fourslash/autoImport/NodeModulesImportCompletions1Baseline.baseline.md b/testdata/baselines/reference/fourslash/Auto Imports/nodeModulesImportCompletions1Baseline.baseline.md similarity index 100% rename from testdata/baselines/reference/fourslash/autoImport/NodeModulesImportCompletions1Baseline.baseline.md rename to testdata/baselines/reference/fourslash/Auto Imports/nodeModulesImportCompletions1Baseline.baseline.md diff --git a/testdata/baselines/reference/fourslash/completionDetailsOfContextSensitiveParameterNoCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/QuickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/completionDetailsOfContextSensitiveParameterNoCrash.baseline.jsonc rename to testdata/baselines/reference/fourslash/QuickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline diff --git a/testdata/baselines/reference/fourslash/deprecatedInheritedJSDocOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/QuickInfo/deprecatedInheritedJSDocOverload.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/deprecatedInheritedJSDocOverload.baseline.jsonc rename to testdata/baselines/reference/fourslash/QuickInfo/deprecatedInheritedJSDocOverload.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsDocAliasQuickInfo.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsDocAliasQuickInfo.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsDocAliasQuickInfo.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsDocAliasQuickInfo.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsDocTypeTagQuickInfo1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsDocTypeTagQuickInfo1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsDocTypeTagQuickInfo1.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsDocTypeTagQuickInfo1.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsDocTypeTagQuickInfo2.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsDocTypeTagQuickInfo2.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsDocTypeTagQuickInfo2.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsDocTypeTagQuickInfo2.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsDocTypedefQuickInfo1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsDocTypedefQuickInfo1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsDocTypedefQuickInfo1.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsDocTypedefQuickInfo1.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsdocLink1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsdocLink1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsdocLink1.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsdocLink1.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsdocLink4.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsdocLink4.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsdocLink4.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsdocLink4.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsdocLink5.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsdocLink5.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsdocLink5.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsdocLink5.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsdocOnInheritedMembers1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsdocOnInheritedMembers1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsdocOnInheritedMembers1.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsdocOnInheritedMembers1.baseline diff --git a/testdata/baselines/reference/fourslash/hover/JsdocOnInheritedMembers2.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsdocOnInheritedMembers2.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/JsdocOnInheritedMembers2.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/jsdocOnInheritedMembers2.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoAtPropWithAmbientDeclarationInJs.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoAtPropWithAmbientDeclarationInJs.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoAtPropWithAmbientDeclarationInJs.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoAtPropWithAmbientDeclarationInJs.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoCircularInstantiationExpression.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCircularInstantiationExpression.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoCircularInstantiationExpression.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoCircularInstantiationExpression.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoCommentsClass.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsClass.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoCommentsClass.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsClass.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoCommentsClassMembers.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsClassMembers.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoCommentsClassMembers.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsClassMembers.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoCommentsCommentParsing.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsCommentParsing.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoCommentsCommentParsing.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsCommentParsing.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoCommentsFunctionDeclaration.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsFunctionDeclaration.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoCommentsFunctionDeclaration.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsFunctionDeclaration.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoCommentsFunctionExpression.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsFunctionExpression.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoCommentsFunctionExpression.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsFunctionExpression.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsArrowFunctionExpression.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsArrowFunctionExpression.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsArrowFunctionExpression.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsArrowFunctionExpression.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClass.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClass.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClass.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClass.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassAccessors.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassAccessors.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassAccessors.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassAccessors.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassAutoAccessors.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassAutoAccessors.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassAutoAccessors.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassAutoAccessors.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassConstructor.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassConstructor.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassConstructor.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassConstructor.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassDefaultAnonymous.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassDefaultAnonymous.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassDefaultAnonymous.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassDefaultAnonymous.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassDefaultNamed.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassDefaultNamed.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassDefaultNamed.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassIncomplete.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassIncomplete.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassIncomplete.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassIncomplete.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassMethod.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassMethod.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassMethod.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassMethod.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassProperty.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassProperty.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsClassProperty.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsClassProperty.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsConst.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsConst.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsConst.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsConst.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum1.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum1.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum2.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum2.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum2.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum2.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum3.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum3.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum3.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum3.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum4.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum4.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsEnum4.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsEnum4.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsExternalModuleAlias.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsExternalModuleAlias.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsExternalModuleAlias.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsExternalModules.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsExternalModules.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsExternalModules.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsExternalModules.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsFunction.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsFunction.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsFunction.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsFunction.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsFunctionExpression.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsFunctionExpression.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsFunctionExpression.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsFunctionExpression.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsFunctionIncomplete.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsFunctionIncomplete.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsFunctionIncomplete.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsInterface.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsInterface.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsInterface.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsInterface.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsInterfaceMembers.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsInterfaceMembers.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsInterfaceMembers.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsInterfaceMembers.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsInternalModuleAlias.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsInternalModuleAlias.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsInternalModuleAlias.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsLet.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsLet.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsLet.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsLet.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsLiteralLikeNames01.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsLiteralLikeNames01.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsLiteralLikeNames01.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsLocalFunction.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsLocalFunction.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsLocalFunction.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsLocalFunction.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsModules.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsModules.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsModules.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsModules.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsParameters.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsParameters.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsParameters.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsParameters.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeAlias.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeAlias.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeAlias.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeAlias.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInClass.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInClass.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInClass.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInFunction.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInFunction.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInFunction.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInInterface.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInInterface.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInInterface.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInTypeAlias.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsTypeParameterInTypeAlias.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsUsing.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsUsing.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsUsing.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsUsing.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsVar.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsVar.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsVar.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsVar.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsVarWithStringTypes01.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoDisplayPartsVarWithStringTypes01.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoDisplayPartsVarWithStringTypes01.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForArgumentsPropertyNameInJsMode1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForArgumentsPropertyNameInJsMode1.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForArgumentsPropertyNameInJsMode1.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForArgumentsPropertyNameInJsMode2.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForArgumentsPropertyNameInJsMode2.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForArgumentsPropertyNameInJsMode2.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForConstAssertions.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForConstAssertions.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForConstAssertions.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForConstAssertions.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocCodefence.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocCodefence.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocCodefence.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocCodefence.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocUnknownTag.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocUnknownTag.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocUnknownTag.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocUnknownTag.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocWithHttpLinks.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocWithHttpLinks.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocWithHttpLinks.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocWithHttpLinks.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocWithUnresolvedHttpLinks.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForJSDocWithUnresolvedHttpLinks.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForJSDocWithUnresolvedHttpLinks.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName03.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName03.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName03.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName03.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName04.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName04.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName04.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName04.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName05.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName05.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName05.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName05.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName06.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName06.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoForObjectBindingElementName06.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoForObjectBindingElementName06.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoImportMeta.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoImportMeta.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoImportMeta.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoImportMeta.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc2.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc2.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc2.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc2.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc3.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc3.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc3.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc3.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc4.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc4.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc4.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc4.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc5.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc5.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc5.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc5.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc6.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc6.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoInheritDoc6.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc6.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJSDocAtBeforeSpace.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJSDocAtBeforeSpace.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJSDocAtBeforeSpace.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJSDocAtBeforeSpace.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJSDocTags.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJSDocTags.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJSDocTags.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJSDocTags.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDoc.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDoc.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDoc.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDoc.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocAlias.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocAlias.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocAlias.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocAlias.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocGetterSetter.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocGetterSetter.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocGetterSetter.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocGetterSetter.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocInheritage.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocInheritage.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocInheritage.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocInheritage.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags1.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags1.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags10.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags10.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags10.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags10.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags11.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags11.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags11.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags11.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags12.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags12.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags12.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags12.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags14.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags14.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags14.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags14.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags15.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags15.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags15.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags15.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags16.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags16.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags16.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags16.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags3.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags3.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags3.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags3.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags4.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags4.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags4.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags4.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags5.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags5.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags5.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags5.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags6.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags6.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags6.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags6.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags7.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags7.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags7.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags7.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags8.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags8.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags8.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags8.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags9.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags9.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTags9.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTags9.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsCallback.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsCallback.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsCallback.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsCallback.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsFunctionOverload01.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsFunctionOverload01.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsFunctionOverload01.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsFunctionOverload01.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsFunctionOverload03.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsFunctionOverload03.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsFunctionOverload03.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsFunctionOverload03.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsFunctionOverload05.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsFunctionOverload05.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsFunctionOverload05.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsFunctionOverload05.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsTypedef.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsTypedef.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocTagsTypedef.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocTagsTypedef.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoJsDocThisTag.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocThisTag.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoJsDocThisTag.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocThisTag.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoLink10.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink10.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoLink10.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink10.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoLink11.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink11.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoLink11.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink11.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoLink5.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink5.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoLink5.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink5.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoLink6.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink6.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoLink6.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink6.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoLink7.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink7.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoLink7.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink7.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoLink8.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink8.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoLink8.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink8.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoLink9.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink9.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoLink9.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoLink9.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoNestedExportEqualExportDefault.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoNestedExportEqualExportDefault.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoNestedExportEqualExportDefault.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoNestedExportEqualExportDefault.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoOnJsxNamespacedName.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnJsxNamespacedName.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoOnJsxNamespacedName.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnJsxNamespacedName.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoOnParameterProperties.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnParameterProperties.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoOnParameterProperties.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnParameterProperties.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoOnThis5.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnThis5.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoOnThis5.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnThis5.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoSatisfiesTag.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoSatisfiesTag.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoSatisfiesTag.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoSatisfiesTag.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoTypedefTag.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoTypedefTag.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoTypedefTag.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoTypedefTag.baseline diff --git a/testdata/baselines/reference/fourslash/hover/QuickInfoUniqueSymbolJsDoc.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoUniqueSymbolJsDoc.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/hover/QuickInfoUniqueSymbolJsDoc.baseline rename to testdata/baselines/reference/fourslash/QuickInfo/quickInfoUniqueSymbolJsDoc.baseline diff --git a/testdata/baselines/reference/fourslash/findAllRef/AmbientShorthandFindAllRefs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/AmbientShorthandFindAllRefs.baseline.jsonc deleted file mode 100644 index 188cdbb005..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/AmbientShorthandFindAllRefs.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /user.ts === - -// import {/*FIND ALL REFS*/[|x|]} from "jquery"; - - - - -// === findAllReferences === -// === /user2.ts === - -// import {/*FIND ALL REFS*/[|x|]} from "jquery"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/AutoImportProvider_referencesCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/AutoImportProvider_referencesCrash.baseline.jsonc deleted file mode 100644 index fa07b16bfd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/AutoImportProvider_referencesCrash.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/index.d.ts === - -// declare class [|A|] { -// } -// //# sourceMappingURL=index.d.ts.map - - -// === /home/src/workspaces/project/b/b.ts === - -// /// -// new A/*FIND ALL REFS*/[|A|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences1.baseline.jsonc deleted file mode 100644 index 2d3fb77015..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences1.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences1.ts === - -// export class C { -// /*FIND ALL REFS*/public constructor() { } -// public foo() { } -// } -// -// new C().foo(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences2.baseline.jsonc deleted file mode 100644 index e670a87db0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences2.ts === - -// export class C { -// /*FIND ALL REFS*/private constructor() { } -// public foo() { } -// } -// -// new C().foo(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences3.baseline.jsonc deleted file mode 100644 index eafd38c140..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences3.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences3.ts === - -// export class [|C|] { -// /*FIND ALL REFS*/constructor() { } -// public foo() { } -// } -// -// new [|C|]().foo(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences4.baseline.jsonc deleted file mode 100644 index 8116716578..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ConstructorFindAllReferences4.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /constructorFindAllReferences4.ts === - -// export class C { -// /*FIND ALL REFS*/protected constructor() { } -// public foo() { } -// } -// -// new C().foo(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences.baseline.jsonc deleted file mode 100644 index 8496512cb3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === findAllReferences === -// === /abc.d.ts === - -// declare module "a" { -// /*FIND ALL REFS*/export const x: number; -// } - - - - -// === findAllReferences === -// === /abc.d.ts === - -// declare module "a" { -// export const /*FIND ALL REFS*/[|x|]: number; -// } - - -// === /b.ts === - -// import a from "a"; -// a.[|x|]; - - - - -// === findAllReferences === -// === /abc.d.ts === - -// declare module "a" { -// export const [|x|]: number; -// } - - -// === /b.ts === - -// import a from "a"; -// a./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences2.baseline.jsonc deleted file mode 100644 index dec538b1a0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/EsModuleInteropFindAllReferences2.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /a.d.ts === - -// export as namespace abc; -// /*FIND ALL REFS*/export const x: number; - - - - -// === findAllReferences === -// === /a.d.ts === - -// export as namespace abc; -// export const /*FIND ALL REFS*/[|x|]: number; - - -// === /b.ts === - -// import a from "./a"; -// a.[|x|]; - - - - -// === findAllReferences === -// === /a.d.ts === - -// export as namespace abc; -// export const [|x|]: number; - - -// === /b.ts === - -// import a from "./a"; -// a./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ExplainFilesNodeNextWithTypesReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ExplainFilesNodeNextWithTypesReference.baseline.jsonc deleted file mode 100644 index 86cc90f512..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ExplainFilesNodeNextWithTypesReference.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /node_modules/react-hook-form/dist/index.d.ts === - -// /// -// export type Foo = React.Whatever; -// export function useForm(): any; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc deleted file mode 100644 index 888592014d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllReferPropertyAccessExpressionHeritageClause.ts === - -// class B {} -// function foo() { -// return {/*FIND ALL REFS*/[|B|]: B}; -// } -// class C extends (foo()).[|B|] {} -// class C1 extends foo().[|B|] {} - - - - -// === findAllReferences === -// === /findAllReferPropertyAccessExpressionHeritageClause.ts === - -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo())./*FIND ALL REFS*/[|B|] {} -// class C1 extends foo().[|B|] {} - - - - -// === findAllReferences === -// === /findAllReferPropertyAccessExpressionHeritageClause.ts === - -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo()).[|B|] {} -// class C1 extends foo()./*FIND ALL REFS*/[|B|] {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFilteringMappedTypeProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFilteringMappedTypeProperty.baseline.jsonc deleted file mode 100644 index 53c7ba4ecf..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFilteringMappedTypeProperty.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFilteringMappedTypeProperty.ts === - -// const obj = { /*FIND ALL REFS*/[|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; -// filtered.[|a|]; - - - - -// === findAllReferences === -// === /findAllReferencesFilteringMappedTypeProperty.ts === - -// const obj = { [|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { /*FIND ALL REFS*/[|a|]: 0 }; -// filtered.[|a|]; - - - - -// === findAllReferences === -// === /findAllReferencesFilteringMappedTypeProperty.ts === - -// const obj = { [|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; -// filtered./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference1.baseline.jsonc deleted file mode 100644 index 50d5750dba..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference1.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFromLinkTagReference1.ts === - -// enum E { -// /** {@link /*FIND ALL REFS*/[|A|]} */ -// [|A|] -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference2.baseline.jsonc deleted file mode 100644 index 695b9e0156..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference2.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// enum E { -// /** {@link /*FIND ALL REFS*/[|Foo|]} */ -// [|Foo|] -// } -// interface Foo { -// foo: E.[|Foo|]; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference3.baseline.jsonc deleted file mode 100644 index 6a32db2c98..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference3.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// interface Foo { -// foo: E.[|Foo|]; -// } - - -// === /b.ts === - -// enum E { -// /** {@link /*FIND ALL REFS*/[|Foo|]} */ -// [|Foo|] -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference4.baseline.jsonc deleted file mode 100644 index d23437b30e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFromLinkTagReference4.ts === - -// enum E { -// /** {@link /*FIND ALL REFS*/[|B|]} */ -// A, -// [|B|] -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference5.baseline.jsonc deleted file mode 100644 index d403a9f723..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesFromLinkTagReference5.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesFromLinkTagReference5.ts === - -// enum E { -// /** {@link E./*FIND ALL REFS*/[|A|]} */ -// [|A|] -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesImportMeta.baseline.jsonc deleted file mode 100644 index 42c49a22d3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesImportMeta.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesImportMeta.ts === - -// // Haha that's so meta! -// -// let x = import.meta/*FIND ALL REFS*/[|meta|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionNew.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionNew.baseline.jsonc deleted file mode 100644 index 5db175d76c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionNew.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /Foo.js === - -// /** @type {function (/*FIND ALL REFS*/new: string, string): string} */ -// var f; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionThis.baseline.jsonc deleted file mode 100644 index fea3b8ffff..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJSDocFunctionThis.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /Foo.js === - -// /** @type {function (this: string, string): string} */ -// var f = function (s) { return /*FIND ALL REFS*/[|this|] + s; } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsDocTypeLiteral.baseline.jsonc deleted file mode 100644 index 17b53da550..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsDocTypeLiteral.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /foo.js === - -// /** -// * @param {object} o - very important! -// * @param {string} o.x - a thing, its ok -// * @param {number} o.y - another thing -// * @param {Object} o.nested - very nested -// * @param {boolean} o.nested./*FIND ALL REFS*/great - much greatness -// * @param {number} o.nested.times - twice? probably!?? -// */ -// function f(o) { return o.nested.great; } - - - - -// === findAllReferences === -// === /foo.js === - -// --- (line: 5) skipped --- -// * @param {boolean} o.nested.great - much greatness -// * @param {number} o.nested.times - twice? probably!?? -// */ -// function f(o) { return o.nested./*FIND ALL REFS*/[|great|]; } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsOverloadedFunctionParameter.baseline.jsonc deleted file mode 100644 index 868da34a9c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsOverloadedFunctionParameter.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findAllReferences === -// === /foo.js === - -// --- (line: 9) skipped --- -// * @param {unknown} x -// * @returns {unknown} -// */ -// function foo(x/*FIND ALL REFS*/[|x|]) { -// return [|x|]; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring.baseline.jsonc deleted file mode 100644 index da9b88ff2a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /bar.js === - -// const { /*FIND ALL REFS*/[|foo|]: bar } = require('./foo'); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring1.baseline.jsonc deleted file mode 100644 index d2354a097c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesJsRequireDestructuring1.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /Y.js === - -// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X"); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag1.baseline.jsonc deleted file mode 100644 index 8ea93a9256..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag1.baseline.jsonc +++ /dev/null @@ -1,176 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// class C { -// m/*FIND ALL REFS*/[|m|]() { } -// n = 1 -// static s() { } -// /** -// * {@link m} -// * @see {m} -// * {@link C.m} -// * @see {C.m} -// * {@link C#m} -// * @see {C#m} -// * {@link C.prototype.[|m|]} -// * @see {C.prototype.m} -// */ -// p() { } -// // --- (line: 16) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// class C { -// m() { } -// n/*FIND ALL REFS*/[|n|] = 1 -// static s() { } -// /** -// * {@link m} -// // --- (line: 7) skipped --- - - -// --- (line: 19) skipped --- -// * @see {C.n} -// * {@link C#n} -// * @see {C#n} -// * {@link C.prototype.[|n|]} -// * @see {C.prototype.n} -// */ -// q() { } -// // --- (line: 27) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// class C { -// m() { } -// n = 1 -// static s/*FIND ALL REFS*/[|s|]() { } -// /** -// * {@link m} -// * @see {m} -// // --- (line: 8) skipped --- - - -// --- (line: 26) skipped --- -// /** -// * {@link s} -// * @see {s} -// * {@link C.[|s|]} -// * @see {C.s} -// */ -// r() { } -// // --- (line: 34) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// --- (line: 33) skipped --- -// } -// -// interface I { -// a/*FIND ALL REFS*/[|a|]() -// b: 1 -// /** -// * {@link a} -// // --- (line: 41) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// --- (line: 34) skipped --- -// -// interface I { -// a() -// b/*FIND ALL REFS*/[|b|]: 1 -// /** -// * {@link a} -// * @see {a} -// // --- (line: 42) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// --- (line: 54) skipped --- -// } -// -// function nestor() { -// /** {@link [|r2|]} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2/*FIND ALL REFS*/[|r2|]() { } -// } - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// class C/*FIND ALL REFS*/[|C|] { -// m() { } -// n = 1 -// static s() { } -// /** -// * {@link m} -// * @see {m} -// * {@link [|C|].m} -// * @see {C.m} -// * {@link [|C|]#m} -// * @see {C#m} -// * {@link [|C|].prototype.m} -// * @see {C.prototype.m} -// */ -// p() { } -// /** -// * {@link n} -// * @see {n} -// * {@link [|C|].n} -// * @see {C.n} -// * {@link [|C|]#n} -// * @see {C#n} -// * {@link [|C|].prototype.n} -// * @see {C.prototype.n} -// */ -// q() { } -// /** -// * {@link s} -// * @see {s} -// * {@link [|C|].s} -// * @see {C.s} -// */ -// r() { } -// // --- (line: 34) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag1.ts === - -// --- (line: 32) skipped --- -// r() { } -// } -// -// interface I/*FIND ALL REFS*/[|I|] { -// a() -// b: 1 -// /** -// // --- (line: 40) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag2.baseline.jsonc deleted file mode 100644 index ea6869acf9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag2.baseline.jsonc +++ /dev/null @@ -1,106 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === - -// namespace NPR { -// export class Consider { -// This = class { -// show() { } -// } -// m/*FIND ALL REFS*/[|m|]() { } -// } -// /** -// * @see {Consider.prototype.m} -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === - -// namespace NPR { -// export class Consider { -// This = class { -// show/*FIND ALL REFS*/[|show|]() { } -// } -// m() { } -// } -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === - -// namespace NPR { -// export class Consider { -// This/*FIND ALL REFS*/[|This|] = class { -// show() { } -// } -// m() { } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === - -// namespace NPR { -// export class Consider/*FIND ALL REFS*/[|Consider|] { -// This = class { -// show() { } -// } -// m() { } -// } -// /** -// * @see {Consider.prototype.m} -// * {@link [|Consider|]#m} -// * @see {Consider#This#show} -// * {@link [|Consider|].This.show} -// * @see {NPR.Consider#This#show} -// * {@link NPR.[|Consider|].This#show} -// * @see {NPR.Consider#This.show} # doesn't parse trailing . -// * @see {NPR.Consider.This.show} -// */ -// export function ref() { } -// } -// /** -// * {@link NPR.[|Consider|]#This#show hello hello} -// * {@link NPR.[|Consider|].This#show} -// * @see {NPR.Consider#This.show} # doesn't parse trailing . -// * @see {NPR.Consider.This.show} -// */ -// export function outerref() { } - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag2.ts === - -// namespace NPR/*FIND ALL REFS*/[|NPR|] { -// export class Consider { -// This = class { -// show() { } -// // --- (line: 5) skipped --- - - -// --- (line: 10) skipped --- -// * @see {Consider#This#show} -// * {@link Consider.This.show} -// * @see {NPR.Consider#This#show} -// * {@link [|NPR|].Consider.This#show} -// * @see {NPR.Consider#This.show} # doesn't parse trailing . -// * @see {NPR.Consider.This.show} -// */ -// export function ref() { } -// } -// /** -// * {@link [|NPR|].Consider#This#show hello hello} -// * {@link [|NPR|].Consider.This#show} -// * @see {NPR.Consider#This.show} # doesn't parse trailing . -// * @see {NPR.Consider.This.show} -// */ -// export function outerref() { } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag3.baseline.jsonc deleted file mode 100644 index 16b0623ff3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesLinkTag3.baseline.jsonc +++ /dev/null @@ -1,110 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === - -// namespace NPR { -// export class Consider { -// This = class { -// show() { } -// } -// m/*FIND ALL REFS*/[|m|]() { } -// } -// /** -// * {@linkcode Consider.prototype.[|m|]} -// * {@linkplain Consider#m} -// * {@linkcode Consider#This#show} -// * {@linkplain Consider.This.show} -// // --- (line: 13) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === - -// namespace NPR { -// export class Consider { -// This = class { -// show/*FIND ALL REFS*/[|show|]() { } -// } -// m() { } -// } -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === - -// namespace NPR { -// export class Consider { -// This/*FIND ALL REFS*/[|This|] = class { -// show() { } -// } -// m() { } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === - -// namespace NPR { -// export class Consider/*FIND ALL REFS*/[|Consider|] { -// This = class { -// show() { } -// } -// m() { } -// } -// /** -// * {@linkcode [|Consider|].prototype.m} -// * {@linkplain [|Consider|]#m} -// * {@linkcode [|Consider|]#This#show} -// * {@linkplain [|Consider|].This.show} -// * {@linkcode NPR.[|Consider|]#This#show} -// * {@linkplain NPR.[|Consider|].This#show} -// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . -// * {@linkcode NPR.[|Consider|].This.show} -// */ -// export function ref() { } -// } -// /** -// * {@linkplain NPR.[|Consider|]#This#show hello hello} -// * {@linkplain NPR.[|Consider|].This#show} -// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing . -// * {@linkcode NPR.[|Consider|].This.show} -// */ -// export function outerref() { } - - - - -// === findAllReferences === -// === /findAllReferencesLinkTag3.ts === - -// namespace NPR/*FIND ALL REFS*/[|NPR|] { -// export class Consider { -// This = class { -// show() { } -// // --- (line: 5) skipped --- - - -// --- (line: 9) skipped --- -// * {@linkplain Consider#m} -// * {@linkcode Consider#This#show} -// * {@linkplain Consider.This.show} -// * {@linkcode [|NPR|].Consider#This#show} -// * {@linkplain [|NPR|].Consider.This#show} -// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . -// * {@linkcode [|NPR|].Consider.This.show} -// */ -// export function ref() { } -// } -// /** -// * {@linkplain [|NPR|].Consider#This#show hello hello} -// * {@linkplain [|NPR|].Consider.This#show} -// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . -// * {@linkcode [|NPR|].Consider.This.show} -// */ -// export function outerref() { } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesNonExistentExportBinding.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesNonExistentExportBinding.baseline.jsonc deleted file mode 100644 index 6f44ed40d7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesNonExistentExportBinding.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /bar.ts === - -// import { Foo/*FIND ALL REFS*/[|Foo|] } from "./foo"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor.baseline.jsonc deleted file mode 100644 index 8884a4f22f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor.baseline.jsonc +++ /dev/null @@ -1,137 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export class [|C|] { -// /*FIND ALL REFS*/constructor(n: number); -// constructor(); -// constructor(n?: number){} -// static f() { -// this.f(); -// new this(); -// } -// } -// new [|C|](); -// const D = [|C|]; -// new D(); - - -// === /b.ts === - -// import { [|C|] } from "./a"; -// new [|C|](); - - -// === /c.ts === - -// import { [|C|] } from "./a"; -// class D extends [|C|] { -// constructor() { -// super(); -// super.method(); -// } -// method() { super(); } -// } -// class E implements [|C|] { -// constructor() { super(); } -// } - - -// === /d.ts === - -// import * as a from "./a"; -// new a.[|C|](); -// class d extends a.[|C|] { constructor() { super(); } - - - - -// === findAllReferences === -// === /a.ts === - -// export class [|C|] { -// constructor(n: number); -// /*FIND ALL REFS*/constructor(); -// constructor(n?: number){} -// static f() { -// this.f(); -// new this(); -// } -// } -// new [|C|](); -// const D = [|C|]; -// new D(); - - -// === /b.ts === - -// import { [|C|] } from "./a"; -// new [|C|](); - - -// === /c.ts === - -// import { [|C|] } from "./a"; -// class D extends [|C|] { -// constructor() { -// super(); -// super.method(); -// } -// method() { super(); } -// } -// class E implements [|C|] { -// constructor() { super(); } -// } - - -// === /d.ts === - -// import * as a from "./a"; -// new a.[|C|](); -// class d extends a.[|C|] { constructor() { super(); } - - - - -// === findAllReferences === -// === /a.ts === - -// export class [|C|] { -// constructor(n: number); -// constructor(); -// /*FIND ALL REFS*/constructor(n?: number){} -// static f() { -// this.f(); -// new this(); -// } -// } -// new [|C|](); -// const D = [|C|]; -// new D(); - - -// === /b.ts === - -// import { [|C|] } from "./a"; -// new [|C|](); - - -// === /c.ts === - -// import { [|C|] } from "./a"; -// class D extends [|C|] { -// constructor() { -// super(); -// super.method(); -// } -// method() { super(); } -// } -// class E implements [|C|] { -// constructor() { super(); } -// } - - -// === /d.ts === - -// import * as a from "./a"; -// new a.[|C|](); -// class d extends a.[|C|] { constructor() { super(); } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor_badOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor_badOverload.baseline.jsonc deleted file mode 100644 index 8e7048cb20..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfConstructor_badOverload.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllReferencesOfConstructor_badOverload.ts === - -// class [|C|] { -// /*FIND ALL REFS*/constructor(n: number); -// constructor(){} -// } - - - - -// === findAllReferences === -// === /findAllReferencesOfConstructor_badOverload.ts === - -// class [|C|] { -// constructor(n: number); -// /*FIND ALL REFS*/constructor(){} -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfJsonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfJsonModule.baseline.jsonc deleted file mode 100644 index c9a228c16f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesOfJsonModule.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /foo.ts === - -// /*FIND ALL REFS*/import settings from "./settings.json"; -// settings; - - - - -// === findAllReferences === -// === /foo.ts === - -// import /*FIND ALL REFS*/[|settings|] from "./settings.json"; -// [|settings|]; - - - - -// === findAllReferences === -// === /foo.ts === - -// import [|settings|] from "./settings.json"; -// /*FIND ALL REFS*/[|settings|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc deleted file mode 100644 index ff21e68ef0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesTripleSlash.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /// -// /// - - - - -// === findAllReferences === -// === /a.ts === - -// /// -// /// diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesUndefined.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesUndefined.baseline.jsonc deleted file mode 100644 index 741083d716..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesUndefined.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/[|undefined|]; -// -// void [|undefined|]; - - -// === /b.ts === - -// [|undefined|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsBadImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsBadImport.baseline.jsonc deleted file mode 100644 index 8080894d68..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsBadImport.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /findAllRefsBadImport.ts === - -// import { /*FIND ALL REFS*/ab as cd } from "doesNotExist"; - - - - -// === findAllReferences === -// === /findAllRefsBadImport.ts === - -// import { ab as /*FIND ALL REFS*/[|cd|] } from "doesNotExist"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsCatchClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsCatchClause.baseline.jsonc deleted file mode 100644 index 3be0bbd0d6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsCatchClause.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllRefsCatchClause.ts === - -// try { } -// catch (/*FIND ALL REFS*/[|err|]) { -// [|err|]; -// } - - - - -// === findAllReferences === -// === /findAllRefsCatchClause.ts === - -// try { } -// catch ([|err|]) { -// /*FIND ALL REFS*/[|err|]; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression0.baseline.jsonc deleted file mode 100644 index 2d6a77088a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression0.baseline.jsonc +++ /dev/null @@ -1,60 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export = class /*FIND ALL REFS*/[|A|] { -// m() { [|A|]; } -// }; - - -// === /b.ts === - -// import [|A|] = require("./a"); -// [|A|]; - - - - -// === findAllReferences === -// === /a.ts === - -// export = class [|A|] { -// m() { /*FIND ALL REFS*/[|A|]; } -// }; - - -// === /b.ts === - -// import [|A|] = require("./a"); -// [|A|]; - - - - -// === findAllReferences === -// === /a.ts === - -// export = class [|A|] { -// m() { [|A|]; } -// }; - - -// === /b.ts === - -// import /*FIND ALL REFS*/[|A|] = require("./a"); -// [|A|]; - - - - -// === findAllReferences === -// === /a.ts === - -// export = class [|A|] { -// m() { [|A|]; } -// }; - - -// === /b.ts === - -// import [|A|] = require("./a"); -// /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression1.baseline.jsonc deleted file mode 100644 index 6ce52f582b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression1.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// module.exports = class /*FIND ALL REFS*/[|A|] {}; - - - - -// === findAllReferences === -// === /b.js === - -// import /*FIND ALL REFS*/[|A|] = require("./a"); -// [|A|]; - - - - -// === findAllReferences === -// === /b.js === - -// import [|A|] = require("./a"); -// /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression2.baseline.jsonc deleted file mode 100644 index f96e62e6e4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassExpression2.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// exports./*FIND ALL REFS*/[|A|] = class {}; - - -// === /b.js === - -// import { [|A|] } from "./a"; -// [|A|]; - - - - -// === findAllReferences === -// === /a.js === - -// exports.[|A|] = class {}; - - -// === /b.js === - -// import { /*FIND ALL REFS*/[|A|] } from "./a"; -// [|A|]; - - - - -// === findAllReferences === -// === /a.js === - -// exports.[|A|] = class {}; - - -// === /b.js === - -// import { [|A|] } from "./a"; -// /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassStaticBlocks.baseline.jsonc deleted file mode 100644 index 2c3929d9fd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassStaticBlocks.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /findAllRefsClassStaticBlocks.ts === - -// class ClassStaticBocks { -// static x; -// /*FIND ALL REFS*/[|static|] {} -// static y; -// static {} -// static y; -// static {} -// } - - - - -// === findAllReferences === -// === /findAllRefsClassStaticBlocks.ts === - -// class ClassStaticBocks { -// static x; -// static {} -// static y; -// /*FIND ALL REFS*/[|static|] {} -// static y; -// static {} -// } - - - - -// === findAllReferences === -// === /findAllRefsClassStaticBlocks.ts === - -// --- (line: 3) skipped --- -// static y; -// static {} -// static y; -// /*FIND ALL REFS*/[|static|] {} -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsConstructorFunctions.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsConstructorFunctions.baseline.jsonc deleted file mode 100644 index 92b3f1ad6d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsConstructorFunctions.baseline.jsonc +++ /dev/null @@ -1,64 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// function f() { -// /*FIND ALL REFS*/[|this|].x = 0; -// } -// f.prototype.setX = function() { -// this.x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - - -// === findAllReferences === -// === /a.js === - -// function f() { -// this./*FIND ALL REFS*/x = 0; -// } -// f.prototype.setX = function() { -// this.x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - - -// === findAllReferences === -// === /a.js === - -// function f() { -// this.x = 0; -// } -// f.prototype.setX = function() { -// /*FIND ALL REFS*/[|this|].x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - - -// === findAllReferences === -// === /a.js === - -// function f() { -// this.x = 0; -// } -// f.prototype.setX = function() { -// this./*FIND ALL REFS*/x = 1; -// } -// f.prototype.useX = function() { this.x; } - - - - -// === findAllReferences === -// === /a.js === - -// --- (line: 3) skipped --- -// f.prototype.setX = function() { -// this.x = 1; -// } -// f.prototype.useX = function() { this./*FIND ALL REFS*/x; } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDeclareClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDeclareClass.baseline.jsonc deleted file mode 100644 index e2e8f2d550..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDeclareClass.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDeclareClass.ts === - -// /*FIND ALL REFS*/declare class C { -// static m(): void; -// } - - - - -// === findAllReferences === -// === /findAllRefsDeclareClass.ts === - -// declare class /*FIND ALL REFS*/[|C|] { -// static m(): void; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefaultImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefaultImport.baseline.jsonc deleted file mode 100644 index bb5c61b725..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefaultImport.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export default function /*FIND ALL REFS*/[|a|]() {} - - -// === /b.ts === - -// import [|a|], * as ns from "./a"; - - - - -// === findAllReferences === -// === /a.ts === - -// export default function [|a|]() {} - - -// === /b.ts === - -// import /*FIND ALL REFS*/[|a|], * as ns from "./a"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefinition.baseline.jsonc deleted file mode 100644 index 59afb275df..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDefinition.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDefinition.ts === - -// const /*FIND ALL REFS*/[|x|] = 0; -// [|x|]; - - - - -// === findAllReferences === -// === /findAllRefsDefinition.ts === - -// const [|x|] = 0; -// /*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGeneric.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGeneric.baseline.jsonc deleted file mode 100644 index bc2d160244..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGeneric.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDestructureGeneric.ts === - -// interface I { -// /*FIND ALL REFS*/[|x|]: boolean; -// } -// declare const i: I; -// const { [|x|] } = i; - - - - -// === findAllReferences === -// === /findAllRefsDestructureGeneric.ts === - -// interface I { -// [|x|]: boolean; -// } -// declare const i: I; -// const { /*FIND ALL REFS*/[|x|] } = i; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGetter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGetter.baseline.jsonc deleted file mode 100644 index 17fdbff3f0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsDestructureGetter.baseline.jsonc +++ /dev/null @@ -1,80 +0,0 @@ -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === - -// class Test { -// get /*FIND ALL REFS*/[|x|]() { return 0; } -// -// set y(a: number) {} -// } -// const { [|x|], y } = new Test(); -// x; y; - - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === - -// class Test { -// get [|x|]() { return 0; } -// -// set y(a: number) {} -// } -// const { /*FIND ALL REFS*/[|x|], y } = new Test(); -// [|x|]; y; - - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === - -// class Test { -// get x() { return 0; } -// -// set y(a: number) {} -// } -// const { [|x|], y } = new Test(); -// /*FIND ALL REFS*/[|x|]; y; - - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === - -// class Test { -// get x() { return 0; } -// -// set /*FIND ALL REFS*/[|y|](a: number) {} -// } -// const { x, [|y|] } = new Test(); -// x; y; - - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === - -// class Test { -// get x() { return 0; } -// -// set [|y|](a: number) {} -// } -// const { x, /*FIND ALL REFS*/[|y|] } = new Test(); -// x; [|y|]; - - - - -// === findAllReferences === -// === /findAllRefsDestructureGetter.ts === - -// class Test { -// get x() { return 0; } -// -// set y(a: number) {} -// } -// const { x, [|y|] } = new Test(); -// x; /*FIND ALL REFS*/[|y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumAsNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumAsNamespace.baseline.jsonc deleted file mode 100644 index 739032e8f8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumAsNamespace.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /findAllRefsEnumAsNamespace.ts === - -// /*FIND ALL REFS*/enum E { A } -// let e: E.A; - - - - -// === findAllReferences === -// === /findAllRefsEnumAsNamespace.ts === - -// enum /*FIND ALL REFS*/[|E|] { A } -// let e: [|E|].A; - - - - -// === findAllReferences === -// === /findAllRefsEnumAsNamespace.ts === - -// enum [|E|] { A } -// let e: /*FIND ALL REFS*/[|E|].A; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumMember.baseline.jsonc deleted file mode 100644 index fce503b58b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsEnumMember.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /findAllRefsEnumMember.ts === - -// enum E { /*FIND ALL REFS*/[|A|], B } -// const e: E.[|A|] = E.[|A|]; - - - - -// === findAllReferences === -// === /findAllRefsEnumMember.ts === - -// enum E { [|A|], B } -// const e: E./*FIND ALL REFS*/[|A|] = E.[|A|]; - - - - -// === findAllReferences === -// === /findAllRefsEnumMember.ts === - -// enum E { [|A|], B } -// const e: E.A = E./*FIND ALL REFS*/[|A|] = E.[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportConstEqualToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportConstEqualToClass.baseline.jsonc deleted file mode 100644 index 1906e220e3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportConstEqualToClass.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// class C {} -// export const /*FIND ALL REFS*/[|D|] = C; - - -// === /b.ts === - -// import { [|D|] } from "./a"; - - - - -// === findAllReferences === -// === /a.ts === - -// class C {} -// export const [|D|] = C; - - -// === /b.ts === - -// import { /*FIND ALL REFS*/[|D|] } from "./a"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportDefaultClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportDefaultClassConstructor.baseline.jsonc deleted file mode 100644 index 1224d18ddc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportDefaultClassConstructor.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /findAllRefsExportDefaultClassConstructor.ts === - -// export default class { -// /*FIND ALL REFS*/constructor() {} -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportNotAtTopLevel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportNotAtTopLevel.baseline.jsonc deleted file mode 100644 index 07693d564c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsExportNotAtTopLevel.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findAllReferences === -// === /findAllRefsExportNotAtTopLevel.ts === - -// { -// /*FIND ALL REFS*/export const x = 0; -// x; -// } - - - - -// === findAllReferences === -// === /findAllRefsExportNotAtTopLevel.ts === - -// { -// export const /*FIND ALL REFS*/[|x|] = 0; -// [|x|]; -// } - - - - -// === findAllReferences === -// === /findAllRefsExportNotAtTopLevel.ts === - -// { -// export const [|x|] = 0; -// /*FIND ALL REFS*/[|x|]; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties.baseline.jsonc deleted file mode 100644 index 8781689e20..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties.baseline.jsonc +++ /dev/null @@ -1,50 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForComputedProperties.ts === - -// interface I { -// ["/*FIND ALL REFS*/[|prop1|]"]: () => void; -// } -// -// class C implements I { -// ["[|prop1|]"]: any; -// } -// -// var x: I = { -// ["[|prop1|]"]: function () { }, -// } - - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties.ts === - -// interface I { -// ["[|prop1|]"]: () => void; -// } -// -// class C implements I { -// ["/*FIND ALL REFS*/[|prop1|]"]: any; -// } -// -// var x: I = { -// ["[|prop1|]"]: function () { }, -// } - - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties.ts === - -// interface I { -// ["[|prop1|]"]: () => void; -// } -// -// class C implements I { -// ["[|prop1|]"]: any; -// } -// -// var x: I = { -// ["/*FIND ALL REFS*/[|prop1|]"]: function () { }, -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties2.baseline.jsonc deleted file mode 100644 index fb96b320e0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForComputedProperties2.baseline.jsonc +++ /dev/null @@ -1,50 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForComputedProperties2.ts === - -// interface I { -// [/*FIND ALL REFS*/[|42|]](): void; -// } -// -// class C implements I { -// [[|42|]]: any; -// } -// -// var x: I = { -// ["[|42|]"]: function () { } -// } - - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties2.ts === - -// interface I { -// [[|42|]](): void; -// } -// -// class C implements I { -// [/*FIND ALL REFS*/[|42|]]: any; -// } -// -// var x: I = { -// ["[|42|]"]: function () { } -// } - - - - -// === findAllReferences === -// === /findAllRefsForComputedProperties2.ts === - -// interface I { -// [[|42|]](): void; -// } -// -// class C implements I { -// [[|42|]]: any; -// } -// -// var x: I = { -// ["/*FIND ALL REFS*/[|42|]"]: function () { } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport01.baseline.jsonc deleted file mode 100644 index b274338afa..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport01.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === - -// /*FIND ALL REFS*/export default class DefaultExportedClass { -// } -// -// var x: DefaultExportedClass; -// -// var y = new DefaultExportedClass; - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === - -// export default class /*FIND ALL REFS*/[|DefaultExportedClass|] { -// } -// -// var x: [|DefaultExportedClass|]; -// -// var y = new [|DefaultExportedClass|]; - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === - -// export default class [|DefaultExportedClass|] { -// } -// -// var x: /*FIND ALL REFS*/[|DefaultExportedClass|]; -// -// var y = new [|DefaultExportedClass|]; - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport01.ts === - -// export default class [|DefaultExportedClass|] { -// } -// -// var x: [|DefaultExportedClass|]; -// -// var y = new /*FIND ALL REFS*/[|DefaultExportedClass|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport02.baseline.jsonc deleted file mode 100644 index ed7329e7d8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport02.baseline.jsonc +++ /dev/null @@ -1,102 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === - -// /*FIND ALL REFS*/export default function DefaultExportedFunction() { -// return DefaultExportedFunction; -// } -// -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === - -// export default function /*FIND ALL REFS*/[|DefaultExportedFunction|]() { -// return [|DefaultExportedFunction|]; -// } -// -// var x: typeof [|DefaultExportedFunction|]; -// -// var y = [|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === - -// export default function [|DefaultExportedFunction|]() { -// return /*FIND ALL REFS*/[|DefaultExportedFunction|]; -// } -// -// var x: typeof [|DefaultExportedFunction|]; -// -// var y = [|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === - -// export default function [|DefaultExportedFunction|]() { -// return [|DefaultExportedFunction|]; -// } -// -// var x: typeof /*FIND ALL REFS*/[|DefaultExportedFunction|]; -// -// var y = [|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === - -// export default function [|DefaultExportedFunction|]() { -// return [|DefaultExportedFunction|]; -// } -// -// var x: typeof [|DefaultExportedFunction|]; -// -// var y = /*FIND ALL REFS*/[|DefaultExportedFunction|](); -// -// namespace DefaultExportedFunction { -// } - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === - -// --- (line: 5) skipped --- -// -// var y = DefaultExportedFunction(); -// -// /*FIND ALL REFS*/namespace DefaultExportedFunction { -// } - - - - -// === findAllReferences === -// === /findAllRefsForDefaultExport02.ts === - -// --- (line: 5) skipped --- -// -// var y = DefaultExportedFunction(); -// -// namespace /*FIND ALL REFS*/[|DefaultExportedFunction|] { -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport04.baseline.jsonc deleted file mode 100644 index 4d11cf46ab..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport04.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// const /*FIND ALL REFS*/[|a|] = 0; -// export default [|a|]; - - -// === /b.ts === - -// import [|a|] from "./a"; -// [|a|]; - - - - -// === findAllReferences === -// === /a.ts === - -// const [|a|] = 0; -// export default /*FIND ALL REFS*/[|a|]; - - -// === /b.ts === - -// import [|a|] from "./a"; -// [|a|]; - - - - -// === findAllReferences === -// === /a.ts === - -// const a = 0; -// export /*FIND ALL REFS*/default a; - - - - -// === findAllReferences === -// === /b.ts === - -// import /*FIND ALL REFS*/[|a|] from "./a"; -// [|a|]; - - - - -// === findAllReferences === -// === /b.ts === - -// import [|a|] from "./a"; -// /*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport09.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport09.baseline.jsonc deleted file mode 100644 index cf193dcabd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport09.baseline.jsonc +++ /dev/null @@ -1,106 +0,0 @@ -// === findAllReferences === -// === /foo.ts === - -// import * as /*FIND ALL REFS*/[|a|] from "./a.js" -// import aDefault from "./a.js" -// import * as b from "./b.js" -// import bDefault from "./b.js" -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /foo.ts === - -// import * as a from "./a.js" -// import /*FIND ALL REFS*/[|aDefault|] from "./a.js" -// import * as b from "./b.js" -// import bDefault from "./b.js" -// -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /foo.ts === - -// import * as a from "./a.js" -// import aDefault from "./a.js" -// import * as /*FIND ALL REFS*/[|b|] from "./b.js" -// import bDefault from "./b.js" -// -// import * as c from "./c" -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /foo.ts === - -// import * as a from "./a.js" -// import aDefault from "./a.js" -// import * as b from "./b.js" -// import /*FIND ALL REFS*/[|bDefault|] from "./b.js" -// -// import * as c from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import dDefault from "./d" - - - - -// === findAllReferences === -// === /foo.ts === - -// import * as a from "./a.js" -// import aDefault from "./a.js" -// import * as b from "./b.js" -// import bDefault from "./b.js" -// -// import * as /*FIND ALL REFS*/[|c|] from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import dDefault from "./d" - - - - -// === findAllReferences === -// === /foo.ts === - -// --- (line: 3) skipped --- -// import bDefault from "./b.js" -// -// import * as c from "./c" -// import /*FIND ALL REFS*/[|cDefault|] from "./c" -// import * as d from "./d" -// import dDefault from "./d" - - - - -// === findAllReferences === -// === /foo.ts === - -// --- (line: 4) skipped --- -// -// import * as c from "./c" -// import cDefault from "./c" -// import * as /*FIND ALL REFS*/[|d|] from "./d" -// import dDefault from "./d" - - - - -// === findAllReferences === -// === /foo.ts === - -// --- (line: 5) skipped --- -// import * as c from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import /*FIND ALL REFS*/[|dDefault|] from "./d" diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_anonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_anonymous.baseline.jsonc deleted file mode 100644 index fd5bfc031a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_anonymous.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export /*FIND ALL REFS*/default 1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_reExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_reExport.baseline.jsonc deleted file mode 100644 index 31a04e0e06..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport_reExport.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /export.ts === - -// const /*FIND ALL REFS*/[|foo|] = 1; -// export default [|foo|]; - - - - -// === findAllReferences === -// === /export.ts === - -// const [|foo|] = 1; -// export default /*FIND ALL REFS*/[|foo|]; - - - - -// === findAllReferences === -// === /re-export.ts === - -// export { /*FIND ALL REFS*/default } from "./export"; - - - - -// === findAllReferences === -// === /re-export-dep.ts === - -// import /*FIND ALL REFS*/[|fooDefault|] from "./re-export"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultKeyword.baseline.jsonc deleted file mode 100644 index 849fd109f3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultKeyword.baseline.jsonc +++ /dev/null @@ -1,67 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === - -// function f(value: string, /*FIND ALL REFS*/default: string) {} -// -// const default = 1; -// -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === - -// function f(value: string, default: string) {} -// -// const /*FIND ALL REFS*/default = 1; -// -// function default() {} -// -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === - -// function f(value: string, default: string) {} -// -// const default = 1; -// -// function /*FIND ALL REFS*/default() {} -// -// class default {} -// -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === - -// --- (line: 3) skipped --- -// -// function default() {} -// -// class /*FIND ALL REFS*/default {} -// -// const foo = { -// default: 1 -// } - - - - -// === findAllReferences === -// === /findAllRefsForDefaultKeyword.ts === - -// --- (line: 6) skipped --- -// class default {} -// -// const foo = { -// /*FIND ALL REFS*/[|default|]: 1 -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForFunctionExpression01.baseline.jsonc deleted file mode 100644 index 5420705574..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForFunctionExpression01.baseline.jsonc +++ /dev/null @@ -1,66 +0,0 @@ -// === findAllReferences === -// === /file1.ts === - -// var foo = /*FIND ALL REFS*/function foo(a = foo(), b = () => foo) { -// foo(foo, foo); -// } - - - - -// === findAllReferences === -// === /file1.ts === - -// var foo = function /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { -// [|foo|]([|foo|], [|foo|]); -// } - - - - -// === findAllReferences === -// === /file1.ts === - -// var foo = function foo(a = /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { -// [|foo|]([|foo|], [|foo|]); -// } - - - - -// === findAllReferences === -// === /file1.ts === - -// var foo = function foo(a = foo(), b = () => /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { -// [|foo|]([|foo|], [|foo|]); -// } - - - - -// === findAllReferences === -// === /file1.ts === - -// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); -// } - - - - -// === findAllReferences === -// === /file1.ts === - -// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// foo(/*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); -// } - - - - -// === findAllReferences === -// === /file1.ts === - -// var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// foo(foo, /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCall.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCall.baseline.jsonc deleted file mode 100644 index 373d783fab..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCall.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === findAllReferences === -// === /app.ts === - -// export function he/*FIND ALL REFS*/[|hello|]() {}; - - -// === /direct-use.ts === - -// async function main() { -// const mod = await import("./app") -// mod.[|hello|](); -// } - - -// === /indirect-use.ts === - -// import("./re-export").then(mod => mod.services.app.[|hello|]()); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCallType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCallType.baseline.jsonc deleted file mode 100644 index 736676b75a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForImportCallType.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /app.ts === - -// export function he/*FIND ALL REFS*/[|hello|]() {}; - - -// === /indirect-use.ts === - -// import type { app } from "./re-export"; -// declare const app: app -// app.[|hello|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForMappedType.baseline.jsonc deleted file mode 100644 index c4956c8440..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForMappedType.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForMappedType.ts === - -// interface T { /*FIND ALL REFS*/[|a|]: number }; -// type U = { [K in keyof T]: string }; -// type V = { [K in keyof U]: boolean }; -// const u: U = { [|a|]: "" } -// const v: V = { [|a|]: true } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index 19cd8bb48d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,50 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === - -// var x = { -// /*FIND ALL REFS*/[|property|]: {} -// }; -// -// x.[|property|]; -// -// let {[|property|]: pVar} = x; - - - - -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === - -// var x = { -// [|property|]: {} -// }; -// -// x./*FIND ALL REFS*/[|property|]; -// -// let {[|property|]: pVar} = x; - - - - -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === - -// --- (line: 3) skipped --- -// -// x.property; -// -// /*FIND ALL REFS*/let {property: pVar} = x; - - - - -// === findAllReferences === -// === /findAllRefsForObjectLiteralProperties.ts === - -// var x = { -// [|property|]: {} -// }; -// -// x.[|property|]; -// -// let {/*FIND ALL REFS*/[|property|]: pVar} = x; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectSpread.baseline.jsonc deleted file mode 100644 index 7ed09580c9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForObjectSpread.baseline.jsonc +++ /dev/null @@ -1,52 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === - -// interface A1 { readonly /*FIND ALL REFS*/[|a|]: string }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.[|a|]; -// a1.[|a|]; - - - - -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === - -// interface A1 { readonly a: string }; -// interface A2 { /*FIND ALL REFS*/[|a|]?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.[|a|]; -// a1.a; - - - - -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === - -// interface A1 { readonly [|a|]: string }; -// interface A2 { [|a|]?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12./*FIND ALL REFS*/[|a|]; -// a1.[|a|]; - - - - -// === findAllReferences === -// === /findAllRefsForObjectSpread.ts === - -// interface A1 { readonly [|a|]: string }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.[|a|]; -// a1./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForRest.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForRest.baseline.jsonc deleted file mode 100644 index 7eaac036a6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForRest.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForRest.ts === - -// interface Gen { -// x: number -// /*FIND ALL REFS*/[|parent|]: Gen; -// millenial: string; -// } -// let t: Gen; -// var { x, ...rest } = t; -// rest.[|parent|]; - - - - -// === findAllReferences === -// === /findAllRefsForRest.ts === - -// interface Gen { -// x: number -// [|parent|]: Gen; -// millenial: string; -// } -// let t: Gen; -// var { x, ...rest } = t; -// rest./*FIND ALL REFS*/[|parent|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstanceMethodInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstanceMethodInheritance.baseline.jsonc deleted file mode 100644 index fbdf8be2bb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstanceMethodInheritance.baseline.jsonc +++ /dev/null @@ -1,100 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === - -// class X{ -// /*FIND ALL REFS*/[|foo|](): void{} -// } -// -// class Y extends X{ -// static foo(): void{} -// } -// -// class Z extends Y{ -// static foo(): void{} -// [|foo|](): void{} -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|](); -// y.[|foo|](); -// z.[|foo|](); -// Y.foo(); -// Z.foo(); - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === - -// class X{ -// foo(): void{} -// } -// -// class Y extends X{ -// static /*FIND ALL REFS*/[|foo|](): void{} -// } -// -// class Z extends Y{ -// // --- (line: 10) skipped --- - - -// --- (line: 16) skipped --- -// x.foo(); -// y.foo(); -// z.foo(); -// Y.[|foo|](); -// Z.foo(); - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === - -// --- (line: 6) skipped --- -// } -// -// class Z extends Y{ -// static /*FIND ALL REFS*/[|foo|](): void{} -// foo(): void{} -// } -// -// // --- (line: 14) skipped --- - - -// --- (line: 17) skipped --- -// y.foo(); -// z.foo(); -// Y.foo(); -// Z.[|foo|](); - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstanceMethodInheritance.ts === - -// class X{ -// [|foo|](): void{} -// } -// -// class Y extends X{ -// static foo(): void{} -// } -// -// class Z extends Y{ -// static foo(): void{} -// /*FIND ALL REFS*/[|foo|](): void{} -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|](); -// y.[|foo|](); -// z.[|foo|](); -// Y.foo(); -// Z.foo(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstancePropertyInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstancePropertyInheritance.baseline.jsonc deleted file mode 100644 index 765d864857..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStaticInstancePropertyInheritance.baseline.jsonc +++ /dev/null @@ -1,232 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// class X{ -// /*FIND ALL REFS*/[|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y.[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// class X{ -// foo:any -// } -// -// class Y extends X{ -// static /*FIND ALL REFS*/[|foo|]:any -// } -// -// class Z extends Y{ -// // --- (line: 10) skipped --- - - -// --- (line: 16) skipped --- -// x.foo; -// y.foo; -// z.foo; -// Y.[|foo|]; -// Z.foo; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// --- (line: 6) skipped --- -// } -// -// class Z extends Y{ -// static /*FIND ALL REFS*/[|foo|]:any -// foo:any -// } -// -// // --- (line: 14) skipped --- - - -// --- (line: 17) skipped --- -// y.foo; -// z.foo; -// Y.foo; -// Z.[|foo|]; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// /*FIND ALL REFS*/[|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y.[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x./*FIND ALL REFS*/[|foo|]; -// y.[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y./*FIND ALL REFS*/[|foo|]; -// z.[|foo|]; -// Y.foo; -// Z.foo; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// class X{ -// [|foo|]:any -// } -// -// class Y extends X{ -// static foo:any -// } -// -// class Z extends Y{ -// static foo:any -// [|foo|]:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.[|foo|]; -// y.[|foo|]; -// z./*FIND ALL REFS*/[|foo|]; -// Y.foo; -// Z.foo; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// class X{ -// foo:any -// } -// -// class Y extends X{ -// static [|foo|]:any -// } -// -// class Z extends Y{ -// // --- (line: 10) skipped --- - - -// --- (line: 16) skipped --- -// x.foo; -// y.foo; -// z.foo; -// Y./*FIND ALL REFS*/[|foo|]; -// Z.foo; - - - - -// === findAllReferences === -// === /findAllRefsForStaticInstancePropertyInheritance.ts === - -// --- (line: 6) skipped --- -// } -// -// class Z extends Y{ -// static [|foo|]:any -// foo:any -// } -// -// // --- (line: 14) skipped --- - - -// --- (line: 17) skipped --- -// y.foo; -// z.foo; -// Y.foo; -// Z./*FIND ALL REFS*/[|foo|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteral.baseline.jsonc deleted file mode 100644 index 7e9203009f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteral.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// interface Foo { -// property: /*FIND ALL REFS*/"foo"; -// } -// /** -// * @type {{ property: "foo"}} -// // --- (line: 6) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteralTypes.baseline.jsonc deleted file mode 100644 index a6f57497f3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForStringLiteralTypes.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForStringLiteralTypes.ts === - -// type Options = "/*FIND ALL REFS*/option 1" | "option 2"; -// let myOption: Options = "option 1"; - - - - -// === findAllReferences === -// === /findAllRefsForStringLiteralTypes.ts === - -// type Options = "option 1" | "option 2"; -// let myOption: Options = "/*FIND ALL REFS*/option 1"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForUMDModuleAlias1.baseline.jsonc deleted file mode 100644 index b9127b4a45..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForUMDModuleAlias1.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === findAllReferences === -// === /0.d.ts === - -// export function doThing(): string; -// export function doTheOtherThing(): void; -// /*FIND ALL REFS*/export as namespace myLib; - - - - -// === findAllReferences === -// === /0.d.ts === - -// export function doThing(): string; -// export function doTheOtherThing(): void; -// export as namespace /*FIND ALL REFS*/[|myLib|]; - - -// === /1.ts === - -// /// -// [|myLib|].doThing(); - - - - -// === findAllReferences === -// === /0.d.ts === - -// export function doThing(): string; -// export function doTheOtherThing(): void; -// export as namespace [|myLib|]; - - -// === /1.ts === - -// /// -// /*FIND ALL REFS*/[|myLib|].doThing(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause01.baseline.jsonc deleted file mode 100644 index 2f1a4b5681..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause01.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause01.ts === - -// /*FIND ALL REFS*/var Base = class { }; -// class C extends Base { } - - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause01.ts === - -// var /*FIND ALL REFS*/[|Base|] = class { }; -// class C extends [|Base|] { } - - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause01.ts === - -// var [|Base|] = class { }; -// class C extends /*FIND ALL REFS*/[|Base|] { } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause02.baseline.jsonc deleted file mode 100644 index a7f6d381da..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInExtendsClause02.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause02.ts === - -// /*FIND ALL REFS*/interface Base { } -// namespace n { -// var Base = class { }; -// interface I extends Base { } -// } - - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause02.ts === - -// interface /*FIND ALL REFS*/[|Base|] { } -// namespace n { -// var Base = class { }; -// interface I extends [|Base|] { } -// } - - - - -// === findAllReferences === -// === /findAllRefsForVariableInExtendsClause02.ts === - -// interface [|Base|] { } -// namespace n { -// var Base = class { }; -// interface I extends /*FIND ALL REFS*/[|Base|] { } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInImplementsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInImplementsClause01.baseline.jsonc deleted file mode 100644 index 3662b40351..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForVariableInImplementsClause01.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /findAllRefsForVariableInImplementsClause01.ts === - -// var Base = class { }; -// class C extends Base implements /*FIND ALL REFS*/Base { } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsGlobalThisKeywordInModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsGlobalThisKeywordInModule.baseline.jsonc deleted file mode 100644 index 2dcc039a4e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsGlobalThisKeywordInModule.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /findAllRefsGlobalThisKeywordInModule.ts === - -// /*FIND ALL REFS*/this; -// export const c = 1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportEquals.baseline.jsonc deleted file mode 100644 index 3de6dcb22e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportEquals.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /findAllRefsImportEquals.ts === - -// import j = N./*FIND ALL REFS*/[|q|]; -// namespace N { export const q = 0; } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportType.baseline.jsonc deleted file mode 100644 index f497fcf9bd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsImportType.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// module.exports = 0; -// /*FIND ALL REFS*/export type N = number; - - - - -// === findAllReferences === -// === /a.js === - -// module.exports = 0; -// export type /*FIND ALL REFS*/[|N|] = number; - - -// === /b.js === - -// type T = import("./a").[|N|]; - - - - -// === findAllReferences === -// === /b.js === - -// type T = import("./a")./*FIND ALL REFS*/N; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInClassExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInClassExpression.baseline.jsonc deleted file mode 100644 index ac58d2b7a8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInClassExpression.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInClassExpression.ts === - -// interface I { /*FIND ALL REFS*/[|boom|](): void; } -// new class C implements I { -// [|boom|](){} -// } - - - - -// === findAllReferences === -// === /findAllRefsInClassExpression.ts === - -// interface I { [|boom|](): void; } -// new class C implements I { -// /*FIND ALL REFS*/[|boom|](){} -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIndexedAccessTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIndexedAccessTypes.baseline.jsonc deleted file mode 100644 index 2dad9f1fee..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIndexedAccessTypes.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === - -// interface I { -// /*FIND ALL REFS*/[|0|]: number; -// s: string; -// } -// interface J { -// a: I[[|0|]], -// b: I["s"], -// } - - - - -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === - -// interface I { -// 0: number; -// /*FIND ALL REFS*/[|s|]: string; -// } -// interface J { -// a: I[0], -// b: I["[|s|]"], -// } - - - - -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === - -// interface I { -// [|0|]: number; -// s: string; -// } -// interface J { -// a: I[/*FIND ALL REFS*/[|0|]], -// b: I["s"], -// } - - - - -// === findAllReferences === -// === /findAllRefsIndexedAccessTypes.ts === - -// interface I { -// 0: number; -// [|s|]: string; -// } -// interface J { -// a: I[0], -// b: I["/*FIND ALL REFS*/[|s|]"], -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties1.baseline.jsonc deleted file mode 100644 index 012aff5696..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties1.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var v: class1; -// v.[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: class1; -// v.doStuff(); -// v.[|propName|]; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class1; -// v./*FIND ALL REFS*/[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class1; -// v.doStuff(); -// v./*FIND ALL REFS*/[|propName|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties2.baseline.jsonc deleted file mode 100644 index 2d8796609a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties2.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; // r0 -// propName: string; // r1 -// } -// -// var v: interface1; -// v.[|doStuff|](); // r2 -// v.propName; // r3 - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; // r0 -// /*FIND ALL REFS*/[|propName|]: string; // r1 -// } -// -// var v: interface1; -// v.doStuff(); // r2 -// v.[|propName|]; // r3 - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// [|doStuff|](): void; // r0 -// propName: string; // r1 -// } -// -// var v: interface1; -// v./*FIND ALL REFS*/[|doStuff|](); // r2 -// v.propName; // r3 - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; // r0 -// [|propName|]: string; // r1 -// } -// -// var v: interface1; -// v.doStuff(); // r2 -// v./*FIND ALL REFS*/[|propName|]; // r3 diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties3.baseline.jsonc deleted file mode 100644 index a95744a09a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties3.baseline.jsonc +++ /dev/null @@ -1,178 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// --- (line: 3) skipped --- -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v./*FIND ALL REFS*/[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v./*FIND ALL REFS*/[|propName|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties4.baseline.jsonc deleted file mode 100644 index f83b0363aa..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties4.baseline.jsonc +++ /dev/null @@ -1,79 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// /*FIND ALL REFS*/[|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// [|prop0|]: string; -// } -// -// var d: D; -// d.[|prop0|]; -// d.prop1; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// [|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// /*FIND ALL REFS*/[|prop0|]: string; -// } -// -// var d: D; -// d.[|prop0|]; -// d.prop1; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// [|prop0|]: string; -// prop1: number; -// } -// -// interface D extends C { -// [|prop0|]: string; -// } -// -// var d: D; -// d./*FIND ALL REFS*/[|prop0|]; -// d.prop1; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// prop0: string; -// /*FIND ALL REFS*/[|prop1|]: number; -// } -// -// interface D extends C { -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties4.ts === - -// --- (line: 8) skipped --- -// -// var d: D; -// d.prop0; -// d./*FIND ALL REFS*/prop1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties5.baseline.jsonc deleted file mode 100644 index 4fe7fef95d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInheritedProperties5.baseline.jsonc +++ /dev/null @@ -1,69 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === - -// class C extends D { -// /*FIND ALL REFS*/[|prop0|]: string; -// prop1: number; -// } -// -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === - -// class C extends D { -// prop0: string; -// /*FIND ALL REFS*/[|prop1|]: number; -// } -// -// class D extends C { -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === - -// --- (line: 3) skipped --- -// } -// -// class D extends C { -// /*FIND ALL REFS*/[|prop0|]: string; -// } -// -// var d: D; -// d.[|prop0|]; -// d.prop1; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === - -// --- (line: 3) skipped --- -// } -// -// class D extends C { -// [|prop0|]: string; -// } -// -// var d: D; -// d./*FIND ALL REFS*/[|prop0|]; -// d.prop1; - - - - -// === findAllReferences === -// === /findAllRefsInheritedProperties5.ts === - -// --- (line: 8) skipped --- -// -// var d: D; -// d.prop0; -// d./*FIND ALL REFS*/prop1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates1.baseline.jsonc deleted file mode 100644 index 66422cec63..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates1.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === - -// /*FIND ALL REFS*/var x = 10; -// var y = `${ x } ${ x }` - - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === - -// var /*FIND ALL REFS*/[|x|] = 10; -// var y = `${ [|x|] } ${ [|x|] }` - - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === - -// var [|x|] = 10; -// var y = `${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` - - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates1.ts === - -// var [|x|] = 10; -// var y = `${ x } ${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates2.baseline.jsonc deleted file mode 100644 index 2f308122c1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideTemplates2.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === - -// /*FIND ALL REFS*/function f(...rest: any[]) { } -// f `${ f } ${ f }` - - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === - -// function /*FIND ALL REFS*/[|f|](...rest: any[]) { } -// [|f|] `${ [|f|] } ${ [|f|] }` - - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === - -// function [|f|](...rest: any[]) { } -// /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` - - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === - -// function [|f|](...rest: any[]) { } -// f `${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` - - - - -// === findAllReferences === -// === /findAllRefsInsideTemplates2.ts === - -// function [|f|](...rest: any[]) { } -// f `${ f } ${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideWithBlock.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideWithBlock.baseline.jsonc deleted file mode 100644 index d35e86b4d2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsInsideWithBlock.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === - -// /*FIND ALL REFS*/var x = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === - -// var /*FIND ALL REFS*/[|x|] = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// y++; // also reference for y should be ignored -// } -// -// [|x|] = [|x|] + 1; - - - - -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === - -// var [|x|] = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// y++; // also reference for y should be ignored -// } -// -// /*FIND ALL REFS*/[|x|] = [|x|] + 1; - - - - -// === findAllReferences === -// === /findAllRefsInsideWithBlock.ts === - -// var [|x|] = 0; -// -// with ({}) { -// var y = x; // Reference of x here should not be picked -// y++; // also reference for y should be ignored -// } -// -// x = /*FIND ALL REFS*/[|x|] = [|x|] + 1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIsDefinition.baseline.jsonc deleted file mode 100644 index 640e9faa8d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsIsDefinition.baseline.jsonc +++ /dev/null @@ -1,115 +0,0 @@ -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === - -// declare function [|foo|](a: number): number; -// declare function [|foo|](a: string): string; -// declare function foo/*FIND ALL REFS*/[|foo|](a: string | number): string | number; -// -// function foon(a: number): number; -// function foon(a: string): string; -// function foon(a: string | number): string | number { -// return a -// } -// -// [|foo|]; foon; -// -// export const bar = 123; -// console.log({ bar }); -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === - -// declare function foo(a: number): number; -// declare function foo(a: string): string; -// declare function foo(a: string | number): string | number; -// -// function [|foon|](a: number): number; -// function [|foon|](a: string): string; -// function foon/*FIND ALL REFS*/[|foon|](a: string | number): string | number { -// return a -// } -// -// foo; [|foon|]; -// -// export const bar = 123; -// console.log({ bar }); -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === - -// --- (line: 9) skipped --- -// -// foo; foon; -// -// export const bar/*FIND ALL REFS*/[|bar|] = 123; -// console.log({ [|bar|] }); -// -// interface IFoo { -// foo(): void; -// // --- (line: 18) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === - -// --- (line: 13) skipped --- -// console.log({ bar }); -// -// interface IFoo { -// foo/*FIND ALL REFS*/[|foo|](): void; -// } -// class Foo implements IFoo { -// constructor(n: number) -// constructor() -// constructor(n: number?) { } -// [|foo|](): void { } -// static init() { return new this() } -// } - - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === - -// --- (line: 15) skipped --- -// interface IFoo { -// foo(): void; -// } -// class [|Foo|] implements IFoo { -// constructor(n: number) -// constructor() -// /*FIND ALL REFS*/constructor(n: number?) { } -// foo(): void { } -// static init() { return new this() } -// } - - - - -// === findAllReferences === -// === /findAllRefsIsDefinition.ts === - -// --- (line: 13) skipped --- -// console.log({ bar }); -// -// interface IFoo { -// [|foo|](): void; -// } -// class Foo implements IFoo { -// constructor(n: number) -// constructor() -// constructor(n: number?) { } -// foo/*FIND ALL REFS*/[|foo|](): void { } -// static init() { return new this() } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag.baseline.jsonc deleted file mode 100644 index 194115ed98..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// /** -// * @import { A } from "./b"; -// */ -// -// /** -// * @param { A/*FIND ALL REFS*/[|A|] } a -// */ -// function f(a) {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag2.baseline.jsonc deleted file mode 100644 index a2ec533fb8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag2.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /component.js === - -// export default class [|Component|] { -// constructor() { -// this.id_ = Math.random(); -// } -// // --- (line: 5) skipped --- - - -// === /player.js === - -// import [|Component|] from './component.js'; -// -// /** -// * @extends Component/*FIND ALL REFS*/[|Component|] -// */ -// export class Player extends [|Component|] {} - - -// === /spatial-navigation.js === - -// /** @import Component from './component.js' */ -// -// export class SpatialNavigation { -// /** -// * @param {[|Component|]} component -// */ -// add(component) {} -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag3.baseline.jsonc deleted file mode 100644 index 7ad3975207..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag3.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /component.js === - -// export class [|Component|] { -// constructor() { -// this.id_ = Math.random(); -// } -// // --- (line: 5) skipped --- - - -// === /player.js === - -// import { [|Component|] } from './component.js'; -// -// /** -// * @extends Component/*FIND ALL REFS*/[|Component|] -// */ -// export class Player extends [|Component|] {} - - -// === /spatial-navigation.js === - -// /** @import { Component } from './component.js' */ -// -// export class SpatialNavigation { -// /** -// * @param {[|Component|]} component -// */ -// add(component) {} -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag4.baseline.jsonc deleted file mode 100644 index b5667df472..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag4.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /player.js === - -// import * as [|C|] from './component.js'; -// -// /** -// * @extends C/*FIND ALL REFS*/[|C|].Component -// */ -// export class Player extends Component {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag5.baseline.jsonc deleted file mode 100644 index a0f27113d0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocImportTag5.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// export default function /*FIND ALL REFS*/[|a|]() {} - - - - -// === findAllReferences === -// === /b.js === - -// /** @import /*FIND ALL REFS*/a, * as ns from "./a" */ diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_class.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_class.baseline.jsonc deleted file mode 100644 index bd853462b7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_class.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_class.ts === - -// /** @template /*FIND ALL REFS*/T */ -// class C {} - - - - -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_class.ts === - -// /** @template T */ -// class C {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_function.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_function.baseline.jsonc deleted file mode 100644 index 6ce6028fed..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTemplateTag_function.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_function.ts === - -// /** @template /*FIND ALL REFS*/T */ -// function f() {} - - - - -// === findAllReferences === -// === /findAllRefsJsDocTemplateTag_function.ts === - -// /** @template T */ -// function f() {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTypeDef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTypeDef.baseline.jsonc deleted file mode 100644 index 293f64aee6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsDocTypeDef.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /findAllRefsJsDocTypeDef.ts === - -// /** @typedef {Object} /*FIND ALL REFS*/T */ -// function foo() {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment.baseline.jsonc deleted file mode 100644 index 44c5225d74..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// import { infer } from "./infer"; -// infer({ -// m() { -// this.[|x|] = 1; -// this./*FIND ALL REFS*/[|x|]; -// }, -// }); - - -// === /infer.d.ts === - -// export declare function infer(o: { m(): void } & ThisType<{ [|x|]: number }>): void; - - - - -// === findAllReferences === -// === /b.js === - -// --- (line: 4) skipped --- -// function infer(o) {} -// infer({ -// m() { -// this.[|x|] = 2; -// this./*FIND ALL REFS*/[|x|]; -// }, -// }); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment2.baseline.jsonc deleted file mode 100644 index 91781f1b5b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsJsThisPropertyAssignment2.baseline.jsonc +++ /dev/null @@ -1,64 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this./*FIND ALL REFS*/[|x|]; -// }, -// } -// }); - - -// === /b.ts === - -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this.[|x|]; -// }, -// } -// }); - - -// === /infer.d.ts === - -// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; - - - - -// === findAllReferences === -// === /a.js === - -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this.[|x|]; -// }, -// } -// }); - - -// === /b.ts === - -// import { infer } from "./infer"; -// infer({ -// m: { -// initData() { -// this.[|x|] = 1; -// this./*FIND ALL REFS*/[|x|]; -// }, -// } -// }); - - -// === /infer.d.ts === - -// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType.baseline.jsonc deleted file mode 100644 index 595ca19d09..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllRefsMappedType.ts === - -// interface T { /*FIND ALL REFS*/[|a|]: number; } -// type U = { readonly [K in keyof T]?: string }; -// declare const t: T; -// t.[|a|]; -// declare const u: U; -// u.[|a|]; - - - - -// === findAllReferences === -// === /findAllRefsMappedType.ts === - -// interface T { [|a|]: number; } -// type U = { readonly [K in keyof T]?: string }; -// declare const t: T; -// t./*FIND ALL REFS*/[|a|]; -// declare const u: U; -// u.[|a|]; - - - - -// === findAllReferences === -// === /findAllRefsMappedType.ts === - -// interface T { [|a|]: number; } -// type U = { readonly [K in keyof T]?: string }; -// declare const t: T; -// t.[|a|]; -// declare const u: U; -// u./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType_nonHomomorphic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType_nonHomomorphic.baseline.jsonc deleted file mode 100644 index a424fcaed1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMappedType_nonHomomorphic.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findAllReferences === -// === /findAllRefsMappedType_nonHomomorphic.ts === - -// function f(x: { [K in "m"]: number; }) { -// x./*FIND ALL REFS*/[|m|]; -// x.[|m|] -// } - - - - -// === findAllReferences === -// === /findAllRefsMappedType_nonHomomorphic.ts === - -// function f(x: { [K in "m"]: number; }) { -// x.[|m|]; -// x./*FIND ALL REFS*/[|m|] -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc deleted file mode 100644 index 3084b91d0c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findAllReferences === -// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === - -// // https://github.com/microsoft/TypeScript/issues/5551 -// import { resolve/*FIND ALL REFS*/ as resolveUrl } from "idontcare"; -// import { resolve } from "whatever"; - - - - -// === findAllReferences === -// === /findAllRefsMissingModulesOverlappingSpecifiers.ts === - -// // https://github.com/microsoft/TypeScript/issues/5551 -// import { resolve as resolveUrl } from "idontcare"; -// import { resolve/*FIND ALL REFS*/[|resolve|] } from "whatever"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoImportClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoImportClause.baseline.jsonc deleted file mode 100644 index aca1027ca4..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoImportClause.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/export const x = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export const /*FIND ALL REFS*/[|x|] = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc deleted file mode 100644 index 68196163ac..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /findAllRefsNoSubstitutionTemplateLiteralNoCrash1.ts === - -// type Test = `T/*FIND ALL REFS*/`; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonModule.baseline.jsonc deleted file mode 100644 index d0673c78f8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonModule.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findAllReferences === -// === /import.ts === - -// import "./script/*FIND ALL REFS*/"; - - - - -// === findAllReferences === -// === /require.js === - -// require("./script/*FIND ALL REFS*/"); -// console.log("./script"); - - - - -// === findAllReferences === -// === /require.js === - -// require("./script"); -// console.log("./script/*FIND ALL REFS*/"); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonexistentPropertyNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonexistentPropertyNoCrash1.baseline.jsonc deleted file mode 100644 index 6557f2d5a6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsNonexistentPropertyNoCrash1.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /src/parser.js === - -// --- (line: 10) skipped --- -// variable: function () { -// let name; -// -// if (parserInput.currentChar() === "/*FIND ALL REFS*/@") { -// return name[1]; -// } -// }, -// // --- (line: 18) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName01.baseline.jsonc deleted file mode 100644 index 1b331d7fc8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName01.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName01.ts === - -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { [|property1|]: prop1 } = foo; - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName01.ts === - -// --- (line: 3) skipped --- -// } -// -// var foo: I; -// /*FIND ALL REFS*/var { property1: prop1 } = foo; - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName01.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { /*FIND ALL REFS*/[|property1|]: prop1 } = foo; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName02.baseline.jsonc deleted file mode 100644 index 6407c6031f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName02.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName02.ts === - -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { [|property1|]: {} } = foo; - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName02.ts === - -// --- (line: 3) skipped --- -// } -// -// var foo: I; -// /*FIND ALL REFS*/var { property1: {} } = foo; - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName02.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { /*FIND ALL REFS*/[|property1|]: {} } = foo; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName03.baseline.jsonc deleted file mode 100644 index 693b834f7f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName03.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName03.ts === - -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var [ { [|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName03.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var [ { property1: prop1 }, { /*FIND ALL REFS*/[|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName04.baseline.jsonc deleted file mode 100644 index 915b803c98..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName04.baseline.jsonc +++ /dev/null @@ -1,66 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === - -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// function f({ [|property1|]: p1 }: I, -// { [|property1|] }: I, -// { property1: p2 }) { -// -// return property1 + 1; -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// function f({ /*FIND ALL REFS*/[|property1|]: p1 }: I, -// { [|property1|] }: I, -// { property1: p2 }) { -// -// return property1 + 1; -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// function f({ [|property1|]: p1 }: I, -// { /*FIND ALL REFS*/[|property1|] }: I, -// { property1: p2 }) { -// -// return [|property1|] + 1; -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName04.ts === - -// --- (line: 3) skipped --- -// } -// -// function f({ property1: p1 }: I, -// { [|property1|] }: I, -// { property1: p2 }) { -// -// return /*FIND ALL REFS*/[|property1|] + 1; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName05.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName05.baseline.jsonc deleted file mode 100644 index 3978cfa9f9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName05.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName05.ts === - -// interface I { -// property1: number; -// property2: string; -// } -// -// function f({ /*FIND ALL REFS*/property1: p }, { property1 }) { -// let x = property1; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName06.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName06.baseline.jsonc deleted file mode 100644 index 8e498e58b7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName06.baseline.jsonc +++ /dev/null @@ -1,106 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === - -// interface I { -// /*FIND ALL REFS*/[|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { /*FIND ALL REFS*/[|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { /*FIND ALL REFS*/[|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { [|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ /*FIND ALL REFS*/[|property1|] : p2 } of elems) { -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName06.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var elems: I[]; -// for (let { [|property1|]: p } of elems) { -// } -// for (let { /*FIND ALL REFS*/[|property1|] } of elems) { -// } -// for (var { [|property1|]: p1 } of elems) { -// } -// var p2; -// for ({ [|property1|] : p2 } of elems) { -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName07.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName07.baseline.jsonc deleted file mode 100644 index 1a23173a81..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName07.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName07.ts === - -// let p, b; -// -// p, [{ /*FIND ALL REFS*/[|a|]: p, b }] = [{ [|a|]: 10, b: true }]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName10.baseline.jsonc deleted file mode 100644 index 8e72d7afce..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsObjectBindingElementPropertyName10.baseline.jsonc +++ /dev/null @@ -1,52 +0,0 @@ -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === - -// interface Recursive { -// /*FIND ALL REFS*/[|next|]?: Recursive; -// value: any; -// } -// -// function f ({ [|next|]: { [|next|]: x} }: Recursive) { -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === - -// interface Recursive { -// next?: Recursive; -// value: any; -// } -// -// function f (/*FIND ALL REFS*/{ next: { next: x} }: Recursive) { -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === - -// interface Recursive { -// [|next|]?: Recursive; -// value: any; -// } -// -// function f ({ /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { -// } - - - - -// === findAllReferences === -// === /findAllRefsObjectBindingElementPropertyName10.ts === - -// interface Recursive { -// [|next|]?: Recursive; -// value: any; -// } -// -// function f ({ next: { /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOfConstructor_withModifier.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOfConstructor_withModifier.baseline.jsonc deleted file mode 100644 index 79cc67c300..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOfConstructor_withModifier.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOfConstructor_withModifier.ts === - -// class [|X|] { -// public /*FIND ALL REFS*/constructor() {} -// } -// var x = new [|X|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDecorators.baseline.jsonc deleted file mode 100644 index 0ed9171424..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDecorators.baseline.jsonc +++ /dev/null @@ -1,107 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/function decorator(target) { -// return target; -// } -// decorator(); - - - - -// === findAllReferences === -// === /a.ts === - -// function /*FIND ALL REFS*/[|decorator|](target) { -// return target; -// } -// [|decorator|](); - - -// === /b.ts === - -// @[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - - -// === findAllReferences === -// === /a.ts === - -// function [|decorator|](target) { -// return target; -// } -// /*FIND ALL REFS*/[|decorator|](); - - -// === /b.ts === - -// @[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - - -// === findAllReferences === -// === /a.ts === - -// function [|decorator|](target) { -// return target; -// } -// [|decorator|](); - - -// === /b.ts === - -// @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - - -// === findAllReferences === -// === /a.ts === - -// function [|decorator|](target) { -// return target; -// } -// [|decorator|](); - - -// === /b.ts === - -// @decorator @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") -// class C { -// @[|decorator|] -// method() {} -// } - - - - -// === findAllReferences === -// === /a.ts === - -// function [|decorator|](target) { -// return target; -// } -// [|decorator|](); - - -// === /b.ts === - -// @[|decorator|] @[|decorator|]("again") -// class C { -// @/*FIND ALL REFS*/[|decorator|] -// method() {} -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition.baseline.jsonc deleted file mode 100644 index 483317456a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition.baseline.jsonc +++ /dev/null @@ -1,62 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOnDefinition-import.ts === - -// --- (line: 3) skipped --- -// -// } -// -// /*FIND ALL REFS*/public start(){ -// return this; -// } -// -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsOnDefinition-import.ts === - -// --- (line: 3) skipped --- -// -// } -// -// public /*FIND ALL REFS*/[|start|](){ -// return this; -// } -// -// // --- (line: 11) skipped --- - - -// === /findAllRefsOnDefinition.ts === - -// import Second = require("./findAllRefsOnDefinition-import"); -// -// var second = new Second.Test() -// second.[|start|](); -// second.stop(); - - - - -// === findAllReferences === -// === /findAllRefsOnDefinition-import.ts === - -// --- (line: 3) skipped --- -// -// } -// -// public [|start|](){ -// return this; -// } -// -// // --- (line: 11) skipped --- - - -// === /findAllRefsOnDefinition.ts === - -// import Second = require("./findAllRefsOnDefinition-import"); -// -// var second = new Second.Test() -// second./*FIND ALL REFS*/[|start|](); -// second.stop(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition2.baseline.jsonc deleted file mode 100644 index b8e8d6fe68..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnDefinition2.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOnDefinition2-import.ts === - -// export module Test{ -// -// /*FIND ALL REFS*/export interface start { } -// -// export interface stop { } -// } - - - - -// === findAllReferences === -// === /findAllRefsOnDefinition2-import.ts === - -// export module Test{ -// -// export interface /*FIND ALL REFS*/[|start|] { } -// -// export interface stop { } -// } - - -// === /findAllRefsOnDefinition2.ts === - -// import Second = require("./findAllRefsOnDefinition2-import"); -// -// var start: Second.Test.[|start|]; -// var stop: Second.Test.stop; - - - - -// === findAllReferences === -// === /findAllRefsOnDefinition2-import.ts === - -// export module Test{ -// -// export interface [|start|] { } -// -// export interface stop { } -// } - - -// === /findAllRefsOnDefinition2.ts === - -// import Second = require("./findAllRefsOnDefinition2-import"); -// -// var start: Second.Test./*FIND ALL REFS*/[|start|]; -// var stop: Second.Test.stop; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases.baseline.jsonc deleted file mode 100644 index d775aa9da9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export class /*FIND ALL REFS*/[|Class|] { -// } - - -// === /b.ts === - -// import { [|Class|] } from "./a"; -// -// var c = new [|Class|](); - - - - -// === findAllReferences === -// === /a.ts === - -// export class [|Class|] { -// } - - -// === /b.ts === - -// import { /*FIND ALL REFS*/[|Class|] } from "./a"; -// -// var c = new [|Class|](); - - - - -// === findAllReferences === -// === /a.ts === - -// export class [|Class|] { -// } - - -// === /b.ts === - -// import { [|Class|] } from "./a"; -// -// var c = new /*FIND ALL REFS*/[|Class|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnPrivateParameterProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnPrivateParameterProperty1.baseline.jsonc deleted file mode 100644 index 407551ecf5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnPrivateParameterProperty1.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findAllReferences === -// === /findAllRefsOnPrivateParameterProperty1.ts === - -// class ABCD { -// constructor(private x: number, public y: number, /*FIND ALL REFS*/private z: number) { -// } -// -// func() { -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsOnPrivateParameterProperty1.ts === - -// class ABCD { -// constructor(private x: number, public y: number, private /*FIND ALL REFS*/[|z|]: number) { -// } -// -// func() { -// return this.[|z|]; -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsOnPrivateParameterProperty1.ts === - -// class ABCD { -// constructor(private x: number, public y: number, private [|z|]: number) { -// } -// -// func() { -// return this./*FIND ALL REFS*/[|z|]; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration1.baseline.jsonc deleted file mode 100644 index 1051fef3e0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration1.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration1.ts === - -// class Foo { -// constructor(private /*FIND ALL REFS*/[|privateParam|]: number) { -// let localPrivate = [|privateParam|]; -// this.[|privateParam|] += 10; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration2.baseline.jsonc deleted file mode 100644 index 7ad1bdc9fd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration2.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration2.ts === - -// class Foo { -// constructor(public /*FIND ALL REFS*/[|publicParam|]: number) { -// let localPublic = [|publicParam|]; -// this.[|publicParam|] += 10; -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration2.ts === - -// class Foo { -// constructor(public [|publicParam|]: number) { -// let localPublic = /*FIND ALL REFS*/[|publicParam|]; -// this.[|publicParam|] += 10; -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration2.ts === - -// class Foo { -// constructor(public [|publicParam|]: number) { -// let localPublic = [|publicParam|]; -// this./*FIND ALL REFS*/[|publicParam|] += 10; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration3.baseline.jsonc deleted file mode 100644 index a0cdacdd22..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration3.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration3.ts === - -// class Foo { -// constructor(protected /*FIND ALL REFS*/[|protectedParam|]: number) { -// let localProtected = [|protectedParam|]; -// this.[|protectedParam|] += 10; -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration3.ts === - -// class Foo { -// constructor(protected [|protectedParam|]: number) { -// let localProtected = /*FIND ALL REFS*/[|protectedParam|]; -// this.[|protectedParam|] += 10; -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration3.ts === - -// class Foo { -// constructor(protected [|protectedParam|]: number) { -// let localProtected = [|protectedParam|]; -// this./*FIND ALL REFS*/[|protectedParam|] += 10; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc deleted file mode 100644 index 2a68d0dcfe..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc +++ /dev/null @@ -1,61 +0,0 @@ -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - -// class C { -// constructor(public /*FIND ALL REFS*/[|x|]: string) { -// [|x|]; -// } -// } -// class D extends C { -// constructor(public [|x|]: string) { -// super([|x|]); -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - -// class C { -// constructor(public [|x|]: string) { -// /*FIND ALL REFS*/[|x|]; -// } -// } -// class D extends C { -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - -// class C { -// constructor(public [|x|]: string) { -// [|x|]; -// } -// } -// class D extends C { -// constructor(public /*FIND ALL REFS*/[|x|]: string) { -// super([|x|]); -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - -// class C { -// constructor(public [|x|]: string) { -// [|x|]; -// } -// } -// class D extends C { -// constructor(public [|x|]: string) { -// super(/*FIND ALL REFS*/[|x|]); -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrimitiveJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrimitiveJsDoc.baseline.jsonc deleted file mode 100644 index a4a258ac83..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrimitiveJsDoc.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === - -// /** -// * @param {/*FIND ALL REFS*/[|number|]} n -// * @returns {[|number|]} -// */ -// function f(n: [|number|]): [|number|] {} - - - - -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === - -// /** -// * @param {[|number|]} n -// * @returns {/*FIND ALL REFS*/[|number|]} -// */ -// function f(n: [|number|]): [|number|] {} - - - - -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === - -// /** -// * @param {[|number|]} n -// * @returns {[|number|]} -// */ -// function f(n: /*FIND ALL REFS*/[|number|]): [|number|] {} - - - - -// === findAllReferences === -// === /findAllRefsPrimitiveJsDoc.ts === - -// /** -// * @param {[|number|]} n -// * @returns {[|number|]} -// */ -// function f(n: number): /*FIND ALL REFS*/[|number|]): [|number|] {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameAccessors.baseline.jsonc deleted file mode 100644 index b60326f81a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameAccessors.baseline.jsonc +++ /dev/null @@ -1,155 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// class C { -// /*FIND ALL REFS*/get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// class C { -// get /*FIND ALL REFS*/[|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// class C { -// get #foo(){ return 1; } -// /*FIND ALL REFS*/set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// class C { -// get [|#foo|](){ return 1; } -// set /*FIND ALL REFS*/[|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// class C { -// get [|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// --- (line: 11) skipped --- -// } -// } -// class E { -// /*FIND ALL REFS*/get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// --- (line: 11) skipped --- -// } -// } -// class E { -// get /*FIND ALL REFS*/[|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// --- (line: 12) skipped --- -// } -// class E { -// get #foo(){ return 1; } -// /*FIND ALL REFS*/set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// --- (line: 11) skipped --- -// } -// } -// class E { -// get [|#foo|](){ return 1; } -// set /*FIND ALL REFS*/[|#foo|](value: number){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameAccessors.ts === - -// --- (line: 11) skipped --- -// } -// } -// class E { -// get [|#foo|](){ return 1; } -// set [|#foo|](value: number){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameMethods.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameMethods.baseline.jsonc deleted file mode 100644 index f24a72a75c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameMethods.baseline.jsonc +++ /dev/null @@ -1,58 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === - -// class C { -// /*FIND ALL REFS*/[|#foo|](){ } -// constructor() { -// this.[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === - -// class C { -// [|#foo|](){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } -// class D extends C { -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === - -// --- (line: 10) skipped --- -// } -// } -// class E { -// /*FIND ALL REFS*/[|#foo|](){ } -// constructor() { -// this.[|#foo|](); -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameMethods.ts === - -// --- (line: 10) skipped --- -// } -// } -// class E { -// [|#foo|](){ } -// constructor() { -// this./*FIND ALL REFS*/[|#foo|](); -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameProperties.baseline.jsonc deleted file mode 100644 index 9cca24a9f5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPrivateNameProperties.baseline.jsonc +++ /dev/null @@ -1,76 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === - -// class C { -// /*FIND ALL REFS*/[|#foo|] = 10; -// constructor() { -// this.[|#foo|] = 20; -// [|#foo|] in this; -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === - -// class C { -// [|#foo|] = 10; -// constructor() { -// this./*FIND ALL REFS*/[|#foo|] = 20; -// [|#foo|] in this; -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === - -// class C { -// [|#foo|] = 10; -// constructor() { -// this.[|#foo|] = 20; -// /*FIND ALL REFS*/[|#foo|] in this; -// } -// } -// class D extends C { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === - -// --- (line: 11) skipped --- -// } -// } -// class E { -// /*FIND ALL REFS*/[|#foo|]: number; -// constructor() { -// this.[|#foo|] = 20; -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsPrivateNameProperties.ts === - -// --- (line: 11) skipped --- -// } -// } -// class E { -// [|#foo|]: number; -// constructor() { -// this./*FIND ALL REFS*/[|#foo|] = 20; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc deleted file mode 100644 index 82414b2b25..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findAllReferences === -// === /findAllRefsPropertyContextuallyTypedByTypeParam01.ts === - -// interface IFoo { -// /*FIND ALL REFS*/[|a|]: string; -// } -// class C { -// method() { -// var x: T = { -// [|a|]: "" -// }; -// x.[|a|]; -// } -// } -// -// -// var x: IFoo = { -// [|a|]: "ss" -// }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc deleted file mode 100644 index 3f5ad70a2c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/export { x }; - - - - -// === findAllReferences === -// === /a.ts === - -// export { /*FIND ALL REFS*/x }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken2.baseline.jsonc deleted file mode 100644 index 559cb63f09..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsReExport_broken2.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/export { x } from "nonsense"; - - - - -// === findAllReferences === -// === /a.ts === - -// export { /*FIND ALL REFS*/x } from "nonsense"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc deleted file mode 100644 index 33f988fd9a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - -// interface A { -// readonly /*FIND ALL REFS*/[|x|]: number | string; -// } -// interface B extends A { -// readonly [|x|]: number; -// } -// const a: A = { [|x|]: 0 }; -// const b: B = { [|x|]: 0 }; - - - - -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - -// interface A { -// readonly [|x|]: number | string; -// } -// interface B extends A { -// readonly /*FIND ALL REFS*/[|x|]: number; -// } -// const a: A = { [|x|]: 0 }; -// const b: B = { [|x|]: 0 }; - - - - -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - -// interface A { -// readonly [|x|]: number | string; -// } -// interface B extends A { -// readonly [|x|]: number; -// } -// const a: A = { /*FIND ALL REFS*/[|x|]: 0 }; -// const b: B = { [|x|]: 0 }; - - - - -// === findAllReferences === -// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - -// interface A { -// readonly [|x|]: number | string; -// } -// interface B extends A { -// readonly [|x|]: number; -// } -// const a: A = { [|x|]: 0 }; -// const b: B = { /*FIND ALL REFS*/[|x|]: 0 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRootSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRootSymbols.baseline.jsonc deleted file mode 100644 index 7b17dcb086..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsRootSymbols.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === - -// interface I { /*FIND ALL REFS*/[|x|]: {}; } -// interface J { x: {}; } -// declare const o: (I | J) & { x: string }; -// o.[|x|]; - - - - -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === - -// interface I { x: {}; } -// interface J { /*FIND ALL REFS*/[|x|]: {}; } -// declare const o: (I | J) & { x: string }; -// o.[|x|]; - - - - -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === - -// interface I { x: {}; } -// interface J { x: {}; } -// declare const o: (I | J) & { /*FIND ALL REFS*/[|x|]: string }; -// o.[|x|]; - - - - -// === findAllReferences === -// === /findAllRefsRootSymbols.ts === - -// interface I { [|x|]: {}; } -// interface J { [|x|]: {}; } -// declare const o: (I | J) & { [|x|]: string }; -// o./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeyword.baseline.jsonc deleted file mode 100644 index 85287fafda..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeyword.baseline.jsonc +++ /dev/null @@ -1,170 +0,0 @@ -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// /*FIND ALL REFS*/[|this|]; -// function f(this) { -// return this; -// function g(this) { return this; } -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// this; -// function f(/*FIND ALL REFS*/[|this|]) { -// return [|this|]; -// function g(this) { return this; } -// } -// class C { -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// this; -// function f([|this|]) { -// return /*FIND ALL REFS*/[|this|]; -// function g(this) { return this; } -// } -// class C { -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// this; -// function f(this) { -// return this; -// function g(/*FIND ALL REFS*/[|this|]) { return [|this|]; } -// } -// class C { -// static x() { -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// this; -// function f(this) { -// return this; -// function g(this) { return /*FIND ALL REFS*/[|this|]) { return [|this|]; } -// } -// class C { -// static x() { -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// --- (line: 4) skipped --- -// } -// class C { -// static x() { -// /*FIND ALL REFS*/[|this|]; -// } -// static y() { -// () => [|this|]; -// } -// constructor() { -// this; -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// --- (line: 4) skipped --- -// } -// class C { -// static x() { -// [|this|]; -// } -// static y() { -// () => /*FIND ALL REFS*/[|this|]; -// } -// constructor() { -// this; -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// --- (line: 10) skipped --- -// () => this; -// } -// constructor() { -// /*FIND ALL REFS*/[|this|]; -// } -// method() { -// () => [|this|]; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// --- (line: 10) skipped --- -// () => this; -// } -// constructor() { -// [|this|]; -// } -// method() { -// () => /*FIND ALL REFS*/[|this|]; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// --- (line: 17) skipped --- -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { /*FIND ALL REFS*/[|this|]: 0 } -// x.[|this|]; - - - - -// === findAllReferences === -// === /findAllRefsThisKeyword.ts === - -// --- (line: 17) skipped --- -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { [|this|]: 0 } -// x./*FIND ALL REFS*/[|this|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeywordMultipleFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeywordMultipleFiles.baseline.jsonc deleted file mode 100644 index 84f2d2a7eb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsThisKeywordMultipleFiles.baseline.jsonc +++ /dev/null @@ -1,70 +0,0 @@ -// === findAllReferences === -// === /file1.ts === - -// /*FIND ALL REFS*/[|this|]; [|this|]; - - - - -// === findAllReferences === -// === /file1.ts === - -// this; /*FIND ALL REFS*/[|this|]; [|this|]; - - - - -// === findAllReferences === -// === /file2.ts === - -// /*FIND ALL REFS*/[|this|]; -// [|this|]; - - - - -// === findAllReferences === -// === /file2.ts === - -// [|this|]; -// /*FIND ALL REFS*/[|this|]; - - - - -// === findAllReferences === -// === /file3.ts === - -// ((x = /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); -// // different 'this' -// function f(this) { return this; } - - - - -// === findAllReferences === -// === /file3.ts === - -// ((x = this, y) => /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); -// // different 'this' -// function f(this) { return this; } - - - - -// === findAllReferences === -// === /file3.ts === - -// ((x = this, y) => this)(/*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); -// // different 'this' -// function f(this) { return this; } - - - - -// === findAllReferences === -// === /file3.ts === - -// ((x = this, y) => this)(this, /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); -// // different 'this' -// function f(this) { return this; } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeParameterInMergedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeParameterInMergedInterface.baseline.jsonc deleted file mode 100644 index db5de047a8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeParameterInMergedInterface.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === - -// interface I { a: [|T|] } -// interface I<[|T|]> { b: [|T|] } - - - - -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === - -// interface I { a: /*FIND ALL REFS*/[|T|]> { a: [|T|] } -// interface I<[|T|]> { b: [|T|] } - - - - -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === - -// interface I<[|T|]> { a: [|T|] } -// interface I { b: [|T|] } - - - - -// === findAllReferences === -// === /findAllRefsTypeParameterInMergedInterface.ts === - -// interface I<[|T|]> { a: [|T|] } -// interface I { b: /*FIND ALL REFS*/[|T|]> { b: [|T|] } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef.baseline.jsonc deleted file mode 100644 index 003ada99ce..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// /** -// * @typedef I {Object} -// * /*FIND ALL REFS*/@prop p {number} -// */ -// -// /** @type {I} */ -// let x; -// x.p; - - - - -// === findAllReferences === -// === /a.js === - -// /** -// * @typedef I {Object} -// * @prop /*FIND ALL REFS*/p {number} -// */ -// -// /** @type {I} */ -// let x; -// x.p; - - - - -// === findAllReferences === -// === /a.js === - -// --- (line: 4) skipped --- -// -// /** @type {I} */ -// let x; -// x./*FIND ALL REFS*/[|p|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef_importType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef_importType.baseline.jsonc deleted file mode 100644 index 66ce333a8f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypedef_importType.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// module.exports = 0; -// /** /*FIND ALL REFS*/@typedef {number} Foo */ -// const dummy = 0; - - - - -// === findAllReferences === -// === /a.js === - -// module.exports = 0; -// /** @typedef {number} /*FIND ALL REFS*/Foo */ -// const dummy = 0; - - - - -// === findAllReferences === -// === /b.js === - -// /** @type {import('./a')./*FIND ALL REFS*/Foo} */ -// const x = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeofImport.baseline.jsonc deleted file mode 100644 index 78be51693f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsTypeofImport.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/export const x = 0; -// declare const a: typeof import("./a"); -// a.x; - - - - -// === findAllReferences === -// === /a.ts === - -// export const /*FIND ALL REFS*/[|x|] = 0; -// declare const a: typeof import("./a"); -// a.[|x|]; - - - - -// === findAllReferences === -// === /a.ts === - -// export const [|x|] = 0; -// declare const a: typeof import("./a"); -// a./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnionProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnionProperty.baseline.jsonc deleted file mode 100644 index 7afaaa75e1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnionProperty.baseline.jsonc +++ /dev/null @@ -1,167 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { /*FIND ALL REFS*/[|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t.[|type|]; -// } - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { [|type|]: "a", prop: number } -// | { /*FIND ALL REFS*/[|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t.[|type|]; -// } - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { [|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t./*FIND ALL REFS*/[|type|] === "a") { -// t.[|type|]; -// } else { -// t.[|type|]; -// } - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { [|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t./*FIND ALL REFS*/[|type|]; -// } else { -// t.[|type|]; -// } - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { [|type|]: "a", prop: number } -// | { [|type|]: "b", prop: string }; -// const tt: T = { -// [|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t./*FIND ALL REFS*/[|type|]; -// } - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { [|type|]: "a", prop: number } -// | { type: "b", prop: string }; -// const tt: T = { -// /*FIND ALL REFS*/[|type|]: "a", -// prop: 0, -// }; -// declare const t: T; -// if (t.[|type|] === "a") { -// t.[|type|]; -// } else { -// t.type; -// } - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { type: "a", /*FIND ALL REFS*/[|prop|]: number } -// | { type: "b", [|prop|]: string }; -// const tt: T = { -// type: "a", -// [|prop|]: 0, -// }; -// declare const t: T; -// if (t.type === "a") { -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { type: "a", [|prop|]: number } -// | { type: "b", /*FIND ALL REFS*/[|prop|]: string }; -// const tt: T = { -// type: "a", -// [|prop|]: 0, -// }; -// declare const t: T; -// if (t.type === "a") { -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsUnionProperty.ts === - -// type T = -// | { type: "a", [|prop|]: number } -// | { type: "b", prop: string }; -// const tt: T = { -// type: "a", -// /*FIND ALL REFS*/[|prop|]: 0, -// }; -// declare const t: T; -// if (t.type === "a") { -// // --- (line: 10) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols1.baseline.jsonc deleted file mode 100644 index af8ae38dbe..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols1.baseline.jsonc +++ /dev/null @@ -1,126 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: /*FIND ALL REFS*/[|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: [|Bar|]; -// let b: /*FIND ALL REFS*/[|Bar|]; -// let c: [|Bar|]; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: /*FIND ALL REFS*/[|Bar|]; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: /*FIND ALL REFS*/[|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: [|Bar|].X; -// let e: /*FIND ALL REFS*/[|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: /*FIND ALL REFS*/[|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar./*FIND ALL REFS*/[|X|]; -// let e: Bar.[|X|]; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.[|X|]; -// let e: Bar./*FIND ALL REFS*/[|X|]; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar./*FIND ALL REFS*/[|X|].Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols1.ts === - -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols2.baseline.jsonc deleted file mode 100644 index 4835af1a9a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols2.baseline.jsonc +++ /dev/null @@ -1,155 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { /*FIND ALL REFS*/[|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { [|Bar|] } from "does-not-exist"; -// -// let a: /*FIND ALL REFS*/[|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: /*FIND ALL REFS*/[|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: /*FIND ALL REFS*/[|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: /*FIND ALL REFS*/[|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: /*FIND ALL REFS*/[|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { [|Bar|] } from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: /*FIND ALL REFS*/[|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { Bar } from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar./*FIND ALL REFS*/[|X|]; -// let e: Bar.[|X|]; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// import { Bar } from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.[|X|]; -// let e: Bar./*FIND ALL REFS*/[|X|]; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar./*FIND ALL REFS*/[|X|].Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols2.ts === - -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols3.baseline.jsonc deleted file mode 100644 index 68a4f7d54e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsUnresolvedSymbols3.baseline.jsonc +++ /dev/null @@ -1,155 +0,0 @@ -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as /*FIND ALL REFS*/[|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as [|Bar|] from "does-not-exist"; -// -// let a: /*FIND ALL REFS*/[|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: /*FIND ALL REFS*/[|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: /*FIND ALL REFS*/[|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: /*FIND ALL REFS*/[|Bar|].X; -// let e: [|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: /*FIND ALL REFS*/[|Bar|].X; -// let f: [|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as [|Bar|] from "does-not-exist"; -// -// let a: [|Bar|]; -// let b: [|Bar|]; -// let c: [|Bar|]; -// let d: [|Bar|].X; -// let e: [|Bar|].X; -// let f: /*FIND ALL REFS*/[|Bar|].X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as Bar from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar./*FIND ALL REFS*/[|X|]; -// let e: Bar.[|X|]; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// import * as Bar from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; -// let c: Bar; -// let d: Bar.[|X|]; -// let e: Bar./*FIND ALL REFS*/[|X|]; -// let f: Bar.X.Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar./*FIND ALL REFS*/[|X|].Y; - - - - -// === findAllReferences === -// === /findAllRefsUnresolvedSymbols3.ts === - -// --- (line: 4) skipped --- -// let c: Bar; -// let d: Bar.X; -// let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames1.baseline.jsonc deleted file mode 100644 index ba02337a95..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames1.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames1.ts === - -// class Foo { -// /*FIND ALL REFS*/public _bar() { return 0; } -// } -// -// var x: Foo; -// x._bar; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames1.ts === - -// class Foo { -// public /*FIND ALL REFS*/[|_bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|_bar|]; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames1.ts === - -// class Foo { -// public [|_bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|_bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames2.baseline.jsonc deleted file mode 100644 index b31db41b2f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames2.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames2.ts === - -// class Foo { -// /*FIND ALL REFS*/public __bar() { return 0; } -// } -// -// var x: Foo; -// x.__bar; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames2.ts === - -// class Foo { -// public /*FIND ALL REFS*/[|__bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|__bar|]; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames2.ts === - -// class Foo { -// public [|__bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|__bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames3.baseline.jsonc deleted file mode 100644 index 0562f71fd3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames3.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames3.ts === - -// class Foo { -// /*FIND ALL REFS*/public ___bar() { return 0; } -// } -// -// var x: Foo; -// x.___bar; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames3.ts === - -// class Foo { -// public /*FIND ALL REFS*/[|___bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|___bar|]; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames3.ts === - -// class Foo { -// public [|___bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|___bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames4.baseline.jsonc deleted file mode 100644 index 9c84a00083..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames4.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames4.ts === - -// class Foo { -// /*FIND ALL REFS*/public ____bar() { return 0; } -// } -// -// var x: Foo; -// x.____bar; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames4.ts === - -// class Foo { -// public /*FIND ALL REFS*/[|____bar|]() { return 0; } -// } -// -// var x: Foo; -// x.[|____bar|]; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames4.ts === - -// class Foo { -// public [|____bar|]() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|____bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames5.baseline.jsonc deleted file mode 100644 index cfa0dcde5e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames5.baseline.jsonc +++ /dev/null @@ -1,49 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames5.ts === - -// class Foo { -// public _bar; -// public __bar; -// /*FIND ALL REFS*/public ___bar; -// public ____bar; -// } -// -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames5.ts === - -// class Foo { -// public _bar; -// public __bar; -// public /*FIND ALL REFS*/[|___bar|]; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.__bar; -// x.[|___bar|]; -// x.____bar; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames5.ts === - -// class Foo { -// public _bar; -// public __bar; -// public [|___bar|]; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.__bar; -// x./*FIND ALL REFS*/[|___bar|]; -// x.____bar; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames6.baseline.jsonc deleted file mode 100644 index f74c6d36dc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames6.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames6.ts === - -// class Foo { -// public _bar; -// /*FIND ALL REFS*/public __bar; -// public ___bar; -// public ____bar; -// } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames6.ts === - -// class Foo { -// public _bar; -// public /*FIND ALL REFS*/[|__bar|]; -// public ___bar; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x.[|__bar|]; -// x.___bar; -// x.____bar; - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames6.ts === - -// class Foo { -// public _bar; -// public [|__bar|]; -// public ___bar; -// public ____bar; -// } -// -// var x: Foo; -// x._bar; -// x./*FIND ALL REFS*/[|__bar|]; -// x.___bar; -// x.____bar; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames7.baseline.jsonc deleted file mode 100644 index cb0a555584..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames7.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames7.ts === - -// /*FIND ALL REFS*/function __foo() { -// __foo(); -// } - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames7.ts === - -// function /*FIND ALL REFS*/[|__foo|]() { -// [|__foo|](); -// } - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames7.ts === - -// function [|__foo|]() { -// /*FIND ALL REFS*/[|__foo|](); -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames8.baseline.jsonc deleted file mode 100644 index 71af0eec08..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames8.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames8.ts === - -// (/*FIND ALL REFS*/function __foo() { -// __foo(); -// }) - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames8.ts === - -// (function /*FIND ALL REFS*/__foo() { -// [|__foo|](); -// }) - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames8.ts === - -// (function __foo() { -// /*FIND ALL REFS*/[|__foo|](); -// }) diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames9.baseline.jsonc deleted file mode 100644 index 91680e3b4f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithLeadingUnderscoreNames9.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames9.ts === - -// (/*FIND ALL REFS*/function ___foo() { -// ___foo(); -// }) - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames9.ts === - -// (function /*FIND ALL REFS*/___foo() { -// [|___foo|](); -// }) - - - - -// === findAllReferences === -// === /findAllRefsWithLeadingUnderscoreNames9.ts === - -// (function ___foo() { -// /*FIND ALL REFS*/[|___foo|](); -// }) diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment.baseline.jsonc deleted file mode 100644 index 77400fcc7d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var /*FIND ALL REFS*/[|name|] = "Foo"; -// -// var obj = { name }; -// var obj1 = { name: name }; -// obj.name; - - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; -// -// var obj = { [|name|] }; -// var obj1 = { name: /*FIND ALL REFS*/[|name|] }; -// obj.name; - - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; -// -// var obj = { /*FIND ALL REFS*/[|name|] }; -// var obj1 = { name: [|name|] }; -// obj.[|name|]; - - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; -// -// var obj = { name }; -// var obj1 = { /*FIND ALL REFS*/[|name|]: name }; -// obj.name; - - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; -// -// var obj = { [|name|] }; -// var obj1 = { name: name }; -// obj./*FIND ALL REFS*/[|name|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment2.baseline.jsonc deleted file mode 100644 index 4120f135f2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWithShorthandPropertyAssignment2.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var /*FIND ALL REFS*/[|dx|] = "Foo"; -// -// module M { export var dx; } -// module M { -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var dx = "Foo"; -// -// module M { export var /*FIND ALL REFS*/[|dx|]; } -// module M { -// var z = 100; -// export var y = { [|dx|], z }; -// } -// M.y.dx; - - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var dx = "Foo"; -// -// module M { export var [|dx|]; } -// module M { -// var z = 100; -// export var y = { /*FIND ALL REFS*/[|dx|], z }; -// } -// M.y.[|dx|]; - - - - -// === findAllReferences === -// === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var dx = "Foo"; -// -// module M { export var dx; } -// module M { -// var z = 100; -// export var y = { [|dx|], z }; -// } -// M.y./*FIND ALL REFS*/[|dx|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWriteAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWriteAccess.baseline.jsonc deleted file mode 100644 index 300d3ee7c6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsWriteAccess.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findAllReferences === -// === /findAllRefsWriteAccess.ts === - -// interface Obj { -// [`/*FIND ALL REFS*/[|num|]`]: number; -// } -// -// let o: Obj = { -// [`[|num|]`]: 0 -// }; -// -// o = { -// ['[|num|]']: 1 -// }; -// -// o['[|num|]'] = 2; -// o[`[|num|]`] = 3; -// -// o['[|num|]']; -// o[`[|num|]`]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_js4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_js4.baseline.jsonc deleted file mode 100644 index e86a958a74..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_js4.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// /** -// * @callback /*FIND ALL REFS*/A -// * @param {unknown} response -// */ -// -// module.exports = {}; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_meaningAtLocation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_meaningAtLocation.baseline.jsonc deleted file mode 100644 index f325d43d5b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_meaningAtLocation.baseline.jsonc +++ /dev/null @@ -1,74 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/export type T = 0; -// export const T = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type /*FIND ALL REFS*/[|T|] = 0; -// export const T = 0; - - -// === /b.ts === - -// const x: import("./a").[|T|] = 0; -// const x: typeof import("./a").T = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type T = 0; -// /*FIND ALL REFS*/export const T = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type T = 0; -// export const /*FIND ALL REFS*/[|T|] = 0; - - -// === /b.ts === - -// const x: import("./a").T = 0; -// const x: typeof import("./a").[|T|] = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type [|T|] = 0; -// export const T = 0; - - -// === /b.ts === - -// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; -// const x: typeof import("./a").T = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type T = 0; -// export const [|T|] = 0; - - -// === /b.ts === - -// const x: import("./a").T = 0; -// const x: typeof import("./a")./*FIND ALL REFS*/[|T|] = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_named.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_named.baseline.jsonc deleted file mode 100644 index 7c6dd58ef0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_importType_named.baseline.jsonc +++ /dev/null @@ -1,74 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/export type T = number; -// export type U = string; - - - - -// === findAllReferences === -// === /a.ts === - -// export type /*FIND ALL REFS*/[|T|] = number; -// export type U = string; - - -// === /b.ts === - -// const x: import("./a").[|T|] = 0; -// const x: import("./a").U = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type T = number; -// /*FIND ALL REFS*/export type U = string; - - - - -// === findAllReferences === -// === /a.ts === - -// export type T = number; -// export type /*FIND ALL REFS*/[|U|] = string; - - -// === /b.ts === - -// const x: import("./a").T = 0; -// const x: import("./a").[|U|] = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type [|T|] = number; -// export type U = string; - - -// === /b.ts === - -// const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; -// const x: import("./a").U = 0; - - - - -// === findAllReferences === -// === /a.ts === - -// export type T = number; -// export type [|U|] = string; - - -// === /b.ts === - -// const x: import("./a").T = 0; -// const x: import("./a")./*FIND ALL REFS*/[|U|] = 0; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_jsEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_jsEnum.baseline.jsonc deleted file mode 100644 index cfa4b6cff1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefs_jsEnum.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// /** @enum {string} */ -// /*FIND ALL REFS*/const E = { A: "" }; -// E["A"]; -// /** @type {E} */ -// const e = E.A; - - - - -// === findAllReferences === -// === /a.js === - -// /** @enum {string} */ -// const /*FIND ALL REFS*/[|E|] = { A: "" }; -// [|E|]["A"]; -// /** @type {E} */ -// const e = [|E|].A; - - - - -// === findAllReferences === -// === /a.js === - -// /** @enum {string} */ -// const [|E|] = { A: "" }; -// /*FIND ALL REFS*/[|E|]["A"]; -// /** @type {E} */ -// const e = [|E|].A; - - - - -// === findAllReferences === -// === /a.js === - -// /** @enum {string} */ -// const E = { A: "" }; -// E["A"]; -// /** @type {/*FIND ALL REFS*/[|E|]} */ -// const e = E.A; - - - - -// === findAllReferences === -// === /a.js === - -// /** @enum {string} */ -// const [|E|] = { A: "" }; -// [|E|]["A"]; -// /** @type {E} */ -// const e = /*FIND ALL REFS*/[|E|].A; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAcrossMultipleProjects.baseline.jsonc deleted file mode 100644 index 9a4915ae42..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAcrossMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,64 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// /*FIND ALL REFS*/var x: number; - - - - -// === findAllReferences === -// === /a.ts === - -// var /*FIND ALL REFS*/[|x|]: number; - - -// === /b.ts === - -// /// -// [|x|]++; - - -// === /c.ts === - -// /// -// [|x|]++; - - - - -// === findAllReferences === -// === /a.ts === - -// var [|x|]: number; - - -// === /b.ts === - -// /// -// /*FIND ALL REFS*/[|x|]++; - - -// === /c.ts === - -// /// -// [|x|]++; - - - - -// === findAllReferences === -// === /a.ts === - -// var [|x|]: number; - - -// === /b.ts === - -// /// -// [|x|]++; - - -// === /c.ts === - -// /// -// /*FIND ALL REFS*/[|x|]++; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc deleted file mode 100644 index 9123c0f239..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesAfterEdit.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// interface A { -// /*FIND ALL REFS*/[|foo|]: string; -// } - - -// === /b.ts === - -// /// -// -// -// function foo(x: A) { -// x.[|foo|] -// } - - - - -// === findAllReferences === -// === /a.ts === - -// interface A { -// [|foo|]: string; -// } - - -// === /b.ts === - -// /// -// -// -// function foo(x: A) { -// x./*FIND ALL REFS*/[|foo|] -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesDefinitionDisplayParts.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesDefinitionDisplayParts.baseline.jsonc deleted file mode 100644 index 7f74b72a6d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesDefinitionDisplayParts.baseline.jsonc +++ /dev/null @@ -1,50 +0,0 @@ -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === - -// class Gre/*FIND ALL REFS*/[|Greeter|] { -// someFunction() { this; } -// } -// -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === - -// class Greeter { -// someFunction() { th/*FIND ALL REFS*/[|this|]; } -// } -// -// type Options = "option 1" | "option 2"; -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === - -// class Greeter { -// someFunction() { this; } -// } -// -// type Options = "opt/*FIND ALL REFS*/ion 1" | "option 2"; -// let myOption: Options = "option 1"; -// -// someLabel: -// break someLabel; - - - - -// === findAllReferences === -// === /findReferencesDefinitionDisplayParts.ts === - -// --- (line: 4) skipped --- -// type Options = "option 1" | "option 2"; -// let myOption: Options = "option 1"; -// -// some/*FIND ALL REFS*/[|someLabel|]: -// break [|someLabel|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName.baseline.jsonc deleted file mode 100644 index 7f54fb06bd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /RedditSubmission.ts === - -// export const [|SubmissionComp|] = (submission: SubmissionProps) => -//
; - - -// === /index.tsx === - -// import { /*FIND ALL REFS*/[|SubmissionComp|] } from "./RedditSubmission" -// function displaySubreddit(subreddit: string) { -// let components = submissions -// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); -// } - - - - -// === findAllReferences === -// === /RedditSubmission.ts === - -// export const /*FIND ALL REFS*/[|SubmissionComp|] = (submission: SubmissionProps) => -//
; - - -// === /index.tsx === - -// import { [|SubmissionComp|] } from "./RedditSubmission" -// function displaySubreddit(subreddit: string) { -// let components = submissions -// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName2.baseline.jsonc deleted file mode 100644 index 947ecdadfa..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesJSXTagName2.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /index.tsx === - -// /*FIND ALL REFS*/const obj = {Component: () =>
}; -// const element = ; - - - - -// === findAllReferences === -// === /index.tsx === - -// const /*FIND ALL REFS*/[|obj|] = {Component: () =>
}; -// const element = <[|obj|].Component/>; - - - - -// === findAllReferences === -// === /index.tsx === - -// const [|obj|] = {Component: () =>
}; -// const element = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesSeeTagInTs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindReferencesSeeTagInTs.baseline.jsonc deleted file mode 100644 index 6659580478..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindReferencesSeeTagInTs.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /findReferencesSeeTagInTs.ts === - -// function doStuffWithStuff/*FIND ALL REFS*/[|doStuffWithStuff|](stuff: { quantity: number }) {} -// -// declare const stuff: { quantity: number }; -// /** @see {doStuffWithStuff} */ -// if (stuff.quantity) {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc deleted file mode 100644 index c2196d70e8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfArrowFunction.ts === - -// /*FIND ALL REFS*/var f = x => x + 1; -// f(12); - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfArrowFunction.ts === - -// var /*FIND ALL REFS*/[|f|] = x => x + 1; -// [|f|](12); - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfArrowFunction.ts === - -// var [|f|] = x => x + 1; -// /*FIND ALL REFS*/[|f|](12); diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc deleted file mode 100644 index 25461975f6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfBindingPattern.ts === - -// const { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; -// const z = [|x|]; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfBindingPattern.ts === - -// const { x, y } = { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; -// const z = x; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfBindingPattern.ts === - -// const { [|x|], y } = { x: 1, y: 2 }; -// const z = /*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfClass.baseline.jsonc deleted file mode 100644 index 83e511eeb7..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfClass.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfClass.ts === - -// /*FIND ALL REFS*/class C { -// n: number; -// constructor() { -// this.n = 12; -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfClass.ts === - -// class /*FIND ALL REFS*/[|C|] { -// n: number; -// constructor() { -// this.n = 12; -// } -// } -// let c = new [|C|](); - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfClass.ts === - -// class [|C|] { -// n: number; -// constructor() { -// this.n = 12; -// } -// } -// let c = new /*FIND ALL REFS*/[|C|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc deleted file mode 100644 index 9d3da828f6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === - -// let o = { /*FIND ALL REFS*/["foo"]: 12 }; -// let y = o.foo; -// let z = o['foo']; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === - -// let o = { ["/*FIND ALL REFS*/[|foo|]"]: 12 }; -// let y = o.[|foo|]; -// let z = o['[|foo|]']; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === - -// let o = { ["[|foo|]"]: 12 }; -// let y = o./*FIND ALL REFS*/[|foo|]; -// let z = o['[|foo|]']; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfComputedProperty.ts === - -// let o = { ["[|foo|]"]: 12 }; -// let y = o.[|foo|]; -// let z = o['/*FIND ALL REFS*/[|foo|]']; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfEnum.baseline.jsonc deleted file mode 100644 index 5baafb9571..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfEnum.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfEnum.ts === - -// /*FIND ALL REFS*/enum E { -// First, -// Second -// } -// let first = E.First; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfEnum.ts === - -// enum /*FIND ALL REFS*/[|E|] { -// First, -// Second -// } -// let first = [|E|].First; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfEnum.ts === - -// enum [|E|] { -// First, -// Second -// } -// let first = /*FIND ALL REFS*/[|E|].First; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfExport.baseline.jsonc deleted file mode 100644 index cd5e4c32f9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfExport.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findAllReferences === -// === /m.ts === - -// export var /*FIND ALL REFS*/[|x|] = 12; - - -// === /main.ts === - -// import { [|x|] } from "./m"; -// const y = [|x|]; - - - - -// === findAllReferences === -// === /m.ts === - -// export var [|x|] = 12; - - -// === /main.ts === - -// import { /*FIND ALL REFS*/[|x|] } from "./m"; -// const y = [|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfFunction.baseline.jsonc deleted file mode 100644 index ac9673eefd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfFunction.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfFunction.ts === - -// /*FIND ALL REFS*/function func(x: number) { -// } -// func(x) - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfFunction.ts === - -// function /*FIND ALL REFS*/[|func|](x: number) { -// } -// [|func|](x) - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfFunction.ts === - -// function [|func|](x: number) { -// } -// /*FIND ALL REFS*/[|func|](x) diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterface.baseline.jsonc deleted file mode 100644 index c16b6adc4a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterface.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterface.ts === - -// /*FIND ALL REFS*/interface I { -// p: number; -// } -// let i: I = { p: 12 }; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterface.ts === - -// interface /*FIND ALL REFS*/[|I|] { -// p: number; -// } -// let i: [|I|] = { p: 12 }; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterface.ts === - -// interface [|I|] { -// p: number; -// } -// let i: /*FIND ALL REFS*/[|I|] = { p: 12 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc deleted file mode 100644 index e28de949ad..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc +++ /dev/null @@ -1,139 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// /*FIND ALL REFS*/interface Numbers { -// p: number; -// } -// interface Numbers { -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// interface /*FIND ALL REFS*/[|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// interface Numbers { -// p: number; -// } -// /*FIND ALL REFS*/interface Numbers { -// m: number; -// } -// class Numbers { -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// interface [|Numbers|] { -// p: number; -// } -// interface /*FIND ALL REFS*/[|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// --- (line: 3) skipped --- -// interface Numbers { -// m: number; -// } -// /*FIND ALL REFS*/class Numbers { -// f(n: number) { -// return this.p + this.m + n; -// } -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class /*FIND ALL REFS*/[|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: [|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - -// interface [|Numbers|] { -// p: number; -// } -// interface [|Numbers|] { -// m: number; -// } -// class [|Numbers|] { -// f(n: number) { -// return this.p + this.m + n; -// } -// } -// let i: Numbers = new /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNamespace.baseline.jsonc deleted file mode 100644 index 57cd264bec..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNamespace.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNamespace.ts === - -// /*FIND ALL REFS*/namespace Numbers { -// export var n = 12; -// } -// let x = Numbers.n + 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNamespace.ts === - -// namespace /*FIND ALL REFS*/[|Numbers|] { -// export var n = 12; -// } -// let x = [|Numbers|].n + 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNamespace.ts === - -// namespace [|Numbers|] { -// export var n = 12; -// } -// let x = /*FIND ALL REFS*/[|Numbers|].n + 1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc deleted file mode 100644 index a0531f2db8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === - -// let o = { /*FIND ALL REFS*/[|1|]: 12 }; -// let y = o[[|1|]]; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === - -// let o = { [|1|]: 12 }; -// let y = o[/*FIND ALL REFS*/[|1|]]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfParameter.baseline.jsonc deleted file mode 100644 index 151e123cc8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfParameter.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfParameter.ts === - -// function f(/*FIND ALL REFS*/[|x|]: number) { -// return [|x|] + 1 -// } - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfParameter.ts === - -// function f([|x|]: number) { -// return /*FIND ALL REFS*/[|x|] + 1 -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc deleted file mode 100644 index 3cfbe8fd34..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === - -// let o = { /*FIND ALL REFS*/"[|x|]": 12 }; -// let y = o.[|x|]; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === - -// let o = { "/*FIND ALL REFS*/[|x|]": 12 }; -// let y = o.[|x|]; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === - -// let o = { "[|x|]": 12 }; -// let y = o./*FIND ALL REFS*/[|x|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc deleted file mode 100644 index de35e8d0ed..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfTypeAlias.ts === - -// /*FIND ALL REFS*/type Alias= number; -// let n: Alias = 12; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfTypeAlias.ts === - -// type /*FIND ALL REFS*/[|Alias|]= number; -// let n: [|Alias|] = 12; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfTypeAlias.ts === - -// type [|Alias|]= number; -// let n: /*FIND ALL REFS*/[|Alias|] = 12; diff --git a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfVariable.baseline.jsonc deleted file mode 100644 index 9d0216986b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/GetOccurrencesIsDefinitionOfVariable.baseline.jsonc +++ /dev/null @@ -1,368 +0,0 @@ -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// /*FIND ALL REFS*/var x = 0; -// var assignmentRightHandSide = x; -// var assignmentRightHandSide2 = 1 + x; -// -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var /*FIND ALL REFS*/[|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = /*FIND ALL REFS*/[|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + /*FIND ALL REFS*/[|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// /*FIND ALL REFS*/[|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// x = /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// x = x + /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// /*FIND ALL REFS*/[|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// /*FIND ALL REFS*/[|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++/*FIND ALL REFS*/[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = /*FIND ALL REFS*/[|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --/*FIND ALL REFS*/[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = /*FIND ALL REFS*/[|x|]--; -// -// [|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// /*FIND ALL REFS*/[|x|] += 1; -// [|x|] <<= 1; - - - - -// === findAllReferences === -// === /getOccurrencesIsDefinitionOfVariable.ts === - -// var [|x|] = 0; -// var assignmentRightHandSide = [|x|]; -// var assignmentRightHandSide2 = 1 + [|x|]; -// -// [|x|] = 1; -// [|x|] = [|x|] + [|x|]; -// -// [|x|] == 1; -// [|x|] <= 1; -// -// var preIncrement = ++[|x|]; -// var postIncrement = [|x|]++; -// var preDecrement = --[|x|]; -// var postDecrement = [|x|]--; -// -// [|x|] += 1; -// /*FIND ALL REFS*/[|x|] <<= 1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/IndirectJsRequireRename.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IndirectJsRequireRename.baseline.jsonc deleted file mode 100644 index 86fb5ab3c9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IndirectJsRequireRename.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findAllReferences === -// === /lib/classes/Error.js === - -// module.exports.[|logWarning|] = message => { }; - - -// === /bin/serverless.js === - -// require('../lib/classes/Error').log/*FIND ALL REFS*/Warning(`CLI triage crashed with: ${error.stack}`); diff --git a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossGlobalProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossGlobalProjects.baseline.jsonc deleted file mode 100644 index 932acf04e3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossGlobalProjects.baseline.jsonc +++ /dev/null @@ -1,138 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === - -// namespace NS { -// export function /*FIND ALL REFS*/[|FA|]() { -// FB(); -// } -// } -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === - -// --- (line: 3) skipped --- -// } -// } -// -// interface /*FIND ALL REFS*/[|I|] { -// FA(); -// } -// -// const ia: [|I|] = { -// FA() { }, -// FB() { }, -// FC() { }, -// }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === - -// --- (line: 4) skipped --- -// } -// -// interface I { -// /*FIND ALL REFS*/[|FA|](); -// } -// -// const ia: I = { -// [|FA|]() { }, -// FB() { }, -// FC() { }, -// }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === - -// namespace NS { -// export function /*FIND ALL REFS*/[|FB|]() {} -// } -// -// interface I { -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === - -// namespace NS { -// export function FB() {} -// } -// -// interface /*FIND ALL REFS*/[|I|] { -// FB(); -// } -// -// const ib: [|I|] = { FB() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === - -// namespace NS { -// export function FB() {} -// } -// -// interface I { -// /*FIND ALL REFS*/[|FB|](); -// } -// -// const ib: I = { [|FB|]() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === - -// namespace NS { -// export function /*FIND ALL REFS*/[|FC|]() {} -// } -// -// interface I { -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === - -// namespace NS { -// export function FC() {} -// } -// -// interface /*FIND ALL REFS*/[|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === - -// namespace NS { -// export function FC() {} -// } -// -// interface I { -// /*FIND ALL REFS*/[|FC|](); -// } -// -// const ic: I = { [|FC|]() {} }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossModuleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossModuleProjects.baseline.jsonc deleted file mode 100644 index 33e9870ae2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionAcrossModuleProjects.baseline.jsonc +++ /dev/null @@ -1,254 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === - -// import { NS } from "../b"; -// import { I } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// // --- (line: 10) skipped --- - - -// --- (line: 13) skipped --- -// } -// -// const ia: I = { -// FA: NS.[|FA|], -// FC() { }, -// }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === - -// import { NS } from "../b"; -// import { [|I|] } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function FA(); -// } -// } -// -// declare module "../c" { -// export interface /*FIND ALL REFS*/[|I|] { -// FA(); -// } -// } -// -// const ia: [|I|] = { -// FA: NS.FA, -// FC() { }, -// }; - - -// === /home/src/workspaces/project/c/index.ts === - -// export namespace NS { -// export function FC() {} -// } -// -// export interface [|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/a/index.ts === - -// --- (line: 8) skipped --- -// -// declare module "../c" { -// export interface I { -// /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// const ia: I = { -// [|FA|]: NS.FA, -// FC() { }, -// }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/a2/index.ts === - -// import { NS } from "../b"; -// import { I } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// // --- (line: 10) skipped --- - - -// --- (line: 13) skipped --- -// } -// -// const ia: I = { -// FA: NS.[|FA|], -// FC() { }, -// }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/a2/index.ts === - -// import { NS } from "../b"; -// import { [|I|] } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function FA(); -// } -// } -// -// declare module "../c" { -// export interface /*FIND ALL REFS*/[|I|] { -// FA(); -// } -// } -// -// const ia: [|I|] = { -// FA: NS.FA, -// FC() { }, -// }; - - -// === /home/src/workspaces/project/c/index.ts === - -// export namespace NS { -// export function FC() {} -// } -// -// export interface [|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/a2/index.ts === - -// --- (line: 8) skipped --- -// -// declare module "../c" { -// export interface I { -// /*FIND ALL REFS*/[|FA|](); -// } -// } -// -// const ia: I = { -// [|FA|]: NS.FA, -// FC() { }, -// }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === - -// export namespace NS { -// export function /*FIND ALL REFS*/[|FB|]() {} -// } -// -// export interface I { -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === - -// export namespace NS { -// export function FB() {} -// } -// -// export interface /*FIND ALL REFS*/[|I|] { -// FB(); -// } -// -// const ib: [|I|] = { FB() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/index.ts === - -// export namespace NS { -// export function FB() {} -// } -// -// export interface I { -// /*FIND ALL REFS*/[|FB|](); -// } -// -// const ib: I = { [|FB|]() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === - -// export namespace NS { -// export function /*FIND ALL REFS*/[|FC|]() {} -// } -// -// export interface I { -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === - -// export namespace NS { -// export function FC() {} -// } -// -// export interface /*FIND ALL REFS*/[|I|] { -// FC(); -// } -// -// const ic: [|I|] = { FC() {} }; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/c/index.ts === - -// export namespace NS { -// export function FC() {} -// } -// -// export interface I { -// /*FIND ALL REFS*/[|FC|](); -// } -// -// const ic: I = { [|FC|]() {} }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionInterfaceImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionInterfaceImplementation.baseline.jsonc deleted file mode 100644 index 697d149847..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionInterfaceImplementation.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /isDefinitionInterfaceImplementation.ts === - -// interface I { -// /*FIND ALL REFS*/[|M|](): void; -// } -// -// class C implements I { -// [|M|]() { } -// } -// -// ({} as I).[|M|](); -// ({} as C).[|M|](); - - - - -// === findAllReferences === -// === /isDefinitionInterfaceImplementation.ts === - -// interface I { -// [|M|](): void; -// } -// -// class C implements I { -// /*FIND ALL REFS*/[|M|]() { } -// } -// -// ({} as I).[|M|](); -// ({} as C).[|M|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionOverloads.baseline.jsonc deleted file mode 100644 index b603465539..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionOverloads.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /isDefinitionOverloads.ts === - -// function /*FIND ALL REFS*/[|f|](x: number): void; -// function [|f|](x: string): void; -// function [|f|](x: number | string) { } -// -// [|f|](1); -// [|f|]("a"); - - - - -// === findAllReferences === -// === /isDefinitionOverloads.ts === - -// function [|f|](x: number): void; -// function /*FIND ALL REFS*/[|f|](x: string): void; -// function [|f|](x: number | string) { } -// -// [|f|](1); -// [|f|]("a"); - - - - -// === findAllReferences === -// === /isDefinitionOverloads.ts === - -// function [|f|](x: number): void; -// function [|f|](x: string): void; -// function /*FIND ALL REFS*/[|f|](x: number | string) { } -// -// [|f|](1); -// [|f|]("a"); diff --git a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionShorthandProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionShorthandProperty.baseline.jsonc deleted file mode 100644 index 3bbe7e857d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionShorthandProperty.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findAllReferences === -// === /isDefinitionShorthandProperty.ts === - -// const /*FIND ALL REFS*/[|x|] = 1; -// const y: { x: number } = { [|x|] }; - - - - -// === findAllReferences === -// === /isDefinitionShorthandProperty.ts === - -// const x = 1; -// const y: { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; - - - - -// === findAllReferences === -// === /isDefinitionShorthandProperty.ts === - -// const [|x|] = 1; -// const y: { x: number } = { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleImport.baseline.jsonc deleted file mode 100644 index 878b9e0df8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleImport.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export function /*FIND ALL REFS*/[|f|]() {} - - -// === /b.ts === - -// import { [|f|] } from "./a"; - - - - -// === findAllReferences === -// === /a.ts === - -// export function [|f|]() {} - - -// === /b.ts === - -// import { /*FIND ALL REFS*/[|f|] } from "./a"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleReference.baseline.jsonc deleted file mode 100644 index a455d9410f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/IsDefinitionSingleReference.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findAllReferences === -// === /isDefinitionSingleReference.ts === - -// function /*FIND ALL REFS*/[|f|]() {} -// [|f|](); - - - - -// === findAllReferences === -// === /isDefinitionSingleReference.ts === - -// function [|f|]() {} -// /*FIND ALL REFS*/[|f|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/JsdocSatisfiesTagFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/JsdocSatisfiesTagFindAllReferences.baseline.jsonc deleted file mode 100644 index 45bce806d2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/JsdocSatisfiesTagFindAllReferences.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// /** -// * @typedef {Object} T -// * @property {number} a -// */ -// -// /** @satisfies {/*FIND ALL REFS*/[|T|]} comment */ -// const foo = { a: 1 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/JsdocThrowsTag_findAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/JsdocThrowsTag_findAllReferences.baseline.jsonc deleted file mode 100644 index c24f93ca06..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/JsdocThrowsTag_findAllReferences.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /jsdocThrowsTag_findAllReferences.ts === - -// class /*FIND ALL REFS*/[|E|] extends Error {} -// /** -// * @throws {E} -// */ -// function f() {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning0.baseline.jsonc deleted file mode 100644 index 70be03a5cd..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning0.baseline.jsonc +++ /dev/null @@ -1,62 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// /** /*FIND ALL REFS*/@typedef {number} T */ -// const T = 1; -// /** @type {T} */ -// const n = T; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} /*FIND ALL REFS*/T */ -// const T = 1; -// /** @type {T} */ -// const n = T; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} T */ -// /*FIND ALL REFS*/const T = 1; -// /** @type {T} */ -// const n = T; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} T */ -// const /*FIND ALL REFS*/[|T|] = 1; -// /** @type {T} */ -// const n = [|T|]; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} T */ -// const T = 1; -// /** @type {/*FIND ALL REFS*/[|T|]} */ -// const n = T; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} T */ -// const [|T|] = 1; -// /** @type {T} */ -// const n = /*FIND ALL REFS*/[|T|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning1.baseline.jsonc deleted file mode 100644 index 89a5c2918a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/JsdocTypedefTagSemanticMeaning1.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} */ -// /*FIND ALL REFS*/const T = 1; -// /** @type {T} */ -// const n = T; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} */ -// const /*FIND ALL REFS*/[|T|] = 1; -// /** @type {T} */ -// const n = [|T|]; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} */ -// const T = 1; -// /** @type {/*FIND ALL REFS*/[|T|]} */ -// const n = T; - - - - -// === findAllReferences === -// === /a.js === - -// /** @typedef {number} */ -// const [|T|] = 1; -// /** @type {T} */ -// const n = /*FIND ALL REFS*/[|T|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferenceInParameterPropertyDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferenceInParameterPropertyDeclaration.baseline.jsonc deleted file mode 100644 index 8733deae92..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferenceInParameterPropertyDeclaration.baseline.jsonc +++ /dev/null @@ -1,58 +0,0 @@ -// === findAllReferences === -// === /file1.ts === - -// class Foo { -// constructor(private /*FIND ALL REFS*/[|privateParam|]: number, -// public publicParam: string, -// protected protectedParam: boolean) { -// -// let localPrivate = [|privateParam|]; -// this.[|privateParam|] += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /file1.ts === - -// class Foo { -// constructor(private privateParam: number, -// public /*FIND ALL REFS*/[|publicParam|]: string, -// protected protectedParam: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = [|publicParam|]; -// this.[|publicParam|] += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } - - - - -// === findAllReferences === -// === /file1.ts === - -// class Foo { -// constructor(private privateParam: number, -// public publicParam: string, -// protected /*FIND ALL REFS*/[|protectedParam|]: boolean) { -// -// let localPrivate = privateParam; -// this.privateParam += 10; -// -// let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = [|protectedParam|]; -// this.[|protectedParam|] = false; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferenceToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferenceToClass.baseline.jsonc deleted file mode 100644 index f6bf983e78..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferenceToClass.baseline.jsonc +++ /dev/null @@ -1,146 +0,0 @@ -// === findAllReferences === -// === /referenceToClass_1.ts === - -// class /*FIND ALL REFS*/[|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - - -// === /referenceToClass_2.ts === - -// var k: [|foo|]; - - - - -// === findAllReferences === -// === /referenceToClass_1.ts === - -// class [|foo|] { -// public n: /*FIND ALL REFS*/[|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - - -// === /referenceToClass_2.ts === - -// var k: [|foo|]; - - - - -// === findAllReferences === -// === /referenceToClass_1.ts === - -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: /*FIND ALL REFS*/[|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - - -// === /referenceToClass_2.ts === - -// var k: [|foo|]; - - - - -// === findAllReferences === -// === /referenceToClass_1.ts === - -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new /*FIND ALL REFS*/[|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - - -// === /referenceToClass_2.ts === - -// var k: [|foo|]; - - - - -// === findAllReferences === -// === /referenceToClass_1.ts === - -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: /*FIND ALL REFS*/[|foo|] = null; -// } - - -// === /referenceToClass_2.ts === - -// var k: [|foo|]; - - - - -// === findAllReferences === -// === /referenceToClass_1.ts === - -// class [|foo|] { -// public n: [|foo|]; -// public foo: number; -// } -// -// class bar { -// public n: [|foo|]; -// public k = new [|foo|](); -// } -// -// module mod { -// var k: [|foo|] = null; -// } - - -// === /referenceToClass_2.ts === - -// var k: /*FIND ALL REFS*/[|foo|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferenceToEmptyObject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferenceToEmptyObject.baseline.jsonc deleted file mode 100644 index 11e1f74b3f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferenceToEmptyObject.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /referenceToEmptyObject.ts === - -// const obj = {}/*FIND ALL REFS*/; diff --git a/testdata/baselines/reference/fourslash/findAllRef/References01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/References01.baseline.jsonc deleted file mode 100644 index ce7a705518..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/References01.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/referencesForGlobals_1.ts === - -// class [|globalClass|] { -// public f() { } -// } - - -// === /home/src/workspaces/project/referencesForGlobals_2.ts === - -// /// -// var c = /*FIND ALL REFS*/[|globalClass|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters.baseline.jsonc deleted file mode 100644 index b373099f0a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findAllReferences === -// === /declaration.ts === - -// var container = { /*FIND ALL REFS*/[|searchProp|] : 1 }; - - -// === /expression.ts === - -// function blah() { return (1 + 2 + container.[|searchProp|]()) === 2; }; - - -// === /redeclaration.ts === - -// container = { "[|searchProp|]" : 18 }; - - -// === /stringIndexer.ts === - -// function blah2() { container["[|searchProp|]"] }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters2.baseline.jsonc deleted file mode 100644 index 294e4ea57c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters2.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === findAllReferences === -// === /declaration.ts === - -// var container = { /*FIND ALL REFS*/[|42|]: 1 }; - - -// === /expression.ts === - -// function blah() { return (container[[|42|]]) === 2; }; - - -// === /redeclaration.ts === - -// container = { "[|42|]" : 18 }; - - -// === /stringIndexer.ts === - -// function blah2() { container["[|42|]"] }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters3.baseline.jsonc deleted file mode 100644 index c92550b6fb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesBloomFilters3.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /declaration.ts === - -// enum Test { /*FIND ALL REFS*/"[|42|]" = 1 }; - - -// === /expression.ts === - -// (Test[[|42|]]); - - - - -// === findAllReferences === -// === /declaration.ts === - -// enum Test { "/*FIND ALL REFS*/[|42|]" = 1 }; - - -// === /expression.ts === - -// (Test[[|42|]]); - - - - -// === findAllReferences === -// === /declaration.ts === - -// enum Test { "[|42|]" = 1 }; - - -// === /expression.ts === - -// (Test[/*FIND ALL REFS*/[|42|]]); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForAmbients.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForAmbients.baseline.jsonc deleted file mode 100644 index 5753a79cb1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForAmbients.baseline.jsonc +++ /dev/null @@ -1,238 +0,0 @@ -// === findAllReferences === -// === /referencesForAmbients.ts === - -// /*FIND ALL REFS*/declare module "foo" { -// var f: number; -// } -// -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "/*FIND ALL REFS*/[|foo|]" { -// var f: number; -// } -// -// declare module "bar" { -// export import foo = require("[|foo|]"); -// var f2: typeof foo.f; -// } -// -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// /*FIND ALL REFS*/var f: number; -// } -// -// declare module "bar" { -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var /*FIND ALL REFS*/[|f|]: number; -// } -// -// declare module "bar" { -// export import foo = require("foo"); -// var f2: typeof foo.[|f|]; -// } -// -// declare module "baz" { -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var f: number; -// } -// -// /*FIND ALL REFS*/declare module "bar" { -// export import foo = require("foo"); -// var f2: typeof foo.f; -// } -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var f: number; -// } -// -// declare module "/*FIND ALL REFS*/[|bar|]" { -// export import foo = require("foo"); -// var f2: typeof foo.f; -// } -// -// declare module "baz" { -// import bar = require("[|bar|]"); -// var f2: typeof bar.foo; -// } - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// /*FIND ALL REFS*/export import foo = require("foo"); -// var f2: typeof foo.f; -// } -// -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// export import /*FIND ALL REFS*/[|foo|] = require("foo"); -// var f2: typeof [|foo|].f; -// } -// -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.[|foo|]; -// } - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "[|foo|]" { -// var f: number; -// } -// -// declare module "bar" { -// export import foo = require("/*FIND ALL REFS*/[|foo|]"); -// var f2: typeof foo.f; -// } -// -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// export import [|foo|] = require("foo"); -// var f2: typeof /*FIND ALL REFS*/[|foo|].f; -// } -// -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.[|foo|]; -// } - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var [|f|]: number; -// } -// -// declare module "bar" { -// export import foo = require("foo"); -// var f2: typeof foo./*FIND ALL REFS*/[|f|]; -// } -// -// declare module "baz" { -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// --- (line: 7) skipped --- -// } -// -// declare module "baz" { -// /*FIND ALL REFS*/import bar = require("bar"); -// var f2: typeof bar.foo; -// } - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var f: number; -// } -// -// declare module "[|bar|]" { -// export import foo = require("foo"); -// var f2: typeof foo.f; -// } -// -// declare module "baz" { -// import bar = require("/*FIND ALL REFS*/[|bar|]"); -// var f2: typeof bar.foo; -// } - - - - -// === findAllReferences === -// === /referencesForAmbients.ts === - -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// export import [|foo|] = require("foo"); -// var f2: typeof [|foo|].f; -// } -// -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar./*FIND ALL REFS*/[|foo|]; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassLocal.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassLocal.baseline.jsonc deleted file mode 100644 index 075c9aa995..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassLocal.baseline.jsonc +++ /dev/null @@ -1,77 +0,0 @@ -// === findAllReferences === -// === /referencesForClassLocal.ts === - -// var n = 14; -// -// class foo { -// /*FIND ALL REFS*/private n = 0; -// -// public bar() { -// this.n = 9; -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesForClassLocal.ts === - -// var n = 14; -// -// class foo { -// private /*FIND ALL REFS*/[|n|] = 0; -// -// public bar() { -// this.[|n|] = 9; -// } -// -// constructor() { -// this.[|n|] = 4; -// } -// -// public bar2() { -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /referencesForClassLocal.ts === - -// var n = 14; -// -// class foo { -// private [|n|] = 0; -// -// public bar() { -// this./*FIND ALL REFS*/[|n|] = 9; -// } -// -// constructor() { -// this.[|n|] = 4; -// } -// -// public bar2() { -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /referencesForClassLocal.ts === - -// var n = 14; -// -// class foo { -// private [|n|] = 0; -// -// public bar() { -// this.[|n|] = 9; -// } -// -// constructor() { -// this./*FIND ALL REFS*/[|n|] = 4; -// } -// -// public bar2() { -// // --- (line: 15) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembers.baseline.jsonc deleted file mode 100644 index f340314796..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembers.baseline.jsonc +++ /dev/null @@ -1,110 +0,0 @@ -// === findAllReferences === -// === /referencesForClassMembers.ts === - -// class Base { -// /*FIND ALL REFS*/[|a|]: number; -// method(): void { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === - -// class Base { -// [|a|]: number; -// method(): void { } -// } -// class MyClass extends Base { -// /*FIND ALL REFS*/[|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === - -// class Base { -// [|a|]: number; -// method(): void { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c./*FIND ALL REFS*/[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === - -// class Base { -// a: number; -// /*FIND ALL REFS*/[|method|](): void { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === - -// class Base { -// a: number; -// [|method|](): void { } -// } -// class MyClass extends Base { -// a; -// /*FIND ALL REFS*/[|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - - -// === findAllReferences === -// === /referencesForClassMembers.ts === - -// class Base { -// a: number; -// [|method|](): void { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c./*FIND ALL REFS*/[|method|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingAbstractClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingAbstractClass.baseline.jsonc deleted file mode 100644 index 429d39ba03..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingAbstractClass.baseline.jsonc +++ /dev/null @@ -1,110 +0,0 @@ -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === - -// abstract class Base { -// abstract /*FIND ALL REFS*/[|a|]: number; -// abstract method(): void; -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === - -// abstract class Base { -// abstract [|a|]: number; -// abstract method(): void; -// } -// class MyClass extends Base { -// /*FIND ALL REFS*/[|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === - -// abstract class Base { -// abstract [|a|]: number; -// abstract method(): void; -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c./*FIND ALL REFS*/[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === - -// abstract class Base { -// abstract a: number; -// abstract /*FIND ALL REFS*/[|method|](): void; -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === - -// abstract class Base { -// abstract a: number; -// abstract [|method|](): void; -// } -// class MyClass extends Base { -// a; -// /*FIND ALL REFS*/[|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingAbstractClass.ts === - -// abstract class Base { -// abstract a: number; -// abstract [|method|](): void; -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c./*FIND ALL REFS*/[|method|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingGenericClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingGenericClass.baseline.jsonc deleted file mode 100644 index 79cdb2e1dc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassMembersExtendingGenericClass.baseline.jsonc +++ /dev/null @@ -1,110 +0,0 @@ -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === - -// class Base { -// /*FIND ALL REFS*/[|a|]: this; -// method(a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === - -// class Base { -// [|a|]: this; -// method(a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// /*FIND ALL REFS*/[|a|]; -// method() { } -// } -// -// var c: MyClass; -// c.[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === - -// class Base { -// [|a|]: this; -// method(a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// [|a|]; -// method() { } -// } -// -// var c: MyClass; -// c./*FIND ALL REFS*/[|a|]; -// c.method(); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === - -// class Base { -// a: this; -// /*FIND ALL REFS*/[|method|](a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === - -// class Base { -// a: this; -// [|method|](a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// a; -// /*FIND ALL REFS*/[|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c.[|method|](); - - - - -// === findAllReferences === -// === /referencesForClassMembersExtendingGenericClass.ts === - -// class Base { -// a: this; -// [|method|](a?:T, b?:U): this { } -// } -// class MyClass extends Base { -// a; -// [|method|]() { } -// } -// -// var c: MyClass; -// c.a; -// c./*FIND ALL REFS*/[|method|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassParameter.baseline.jsonc deleted file mode 100644 index 87848b4dc2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForClassParameter.baseline.jsonc +++ /dev/null @@ -1,82 +0,0 @@ -// === findAllReferences === -// === /referencesForClassParameter.ts === - -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (/*FIND ALL REFS*/public p: any) { -// } -// -// public f(p) { -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /referencesForClassParameter.ts === - -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (public /*FIND ALL REFS*/[|p|]: any) { -// } -// -// public f(p) { -// this.[|p|] = p; -// } -// -// } -// -// var n = new foo(undefined); -// n.[|p|] = null; - - - - -// === findAllReferences === -// === /referencesForClassParameter.ts === - -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (public [|p|]: any) { -// } -// -// public f(p) { -// this./*FIND ALL REFS*/[|p|] = p; -// } -// -// } -// -// var n = new foo(undefined); -// n.[|p|] = null; - - - - -// === findAllReferences === -// === /referencesForClassParameter.ts === - -// var p = 2; -// -// class p { } -// -// class foo { -// constructor (public [|p|]: any) { -// } -// -// public f(p) { -// this.[|p|] = p; -// } -// -// } -// -// var n = new foo(undefined); -// n./*FIND ALL REFS*/[|p|] = null; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index e9ec25e6c9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /referencesForContextuallyTypedObjectLiteralProperties.ts === - -// interface IFoo { /*FIND ALL REFS*/[|xy|]: number; } -// -// // Assignment -// var a1: IFoo = { [|xy|]: 0 }; -// var a2: IFoo = { [|xy|]: 0 }; -// -// // Function call -// function consumer(f: IFoo) { } -// consumer({ [|xy|]: 1 }); -// -// // Type cast -// var c = { [|xy|]: 0 }; -// -// // Array literal -// var ar: IFoo[] = [{ [|xy|]: 1 }, { [|xy|]: 2 }]; -// -// // Nested object literal -// var ob: { ifoo: IFoo } = { ifoo: { [|xy|]: 0 } }; -// -// // Widened type -// var w: IFoo = { [|xy|]: undefined }; -// -// // Untped -- should not be included -// var u = { xy: 0 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties.baseline.jsonc deleted file mode 100644 index 65e37f9a5f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties.baseline.jsonc +++ /dev/null @@ -1,393 +0,0 @@ -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// /*FIND ALL REFS*/[|common|]: string; -// } -// -// interface B { -// b: number; -// common: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// --- (line: 4) skipped --- -// -// interface B { -// b: number; -// /*FIND ALL REFS*/[|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, /*FIND ALL REFS*/[|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, /*FIND ALL REFS*/[|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, /*FIND ALL REFS*/[|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { /*FIND ALL REFS*/[|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, /*FIND ALL REFS*/[|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, common: "" }, { b: 0, /*FIND ALL REFS*/[|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, /*FIND ALL REFS*/[|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, [|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; - - - - -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties.ts === - -// interface A { -// a: number; -// [|common|]: string; -// } -// -// interface B { -// b: number; -// [|common|]: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, [|common|]: "" }; -// var v2: A | B = { b: 0, [|common|]: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, b: 0, [|common|]: 1 }); -// -// // Type cast -// var c = { [|common|]: 0, b: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, [|common|]: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; -// -// // Widened type -// var w: A|B = { a:0, /*FIND ALL REFS*/[|common|]: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties2.baseline.jsonc deleted file mode 100644 index fcf8502a8a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForContextuallyTypedUnionProperties2.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === findAllReferences === -// === /referencesForContextuallyTypedUnionProperties2.ts === - -// --- (line: 3) skipped --- -// } -// -// interface B { -// /*FIND ALL REFS*/[|b|]: number; -// common: number; -// } -// -// // Assignment -// var v1: A | B = { a: 0, common: "" }; -// var v2: A | B = { [|b|]: 0, common: 3 }; -// -// // Function call -// function consumer(f: A | B) { } -// consumer({ a: 0, [|b|]: 0, common: 1 }); -// -// // Type cast -// var c = { common: 0, [|b|]: 0 }; -// -// // Array literal -// var ar: Array = [{ a: 0, common: "" }, { [|b|]: 0, common: 0 }]; -// -// // Nested object literal -// var ob: { aorb: A|B } = { aorb: { [|b|]: 0, common: 0 } }; -// -// // Widened type -// var w: A|B = { [|b|]:undefined, common: undefined }; -// -// // Untped -- should not be included -// var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForDeclarationKeywords.baseline.jsonc deleted file mode 100644 index 2db33149e6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForDeclarationKeywords.baseline.jsonc +++ /dev/null @@ -1,255 +0,0 @@ -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// /*FIND ALL REFS*/class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// class C1 /*FIND ALL REFS*/extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// class C1 extends Base /*FIND ALL REFS*/implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 14) skipped --- -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 /*FIND ALL REFS*/implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// /*FIND ALL REFS*/get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// /*FIND ALL REFS*/set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 3) skipped --- -// get e() { return 1; } -// set e(v) {} -// } -// /*FIND ALL REFS*/interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 3) skipped --- -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 /*FIND ALL REFS*/extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 15) skipped --- -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 /*FIND ALL REFS*/extends Implemented2, Implemented3 {} - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 4) skipped --- -// set e(v) {} -// } -// interface I1 extends Base { } -// /*FIND ALL REFS*/type T = { } -// enum E { } -// namespace N { } -// module M { } -// // --- (line: 12) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 5) skipped --- -// } -// interface I1 extends Base { } -// type T = { } -// /*FIND ALL REFS*/enum E { } -// namespace N { } -// module M { } -// function fn() {} -// // --- (line: 13) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 6) skipped --- -// interface I1 extends Base { } -// type T = { } -// enum E { } -// /*FIND ALL REFS*/namespace N { } -// module M { } -// function fn() {} -// var x; -// // --- (line: 14) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 7) skipped --- -// type T = { } -// enum E { } -// namespace N { } -// /*FIND ALL REFS*/module M { } -// function fn() {} -// var x; -// let y; -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 8) skipped --- -// enum E { } -// namespace N { } -// module M { } -// /*FIND ALL REFS*/function fn() {} -// var x; -// let y; -// const z = 1; -// // --- (line: 16) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 9) skipped --- -// namespace N { } -// module M { } -// function fn() {} -// /*FIND ALL REFS*/var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// // --- (line: 17) skipped --- - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 10) skipped --- -// module M { } -// function fn() {} -// var x; -// /*FIND ALL REFS*/let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} - - - - -// === findAllReferences === -// === /referencesForDeclarationKeywords.ts === - -// --- (line: 11) skipped --- -// function fn() {} -// var x; -// let y; -// /*FIND ALL REFS*/const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForEnums.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForEnums.baseline.jsonc deleted file mode 100644 index 029ee16b94..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForEnums.baseline.jsonc +++ /dev/null @@ -1,149 +0,0 @@ -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// /*FIND ALL REFS*/[|value1|] = 1, -// "value2" = [|value1|], -// 111 = 11 -// } -// -// E.[|value1|]; -// E["value2"]; -// E.value2; -// E[111]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// value1 = 1, -// /*FIND ALL REFS*/"[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["[|value2|]"]; -// E.[|value2|]; -// E[111]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// value1 = 1, -// "/*FIND ALL REFS*/[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["[|value2|]"]; -// E.[|value2|]; -// E[111]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// [|value1|] = 1, -// "value2" = /*FIND ALL REFS*/[|value1|], -// 111 = 11 -// } -// -// E.[|value1|]; -// E["value2"]; -// E.value2; -// E[111]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// value1 = 1, -// "value2" = value1, -// /*FIND ALL REFS*/[|111|] = 11 -// } -// -// E.value1; -// E["value2"]; -// E.value2; -// E[[|111|]]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// [|value1|] = 1, -// "value2" = [|value1|], -// 111 = 11 -// } -// -// E./*FIND ALL REFS*/[|value1|]; -// E["value2"]; -// E.value2; -// E[111]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// value1 = 1, -// "[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["/*FIND ALL REFS*/[|value2|]"]; -// E.[|value2|]; -// E[111]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// value1 = 1, -// "[|value2|]" = value1, -// 111 = 11 -// } -// -// E.value1; -// E["[|value2|]"]; -// E./*FIND ALL REFS*/[|value2|]; -// E[111]; - - - - -// === findAllReferences === -// === /referencesForEnums.ts === - -// enum E { -// value1 = 1, -// "value2" = value1, -// [|111|] = 11 -// } -// -// E.value1; -// E["value2"]; -// E.value2; -// E[/*FIND ALL REFS*/[|111|]]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForExpressionKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForExpressionKeywords.baseline.jsonc deleted file mode 100644 index ff7dbdb0e1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForExpressionKeywords.baseline.jsonc +++ /dev/null @@ -1,140 +0,0 @@ -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// class C { -// static x = 1; -// } -// /*FIND ALL REFS*/new C(); -// void C; -// typeof C; -// delete C.x; -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// class C { -// static x = 1; -// } -// new C(); -// /*FIND ALL REFS*/void C; -// typeof C; -// delete C.x; -// async function* f() { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// class C { -// static x = 1; -// } -// new C(); -// void C; -// /*FIND ALL REFS*/[|typeof|] C; -// delete C.x; -// async function* f() { -// yield C; -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// --- (line: 5) skipped --- -// typeof C; -// delete C.x; -// async function* f() { -// /*FIND ALL REFS*/yield C; -// await C; -// } -// "x" in C; -// undefined instanceof C; -// undefined as C; - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// --- (line: 6) skipped --- -// delete C.x; -// async function* f() { -// yield C; -// /*FIND ALL REFS*/await C; -// } -// "x" in C; -// undefined instanceof C; -// undefined as C; - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// --- (line: 8) skipped --- -// yield C; -// await C; -// } -// "x" /*FIND ALL REFS*/in C; -// undefined instanceof C; -// undefined as C; - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// class [|C|] { -// static x = 1; -// } -// new [|C|](); -// void [|C|]; -// typeof [|C|]; -// delete [|C|].x; -// async function* f() { -// yield [|C|]; -// await [|C|]; -// } -// "x" in [|C|]; -// undefined /*FIND ALL REFS*/instanceof [|C|]; -// undefined as [|C|]; - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// --- (line: 10) skipped --- -// } -// "x" in C; -// undefined instanceof C; -// undefined /*FIND ALL REFS*/as C; - - - - -// === findAllReferences === -// === /referencesForExpressionKeywords.ts === - -// --- (line: 3) skipped --- -// new C(); -// void C; -// typeof C; -// /*FIND ALL REFS*/delete C.x; -// async function* f() { -// yield C; -// await C; -// // --- (line: 11) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForExternalModuleNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForExternalModuleNames.baseline.jsonc deleted file mode 100644 index 0a8b6fda57..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForExternalModuleNames.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// /*FIND ALL REFS*/declare module "foo" { -// var f: number; -// } - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// declare module "/*FIND ALL REFS*/[|foo|]" { -// var f: number; -// } - - -// === /referencesForGlobals_2.ts === - -// import f = require("[|foo|]"); - - - - -// === findAllReferences === -// === /referencesForGlobals_2.ts === - -// /*FIND ALL REFS*/import f = require("foo"); - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// declare module "[|foo|]" { -// var f: number; -// } - - -// === /referencesForGlobals_2.ts === - -// import f = require("/*FIND ALL REFS*/[|foo|]"); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionOverloads.baseline.jsonc deleted file mode 100644 index 22e9952724..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionOverloads.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === - -// /*FIND ALL REFS*/function foo(x: string); -// function foo(x: string, y: number) { -// foo('', 43); -// } - - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === - -// function /*FIND ALL REFS*/[|foo|](x: string); -// function [|foo|](x: string, y: number) { -// [|foo|]('', 43); -// } - - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === - -// function foo(x: string); -// /*FIND ALL REFS*/function foo(x: string, y: number) { -// foo('', 43); -// } - - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === - -// function [|foo|](x: string); -// function /*FIND ALL REFS*/[|foo|](x: string, y: number) { -// [|foo|]('', 43); -// } - - - - -// === findAllReferences === -// === /referencesForFunctionOverloads.ts === - -// function [|foo|](x: string); -// function [|foo|](x: string, y: number) { -// /*FIND ALL REFS*/[|foo|]('', 43); -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionParameter.baseline.jsonc deleted file mode 100644 index 2f6301cdb3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForFunctionParameter.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === findAllReferences === -// === /referencesForFunctionParameter.ts === - -// var x; -// var n; -// -// function n(x: number, /*FIND ALL REFS*/[|n|]: number) { -// [|n|] = 32; -// x = [|n|]; -// } - - - - -// === findAllReferences === -// === /referencesForFunctionParameter.ts === - -// var x; -// var n; -// -// function n(x: number, [|n|]: number) { -// /*FIND ALL REFS*/[|n|] = 32; -// x = [|n|]; -// } - - - - -// === findAllReferences === -// === /referencesForFunctionParameter.ts === - -// var x; -// var n; -// -// function n(x: number, [|n|]: number) { -// [|n|] = 32; -// x = /*FIND ALL REFS*/[|n|]; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals.baseline.jsonc deleted file mode 100644 index 06d99f49ea..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals.baseline.jsonc +++ /dev/null @@ -1,128 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// /*FIND ALL REFS*/var global = 2; -// -// class foo { -// constructor (public global) { } -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// var /*FIND ALL REFS*/[|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = [|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = [|global|]; - - -// === /referencesForGlobals_2.ts === - -// var m = [|global|]; - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// var [|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = /*FIND ALL REFS*/[|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = [|global|]; - - -// === /referencesForGlobals_2.ts === - -// var m = [|global|]; - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// var [|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = [|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = /*FIND ALL REFS*/[|global|]; - - -// === /referencesForGlobals_2.ts === - -// var m = [|global|]; - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// var [|global|] = 2; -// -// class foo { -// constructor (public global) { } -// public f(global) { } -// public f2(global) { } -// } -// -// class bar { -// constructor () { -// var n = [|global|]; -// -// var f = new foo(''); -// f.global = ''; -// } -// } -// -// var k = [|global|]; - - -// === /referencesForGlobals_2.ts === - -// var m = /*FIND ALL REFS*/[|global|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals2.baseline.jsonc deleted file mode 100644 index 4a73d867a2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals2.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// /*FIND ALL REFS*/class globalClass { -// public f() { } -// } - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// class /*FIND ALL REFS*/[|globalClass|] { -// public f() { } -// } - - -// === /referencesForGlobals_2.ts === - -// var c = [|globalClass|](); - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// class [|globalClass|] { -// public f() { } -// } - - -// === /referencesForGlobals_2.ts === - -// var c = /*FIND ALL REFS*/[|globalClass|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals3.baseline.jsonc deleted file mode 100644 index 9947d0964d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals3.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// /*FIND ALL REFS*/interface globalInterface { -// f(); -// } - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// interface /*FIND ALL REFS*/[|globalInterface|] { -// f(); -// } - - -// === /referencesForGlobals_2.ts === - -// var i: [|globalInterface|]; - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// interface [|globalInterface|] { -// f(); -// } - - -// === /referencesForGlobals_2.ts === - -// var i: /*FIND ALL REFS*/[|globalInterface|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals4.baseline.jsonc deleted file mode 100644 index 2a781957a8..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals4.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// /*FIND ALL REFS*/module globalModule { -// export f() { }; -// } - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// module /*FIND ALL REFS*/[|globalModule|] { -// export f() { }; -// } - - -// === /referencesForGlobals_2.ts === - -// var m = [|globalModule|]; - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// module [|globalModule|] { -// export f() { }; -// } - - -// === /referencesForGlobals_2.ts === - -// var m = /*FIND ALL REFS*/[|globalModule|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals5.baseline.jsonc deleted file mode 100644 index b101632f3e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobals5.baseline.jsonc +++ /dev/null @@ -1,42 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// module globalModule { -// export var x; -// } -// -// /*FIND ALL REFS*/import globalAlias = globalModule; - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// module globalModule { -// export var x; -// } -// -// import /*FIND ALL REFS*/[|globalAlias|] = globalModule; - - -// === /referencesForGlobals_2.ts === - -// var m = [|globalAlias|]; - - - - -// === findAllReferences === -// === /referencesForGlobals_1.ts === - -// module globalModule { -// export var x; -// } -// -// import [|globalAlias|] = globalModule; - - -// === /referencesForGlobals_2.ts === - -// var m = /*FIND ALL REFS*/[|globalAlias|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobalsInExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobalsInExternalModule.baseline.jsonc deleted file mode 100644 index 4b4a084e07..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForGlobalsInExternalModule.baseline.jsonc +++ /dev/null @@ -1,182 +0,0 @@ -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// /*FIND ALL REFS*/var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class topLevelClass { } -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// var /*FIND ALL REFS*/[|topLevelVar|] = 2; -// var topLevelVar2 = [|topLevelVar|]; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// var [|topLevelVar|] = 2; -// var topLevelVar2 = /*FIND ALL REFS*/[|topLevelVar|]; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// /*FIND ALL REFS*/class topLevelClass { } -// var c = new topLevelClass(); -// -// interface topLevelInterface { } -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class /*FIND ALL REFS*/[|topLevelClass|] { } -// var c = new [|topLevelClass|](); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class [|topLevelClass|] { } -// var c = new /*FIND ALL REFS*/[|topLevelClass|](); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// --- (line: 3) skipped --- -// class topLevelClass { } -// var c = new topLevelClass(); -// -// /*FIND ALL REFS*/interface topLevelInterface { } -// var i: topLevelInterface; -// -// module topLevelModule { -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// --- (line: 3) skipped --- -// class topLevelClass { } -// var c = new topLevelClass(); -// -// interface /*FIND ALL REFS*/[|topLevelInterface|] { } -// var i: [|topLevelInterface|]; -// -// module topLevelModule { -// export var x; -// // --- (line: 12) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// --- (line: 3) skipped --- -// class topLevelClass { } -// var c = new topLevelClass(); -// -// interface [|topLevelInterface|] { } -// var i: /*FIND ALL REFS*/[|topLevelInterface|]; -// -// module topLevelModule { -// export var x; -// // --- (line: 12) skipped --- - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// --- (line: 6) skipped --- -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// /*FIND ALL REFS*/module topLevelModule { -// export var x; -// } -// var x = topLevelModule.x; -// -// export = x; - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// --- (line: 6) skipped --- -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// module /*FIND ALL REFS*/[|topLevelModule|] { -// export var x; -// } -// var x = [|topLevelModule|].x; -// -// export = x; - - - - -// === findAllReferences === -// === /referencesForGlobalsInExternalModule.ts === - -// --- (line: 6) skipped --- -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// module [|topLevelModule|] { -// export var x; -// } -// var x = /*FIND ALL REFS*/[|topLevelModule|].x; -// -// export = x; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIllegalAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIllegalAssignment.baseline.jsonc deleted file mode 100644 index bc2eb98e5c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIllegalAssignment.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /referencesForIllegalAssignment.ts === - -// f/*FIND ALL REFS*/oo = foo; -// var bar = function () { }; -// bar = bar + 1; - - - - -// === findAllReferences === -// === /referencesForIllegalAssignment.ts === - -// foo = fo/*FIND ALL REFS*/o; -// var bar = function () { }; -// bar = bar + 1; - - - - -// === findAllReferences === -// === /referencesForIllegalAssignment.ts === - -// foo = foo; -// var /*FIND ALL REFS*/[|bar|] = function () { }; -// [|bar|] = [|bar|] + 1; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForImports.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForImports.baseline.jsonc deleted file mode 100644 index 7733371e72..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForImports.baseline.jsonc +++ /dev/null @@ -1,62 +0,0 @@ -// === findAllReferences === -// === /referencesForImports.ts === - -// declare module "jquery" { -// function $(s: string): any; -// export = $; -// } -// /*FIND ALL REFS*/import $ = require("jquery"); -// $("a"); -// import $ = require("jquery"); - - - - -// === findAllReferences === -// === /referencesForImports.ts === - -// declare module "jquery" { -// function $(s: string): any; -// export = $; -// } -// import /*FIND ALL REFS*/[|$|] = require("jquery"); -// [|$|]("a"); -// import $ = require("jquery"); - - - - -// === findAllReferences === -// === /referencesForImports.ts === - -// declare module "jquery" { -// function $(s: string): any; -// export = $; -// } -// import [|$|] = require("jquery"); -// /*FIND ALL REFS*/[|$|]("a"); -// import $ = require("jquery"); - - - - -// === findAllReferences === -// === /referencesForImports.ts === - -// --- (line: 3) skipped --- -// } -// import $ = require("jquery"); -// $("a"); -// /*FIND ALL REFS*/import $ = require("jquery"); - - - - -// === findAllReferences === -// === /referencesForImports.ts === - -// --- (line: 3) skipped --- -// } -// import $ = require("jquery"); -// $("a"); -// import /*FIND ALL REFS*/[|$|] = require("jquery"); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty.baseline.jsonc deleted file mode 100644 index 9e6d538aff..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /referencesForIndexProperty.ts === - -// class Foo { -// /*FIND ALL REFS*/[|property|]: number; -// method(): void { } -// } -// -// var f: Foo; -// f["[|property|]"]; -// f["method"]; - - - - -// === findAllReferences === -// === /referencesForIndexProperty.ts === - -// class Foo { -// property: number; -// /*FIND ALL REFS*/[|method|](): void { } -// } -// -// var f: Foo; -// f["property"]; -// f["[|method|]"]; - - - - -// === findAllReferences === -// === /referencesForIndexProperty.ts === - -// class Foo { -// [|property|]: number; -// method(): void { } -// } -// -// var f: Foo; -// f["/*FIND ALL REFS*/[|property|]"]; -// f["method"]; - - - - -// === findAllReferences === -// === /referencesForIndexProperty.ts === - -// class Foo { -// property: number; -// [|method|](): void { } -// } -// -// var f: Foo; -// f["property"]; -// f["/*FIND ALL REFS*/[|method|]"]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty2.baseline.jsonc deleted file mode 100644 index 0699715589..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty2.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findAllReferences === -// === /referencesForIndexProperty2.ts === - -// var a; -// a["/*FIND ALL REFS*/blah"]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty3.baseline.jsonc deleted file mode 100644 index b7952955f1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForIndexProperty3.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /referencesForIndexProperty3.ts === - -// interface Object { -// /*FIND ALL REFS*/[|toMyString|](); -// } -// -// var y: Object; -// y.[|toMyString|](); -// -// var x = {}; -// x["[|toMyString|]"](); - - - - -// === findAllReferences === -// === /referencesForIndexProperty3.ts === - -// interface Object { -// [|toMyString|](); -// } -// -// var y: Object; -// y./*FIND ALL REFS*/[|toMyString|](); -// -// var x = {}; -// x["[|toMyString|]"](); - - - - -// === findAllReferences === -// === /referencesForIndexProperty3.ts === - -// interface Object { -// [|toMyString|](); -// } -// -// var y: Object; -// y.[|toMyString|](); -// -// var x = {}; -// x["/*FIND ALL REFS*/[|toMyString|]"](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties.baseline.jsonc deleted file mode 100644 index 8f54db59c2..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties.baseline.jsonc +++ /dev/null @@ -1,104 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties.ts === - -// interface interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// [|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); - - - - -// === findAllReferences === -// === /referencesForInheritedProperties.ts === - -// interface interface1 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// /*FIND ALL REFS*/[|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); - - - - -// === findAllReferences === -// === /referencesForInheritedProperties.ts === - -// interface interface1 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// [|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// /*FIND ALL REFS*/[|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); - - - - -// === findAllReferences === -// === /referencesForInheritedProperties.ts === - -// interface interface1 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1{ -// [|doStuff|](): void; -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v./*FIND ALL REFS*/[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties2.baseline.jsonc deleted file mode 100644 index 7a4f317ec3..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties2.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties2.ts === - -// interface interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// } -// -// interface interface2 { -// [|doStuff|](): void; -// } -// -// interface interface2 extends interface1 { -// } -// -// class class1 implements interface2 { -// [|doStuff|]() { -// -// } -// } -// -// class class2 extends class1 { -// -// } -// -// var v: class2; -// v.[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties3.baseline.jsonc deleted file mode 100644 index a5eeb3faaf..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties3.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v.[|doStuff|](); - - - - -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: interface1; -// v.[|propName|]; -// v.doStuff(); - - - - -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// -// var v: interface1; -// v./*FIND ALL REFS*/[|propName|]; -// v.doStuff(); - - - - -// === findAllReferences === -// === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v./*FIND ALL REFS*/[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties4.baseline.jsonc deleted file mode 100644 index ad772764e1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties4.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var c: class1; -// c.[|doStuff|](); -// c.propName; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var c: class1; -// c.doStuff(); -// c.[|propName|]; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var c: class1; -// c./*FIND ALL REFS*/[|doStuff|](); -// c.propName; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var c: class1; -// c.doStuff(); -// c./*FIND ALL REFS*/[|propName|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties5.baseline.jsonc deleted file mode 100644 index 6b6dabb357..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties5.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties5.ts === - -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// interface interface2 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// -// var v: interface1; -// v.propName; -// v.[|doStuff|](); - - - - -// === findAllReferences === -// === /referencesForInheritedProperties5.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface2 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// -// var v: interface1; -// v.[|propName|]; -// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties6.baseline.jsonc deleted file mode 100644 index 09108f9593..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties6.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties6.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// } -// class class2 extends class1 { -// [|doStuff|]() { } -// } -// -// var v: class2; -// v.[|doStuff|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties7.baseline.jsonc deleted file mode 100644 index c2b2b65e94..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties7.baseline.jsonc +++ /dev/null @@ -1,132 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// doStuff() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === - -// --- (line: 3) skipped --- -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// -// var v: class2; -// v.[|doStuff|](); -// v.propName; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// -// var v: class2; -// v.doStuff(); -// v.[|propName|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties8.baseline.jsonc deleted file mode 100644 index e3ed80d606..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties8.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties8.ts === - -// interface C extends D { -// /*FIND ALL REFS*/[|propD|]: number; -// } -// interface D extends C { -// [|propD|]: string; -// propC: number; -// } -// var d: D; -// d.[|propD|]; -// d.propC; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties8.ts === - -// interface C extends D { -// propD: number; -// } -// interface D extends C { -// propD: string; -// /*FIND ALL REFS*/[|propC|]: number; -// } -// var d: D; -// d.propD; -// d.[|propC|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties9.baseline.jsonc deleted file mode 100644 index bf0a442911..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForInheritedProperties9.baseline.jsonc +++ /dev/null @@ -1,43 +0,0 @@ -// === findAllReferences === -// === /referencesForInheritedProperties9.ts === - -// class D extends C { -// /*FIND ALL REFS*/[|prop1|]: string; -// } -// -// class C extends D { -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /referencesForInheritedProperties9.ts === - -// class D extends C { -// prop1: string; -// } -// -// class C extends D { -// /*FIND ALL REFS*/[|prop1|]: string; -// } -// -// var c: C; -// c.[|prop1|]; - - - - -// === findAllReferences === -// === /referencesForInheritedProperties9.ts === - -// class D extends C { -// prop1: string; -// } -// -// class C extends D { -// [|prop1|]: string; -// } -// -// var c: C; -// c./*FIND ALL REFS*/[|prop1|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel.baseline.jsonc deleted file mode 100644 index 6ddd5eb65e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel.baseline.jsonc +++ /dev/null @@ -1,80 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel.ts === - -// /*FIND ALL REFS*/[|label|]: while (true) { -// if (false) break [|label|]; -// if (true) continue [|label|]; -// } -// -// label: while (false) { } -// var label = "label"; - - - - -// === findAllReferences === -// === /referencesForLabel.ts === - -// label: while (true) { -// if (false) /*FIND ALL REFS*/break label; -// if (true) continue label; -// } -// -// label: while (false) { } -// var label = "label"; - - - - -// === findAllReferences === -// === /referencesForLabel.ts === - -// [|label|]: while (true) { -// if (false) break /*FIND ALL REFS*/[|label|]; -// if (true) continue [|label|]; -// } -// -// label: while (false) { } -// var label = "label"; - - - - -// === findAllReferences === -// === /referencesForLabel.ts === - -// label: while (true) { -// if (false) break label; -// if (true) /*FIND ALL REFS*/continue label; -// } -// -// label: while (false) { } -// var label = "label"; - - - - -// === findAllReferences === -// === /referencesForLabel.ts === - -// [|label|]: while (true) { -// if (false) break [|label|]; -// if (true) continue /*FIND ALL REFS*/[|label|]; -// } -// -// label: while (false) { } -// var label = "label"; - - - - -// === findAllReferences === -// === /referencesForLabel.ts === - -// label: while (true) { -// if (false) break label; -// if (true) continue label; -// } -// -// /*FIND ALL REFS*/[|label|]: while (false) { } -// var label = "label"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel2.baseline.jsonc deleted file mode 100644 index f102fc70dc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel2.ts === - -// var label = "label"; -// while (true) { -// if (false) break /*FIND ALL REFS*/label; -// if (true) continue label; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel3.baseline.jsonc deleted file mode 100644 index 6679b7164c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel3.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel3.ts === - -// /*FIND ALL REFS*/[|label|]: while (true) { -// var label = "label"; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel4.baseline.jsonc deleted file mode 100644 index b2622029e5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel4.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel4.ts === - -// /*FIND ALL REFS*/[|label|]: function foo(label) { -// while (true) { -// break [|label|]; -// } -// } - - - - -// === findAllReferences === -// === /referencesForLabel4.ts === - -// label: function foo(label) { -// while (true) { -// /*FIND ALL REFS*/break label; -// } -// } - - - - -// === findAllReferences === -// === /referencesForLabel4.ts === - -// [|label|]: function foo(label) { -// while (true) { -// break /*FIND ALL REFS*/[|label|]; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel5.baseline.jsonc deleted file mode 100644 index 1de7e3936e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel5.baseline.jsonc +++ /dev/null @@ -1,118 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel5.ts === - -// /*FIND ALL REFS*/[|label|]: while (true) { -// if (false) break [|label|]; -// function blah() { -// label: while (true) { -// if (false) break label; -// } -// } -// if (false) break [|label|]; -// } - - - - -// === findAllReferences === -// === /referencesForLabel5.ts === - -// label: while (true) { -// if (false) /*FIND ALL REFS*/break label; -// function blah() { -// label: while (true) { -// if (false) break label; -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /referencesForLabel5.ts === - -// [|label|]: while (true) { -// if (false) break /*FIND ALL REFS*/[|label|]; -// function blah() { -// label: while (true) { -// if (false) break label; -// } -// } -// if (false) break [|label|]; -// } - - - - -// === findAllReferences === -// === /referencesForLabel5.ts === - -// label: while (true) { -// if (false) break label; -// function blah() { -// /*FIND ALL REFS*/[|label|]: while (true) { -// if (false) break [|label|]; -// } -// } -// if (false) break label; -// } - - - - -// === findAllReferences === -// === /referencesForLabel5.ts === - -// label: while (true) { -// if (false) break label; -// function blah() { -// label: while (true) { -// if (false) /*FIND ALL REFS*/break label; -// } -// } -// if (false) break label; -// } - - - - -// === findAllReferences === -// === /referencesForLabel5.ts === - -// label: while (true) { -// if (false) break label; -// function blah() { -// [|label|]: while (true) { -// if (false) break /*FIND ALL REFS*/[|label|]; -// } -// } -// if (false) break label; -// } - - - - -// === findAllReferences === -// === /referencesForLabel5.ts === - -// --- (line: 4) skipped --- -// if (false) break label; -// } -// } -// if (false) /*FIND ALL REFS*/break label; -// } - - - - -// === findAllReferences === -// === /referencesForLabel5.ts === - -// [|label|]: while (true) { -// if (false) break [|label|]; -// function blah() { -// label: while (true) { -// if (false) break label; -// } -// } -// if (false) break /*FIND ALL REFS*/[|label|]; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel6.baseline.jsonc deleted file mode 100644 index c2cc04b2ae..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForLabel6.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === findAllReferences === -// === /referencesForLabel6.ts === - -// /*FIND ALL REFS*/[|labela|]: while (true) { -// labelb: while (false) { break labelb; } -// break labelc; -// } - - - - -// === findAllReferences === -// === /referencesForLabel6.ts === - -// labela: while (true) { -// /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } -// break labelc; -// } - - - - -// === findAllReferences === -// === /referencesForLabel6.ts === - -// labela: while (true) { -// labelb: while (false) { /*FIND ALL REFS*/break labelb; } -// break labelc; -// } - - - - -// === findAllReferences === -// === /referencesForLabel6.ts === - -// labela: while (true) { -// labelb: while (false) { break /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } -// break labelc; -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations.baseline.jsonc deleted file mode 100644 index 0b741b7e9f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations.baseline.jsonc +++ /dev/null @@ -1,154 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// /*FIND ALL REFS*/interface Foo { -// } -// -// module Foo { -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// interface /*FIND ALL REFS*/[|Foo|] { -// } -// -// module Foo { -// // --- (line: 5) skipped --- - - -// --- (line: 8) skipped --- -// } -// -// var f1: Foo.Bar; -// var f2: [|Foo|]; -// Foo.bind(this); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// interface Foo { -// } -// -// /*FIND ALL REFS*/module Foo { -// export interface Bar { } -// } -// -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// interface Foo { -// } -// -// module /*FIND ALL REFS*/[|Foo|] { -// export interface Bar { } -// } -// -// function Foo(): void { -// } -// -// var f1: [|Foo|].Bar; -// var f2: Foo; -// Foo.bind(this); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// --- (line: 4) skipped --- -// export interface Bar { } -// } -// -// /*FIND ALL REFS*/function Foo(): void { -// } -// -// var f1: Foo.Bar; -// var f2: Foo; -// Foo.bind(this); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// --- (line: 4) skipped --- -// export interface Bar { } -// } -// -// function /*FIND ALL REFS*/[|Foo|](): void { -// } -// -// var f1: Foo.Bar; -// var f2: Foo; -// [|Foo|].bind(this); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// interface Foo { -// } -// -// module [|Foo|] { -// export interface Bar { } -// } -// -// function Foo(): void { -// } -// -// var f1: /*FIND ALL REFS*/[|Foo|].Bar; -// var f2: Foo; -// Foo.bind(this); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// interface [|Foo|] { -// } -// -// module Foo { -// // --- (line: 5) skipped --- - - -// --- (line: 8) skipped --- -// } -// -// var f1: Foo.Bar; -// var f2: /*FIND ALL REFS*/[|Foo|]; -// Foo.bind(this); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations.ts === - -// --- (line: 4) skipped --- -// export interface Bar { } -// } -// -// function [|Foo|](): void { -// } -// -// var f1: Foo.Bar; -// var f2: Foo; -// /*FIND ALL REFS*/[|Foo|].bind(this); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations2.baseline.jsonc deleted file mode 100644 index 2cf2e1cd97..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations2.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === - -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// /*FIND ALL REFS*/import alias = ATest; // definition -// -// var a: alias.Bar; // namespace -// alias.call(this); // value - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === - -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// import /*FIND ALL REFS*/[|alias|] = ATest; // definition -// -// var a: [|alias|].Bar; // namespace -// [|alias|].call(this); // value - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === - -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// import [|alias|] = ATest; // definition -// -// var a: /*FIND ALL REFS*/[|alias|].Bar; // namespace -// [|alias|].call(this); // value - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations2.ts === - -// --- (line: 3) skipped --- -// -// function ATest() { } -// -// import [|alias|] = ATest; // definition -// -// var a: [|alias|].Bar; // namespace -// /*FIND ALL REFS*/[|alias|].call(this); // value diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations3.baseline.jsonc deleted file mode 100644 index 34f1c62143..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations3.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations3.ts === - -// class testClass { -// static staticMethod() { } -// method() { } -// } -// -// module /*FIND ALL REFS*/[|testClass|] { -// export interface Bar { -// -// } -// } -// -// var c1: testClass; -// var c2: [|testClass|].Bar; -// testClass.staticMethod(); -// testClass.prototype.method(); -// testClass.bind(this); -// new testClass(); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations3.ts === - -// class /*FIND ALL REFS*/[|testClass|] { -// static staticMethod() { } -// method() { } -// } -// // --- (line: 5) skipped --- - - -// --- (line: 8) skipped --- -// } -// } -// -// var c1: [|testClass|]; -// var c2: testClass.Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// new [|testClass|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations4.baseline.jsonc deleted file mode 100644 index 549b9b5a28..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations4.baseline.jsonc +++ /dev/null @@ -1,259 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// /*FIND ALL REFS*/class testClass { -// static staticMethod() { } -// method() { } -// } -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class /*FIND ALL REFS*/[|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class testClass { -// static staticMethod() { } -// method() { } -// } -// -// /*FIND ALL REFS*/module testClass { -// export interface Bar { -// -// } -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module /*FIND ALL REFS*/[|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: /*FIND ALL REFS*/[|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: /*FIND ALL REFS*/[|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// /*FIND ALL REFS*/[|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// /*FIND ALL REFS*/[|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// /*FIND ALL REFS*/[|testClass|].bind(this); -// [|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// /*FIND ALL REFS*/[|testClass|].s; -// new [|testClass|](); - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations4.ts === - -// class [|testClass|] { -// static staticMethod() { } -// method() { } -// } -// -// module [|testClass|] { -// export interface Bar { -// -// } -// export var s = 0; -// } -// -// var c1: [|testClass|]; -// var c2: [|testClass|].Bar; -// [|testClass|].staticMethod(); -// [|testClass|].prototype.method(); -// [|testClass|].bind(this); -// [|testClass|].s; -// new /*FIND ALL REFS*/[|testClass|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations5.baseline.jsonc deleted file mode 100644 index 0fe019045e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations5.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === - -// interface /*FIND ALL REFS*/[|Foo|] { } -// module Foo { export interface Bar { } } -// function Foo() { } -// -// export = Foo; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === - -// interface Foo { } -// module /*FIND ALL REFS*/[|Foo|] { export interface Bar { } } -// function Foo() { } -// -// export = Foo; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === - -// interface Foo { } -// module Foo { export interface Bar { } } -// function /*FIND ALL REFS*/[|Foo|]() { } -// -// export = [|Foo|]; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations5.ts === - -// interface Foo { } -// module Foo { export interface Bar { } } -// function [|Foo|]() { } -// -// export = /*FIND ALL REFS*/[|Foo|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations6.baseline.jsonc deleted file mode 100644 index 39c098d007..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations6.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations6.ts === - -// interface Foo { } -// /*FIND ALL REFS*/module Foo { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations6.ts === - -// interface Foo { } -// module /*FIND ALL REFS*/[|Foo|] { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a1 = [|Foo|]; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations6.ts === - -// interface Foo { } -// module [|Foo|] { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a1 = /*FIND ALL REFS*/[|Foo|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations7.baseline.jsonc deleted file mode 100644 index 65002364fe..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations7.baseline.jsonc +++ /dev/null @@ -1,58 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === - -// interface Foo { } -// module Foo { -// export interface /*FIND ALL REFS*/[|Bar|] { } -// export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === - -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } -// export function Bar() { } -// } -// -// // module, value and type -// import a2 = Foo.[|Bar|]; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === - -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module Bar { export interface Baz { } } -// export function /*FIND ALL REFS*/[|Bar|]() { } -// } -// -// // module, value and type -// import a2 = Foo.Bar; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations7.ts === - -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module [|Bar|] { export interface Baz { } } -// export function Bar() { } -// } -// -// // module, value and type -// import a2 = Foo./*FIND ALL REFS*/[|Bar|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations8.baseline.jsonc deleted file mode 100644 index c8286a452c..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForMergedDeclarations8.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /referencesForMergedDeclarations8.ts === - -// interface Foo { } -// module Foo { -// export interface Bar { } -// /*FIND ALL REFS*/export module Bar { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a3 = Foo.Bar.Baz; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations8.ts === - -// interface Foo { } -// module Foo { -// export interface Bar { } -// export module /*FIND ALL REFS*/[|Bar|] { export interface Baz { } } -// export function Bar() { } -// } -// -// // module -// import a3 = Foo.[|Bar|].Baz; - - - - -// === findAllReferences === -// === /referencesForMergedDeclarations8.ts === - -// interface Foo { } -// module Foo { -// export interface [|Bar|] { } -// export module [|Bar|] { export interface Baz { } } -// export function [|Bar|]() { } -// } -// -// // module -// import a3 = Foo./*FIND ALL REFS*/[|Bar|].Baz; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForModifiers.baseline.jsonc deleted file mode 100644 index c522e1120e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForModifiers.baseline.jsonc +++ /dev/null @@ -1,148 +0,0 @@ -// === findAllReferences === -// === /referencesForModifiers.ts === - -// /*FIND ALL REFS*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// declare /*FIND ALL REFS*/abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// declare abstract class C1 { -// /*FIND ALL REFS*/static a; -// readonly b; -// public c; -// protected d; -// // --- (line: 6) skipped --- - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// declare abstract class C1 { -// static a; -// /*FIND ALL REFS*/readonly b; -// public c; -// protected d; -// private e; -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// declare abstract class C1 { -// static a; -// readonly b; -// /*FIND ALL REFS*/public c; -// protected d; -// private e; -// } -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// /*FIND ALL REFS*/protected d; -// private e; -// } -// const enum E { -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// /*FIND ALL REFS*/private e; -// } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// --- (line: 4) skipped --- -// protected d; -// private e; -// } -// /*FIND ALL REFS*/const enum E { -// } -// async function fn() {} -// export default class C2 {} - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// --- (line: 6) skipped --- -// } -// const enum E { -// } -// /*FIND ALL REFS*/async function fn() {} -// export default class C2 {} - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// --- (line: 7) skipped --- -// const enum E { -// } -// async function fn() {} -// /*FIND ALL REFS*/export default class C2 {} - - - - -// === findAllReferences === -// === /referencesForModifiers.ts === - -// --- (line: 7) skipped --- -// const enum E { -// } -// async function fn() {} -// export /*FIND ALL REFS*/default class C2 {} diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForNoContext.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForNoContext.baseline.jsonc deleted file mode 100644 index 34961ef11d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForNoContext.baseline.jsonc +++ /dev/null @@ -1,58 +0,0 @@ -// === findAllReferences === -// === /referencesForNoContext.ts === - -// module modTest { -// //Declare -// export var modVar:number; -// /*FIND ALL REFS*/ -// -// //Increments -// modVar++; -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesForNoContext.ts === - -// --- (line: 6) skipped --- -// modVar++; -// -// class testCls{ -// /*FIND ALL REFS*/ -// } -// -// function testFn(){ -// // --- (line: 14) skipped --- - - - - -// === findAllReferences === -// === /referencesForNoContext.ts === - -// --- (line: 12) skipped --- -// function testFn(){ -// //Increments -// modVar++; -// } /*FIND ALL REFS*/ -// -// module testMod { -// } -// } - - - - -// === findAllReferences === -// === /referencesForNoContext.ts === - -// --- (line: 13) skipped --- -// //Increments -// modVar++; -// } -// /*FIND ALL REFS*/ -// module testMod { -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForNumericLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForNumericLiteralPropertyNames.baseline.jsonc deleted file mode 100644 index 0ecddc1b94..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForNumericLiteralPropertyNames.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /referencesForNumericLiteralPropertyNames.ts === - -// class Foo { -// public /*FIND ALL REFS*/[|12|]: any; -// } -// -// var x: Foo; -// x[[|12|]]; -// x = { "[|12|]": 0 }; -// x = { [|12|]: 0 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index c4b651e95e..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === - -// var x = { /*FIND ALL REFS*/[|add|]: 0, b: "string" }; -// x["[|add|]"]; -// x.[|add|]; -// var y = x; -// y.[|add|]; - - - - -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === - -// var x = { [|add|]: 0, b: "string" }; -// x["/*FIND ALL REFS*/[|add|]"]; -// x.[|add|]; -// var y = x; -// y.[|add|]; - - - - -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === - -// var x = { [|add|]: 0, b: "string" }; -// x["[|add|]"]; -// x./*FIND ALL REFS*/[|add|]; -// var y = x; -// y.[|add|]; - - - - -// === findAllReferences === -// === /referencesForObjectLiteralProperties.ts === - -// var x = { [|add|]: 0, b: "string" }; -// x["[|add|]"]; -// x.[|add|]; -// var y = x; -// y./*FIND ALL REFS*/[|add|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForOverrides.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForOverrides.baseline.jsonc deleted file mode 100644 index f23de46f3f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForOverrides.baseline.jsonc +++ /dev/null @@ -1,175 +0,0 @@ -// === findAllReferences === -// === /referencesForOverrides.ts === - -// module FindRef3 { -// module SimpleClassTest { -// export class Foo { -// public /*FIND ALL REFS*/[|foo|](): void { -// } -// } -// export class Bar extends Foo { -// public [|foo|](): void { -// } -// } -// } -// // --- (line: 12) skipped --- - - -// --- (line: 58) skipped --- -// -// function test() { -// var x = new SimpleClassTest.Bar(); -// x.[|foo|](); -// -// var y: SimpleInterfaceTest.IBar = null; -// y.ifoo(); -// // --- (line: 66) skipped --- - - - - -// === findAllReferences === -// === /referencesForOverrides.ts === - -// --- (line: 11) skipped --- -// -// module SimpleInterfaceTest { -// export interface IFoo { -// /*FIND ALL REFS*/[|ifoo|](): void; -// } -// export interface IBar extends IFoo { -// [|ifoo|](): void; -// } -// } -// -// // --- (line: 22) skipped --- - - -// --- (line: 61) skipped --- -// x.foo(); -// -// var y: SimpleInterfaceTest.IBar = null; -// y.[|ifoo|](); -// -// var w: SimpleClassInterfaceTest.Bar = null; -// w.icfoo(); -// // --- (line: 69) skipped --- - - - - -// === findAllReferences === -// === /referencesForOverrides.ts === - -// --- (line: 20) skipped --- -// -// module SimpleClassInterfaceTest { -// export interface IFoo { -// /*FIND ALL REFS*/[|icfoo|](): void; -// } -// export class Bar implements IFoo { -// public [|icfoo|](): void { -// } -// } -// } -// // --- (line: 31) skipped --- - - -// --- (line: 64) skipped --- -// y.ifoo(); -// -// var w: SimpleClassInterfaceTest.Bar = null; -// w.[|icfoo|](); -// -// var z = new Test.BarBlah(); -// z.field = ""; -// // --- (line: 72) skipped --- - - - - -// === findAllReferences === -// === /referencesForOverrides.ts === - -// --- (line: 30) skipped --- -// -// module Test { -// export interface IBase { -// /*FIND ALL REFS*/[|field|]: string; -// method(): void; -// } -// -// export interface IBlah extends IBase { -// [|field|]: string; -// } -// -// export interface IBlah2 extends IBlah { -// [|field|]: string; -// } -// -// export interface IDerived extends IBlah2 { -// method(): void; -// } -// -// export class Bar implements IDerived { -// public [|field|]: string; -// public method(): void { } -// } -// -// export class BarBlah extends Bar { -// public [|field|]: string; -// } -// } -// -// // --- (line: 60) skipped --- - - -// --- (line: 67) skipped --- -// w.icfoo(); -// -// var z = new Test.BarBlah(); -// z.[|field|] = ""; -// z.method(); -// } -// } - - - - -// === findAllReferences === -// === /referencesForOverrides.ts === - -// --- (line: 31) skipped --- -// module Test { -// export interface IBase { -// field: string; -// /*FIND ALL REFS*/[|method|](): void; -// } -// -// export interface IBlah extends IBase { -// // --- (line: 39) skipped --- - - -// --- (line: 43) skipped --- -// } -// -// export interface IDerived extends IBlah2 { -// [|method|](): void; -// } -// -// export class Bar implements IDerived { -// public field: string; -// public [|method|](): void { } -// } -// -// export class BarBlah extends Bar { -// // --- (line: 56) skipped --- - - -// --- (line: 68) skipped --- -// -// var z = new Test.BarBlah(); -// z.field = ""; -// z.[|method|](); -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForPropertiesOfGenericType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForPropertiesOfGenericType.baseline.jsonc deleted file mode 100644 index f6074b0c5a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForPropertiesOfGenericType.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /referencesForPropertiesOfGenericType.ts === - -// interface IFoo { -// /*FIND ALL REFS*/[|doSomething|](v: T): T; -// } -// -// var x: IFoo; -// x.[|doSomething|]("ss"); -// -// var y: IFoo; -// y.[|doSomething|](12); - - - - -// === findAllReferences === -// === /referencesForPropertiesOfGenericType.ts === - -// interface IFoo { -// [|doSomething|](v: T): T; -// } -// -// var x: IFoo; -// x./*FIND ALL REFS*/[|doSomething|]("ss"); -// -// var y: IFoo; -// y.[|doSomething|](12); - - - - -// === findAllReferences === -// === /referencesForPropertiesOfGenericType.ts === - -// interface IFoo { -// [|doSomething|](v: T): T; -// } -// -// var x: IFoo; -// x.[|doSomething|]("ss"); -// -// var y: IFoo; -// y./*FIND ALL REFS*/[|doSomething|](12); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStatic.baseline.jsonc deleted file mode 100644 index 311ea18043..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStatic.baseline.jsonc +++ /dev/null @@ -1,291 +0,0 @@ -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// /*FIND ALL REFS*/static n = ''; -// -// public bar() { -// foo.n = "'"; -// // --- (line: 8) skipped --- - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static /*FIND ALL REFS*/[|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo.[|n|]; - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo./*FIND ALL REFS*/[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo.[|n|]; - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo./*FIND ALL REFS*/[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo.[|n|]; - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo./*FIND ALL REFS*/[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo.[|n|]; - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo./*FIND ALL REFS*/[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo.[|n|]; - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo./*FIND ALL REFS*/[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo.[|n|]; - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo./*FIND ALL REFS*/[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo.[|n|]; - - - - -// === findAllReferences === -// === /referencesOnStatic_1.ts === - -// var n = 43; -// -// class foo { -// static [|n|] = ''; -// -// public bar() { -// foo.[|n|] = "'"; -// if(foo.[|n|]) { -// var x = foo.[|n|]; -// } -// } -// } -// -// class foo2 { -// private x = foo.[|n|]; -// constructor() { -// foo.[|n|] = x; -// } -// -// function b(n) { -// n = foo.[|n|]; -// } -// } - - -// === /referencesOnStatic_2.ts === - -// var q = foo./*FIND ALL REFS*/[|n|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStaticsAndMembersWithSameNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStaticsAndMembersWithSameNames.baseline.jsonc deleted file mode 100644 index b4cdf5a0e6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStaticsAndMembersWithSameNames.baseline.jsonc +++ /dev/null @@ -1,250 +0,0 @@ -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// /*FIND ALL REFS*/[|bar|]: Foo; -// static bar: Foo; -// -// public foo(): void { -// // --- (line: 8) skipped --- - - -// --- (line: 14) skipped --- -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); -// x.[|bar|]; -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// // --- (line: 22) skipped --- - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// /*FIND ALL REFS*/static bar: Foo; -// -// public foo(): void { -// } -// // --- (line: 9) skipped --- - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// static /*FIND ALL REFS*/[|bar|]: Foo; -// -// public foo(): void { -// } -// // --- (line: 9) skipped --- - - -// --- (line: 18) skipped --- -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.[|bar|]; -// } -// } - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// --- (line: 3) skipped --- -// bar: Foo; -// static bar: Foo; -// -// /*FIND ALL REFS*/public foo(): void { -// } -// public static foo(): void { -// } -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// --- (line: 3) skipped --- -// bar: Foo; -// static bar: Foo; -// -// public /*FIND ALL REFS*/[|foo|](): void { -// } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.[|foo|](); -// x.bar; -// -// // static function -// // --- (line: 21) skipped --- - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// --- (line: 5) skipped --- -// -// public foo(): void { -// } -// /*FIND ALL REFS*/public static foo(): void { -// } -// } -// } -// // --- (line: 13) skipped --- - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// --- (line: 5) skipped --- -// -// public foo(): void { -// } -// public static /*FIND ALL REFS*/[|foo|](): void { -// } -// } -// } -// // --- (line: 13) skipped --- - - -// --- (line: 17) skipped --- -// x.bar; -// -// // static function -// MixedStaticsClassTest.Foo.[|foo|](); -// MixedStaticsClassTest.Foo.bar; -// } -// } - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// --- (line: 3) skipped --- -// bar: Foo; -// static bar: Foo; -// -// public [|foo|](): void { -// } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x./*FIND ALL REFS*/[|foo|](); -// x.bar; -// -// // static function -// // --- (line: 21) skipped --- - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// [|bar|]: Foo; -// static bar: Foo; -// -// public foo(): void { -// // --- (line: 8) skipped --- - - -// --- (line: 14) skipped --- -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); -// x./*FIND ALL REFS*/[|bar|]; -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// // --- (line: 22) skipped --- - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// --- (line: 5) skipped --- -// -// public foo(): void { -// } -// public static [|foo|](): void { -// } -// } -// } -// // --- (line: 13) skipped --- - - -// --- (line: 17) skipped --- -// x.bar; -// -// // static function -// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|foo|](); -// MixedStaticsClassTest.Foo.bar; -// } -// } - - - - -// === findAllReferences === -// === /referencesForStaticsAndMembersWithSameNames.ts === - -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// static [|bar|]: Foo; -// -// public foo(): void { -// } -// // --- (line: 9) skipped --- - - -// --- (line: 18) skipped --- -// -// // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|bar|]; -// } -// } diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames.baseline.jsonc deleted file mode 100644 index 20796674ce..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames.ts === - -// class Foo { -// public "/*FIND ALL REFS*/[|ss|]": any; -// } -// -// var x: Foo; -// x.[|ss|]; -// x["[|ss|]"]; -// x = { "[|ss|]": 0 }; -// x = { [|ss|]: 0 }; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames2.baseline.jsonc deleted file mode 100644 index 970e7d9bfc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames2.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames2.ts === - -// class Foo { -// /*FIND ALL REFS*/"[|blah|]"() { return 0; } -// } -// -// var x: Foo; -// x.[|blah|]; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames2.ts === - -// class Foo { -// "/*FIND ALL REFS*/[|blah|]"() { return 0; } -// } -// -// var x: Foo; -// x.[|blah|]; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames2.ts === - -// class Foo { -// "[|blah|]"() { return 0; } -// } -// -// var x: Foo; -// x./*FIND ALL REFS*/[|blah|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames3.baseline.jsonc deleted file mode 100644 index b6926bd12f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames3.baseline.jsonc +++ /dev/null @@ -1,66 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === - -// class Foo2 { -// /*FIND ALL REFS*/get "42"() { return 0; } -// set 42(n) { } -// } -// -// var y: Foo2; -// y[42]; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === - -// class Foo2 { -// get "/*FIND ALL REFS*/[|42|]"() { return 0; } -// set [|42|](n) { } -// } -// -// var y: Foo2; -// y[[|42|]]; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === - -// class Foo2 { -// get "42"() { return 0; } -// /*FIND ALL REFS*/set 42(n) { } -// } -// -// var y: Foo2; -// y[42]; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === - -// class Foo2 { -// get "[|42|]"() { return 0; } -// set /*FIND ALL REFS*/[|42|](n) { } -// } -// -// var y: Foo2; -// y[[|42|]]; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames3.ts === - -// class Foo2 { -// get "[|42|]"() { return 0; } -// set [|42|](n) { } -// } -// -// var y: Foo2; -// y[/*FIND ALL REFS*/[|42|]]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames4.baseline.jsonc deleted file mode 100644 index 8cb9891027..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames4.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames4.ts === - -// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } -// x["[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames4.ts === - -// var x = { "[|someProperty|]": 0 } -// x[/*FIND ALL REFS*/"[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames5.baseline.jsonc deleted file mode 100644 index cb3b350388..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames5.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames5.ts === - -// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } -// x["[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames5.ts === - -// var x = { "[|someProperty|]": 0 } -// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames6.baseline.jsonc deleted file mode 100644 index 2a63bb7088..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames6.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames6.ts === - -// const x = function () { return 111111; } -// x./*FIND ALL REFS*/[|someProperty|] = 5; -// x["[|someProperty|]"] = 3; - - - - -// === findAllReferences === -// === /referencesForStringLiteralPropertyNames6.ts === - -// const x = function () { return 111111; } -// x.[|someProperty|] = 5; -// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames7.baseline.jsonc deleted file mode 100644 index 5ec03d47fc..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForStringLiteralPropertyNames7.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findAllReferences === -// === /foo.js === - -// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } -// x["[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; - - - - -// === findAllReferences === -// === /foo.js === - -// var x = { "[|someProperty|]": 0 } -// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForTypeKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForTypeKeywords.baseline.jsonc deleted file mode 100644 index 92d4825460..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForTypeKeywords.baseline.jsonc +++ /dev/null @@ -1,78 +0,0 @@ -// === findAllReferences === -// === /referencesForTypeKeywords.ts === - -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === - -// interface I {} -// function f() {} -// type A1 = T /*FIND ALL REFS*/extends U ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === - -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends /*FIND ALL REFS*/[|infer|] U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === - -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P /*FIND ALL REFS*/in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = readonly T[]; - - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === - -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in [|keyof|] T]: 1 }; -// type A4 = /*FIND ALL REFS*/[|keyof|] T; -// type A5 = readonly T[]; - - - - -// === findAllReferences === -// === /referencesForTypeKeywords.ts === - -// --- (line: 3) skipped --- -// type A2 = T extends infer U ? 1 : 0; -// type A3 = { [P in keyof T]: 1 }; -// type A4 = keyof T; -// type A5 = /*FIND ALL REFS*/[|readonly|] T[]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesForUnionProperties.baseline.jsonc deleted file mode 100644 index 4db0a2d74d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesForUnionProperties.baseline.jsonc +++ /dev/null @@ -1,72 +0,0 @@ -// === findAllReferences === -// === /referencesForUnionProperties.ts === - -// interface One { -// common: { /*FIND ALL REFS*/[|a|]: number; }; -// } -// -// interface Base { -// // --- (line: 6) skipped --- - - -// --- (line: 17) skipped --- -// -// var x : One | Two; -// -// x.common.[|a|]; - - - - -// === findAllReferences === -// === /referencesForUnionProperties.ts === - -// interface One { -// common: { a: number; }; -// } -// -// interface Base { -// /*FIND ALL REFS*/[|a|]: string; -// b: string; -// } -// -// interface HasAOrB extends Base { -// [|a|]: string; -// b: string; -// } -// -// interface Two { -// common: HasAOrB; -// } -// -// var x : One | Two; -// -// x.common.[|a|]; - - - - -// === findAllReferences === -// === /referencesForUnionProperties.ts === - -// interface One { -// common: { [|a|]: number; }; -// } -// -// interface Base { -// [|a|]: string; -// b: string; -// } -// -// interface HasAOrB extends Base { -// [|a|]: string; -// b: string; -// } -// -// interface Two { -// common: HasAOrB; -// } -// -// var x : One | Two; -// -// x.common./*FIND ALL REFS*/[|a|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesInConfiguredProject.baseline.jsonc deleted file mode 100644 index 677e1bd466..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesInConfiguredProject.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/referencesForGlobals_1.ts === - -// class [|globalClass|] { -// public f() { } -// } - - -// === /home/src/workspaces/project/referencesForGlobals_2.ts === - -// var c = /*FIND ALL REFS*/[|globalClass|](); diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesInEmptyFileWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesInEmptyFileWithMultipleProjects.baseline.jsonc deleted file mode 100644 index 4ed101013b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesInEmptyFileWithMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/a.ts === - -// /// -// /*FIND ALL REFS*/; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/b.ts === - -// /*FIND ALL REFS*/; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesInStringLiteralValueWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesInStringLiteralValueWithMultipleProjects.baseline.jsonc deleted file mode 100644 index a531446c31..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesInStringLiteralValueWithMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /home/src/workspaces/project/a/a.ts === - -// /// -// const str: string = "hello/*FIND ALL REFS*/"; - - - - -// === findAllReferences === -// === /home/src/workspaces/project/b/b.ts === - -// const str2: string = "hello/*FIND ALL REFS*/"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesToNonPropertyNameStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesToNonPropertyNameStringLiteral.baseline.jsonc deleted file mode 100644 index b108a83ef1..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesToNonPropertyNameStringLiteral.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /referencesToNonPropertyNameStringLiteral.ts === - -// const str: string = "hello/*FIND ALL REFS*/"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/ReferencesToStringLiteralValue.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/ReferencesToStringLiteralValue.baseline.jsonc deleted file mode 100644 index 71842e32eb..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/ReferencesToStringLiteralValue.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findAllReferences === -// === /referencesToStringLiteralValue.ts === - -// const s: string = "some /*FIND ALL REFS*/ string"; diff --git a/testdata/baselines/reference/fourslash/findAllRef/RemoteGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/RemoteGetReferences.baseline.jsonc deleted file mode 100644 index a9c778558f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/RemoteGetReferences.baseline.jsonc +++ /dev/null @@ -1,1941 +0,0 @@ -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: /*FIND ALL REFS*/[|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new /*FIND ALL REFS*/[|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(/*FIND ALL REFS*/[|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo(/*FIND ALL REFS*/[|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// /*FIND ALL REFS*/[|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_2.ts === - -// /*FIND ALL REFS*/var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var /*FIND ALL REFS*/[|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// /*FIND ALL REFS*/class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// // --- (line: 7) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class /*FIND ALL REFS*/[|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// /*FIND ALL REFS*/[|remoteclsVar|] = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.[|remoteclsVar|]++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// /*FIND ALL REFS*/static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// // --- (line: 10) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static /*FIND ALL REFS*/[|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// [|remoteclsVar|] = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this./*FIND ALL REFS*/[|remoteclsVar|]++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// // --- (line: 15) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 85) skipped --- -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo([|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|remoteglobalVar|] = 3; -// -// //Find References misses method param -// var -// // --- (line: 102) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var [|remoteglobalVar|]: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// [|remoteglobalVar|]++; -// this.remoteclsVar++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// // --- (line: 14) skipped --- - - -// --- (line: 20) skipped --- -// -// //Increments -// remotefooCls.remoteclsSVar++; -// [|remoteglobalVar|]++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// // --- (line: 28) skipped --- - - -// --- (line: 33) skipped --- -// export var remotemodVar: number; -// -// //Increments -// [|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// // --- (line: 41) skipped --- - - -// --- (line: 45) skipped --- -// static remoteboo = remotefoo; -// -// //Increments -// /*FIND ALL REFS*/[|remoteglobalVar|]++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// // --- (line: 53) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 82) skipped --- -// -// //Remotes -// //Type test -// var remoteclsTest: [|remotefooCls|]; -// -// //Arguments -// remoteclsTest = new [|remotefooCls|](remoteglobalVar); -// remotefoo(remoteglobalVar); -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class [|remotefooCls|] { -// //Declare -// remoteclsVar = 1; -// static remoteclsSVar = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// [|remotefooCls|].remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// [|remotefooCls|].remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// [|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// /*FIND ALL REFS*/[|remotefooCls|].remoteclsSVar++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- - - - - -// === findAllReferences === -// === /remoteGetReferences_1.ts === - -// --- (line: 89) skipped --- -// remotefoo(remoteglobalVar); -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + remoteglobalVar; -// -// // --- (line: 97) skipped --- - - -// === /remoteGetReferences_2.ts === - -// var remoteglobalVar: number = 2; -// -// class remotefooCls { -// //Declare -// remoteclsVar = 1; -// static [|remoteclsSVar|] = 1; -// -// constructor(public remoteclsParam: number) { -// //Increments -// remoteglobalVar++; -// this.remoteclsVar++; -// remotefooCls.[|remoteclsSVar|]++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// // --- (line: 16) skipped --- - - -// --- (line: 19) skipped --- -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.[|remoteclsSVar|]++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// // --- (line: 27) skipped --- - - -// --- (line: 34) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls.[|remoteclsSVar|]++; -// remotemodVar++; -// -// class remotetestCls { -// // --- (line: 42) skipped --- - - -// --- (line: 46) skipped --- -// -// //Increments -// remoteglobalVar++; -// remotefooCls./*FIND ALL REFS*/[|remoteclsSVar|]++; -// remotemodVar++; -// } -// -// // --- (line: 54) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports02.baseline.jsonc deleted file mode 100644 index acdb42aec6..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports02.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// module.exports = class /*FIND ALL REFS*/[|A|] {} - - - - -// === findAllReferences === -// === /b.js === - -// const /*FIND ALL REFS*/[|A|] = require("./a"); diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports03.baseline.jsonc deleted file mode 100644 index e0fd047e6b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports03.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// class /*FIND ALL REFS*/[|A|] { -// constructor() { } -// } -// module.exports = [|A|]; - - - - -// === findAllReferences === -// === /a.js === - -// class [|A|] { -// /*FIND ALL REFS*/constructor() { } -// } -// module.exports = [|A|]; - - - - -// === findAllReferences === -// === /b.js === - -// const /*FIND ALL REFS*/[|A|] = require("./a"); -// new [|A|]; - - - - -// === findAllReferences === -// === /b.js === - -// const [|A|] = require("./a"); -// new /*FIND ALL REFS*/[|A|]; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences1.baseline.jsonc deleted file mode 100644 index 01c418bc1b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences1.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// /*FIND ALL REFS*/[|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = <[|div|] />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 7) skipped --- -// span: { n: string; }; -// } -// } -// var x = /*FIND ALL REFS*/
; - - - - -// === findAllReferences === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences10.baseline.jsonc deleted file mode 100644 index 0b6ea0c89d..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences10.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// className?: string; -// } -// interface ButtonProps extends ClickableProps { -// /*FIND ALL REFS*/[|onClick|](event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// goTo: string; -// // --- (line: 16) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences11.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences11.baseline.jsonc deleted file mode 100644 index 8e1dfbe19f..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences11.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 16) skipped --- -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences2.baseline.jsonc deleted file mode 100644 index 86ad70002b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences2.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// /*FIND ALL REFS*/[|name|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// // --- (line: 9) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences3.baseline.jsonc deleted file mode 100644 index 57c04e416b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences3.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 5) skipped --- -// } -// class MyClass { -// props: { -// /*FIND ALL REFS*/[|name|]?: string; -// size?: number; -// } -// -// -// var x = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences4.baseline.jsonc deleted file mode 100644 index 41588be2b5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences4.baseline.jsonc +++ /dev/null @@ -1,81 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// /*FIND ALL REFS*/class MyClass { -// props: { -// name?: string; -// size?: number; -// // --- (line: 11) skipped --- - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class /*FIND ALL REFS*/[|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } -// -// -// var x = <[|MyClass|] name='hello'>; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// -// -// var x = /*FIND ALL REFS*/; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class [|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } -// -// -// var x = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class [|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } -// -// -// var x = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences5.baseline.jsonc deleted file mode 100644 index d528f1bf15..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences5.baseline.jsonc +++ /dev/null @@ -1,185 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// /*FIND ALL REFS*/declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function /*FIND ALL REFS*/[|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 9) skipped --- -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = /*FIND ALL REFS*/; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = /*FIND ALL REFS*/; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = ; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 11) skipped --- -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = /*FIND ALL REFS*/; -// let opt3 = ; -// let opt4 = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = ; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 12) skipped --- -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = /*FIND ALL REFS*/; -// let opt4 = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = ; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = /*FIND ALL REFS*/; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences6.baseline.jsonc deleted file mode 100644 index 3e0b7e2016..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences6.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 9) skipped --- -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences7.baseline.jsonc deleted file mode 100644 index 99ce269af9..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences7.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// /*FIND ALL REFS*/[|propx|]: number -// propString: string -// optional?: boolean -// } -// // --- (line: 12) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences8.baseline.jsonc deleted file mode 100644 index 44906820c0..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences8.baseline.jsonc +++ /dev/null @@ -1,311 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// /*FIND ALL REFS*/declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// // --- (line: 21) skipped --- - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function /*FIND ALL REFS*/[|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 14) skipped --- -// goTo: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// /*FIND ALL REFS*/declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// // --- (line: 22) skipped --- - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function /*FIND ALL REFS*/[|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 15) skipped --- -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// /*FIND ALL REFS*/declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// // --- (line: 23) skipped --- - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function /*FIND ALL REFS*/[|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 16) skipped --- -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = /*FIND ALL REFS*/; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 17) skipped --- -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = /*FIND ALL REFS*/; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = ; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 18) skipped --- -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = /*FIND ALL REFS*/{}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = {}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 19) skipped --- -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = /*FIND ALL REFS*/{}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = {}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 20) skipped --- -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = /*FIND ALL REFS*/; -// let opt = ; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = ; -// let opt = <[|MainButton|] wrong />; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 21) skipped --- -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = /*FIND ALL REFS*/; - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = ; diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences9.baseline.jsonc deleted file mode 100644 index 8d8013277b..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferences9.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 11) skipped --- -// onClick(event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// /*FIND ALL REFS*/[|goTo|]: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// // --- (line: 19) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType1.baseline.jsonc deleted file mode 100644 index 8fe7b18660..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType1.baseline.jsonc +++ /dev/null @@ -1,47 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// /*FIND ALL REFS*/var SFCComp = SFC1 || SFC2; -// - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var /*FIND ALL REFS*/[|SFCComp|] = SFC1 || SFC2; -// <[|SFCComp|] x={ "hi" } /> - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 10) skipped --- -// return

World

; -// } -// var SFCComp = SFC1 || SFC2; -// /*FIND ALL REFS*/ - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var [|SFCComp|] = SFC1 || SFC2; -// diff --git a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType2.baseline.jsonc deleted file mode 100644 index fc1df9cfc5..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/TsxFindAllReferencesUnionElementType2.baseline.jsonc +++ /dev/null @@ -1,47 +0,0 @@ -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// /*FIND ALL REFS*/var RCComp = RC1 || RC2; -// - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// var /*FIND ALL REFS*/[|RCComp|] = RC1 || RC2; -// <[|RCComp|] /> - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 9) skipped --- -// private method() { } -// } -// var RCComp = RC1 || RC2; -// /*FIND ALL REFS*/ - - - - -// === findAllReferences === -// === /file.tsx === - -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// var [|RCComp|] = RC1 || RC2; -// diff --git a/testdata/baselines/reference/fourslash/ambientShorthandFindAllRefs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/ambientShorthandFindAllRefs.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/autoImportProvider_referencesCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/autoImportProvider_referencesCrash.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/constructorFindAllReferences1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/constructorFindAllReferences2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/constructorFindAllReferences3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/constructorFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/constructorFindAllReferences4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/esModuleInteropFindAllReferences2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/explainFilesNodeNextWithTypesReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/explainFilesNodeNextWithTypesReference.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesFromLinkTagReference5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesImportMeta.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionNew.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionNew.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesJSDocFunctionThis.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesJsDocTypeLiteral.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesJsRequireDestructuring1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesLinkTag1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesLinkTag2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesLinkTag3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesNonExistentExportBinding.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesNonExistentExportBinding.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesOfConstructor.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesOfConstructor_badOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesOfConstructor_badOverload.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesOfJsonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesOfJsonModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesUndefined.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllReferencesUndefined.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsBadImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsBadImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsCatchClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsCatchClause.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassExpression0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsClassExpression0.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsClassExpression1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassExpression2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsClassExpression2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsClassStaticBlocks.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/FindAllRefsClassWithStaticThisAccess.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsConstructorFunctions.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsConstructorFunctions.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsDeclareClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsDeclareClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsDefaultImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsDefaultImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsDefinition.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsDestructureGeneric.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsDestructureGeneric.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsDestructureGetter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsDestructureGetter.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsEnumAsNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsEnumAsNamespace.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsEnumMember.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsExportConstEqualToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsExportConstEqualToClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsExportDefaultClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsExportDefaultClassConstructor.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsExportNotAtTopLevel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsExportNotAtTopLevel.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForComputedProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForComputedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForComputedProperties2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/FindAllRefsForDefaultExport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForDefaultExport01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForDefaultExport02.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForDefaultExport04.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport09.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForDefaultExport09.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_anonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_anonymous.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_reExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForDefaultExport_reExport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForDefaultKeyword.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForFunctionExpression01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForImportCall.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForImportCall.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForImportCallType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForImportCallType.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForMappedType.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForObjectLiteralProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForObjectSpread.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForRest.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForRest.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForStringLiteral.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForStringLiteralTypes.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForUMDModuleAlias1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForVariableInExtendsClause02.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsForVariableInImplementsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsForVariableInImplementsClause01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsGlobalThisKeywordInModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsGlobalThisKeywordInModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsImportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsImportEquals.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsImportType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsImportType.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInClassExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInClassExpression.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsIndexedAccessTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsIndexedAccessTypes.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInheritedProperties1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInheritedProperties2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInheritedProperties3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInheritedProperties4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInheritedProperties5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInsideTemplates1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInsideTemplates2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInsideTemplates2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsInsideWithBlock.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsInsideWithBlock.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsIsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsIsDefinition.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocImportTag5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_class.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_class.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_function.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocTemplateTag_function.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsDocTypeDef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsDocTypeDef.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsJsThisPropertyAssignment2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsMappedType.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsMappedType_nonHomomorphic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsMappedType_nonHomomorphic.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsNoImportClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsNoImportClause.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsNonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsNonModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsOfConstructor_withModifier.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsOfConstructor_withModifier.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsOnDecorators.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsOnDefinition.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsOnDefinition2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsOnImportAliases.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/FindAllRefsOnImportAliases2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnPrivateParameterProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsOnPrivateParameterProperty1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrimitiveJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsPrimitiveJsDoc.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrivateNameAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsPrivateNameAccessors.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrivateNameMethods.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsPrivateNameMethods.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsPrivateNameProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsPrivateNameProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsReExport_broken2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsReExport_broken2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsRootSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsRootSymbols.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsThisKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsThisKeyword.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsThisKeywordMultipleFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsThisKeywordMultipleFiles.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypeParameterInMergedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsTypeParameterInMergedInterface.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsTypedef.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypedef_importType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsTypedef_importType.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsTypeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsTypeofImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnionProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsUnionProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsUnresolvedSymbols3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefsWriteAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefsWriteAccess.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefs_importType_js4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefs_importType_js4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefs_importType_meaningAtLocation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefs_importType_meaningAtLocation.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefs_importType_named.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefs_importType_named.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRefs_jsEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRefs_jsEnum.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findReferencesAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findReferencesAcrossMultipleProjects.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findReferencesDefinitionDisplayParts.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findReferencesDefinitionDisplayParts.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findReferencesJSXTagName.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findReferencesJSXTagName.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findReferencesJSXTagName2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findReferencesJSXTagName2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findReferencesSeeTagInTs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findReferencesSeeTagInTs.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfEnum.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfExport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfFunction.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterface.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfParameter.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/getOccurrencesIsDefinitionOfVariable.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/indirectJsRequireRename.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/indirectJsRequireRename.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/isDefinitionAcrossGlobalProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/isDefinitionAcrossGlobalProjects.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/isDefinitionAcrossModuleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/isDefinitionAcrossModuleProjects.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/isDefinitionInterfaceImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/isDefinitionInterfaceImplementation.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/isDefinitionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/isDefinitionOverloads.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/isDefinitionShorthandProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/isDefinitionShorthandProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/isDefinitionSingleImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/isDefinitionSingleImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/isDefinitionSingleReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/isDefinitionSingleReference.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocSatisfiesTagFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocSatisfiesTagFindAllReferences.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocThrowsTag_findAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocThrowsTag_findAllReferences.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning0.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocTypedefTagSemanticMeaning1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referenceInParameterPropertyDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referenceInParameterPropertyDeclaration.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referenceToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referenceToClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referenceToEmptyObject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referenceToEmptyObject.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/references01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/references01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesBloomFilters.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesBloomFilters.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesBloomFilters2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesBloomFilters2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesBloomFilters3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesBloomFilters3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForAmbients.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForAmbients.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForClassLocal.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForClassLocal.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForClassMembers.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingAbstractClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForClassMembersExtendingAbstractClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForClassMembersExtendingGenericClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForClassMembersExtendingGenericClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForClassParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForClassParameter.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForContextuallyTypedUnionProperties2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForDeclarationKeywords.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForEnums.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForEnums.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForExpressionKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForExpressionKeywords.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForExternalModuleNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForExternalModuleNames.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForFunctionOverloads.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForFunctionParameter.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForGlobals.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForGlobals2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForGlobals3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForGlobals4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForGlobals5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForGlobals5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForGlobalsInExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForGlobalsInExternalModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForIllegalAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForIllegalAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForImports.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForImports.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForIndexProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForIndexProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForIndexProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForIndexProperty2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForIndexProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForIndexProperty3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties7.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties8.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForInheritedProperties9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForInheritedProperties9.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForLabel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForLabel.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForLabel2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForLabel3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForLabel4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForLabel5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForLabel6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations7.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForMergedDeclarations8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForMergedDeclarations8.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForModifiers.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForNoContext.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForNoContext.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForNumericLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForNumericLiteralPropertyNames.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForObjectLiteralProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForOverrides.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForOverrides.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForPropertiesOfGenericType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForPropertiesOfGenericType.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStatic.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStaticsAndMembersWithSameNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStaticsAndMembersWithSameNames.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForStringLiteralPropertyNames7.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForTypeKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForTypeKeywords.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesForUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesForUnionProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesInConfiguredProject.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesInEmptyFileWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesInEmptyFileWithMultipleProjects.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesToNonPropertyNameStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesToNonPropertyNameStringLiteral.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/referencesToStringLiteralValue.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/referencesToStringLiteralValue.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/remoteGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/remoteGetReferences.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/RenameImportAndExportInDiffFiles.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/RenameImportOfExportEquals.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllRef/RenameJsExports01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/findAllRef/RenameJsExports01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/renameJsExports01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/renameJsExports02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/renameJsExports02.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/renameJsExports02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/renameJsExports03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports03.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/renameJsExports03.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/renameJsExports03.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences10.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences11.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences11.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences7.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences8.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferences9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferences9.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxFindAllReferencesUnionElementType2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc deleted file mode 100644 index 69dea16c92..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport2.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findAllReferences === -// === /foo.ts === - -// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo.[|bar|](); -// }) - - - - -// === findAllReferences === -// === /foo.ts === - -// export function [|bar|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo./*FIND ALL REFS*/[|bar|](); -// }) - - - - -// === findRenameLocations === -// === /foo.ts === - -// export function /*RENAME*/[|barRENAME|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo.[|barRENAME|](); -// }) - - - - -// === findRenameLocations === -// === /foo.ts === - -// /*RENAME*/export function bar() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo.bar(); -// }) diff --git a/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc deleted file mode 100644 index 68f9396bab..0000000000 --- a/testdata/baselines/reference/fourslash/findAllReferencesDynamicImport3.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findAllReferences === -// === /foo.ts === - -// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } -// import('./foo').then(({ [|bar|] }) => undefined); - - - - -// === findAllReferences === -// === /foo.ts === - -// export function [|bar|]() { return "bar"; } -// import('./foo').then(({ /*FIND ALL REFS*/[|bar|] }) => undefined); - - - - -// === findRenameLocations === -// === /foo.ts === - -// export function /*RENAME*/[|barRENAME|]() { return "bar"; } -// import('./foo').then(({ [|barRENAME|] }) => undefined); - - - - -// === findRenameLocations === -// === /foo.ts === - -// export function bar() { return "bar"; } -// import('./foo').then(({ /*RENAME*/[|barRENAME|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc deleted file mode 100644 index 10ade55497..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findAllReferences === -// === /findAllRefsClassWithStaticThisAccess.ts === - -// class /*FIND ALL REFS*/[|C|] { -// static s() { -// this; -// } -// // --- (line: 5) skipped --- - - - - -// === findAllReferences === -// === /findAllRefsClassWithStaticThisAccess.ts === - -// class C { -// static s() { -// /*FIND ALL REFS*/[|this|]; -// } -// static get f() { -// return [|this|]; -// -// function inner() { this; } -// class Inner { x = this; } -// } -// } - - - - -// === findAllReferences === -// === /findAllRefsClassWithStaticThisAccess.ts === - -// class C { -// static s() { -// [|this|]; -// } -// static get f() { -// return /*FIND ALL REFS*/[|this|]; -// -// function inner() { this; } -// class Inner { x = this; } -// } -// } - - - - -// === findRenameLocations === -// === /findAllRefsClassWithStaticThisAccess.ts === - -// /*RENAME*/class C { -// static s() { -// this; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc deleted file mode 100644 index 863698ac1a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRefsForDefaultExport.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export default function /*FIND ALL REFS*/[|f|]() {} - - -// === /b.ts === - -// import [|g|] from "./a"; -// [|g|](); - - - - -// === findAllReferences === -// === /b.ts === - -// import /*FIND ALL REFS*/[|g|] from "./a"; -// [|g|](); - - - - -// === goToDefinition === -// === /a.ts === - -// export default function [|f|]() {} - - -// === /b.ts === - -// import g from "./a"; -// /*GO TO DEFINITION*/g(); diff --git a/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc deleted file mode 100644 index d5f8446f3a..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRefsOnImportAliases2.baseline.jsonc +++ /dev/null @@ -1,162 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export class /*FIND ALL REFS*/[|Class|] {} - - -// === /b.ts === - -// import { [|Class|] as [|C2|] } from "./a"; -// var c = new [|C2|](); - - -// === /c.ts === - -// export { [|Class|] as C3 } from "./a"; - - - - -// === findAllReferences === -// === /a.ts === - -// export class [|Class|] {} - - -// === /b.ts === - -// import { /*FIND ALL REFS*/[|Class|] as [|C2|] } from "./a"; -// var c = new [|C2|](); - - -// === /c.ts === - -// export { [|Class|] as C3 } from "./a"; - - - - -// === findAllReferences === -// === /a.ts === - -// export class [|Class|] {} - - -// === /b.ts === - -// import { [|Class|] as [|C2|] } from "./a"; -// var c = new [|C2|](); - - -// === /c.ts === - -// export { /*FIND ALL REFS*/[|Class|] as C3 } from "./a"; - - - - -// === findAllReferences === -// === /b.ts === - -// import { Class as /*FIND ALL REFS*/[|C2|] } from "./a"; -// var c = new [|C2|](); - - - - -// === findAllReferences === -// === /b.ts === - -// import { Class as [|C2|] } from "./a"; -// var c = new /*FIND ALL REFS*/[|C2|](); - - - - -// === findAllReferences === -// === /c.ts === - -// export { Class as /*FIND ALL REFS*/C3 } from "./a"; - - - - -// === findRenameLocations === -// === /a.ts === - -// export class /*RENAME*/[|ClassRENAME|] {} - - -// === /b.ts === - -// import { [|ClassRENAME|] as C2 } from "./a"; -// var c = new C2(); - - -// === /c.ts === - -// export { [|ClassRENAME|] as C3 } from "./a"; - - - - -// === findRenameLocations === -// === /a.ts === - -// export class [|ClassRENAME|] {} - - -// === /b.ts === - -// import { /*RENAME*/[|ClassRENAME|] as C2 } from "./a"; -// var c = new C2(); - - -// === /c.ts === - -// export { [|ClassRENAME|] as C3 } from "./a"; - - - - -// === findRenameLocations === -// === /a.ts === - -// export class [|ClassRENAME|] {} - - -// === /b.ts === - -// import { [|ClassRENAME|] as C2 } from "./a"; -// var c = new C2(); - - -// === /c.ts === - -// export { /*RENAME*/[|ClassRENAME|] as C3 } from "./a"; - - - - -// === findRenameLocations === -// === /b.ts === - -// import { Class as /*RENAME*/[|C2RENAME|] } from "./a"; -// var c = new [|C2RENAME|](); - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/import { Class as C2 } from "./a"; -// var c = new C2(); - - - - -// === findRenameLocations === -// === /c.ts === - -// export { Class as /*RENAME*/C3 } from "./a"; diff --git a/testdata/baselines/reference/fourslash/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/doubleUnderscoreRenames.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/findAllReferencesDynamicImport3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/findAllRefsClassWithStaticThisAccess.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/findAllRefsOnImportAliases2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/highlightsForExportFromUnfoundModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/highlightsForExportFromUnfoundModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/javaScriptClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/javaScriptClass2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsDocSee_rename1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocSee_rename1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocCallbackTagRename01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocSatisfiesTagRename.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocSatisfiesTagRename.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocThrowsTag_rename.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocThrowsTag_rename.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocTypedefTagRename01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocTypedefTagRename02.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocTypedefTagRename03.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/jsxSpreadReference.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/processInvalidSyntax1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/rename01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/rename01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/rename01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/rename01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameAcrossMultipleProjects.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameAlias.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameAlias.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameAlias2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameAlias2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameAlias2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameAlias3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameAlias3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameAlias3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameAliasExternalModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameAliasExternalModule2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameAliasExternalModule3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameAliasExternalModule3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerExternal.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameBindingElementInitializerProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameCommentsAndStrings4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameContextuallyTypedProperties2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDeclarationKeywords.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDefaultLibDontWork.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringClassProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInFor.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringDeclarationInForOf.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringFunctionParameter.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameDestructuringNestedBindingElement.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameExportCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameExportCrash.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameExportSpecifier.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameExportSpecifier2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameForStringLiteral.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameFunctionParameter1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameFunctionParameter2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameImportAndExport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameImportAndExportInDiffFiles.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameImportAndShorthand.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameImportNamespaceAndShorthand.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc similarity index 58% rename from testdata/baselines/reference/fourslash/renameImportOfExportEquals.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc index 0c7b3ac27f..d152e6593f 100644 --- a/testdata/baselines/reference/fourslash/renameImportOfExportEquals.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc @@ -1,83 +1,3 @@ -// === findAllReferences === -// === /renameImportOfExportEquals.ts === - -// declare namespace /*FIND ALL REFS*/[|N|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|N|]; -// } -// declare module "a" { -// import * as [|N|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - - -// === findAllReferences === -// === /renameImportOfExportEquals.ts === - -// declare namespace [|N|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|N|]; -// } -// declare module "a" { -// import * as /*FIND ALL REFS*/[|N|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - - -// === findAllReferences === -// === /renameImportOfExportEquals.ts === - -// declare namespace [|N|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|N|]; -// } -// declare module "a" { -// import * as [|N|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// import { /*FIND ALL REFS*/[|N|] } from "a"; -// export const y: typeof [|N|].x; -// } - - - - -// === findAllReferences === -// === /renameImportOfExportEquals.ts === - -// declare namespace N { -// export var /*FIND ALL REFS*/[|x|]: number; -// } -// declare module "mod" { -// export = N; -// // --- (line: 6) skipped --- - - -// --- (line: 9) skipped --- -// } -// declare module "b" { -// import { N } from "a"; -// export const y: typeof N.[|x|]; -// } - - - - // === findRenameLocations === // === /renameImportOfExportEquals.ts === diff --git a/testdata/baselines/reference/fourslash/rename/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameImportRequire.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameImportSpecifierPropertyName.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameImportSpecifierPropertyName.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInConfiguredProject.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties7.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameInheritedProperties8.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJSDocNamepath.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJSDocNamepath.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsDocImportTag.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsDocTypeLiteral.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsExports01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsExports01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsOverloadedFunctionParameter.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsPropertyAssignment4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsPrototypeProperty02.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsThisProperty01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsThisProperty03.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsThisProperty05.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameJsThisProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameJsThisProperty06.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLabel1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLabel1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLabel2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLabel2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLabel3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLabel3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLabel4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLabel4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLabel5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLabel5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLabel6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLabel6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLocationsForClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLocationsForClassExpression01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression02.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameLocationsForFunctionExpression02.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameModifiers.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameModifiers.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameModifiers.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameModuleExportsProperties3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameNamedImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameNamedImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameNamespaceImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameNamespaceImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameNumericalIndex.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameNumericalIndex.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameNumericalIndexSingleQuoted.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameNumericalIndexSingleQuoted.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameObjectBindingElementPropertyName01.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameObjectSpread.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameObjectSpreadAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameObjectSpreadAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration5.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameParameterPropertyDeclaration5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renamePrivateAccessor.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renamePrivateAccessor.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renamePrivateFields1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renamePrivateFields1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renamePrivateMethod.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renamePrivateMethod.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renamePropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renamePropertyAccessExpressionHeritageClause.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameReExportDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameReExportDefault.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameReferenceFromLinkTag5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameRest.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameRest.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameRest.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameRest.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameRestBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameRestBindingElement.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringLiteralOk.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralOk1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringLiteralOk1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes4.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes5.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringLiteralTypes5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringPropertyNames.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameStringPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameStringPropertyNames2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsComputedProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/renameUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/renameUMDModuleAlias1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/tsxRename1.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/tsxRename1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/tsxRename2.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/tsxRename2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/tsxRename3.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/tsxRename3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename5.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/tsxRename5.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/tsxRename5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename6.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/tsxRename6.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/tsxRename6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename7.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/tsxRename7.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/tsxRename7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/rename/tsxRename9.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename9.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/rename/tsxRename9.baseline.jsonc rename to testdata/baselines/reference/fourslash/findRenameLocations/tsxRename9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/DeclarationMapGoToDefinition.baseline.jsonc deleted file mode 100644 index 2f6b197efc..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapGoToDefinition.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === goToDefinition === -// === /indexdef.d.ts === - -// export declare class Foo { -// member: string; -// [|methodName|](propName: SomeType): void; -// otherMethod(): { -// x: number; -// y?: undefined; -// // --- (line: 7) skipped --- - - -// === /mymodule.ts === - -// import * as mod from "./indexdef"; -// const instance = new mod.Foo(); -// instance./*GO TO DEFINITION*/methodName({member: 12}); diff --git a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc deleted file mode 100644 index 222c09c7d5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === goToDefinition === -// === /out/indexdef.d.ts === - -// export declare class Foo { -// member: string; -// [|methodName|](propName: SomeType): void; -// otherMethod(): { -// x: number; -// y?: undefined; -// // --- (line: 7) skipped --- - - -// === /mymodule.ts === - -// import * as mod from "./out/indexdef"; -// const instance = new mod.Foo(); -// instance./*GO TO DEFINITION*/methodName({member: 12}); diff --git a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc deleted file mode 100644 index 26e09ac286..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc +++ /dev/null @@ -1,46 +0,0 @@ -// === goToDefinition === -// === /BaseClass/Source.d.ts === - -// declare class [|Control|] { -// constructor(); -// /** this is a super var */ -// myVar: boolean | 'yeah'; -// } -// //# sourceMappingURL=Source.d.ts.map - - -// === /buttonClass/Source.ts === - -// // I cannot F12 navigate to Control -// // vvvvvvv -// class Button extends /*GO TO DEFINITION*/Control { -// public myFunction() { -// // I cannot F12 navigate to myVar -// // vvvvv -// // --- (line: 7) skipped --- - - - - -// === goToDefinition === -// === /BaseClass/Source.d.ts === - -// declare class Control { -// constructor(); -// /** this is a super var */ -// [|myVar|]: boolean | 'yeah'; -// } -// //# sourceMappingURL=Source.d.ts.map - - -// === /buttonClass/Source.ts === - -// --- (line: 3) skipped --- -// public myFunction() { -// // I cannot F12 navigate to myVar -// // vvvvv -// if (typeof this./*GO TO DEFINITION*/myVar === 'boolean') { -// this.myVar; -// } else { -// this.myVar.toLocaleUpperCase(); -// // --- (line: 11) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsOutOfDateMapping.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsOutOfDateMapping.baseline.jsonc deleted file mode 100644 index 2d1cff1953..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/DeclarationMapsOutOfDateMapping.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /home/src/workspaces/project/node_modules/a/dist/index.d.ts === - -// export declare class [|Foo|] { -// bar: any; -// } -// //# sourceMappingURL=index.d.ts.map - - -// === /home/src/workspaces/project/index.ts === - -// import { Foo/*GO TO DEFINITION*/ } from "a"; diff --git a/testdata/baselines/reference/fourslash/goToDef/Definition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/Definition.baseline.jsonc deleted file mode 100644 index 9d628fc271..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/Definition.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// [|export class Foo {}|] - - -// === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/Definition01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/Definition01.baseline.jsonc deleted file mode 100644 index 9d628fc271..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/Definition01.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// [|export class Foo {}|] - - -// === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/DefinitionNameOnEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/DefinitionNameOnEnumMember.baseline.jsonc deleted file mode 100644 index 79486c0719..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/DefinitionNameOnEnumMember.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /definitionNameOnEnumMember.ts === - -// enum e { -// firstMember, -// secondMember, -// [|thirdMember|] -// } -// var enumMember = e./*GO TO DEFINITION*/thirdMember; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAcrossMultipleProjects.baseline.jsonc deleted file mode 100644 index 745522f41c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAcrossMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,28 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// var [|x|]: number; - - -// === /b.ts === - -// var [|x|]: number; - - -// === /c.ts === - -// var [|x|]: number; - - -// === /d.ts === - -// var [|x|]: number; - - -// === /e.ts === - -// /// -// /// -// /// -// /// -// /*GO TO DEFINITION*/x++; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAlias.baseline.jsonc deleted file mode 100644 index 1a93a31da3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAlias.baseline.jsonc +++ /dev/null @@ -1,72 +0,0 @@ -// === goToDefinition === -// === /b.ts === - -// import [|alias1|] = require("fileb"); -// module Module { -// export import alias2 = alias1; -// } -// -// // Type position -// var t1: /*GO TO DEFINITION*/alias1.IFoo; -// var t2: Module.alias2.IFoo; -// -// // Value posistion -// var v1 = new alias1.Foo(); -// var v2 = new Module.alias2.Foo(); - - - - -// === goToDefinition === -// === /b.ts === - -// import [|alias1|] = require("fileb"); -// module Module { -// export import alias2 = alias1; -// } -// -// // Type position -// var t1: alias1.IFoo; -// var t2: Module.alias2.IFoo; -// -// // Value posistion -// var v1 = new /*GO TO DEFINITION*/alias1.Foo(); -// var v2 = new Module.alias2.Foo(); - - - - -// === goToDefinition === -// === /b.ts === - -// import alias1 = require("fileb"); -// module Module { -// export import [|alias2|] = alias1; -// } -// -// // Type position -// var t1: alias1.IFoo; -// var t2: Module./*GO TO DEFINITION*/alias2.IFoo; -// -// // Value posistion -// var v1 = new alias1.Foo(); -// var v2 = new Module.alias2.Foo(); - - - - -// === goToDefinition === -// === /b.ts === - -// import alias1 = require("fileb"); -// module Module { -// export import [|alias2|] = alias1; -// } -// -// // Type position -// var t1: alias1.IFoo; -// var t2: Module.alias2.IFoo; -// -// // Value posistion -// var v1 = new alias1.Foo(); -// var v2 = new Module./*GO TO DEFINITION*/alias2.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAmbiants.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAmbiants.baseline.jsonc deleted file mode 100644 index 9573cc52a4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAmbiants.baseline.jsonc +++ /dev/null @@ -1,96 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === - -// declare var [|ambientVar|]; -// declare function ambientFunction(); -// declare class ambientClass { -// constructor(); -// static method(); -// public method(); -// } -// -// /*GO TO DEFINITION*/ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass.method(); -// ambientClassVariable.method(); - - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === - -// declare var ambientVar; -// declare function [|ambientFunction|](); -// declare class ambientClass { -// constructor(); -// static method(); -// public method(); -// } -// -// ambientVar = 1; -// /*GO TO DEFINITION*/ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass.method(); -// ambientClassVariable.method(); - - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === - -// declare var ambientVar; -// declare function ambientFunction(); -// declare class [|ambientClass|] { -// [|constructor();|] -// static method(); -// public method(); -// } -// -// ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new /*GO TO DEFINITION*/ambientClass(); -// ambientClass.method(); -// ambientClassVariable.method(); - - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === - -// declare var ambientVar; -// declare function ambientFunction(); -// declare class ambientClass { -// constructor(); -// static [|method|](); -// public method(); -// } -// -// ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass./*GO TO DEFINITION*/method(); -// ambientClassVariable.method(); - - - - -// === goToDefinition === -// === /goToDefinitionAmbiants.ts === - -// declare var ambientVar; -// declare function ambientFunction(); -// declare class ambientClass { -// constructor(); -// static method(); -// public [|method|](); -// } -// -// ambientVar = 1; -// ambientFunction(); -// var ambientClassVariable = new ambientClass(); -// ambientClass.method(); -// ambientClassVariable./*GO TO DEFINITION*/method(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionApparentTypeProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionApparentTypeProperties.baseline.jsonc deleted file mode 100644 index ab7da78e2d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionApparentTypeProperties.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionApparentTypeProperties.ts === - -// interface Number { -// [|myObjectMethod|](): number; -// } -// -// var o = 0; -// o./*GO TO DEFINITION*/myObjectMethod(); -// o["myObjectMethod"](); - - - - -// === goToDefinition === -// === /goToDefinitionApparentTypeProperties.ts === - -// interface Number { -// [|myObjectMethod|](): number; -// } -// -// var o = 0; -// o.myObjectMethod(); -// o["/*GO TO DEFINITION*/myObjectMethod"](); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait1.baseline.jsonc deleted file mode 100644 index 499c50ad50..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait1.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait1.ts === - -// async function [|foo|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); -// } -// function notAsync() { -// await Promise.resolve(0); -// } - - - - -// === goToDefinition === -// === /goToDefinitionAwait1.ts === - -// async function foo() { -// await Promise.resolve(0); -// } -// function [|notAsync|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait2.baseline.jsonc deleted file mode 100644 index 47a1ae6bbd..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait2.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait2.ts === - -// /*GO TO DEFINITION*/await Promise.resolve(0); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait3.baseline.jsonc deleted file mode 100644 index 5029797871..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait3.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait3.ts === - -// class C { -// [|notAsync|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); -// } -// -// async foo() { -// // --- (line: 7) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionAwait3.ts === - -// class C { -// notAsync() { -// await Promise.resolve(0); -// } -// -// async [|foo|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait4.baseline.jsonc deleted file mode 100644 index 0db32afffa..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionAwait4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionAwait4.ts === - -// async function outerAsyncFun() { -// let [|af|] = async () => { -// /*GO TO DEFINITION*/await Promise.resolve(0); -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInTypes.baseline.jsonc deleted file mode 100644 index 0372c7fc8c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInTypes.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === - -// var n: /*GO TO DEFINITION*/number; -// var s: string; -// var b: boolean; -// var v: void; - - - - -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === - -// var n: number; -// var s: /*GO TO DEFINITION*/string; -// var b: boolean; -// var v: void; - - - - -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === - -// var n: number; -// var s: string; -// var b: /*GO TO DEFINITION*/boolean; -// var v: void; - - - - -// === goToDefinition === -// === /goToDefinitionBuiltInTypes.ts === - -// var n: number; -// var s: string; -// var b: boolean; -// var v: /*GO TO DEFINITION*/void; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInValues.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInValues.baseline.jsonc deleted file mode 100644 index a0f5c84325..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionBuiltInValues.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === - -// var u = /*GO TO DEFINITION*/undefined; -// var n = null; -// var a = function() { return arguments; }; -// var t = true; -// var f = false; - - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === - -// var u = undefined; -// var n = /*GO TO DEFINITION*/null; -// var a = function() { return arguments; }; -// var t = true; -// var f = false; - - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === - -// var u = undefined; -// var n = null; -// var a = function() { return /*GO TO DEFINITION*/arguments; }; -// var t = true; -// var f = false; - - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === - -// var u = undefined; -// var n = null; -// var a = function() { return arguments; }; -// var t = /*GO TO DEFINITION*/true; -// var f = false; - - - - -// === goToDefinition === -// === /goToDefinitionBuiltInValues.ts === - -// var u = undefined; -// var n = null; -// var a = function() { return arguments; }; -// var t = true; -// var f = /*GO TO DEFINITION*/false; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionCSSPatternAmbientModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionCSSPatternAmbientModule.baseline.jsonc deleted file mode 100644 index 038983e5b0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionCSSPatternAmbientModule.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /types.ts === - -// declare module [|"*.css"|] { -// const styles: any; -// export = styles; -// } - - -// === /index.ts === - -// import styles from /*GO TO DEFINITION*/"./index.css"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassConstructors.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassConstructors.baseline.jsonc deleted file mode 100644 index 35175ec694..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassConstructors.baseline.jsonc +++ /dev/null @@ -1,76 +0,0 @@ -// === goToDefinition === -// === /definitions.ts === - -// export class Base { -// [|constructor(protected readonly cArg: string) {}|] -// } -// -// export class [|Derived|] extends Base { -// readonly email = this.cArg.getByLabel('Email') -// readonly password = this.cArg.getByLabel('Password') -// } - - -// === /main.ts === - -// import { Derived } from './definitions' -// const derived = new /*GO TO DEFINITION*/Derived(cArg) - - - - -// === goToDefinition === -// === /defInSameFile.ts === - -// import { Base } from './definitions' -// class [|SameFile|] extends Base { -// readonly name: string = 'SameFile' -// } -// const SameFile = new /*GO TO DEFINITION*/SameFile(cArg) -// const wrapper = new Base(cArg) - - -// === /definitions.ts === - -// export class Base { -// [|constructor(protected readonly cArg: string) {}|] -// } -// -// export class Derived extends Base { -// // --- (line: 6) skipped --- - - - - -// === goToDefinition === -// === /hasConstructor.ts === - -// import { Base } from './definitions' -// class [|HasConstructor|] extends Base { -// [|constructor() {}|] -// readonly name: string = ''; -// } -// const hasConstructor = new /*GO TO DEFINITION*/HasConstructor(cArg) - - - - -// === goToDefinition === -// === /definitions.ts === - -// export class [|Base|] { -// [|constructor(protected readonly cArg: string) {}|] -// } -// -// export class Derived extends Base { -// // --- (line: 6) skipped --- - - -// === /defInSameFile.ts === - -// import { Base } from './definitions' -// class SameFile extends Base { -// readonly name: string = 'SameFile' -// } -// const SameFile = new SameFile(cArg) -// const wrapper = new /*GO TO DEFINITION*/Base(cArg) diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassStaticBlocks.baseline.jsonc deleted file mode 100644 index 330e892f1d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionClassStaticBlocks.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionClassStaticBlocks.ts === - -// class ClassStaticBocks { -// static x; -// /*GO TO DEFINITION*/static {} -// static y; -// static {} -// static y; -// static {} -// } - - - - -// === goToDefinition === -// === /goToDefinitionClassStaticBlocks.ts === - -// class ClassStaticBocks { -// static x; -// static {} -// static y; -// /*GO TO DEFINITION*/static {} -// static y; -// static {} -// } - - - - -// === goToDefinition === -// === /goToDefinitionClassStaticBlocks.ts === - -// --- (line: 3) skipped --- -// static y; -// static {} -// static y; -// /*GO TO DEFINITION*/static {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassExpression01.baseline.jsonc deleted file mode 100644 index 190d74c6c4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassExpression01.baseline.jsonc +++ /dev/null @@ -1,152 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === - -// var x = class [|C|] { -// [|constructor() { -// var other = new /*GO TO DEFINITION*/C; -// }|] -// } -// -// var y = class C extends x { -// // --- (line: 8) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === - -// --- (line: 3) skipped --- -// } -// } -// -// var y = class [|C|] extends x { -// [|constructor() { -// super(); -// var other = new /*GO TO DEFINITION*/C; -// }|] -// } -// var z = class C extends x { -// m() { -// // --- (line: 15) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === - -// var x = class C { -// [|constructor() { -// var other = new C; -// }|] -// } -// -// var y = class C extends x { -// constructor() { -// super(); -// var other = new C; -// } -// } -// var z = class [|C|] extends x { -// m() { -// return new /*GO TO DEFINITION*/C; -// } -// } -// -// // --- (line: 19) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === - -// --- (line: 15) skipped --- -// } -// } -// -// var x1 = new /*GO TO DEFINITION*/C(); -// var x2 = new x(); -// var y1 = new y(); -// var z1 = new z(); - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === - -// var [|x|] = class C { -// [|constructor() { -// var other = new C; -// }|] -// } -// -// var y = class C extends x { -// // --- (line: 8) skipped --- - - -// --- (line: 16) skipped --- -// } -// -// var x1 = new C(); -// var x2 = new /*GO TO DEFINITION*/x(); -// var y1 = new y(); -// var z1 = new z(); - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === - -// --- (line: 3) skipped --- -// } -// } -// -// var [|y|] = class C extends x { -// [|constructor() { -// super(); -// var other = new C; -// }|] -// } -// var z = class C extends x { -// m() { -// return new C; -// } -// } -// -// var x1 = new C(); -// var x2 = new x(); -// var y1 = new /*GO TO DEFINITION*/y(); -// var z1 = new z(); - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOfClassExpression01.ts === - -// var x = class C { -// [|constructor() { -// var other = new C; -// }|] -// } -// -// var y = class C extends x { -// constructor() { -// super(); -// var other = new C; -// } -// } -// var [|z|] = class C extends x { -// m() { -// return new C; -// } -// } -// -// var x1 = new C(); -// var x2 = new x(); -// var y1 = new y(); -// var z1 = new /*GO TO DEFINITION*/z(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc deleted file mode 100644 index 28bc8eeaff..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.ts === - -// namespace [|Foo|] { -// export var x; -// } -// -// class [|Foo|] { -// [|constructor() { -// }|] -// } -// -// var x = new /*GO TO DEFINITION*/Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOverloads.baseline.jsonc deleted file mode 100644 index 81d96484f9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionConstructorOverloads.baseline.jsonc +++ /dev/null @@ -1,90 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === - -// class [|ConstructorOverload|] { -// [|constructor();|] -// constructor(foo: string); -// constructor(foo: any) { } -// } -// -// var constructorOverload = new /*GO TO DEFINITION*/ConstructorOverload(); -// var constructorOverload = new ConstructorOverload("foo"); -// -// class Extended extends ConstructorOverload { -// // --- (line: 11) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === - -// class [|ConstructorOverload|] { -// constructor(); -// [|constructor(foo: string);|] -// constructor(foo: any) { } -// } -// -// var constructorOverload = new ConstructorOverload(); -// var constructorOverload = new /*GO TO DEFINITION*/ConstructorOverload("foo"); -// -// class Extended extends ConstructorOverload { -// readonly name = "extended"; -// // --- (line: 12) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === - -// class ConstructorOverload { -// /*GO TO DEFINITION*/[|constructor();|] -// [|constructor(foo: string);|] -// [|constructor(foo: any) { }|] -// } -// -// var constructorOverload = new ConstructorOverload(); -// // --- (line: 8) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === - -// class ConstructorOverload { -// [|constructor();|] -// constructor(foo: string); -// constructor(foo: any) { } -// } -// -// var constructorOverload = new ConstructorOverload(); -// var constructorOverload = new ConstructorOverload("foo"); -// -// class [|Extended|] extends ConstructorOverload { -// readonly name = "extended"; -// } -// var extended1 = new /*GO TO DEFINITION*/Extended(); -// var extended2 = new Extended("foo"); - - - - -// === goToDefinition === -// === /goToDefinitionConstructorOverloads.ts === - -// class ConstructorOverload { -// constructor(); -// [|constructor(foo: string);|] -// constructor(foo: any) { } -// } -// -// var constructorOverload = new ConstructorOverload(); -// var constructorOverload = new ConstructorOverload("foo"); -// -// class [|Extended|] extends ConstructorOverload { -// readonly name = "extended"; -// } -// var extended1 = new Extended(); -// var extended2 = new /*GO TO DEFINITION*/Extended("foo"); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecorator.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecorator.baseline.jsonc deleted file mode 100644 index 093a02279b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecorator.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// function [|decorator|](target) { -// return target; -// } -// function decoratorFactory(...args) { -// return target => target; -// } - - -// === /b.ts === - -// @/*GO TO DEFINITION*/decorator -// class C { -// @decoratorFactory(a, "22", true) -// method() {} -// } - - - - -// === goToDefinition === -// === /a.ts === - -// function decorator(target) { -// return target; -// } -// function [|decoratorFactory|](...args) { -// return target => target; -// } - - -// === /b.ts === - -// @decorator -// class C { -// @decora/*GO TO DEFINITION*/torFactory(a, "22", true) -// method() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecoratorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecoratorOverloads.baseline.jsonc deleted file mode 100644 index 230ffee836..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDecoratorOverloads.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionDecoratorOverloads.ts === - -// async function f() {} -// -// function [|dec|](target: any, propertyKey: string): void; -// function dec(target: any, propertyKey: symbol): void; -// function dec(target: any, propertyKey: string | symbol) {} -// -// declare const s: symbol; -// class C { -// @/*GO TO DEFINITION*/dec f() {} -// @dec [s]() {} -// } - - - - -// === goToDefinition === -// === /goToDefinitionDecoratorOverloads.ts === - -// async function f() {} -// -// function dec(target: any, propertyKey: string): void; -// function [|dec|](target: any, propertyKey: symbol): void; -// function dec(target: any, propertyKey: string | symbol) {} -// -// declare const s: symbol; -// class C { -// @dec f() {} -// @/*GO TO DEFINITION*/dec [s]() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire1.baseline.jsonc deleted file mode 100644 index 8b68ee5b2a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire1.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /util.js === - -// class Util {} -// module.exports = { [|Util|] }; - - -// === /index.js === - -// const { Util } = require('./util'); -// new Util/*GO TO DEFINITION*/() diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire2.baseline.jsonc deleted file mode 100644 index f9cf078539..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDestructuredRequire2.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /reexport.js === - -// const { Util } = require('./util'); -// module.exports = { [|Util|] }; - - -// === /index.js === - -// const { Util } = require('./reexport'); -// new Util/*GO TO DEFINITION*/() diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFile.baseline.jsonc deleted file mode 100644 index 73e3c72356..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFile.baseline.jsonc +++ /dev/null @@ -1,101 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === - -// var [|remoteVariable|]; -// function remoteFunction() { } -// class remoteClass { } -// interface remoteInterface{ } -// module remoteModule{ export var foo = 1;} - - -// === /goToDefinitionDifferentFile_Consumption.ts === - -// /*GO TO DEFINITION*/remoteVariable = 1; -// remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = remoteModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === - -// var remoteVariable; -// function [|remoteFunction|]() { } -// class remoteClass { } -// interface remoteInterface{ } -// module remoteModule{ export var foo = 1;} - - -// === /goToDefinitionDifferentFile_Consumption.ts === - -// remoteVariable = 1; -// /*GO TO DEFINITION*/remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = remoteModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === - -// var remoteVariable; -// function remoteFunction() { } -// class [|remoteClass|] { } -// interface remoteInterface{ } -// module remoteModule{ export var foo = 1;} - - -// === /goToDefinitionDifferentFile_Consumption.ts === - -// remoteVariable = 1; -// remoteFunction(); -// var foo = new /*GO TO DEFINITION*/remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = remoteModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === - -// var remoteVariable; -// function remoteFunction() { } -// class remoteClass { } -// interface [|remoteInterface|]{ } -// module remoteModule{ export var foo = 1;} - - -// === /goToDefinitionDifferentFile_Consumption.ts === - -// remoteVariable = 1; -// remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements /*GO TO DEFINITION*/remoteInterface { } -// var fooVar = remoteModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionDifferentFile_Definition.ts === - -// var remoteVariable; -// function remoteFunction() { } -// class remoteClass { } -// interface remoteInterface{ } -// module [|remoteModule|]{ export var foo = 1;} - - -// === /goToDefinitionDifferentFile_Consumption.ts === - -// remoteVariable = 1; -// remoteFunction(); -// var foo = new remoteClass(); -// class fooCls implements remoteInterface { } -// var fooVar = /*GO TO DEFINITION*/remoteModule.foo; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFileIndirectly.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFileIndirectly.baseline.jsonc deleted file mode 100644 index ca60f48be5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDifferentFileIndirectly.baseline.jsonc +++ /dev/null @@ -1,101 +0,0 @@ -// === goToDefinition === -// === /Remote2.ts === - -// var [|rem2Var|]; -// function rem2Fn() { } -// class rem2Cls { } -// interface rem2Int{} -// module rem2Mod { export var foo; } - - -// === /Definition.ts === - -// /*GO TO DEFINITION*/rem2Var = 1; -// rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - - -// === goToDefinition === -// === /Remote2.ts === - -// var rem2Var; -// function [|rem2Fn|]() { } -// class rem2Cls { } -// interface rem2Int{} -// module rem2Mod { export var foo; } - - -// === /Definition.ts === - -// rem2Var = 1; -// /*GO TO DEFINITION*/rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - - -// === goToDefinition === -// === /Remote2.ts === - -// var rem2Var; -// function rem2Fn() { } -// class [|rem2Cls|] { } -// interface rem2Int{} -// module rem2Mod { export var foo; } - - -// === /Definition.ts === - -// rem2Var = 1; -// rem2Fn(); -// var rem2foo = new /*GO TO DEFINITION*/rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - - -// === goToDefinition === -// === /Remote2.ts === - -// var rem2Var; -// function rem2Fn() { } -// class rem2Cls { } -// interface [|rem2Int|]{} -// module rem2Mod { export var foo; } - - -// === /Definition.ts === - -// rem2Var = 1; -// rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements /*GO TO DEFINITION*/rem2Int { } -// var rem2fooVar = rem2Mod.foo; - - - - -// === goToDefinition === -// === /Remote2.ts === - -// var rem2Var; -// function rem2Fn() { } -// class rem2Cls { } -// interface rem2Int{} -// module [|rem2Mod|] { export var foo; } - - -// === /Definition.ts === - -// rem2Var = 1; -// rem2Fn(); -// var rem2foo = new rem2Cls(); -// class rem2fooCls implements rem2Int { } -// var rem2fooVar = /*GO TO DEFINITION*/rem2Mod.foo; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc deleted file mode 100644 index 785b36a333..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /foo.ts === - -// [|export function foo() { return "foo"; } -// import("./f/*GO TO DEFINITION*/oo") -// var x = import("./foo")|] - - - - -// === goToDefinition === -// === /foo.ts === - -// [|export function foo() { return "foo"; } -// import("./foo") -// var x = import("./fo/*GO TO DEFINITION*/o")|] diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport2.baseline.jsonc deleted file mode 100644 index a05e56f6f2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /foo.ts === - -// export function [|bar|]() { return "bar"; } -// var x = import("./foo"); -// x.then(foo => { -// foo.b/*GO TO DEFINITION*/ar(); -// }) diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport3.baseline.jsonc deleted file mode 100644 index 1c3067b56d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport3.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /foo.ts === - -// export function bar() { return "bar"; } -// import('./foo').then(({ ba/*GO TO DEFINITION*/[|bar|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport4.baseline.jsonc deleted file mode 100644 index 1c3067b56d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport4.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /foo.ts === - -// export function bar() { return "bar"; } -// import('./foo').then(({ ba/*GO TO DEFINITION*/[|bar|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass1.baseline.jsonc deleted file mode 100644 index a5ff13bab4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass1.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /index.js === - -// const Core = {} -// -// Core.[|Test|] = class { } -// -// Core.Test.prototype.foo = 10 -// -// new Core.Tes/*GO TO DEFINITION*/t() diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass2.baseline.jsonc deleted file mode 100644 index 0f782f9eab..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoClass2.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /index.js === - -// const Core = {} -// -// Core.[|Test|] = class { -// [|constructor() { }|] -// } -// -// Core.Test.prototype.foo = 10 -// -// new Core.Tes/*GO TO DEFINITION*/t() diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoElementAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoElementAccess.baseline.jsonc deleted file mode 100644 index ba7dcf8388..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExpandoElementAccess.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionExpandoElementAccess.ts === - -// function f() {} -// f[[|"x"|]] = 0; -// f[/*GO TO DEFINITION*/[|"x"|]] = 1; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName.baseline.jsonc deleted file mode 100644 index 9d628fc271..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// [|export class Foo {}|] - - -// === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName2.baseline.jsonc deleted file mode 100644 index 23babaf566..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName2.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// [|class Foo {} -// export var x = 0;|] - - -// === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName3.baseline.jsonc deleted file mode 100644 index 2906c9ba26..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName3.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// declare module [|"e"|] { -// class Foo { } -// } - - -// === /b.ts === - -// import n = require('e/*GO TO DEFINITION*/'); -// var x = new n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName4.baseline.jsonc deleted file mode 100644 index a3ad6ce3a9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName4.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /b.ts === - -// import n = require('unknown/*GO TO DEFINITION*/'); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName5.baseline.jsonc deleted file mode 100644 index d8b35efe1a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName5.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// declare module "external/*GO TO DEFINITION*/[|"external"|] { -// class Foo { } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName6.baseline.jsonc deleted file mode 100644 index 3d06c80981..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName6.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// declare module [|"e"|] { -// class Foo { } -// } - - -// === /b.ts === - -// import * from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName7.baseline.jsonc deleted file mode 100644 index 9d348f7d5f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName7.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// declare module [|"e"|] { -// class Foo { } -// } - - -// === /b.ts === - -// import {Foo, Bar} from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName8.baseline.jsonc deleted file mode 100644 index 040ee5d897..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName8.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// declare module [|"e"|] { -// class Foo { } -// } - - -// === /b.ts === - -// export {Foo, Bar} from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName9.baseline.jsonc deleted file mode 100644 index ee436e817e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionExternalModuleName9.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// declare module [|"e"|] { -// class Foo { } -// } - - -// === /b.ts === - -// export * from 'e/*GO TO DEFINITION*/'; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloads.baseline.jsonc deleted file mode 100644 index 4c8b8dd881..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloads.baseline.jsonc +++ /dev/null @@ -1,52 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === - -// function [|functionOverload|](value: number); -// function functionOverload(value: string); -// function functionOverload() {} -// -// /*GO TO DEFINITION*/functionOverload(123); -// functionOverload("123"); -// functionOverload({}); - - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === - -// function functionOverload(value: number); -// function [|functionOverload|](value: string); -// function functionOverload() {} -// -// functionOverload(123); -// /*GO TO DEFINITION*/functionOverload("123"); -// functionOverload({}); - - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === - -// function [|functionOverload|](value: number); -// function functionOverload(value: string); -// function functionOverload() {} -// -// functionOverload(123); -// functionOverload("123"); -// /*GO TO DEFINITION*/functionOverload({}); - - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloads.ts === - -// function /*GO TO DEFINITION*/[|functionOverload|](value: number); -// function [|functionOverload|](value: string); -// function [|functionOverload|]() {} -// -// functionOverload(123); -// functionOverload("123"); -// functionOverload({}); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloadsInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloadsInClass.baseline.jsonc deleted file mode 100644 index 4230a17f0c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionOverloadsInClass.baseline.jsonc +++ /dev/null @@ -1,28 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionFunctionOverloadsInClass.ts === - -// class clsInOverload { -// static [|fnOverload|](); -// static /*GO TO DEFINITION*/[|fnOverload|](foo: string); -// static [|fnOverload|](foo: any) { } -// public fnOverload(): any; -// public fnOverload(foo: string); -// public fnOverload(foo: any) { return "foo" } -// // --- (line: 8) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionFunctionOverloadsInClass.ts === - -// class clsInOverload { -// static fnOverload(); -// static fnOverload(foo: string); -// static fnOverload(foo: any) { } -// public /*GO TO DEFINITION*/[|fnOverload|](): any; -// public [|fnOverload|](foo: string); -// public [|fnOverload|](foo: any) { return "foo" } -// -// constructor() { } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionType.baseline.jsonc deleted file mode 100644 index 2560509821..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionFunctionType.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionFunctionType.ts === - -// const [|c|]: () => void; -// /*GO TO DEFINITION*/c(); -// function test(cb: () => void) { -// cb(); -// } -// // --- (line: 6) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionFunctionType.ts === - -// const c: () => void; -// c(); -// function test([|cb|]: () => void) { -// /*GO TO DEFINITION*/cb(); -// } -// class C { -// prop: () => void; -// // --- (line: 8) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionFunctionType.ts === - -// --- (line: 3) skipped --- -// cb(); -// } -// class C { -// [|prop|]: () => void; -// m() { -// this./*GO TO DEFINITION*/prop(); -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImplicitConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImplicitConstructor.baseline.jsonc deleted file mode 100644 index 8072ce52e3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImplicitConstructor.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionImplicitConstructor.ts === - -// class [|ImplicitConstructor|] { -// } -// var implicitConstructor = new /*GO TO DEFINITION*/ImplicitConstructor(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport1.baseline.jsonc deleted file mode 100644 index 9dc3601368..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport1.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /b.ts === - -// [|export const foo = 1;|] - - -// === /a.ts === - -// import { foo } from "./b/*GO TO DEFINITION*/"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport2.baseline.jsonc deleted file mode 100644 index c62a776d36..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport2.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// import { foo } from/*GO TO DEFINITION*/ "./b"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport3.baseline.jsonc deleted file mode 100644 index 2759540a10..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImport3.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// import { foo } from /*GO TO DEFINITION*/ "./b"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames.baseline.jsonc deleted file mode 100644 index 2282246b5d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - - -// === /b.ts === - -// export {/*GO TO DEFINITION*/Class} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames10.baseline.jsonc deleted file mode 100644 index 81d8e3cf17..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames10.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// class Class { -// f; -// } -// module.exports.[|Class|] = Class; - - -// === /b.js === - -// const { Class } = require("./a"); -// /*GO TO DEFINITION*/Class; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames11.baseline.jsonc deleted file mode 100644 index 3aea74d06e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames11.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// class Class { -// f; -// } -// module.exports = { [|Class|] }; - - -// === /b.js === - -// const { Class } = require("./a"); -// /*GO TO DEFINITION*/Class; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames2.baseline.jsonc deleted file mode 100644 index d7828b4ce8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames2.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - - -// === /b.ts === - -// import {/*GO TO DEFINITION*/Class} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames3.baseline.jsonc deleted file mode 100644 index 71deedc5f3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames3.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - - -// === /e.ts === - -// import {M, C, I} from "./d"; -// var c = new /*GO TO DEFINITION*/C(); - - - - -// === goToDefinition === -// === /a.ts === - -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - - -// === /e.ts === - -// import {M, /*GO TO DEFINITION*/C, I} from "./d"; -// var c = new C(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames4.baseline.jsonc deleted file mode 100644 index 7a0d40de79..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames4.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - - -// === /b.ts === - -// import {Class as /*GO TO DEFINITION*/ClassAlias} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames5.baseline.jsonc deleted file mode 100644 index cd091788ce..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames5.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// export module Module { -// } -// export class [|Class|] { -// private f; -// } -// export interface Interface { -// x; -// } - - -// === /b.ts === - -// export {Class as /*GO TO DEFINITION*/ClassAlias} from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames6.baseline.jsonc deleted file mode 100644 index 8d32931ebc..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames6.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// [|export module Module { -// } -// export class Class { -// private f; -// } -// export interface Interface { -// x; -// }|] - - -// === /b.ts === - -// import /*GO TO DEFINITION*/alias = require("./a"); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames7.baseline.jsonc deleted file mode 100644 index a14ce34c75..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames7.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// class [|Class|] { -// private f; -// } -// export default Class; - - -// === /b.ts === - -// import /*GO TO DEFINITION*/defaultExport from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames8.baseline.jsonc deleted file mode 100644 index 9d0450fdf1..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames8.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// class [|Class|] { -// private f; -// } -// export { Class }; - - -// === /b.js === - -// import { /*GO TO DEFINITION*/Class } from "./a"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames9.baseline.jsonc deleted file mode 100644 index d50fd5d70e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImportedNames9.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// class [|Class|] { -// f; -// } -// export { Class }; - - -// === /b.js === - -// const { Class } = require("./a"); -// /*GO TO DEFINITION*/Class; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImports.baseline.jsonc deleted file mode 100644 index b1618fc234..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionImports.baseline.jsonc +++ /dev/null @@ -1,70 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// [|export default function f() {} -// export const x = 0;|] - - -// === /b.ts === - -// import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// f; -// x; -// /*GO TO DEFINITION*/a; -// b; - - - - -// === goToDefinition === -// === /a.ts === - -// export default function [|f|]() {} -// export const x = 0; - - -// === /b.ts === - -// import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// /*GO TO DEFINITION*/f; -// x; -// a; -// b; - - - - -// === goToDefinition === -// === /a.ts === - -// export default function f() {} -// export const [|x|] = 0; - - -// === /b.ts === - -// import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// f; -// /*GO TO DEFINITION*/x; -// a; -// b; - - - - -// === goToDefinition === -// === /b.ts === - -// [|import f, { x } from "./a"; -// import * as a from "./a"; -// import b = require("./b"); -// f; -// x; -// a; -// /*GO TO DEFINITION*/b;|] diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInMemberDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInMemberDeclaration.baseline.jsonc deleted file mode 100644 index 2152a5ba0a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInMemberDeclaration.baseline.jsonc +++ /dev/null @@ -1,171 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// interface [|IFoo|] { method1(): number; } -// -// class Foo implements IFoo { -// public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// -// class Bar { -// public _interface: IFo/*GO TO DEFINITION*/o = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// // --- (line: 14) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// interface [|IFoo|] { method1(): number; } -// -// class Foo implements IFoo { -// public method1(): number { return 0; } -// // --- (line: 5) skipped --- - - -// --- (line: 8) skipped --- -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IF/*GO TO DEFINITION*/oo[]=[]; -// public _enum: Enum = Enum.value1; -// public _self: Bar; -// -// // --- (line: 16) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// interface [|IFoo|] { method1(): number; } -// -// class Foo implements IFoo { -// public method1(): number { return 0; } -// // --- (line: 5) skipped --- - - -// --- (line: 12) skipped --- -// public _enum: Enum = Enum.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFo/*GO TO DEFINITION*/o) { -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// interface IFoo { method1(): number; } -// -// class [|Foo|] implements IFoo { -// public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Fo/*GO TO DEFINITION*/o = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// public _self: Bar; -// // --- (line: 15) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// interface IFoo { method1(): number; } -// -// class [|Foo|] implements IFoo { -// public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Fo/*GO TO DEFINITION*/o(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// // --- (line: 14) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// --- (line: 3) skipped --- -// public method1(): number { return 0; } -// } -// -// enum [|Enum|] { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: E/*GO TO DEFINITION*/num = Enum.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFoo) { -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// --- (line: 3) skipped --- -// public method1(): number { return 0; } -// } -// -// enum [|Enum|] { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = En/*GO TO DEFINITION*/um.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFoo) { -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionInMemberDeclaration.ts === - -// --- (line: 5) skipped --- -// -// enum Enum { value1, value2 }; -// -// class [|Bar|] { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; -// public _enum: Enum = Enum.value1; -// public _self: Ba/*GO TO DEFINITION*/r; -// -// constructor(public _inConstructor: IFoo) { -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInTypeArgument.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInTypeArgument.baseline.jsonc deleted file mode 100644 index dabf7326e3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInTypeArgument.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInTypeArgument.ts === - -// class Foo { } -// -// class [|Bar|] { } -// -// var x = new Foo(); - - - - -// === goToDefinition === -// === /goToDefinitionInTypeArgument.ts === - -// class [|Foo|] { } -// -// class Bar { } -// -// var x = new Fo/*GO TO DEFINITION*/o(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature.baseline.jsonc deleted file mode 100644 index f28879d050..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature.baseline.jsonc +++ /dev/null @@ -1,109 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === - -// interface I { -// [|[x: string]: boolean;|] -// } -// interface J { -// [x: string]: number; -// } -// interface K { -// [x: `a${string}`]: string; -// [x: `${string}b`]: string; -// } -// declare const i: I; -// i./*GO TO DEFINITION*/foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// // --- (line: 16) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === - -// interface I { -// [|[x: string]: boolean;|] -// } -// interface J { -// [|[x: string]: number;|] -// } -// interface K { -// [x: `a${string}`]: string; -// [x: `${string}b`]: string; -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij./*GO TO DEFINITION*/foo; -// declare const k: K; -// k.a; -// k.b; -// k.ab; - - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === - -// --- (line: 4) skipped --- -// [x: string]: number; -// } -// interface K { -// [|[x: `a${string}`]: string;|] -// [x: `${string}b`]: string; -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// k./*GO TO DEFINITION*/a; -// k.b; -// k.ab; - - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === - -// --- (line: 5) skipped --- -// } -// interface K { -// [x: `a${string}`]: string; -// [|[x: `${string}b`]: string;|] -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// k.a; -// k./*GO TO DEFINITION*/b; -// k.ab; - - - - -// === goToDefinition === -// === /goToDefinitionIndexSignature.ts === - -// --- (line: 4) skipped --- -// [x: string]: number; -// } -// interface K { -// [|[x: `a${string}`]: string;|] -// [|[x: `${string}b`]: string;|] -// } -// declare const i: I; -// i.foo; -// declare const ij: I | J; -// ij.foo; -// declare const k: K; -// k.a; -// k.b; -// k./*GO TO DEFINITION*/ab; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature2.baseline.jsonc deleted file mode 100644 index 248a3b23e5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionIndexSignature2.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// const o = {}; -// o./*GO TO DEFINITION*/foo; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof1.baseline.jsonc deleted file mode 100644 index e515f36374..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof1.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInstanceof1.ts === - -// class [|C|] { -// } -// declare var obj: any; -// obj /*GO TO DEFINITION*/instanceof C; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof2.baseline.jsonc deleted file mode 100644 index de16fac690..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInstanceof2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /main.ts === - -// class C { -// static [|[Symbol.hasInstance]|](value: unknown): boolean { return true; } -// } -// declare var obj: any; -// obj /*GO TO DEFINITION*/instanceof C; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInterfaceAfterImplement.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInterfaceAfterImplement.baseline.jsonc deleted file mode 100644 index 8bdc0bf92f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionInterfaceAfterImplement.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionInterfaceAfterImplement.ts === - -// interface [|sInt|] { -// sVar: number; -// sFn: () => void; -// } -// -// class iClass implements /*GO TO DEFINITION*/sInt { -// public sVar = 1; -// public sFn() { -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag1.baseline.jsonc deleted file mode 100644 index 12cc4cdcea..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// /** -// * @import { A } from "./b/*GO TO DEFINITION*/" -// */ diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag2.baseline.jsonc deleted file mode 100644 index c1f8225a90..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag2.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// /** -// * @import { A } from/*GO TO DEFINITION*/ "./b" -// */ diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag3.baseline.jsonc deleted file mode 100644 index b0594c7379..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag3.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// /** -// * @import { A } from /*GO TO DEFINITION*/ "./b"; -// */ diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag4.baseline.jsonc deleted file mode 100644 index 7aedc0dc48..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag4.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// /** -// * @import { A/*GO TO DEFINITION*/ } from "./b"; -// */ diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag5.baseline.jsonc deleted file mode 100644 index 1ead78f336..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsDocImportTag5.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /b.ts === - -// export interface [|A|] { } - - -// === /a.js === - -// /** -// * @import { A } from "./b"; -// */ -// -// /** -// * @param { A/*GO TO DEFINITION*/ } a -// */ -// function f(a) {} diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleExports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleExports.baseline.jsonc deleted file mode 100644 index bf9b945576..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleExports.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === goToDefinition === -// === /foo.js === - -// x.test = () => { } -// x./*GO TO DEFINITION*/test(); -// x.test3 = function () { } -// x.test3(); - - - - -// === goToDefinition === -// === /foo.js === - -// x.test = () => { } -// x.test(); -// x.test3 = function () { } -// x./*GO TO DEFINITION*/test3(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleName.baseline.jsonc deleted file mode 100644 index 36626d0ff8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleName.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /foo.js === - -// [|module.exports = {};|] - - -// === /bar.js === - -// var x = require(/*GO TO DEFINITION*/"./foo"); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleNameAtImportName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleNameAtImportName.baseline.jsonc deleted file mode 100644 index 24f541fe17..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsModuleNameAtImportName.baseline.jsonc +++ /dev/null @@ -1,68 +0,0 @@ -// === goToDefinition === -// === /foo.js === - -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - - -// === /bar.js === - -// const /*GO TO DEFINITION*/BlahModule = require("./foo.js"); -// new BlahModule.Blah() - - - - -// === goToDefinition === -// === /foo.js === - -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - - -// === /bar.js === - -// const BlahModule = require("./foo.js"); -// new /*GO TO DEFINITION*/BlahModule.Blah() - - - - -// === goToDefinition === -// === /foo.js === - -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - - -// === /barTs.ts === - -// import /*GO TO DEFINITION*/BlahModule = require("./foo.js"); -// new BlahModule.Blah() - - - - -// === goToDefinition === -// === /foo.js === - -// [|function notExported() { } -// class Blah { -// abc = 123; -// } -// module.exports.Blah = Blah;|] - - -// === /barTs.ts === - -// import BlahModule = require("./foo.js"); -// new /*GO TO DEFINITION*/BlahModule.Blah() diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxCall.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxCall.baseline.jsonc deleted file mode 100644 index 494b9afbf4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxCall.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /test.tsx === - -// interface FC

{ -// [|(props: P, context?: any): string;|] -// } -// -// const [|Thing|]: FC = (props) =>

; -// const HelloWorld = () => ; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxNotSet.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxNotSet.baseline.jsonc deleted file mode 100644 index 16279522de..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionJsxNotSet.baseline.jsonc +++ /dev/null @@ -1,13 +0,0 @@ -// === goToDefinition === -// === /foo.jsx === - -// const [|Foo|] = () => ( -//
foo
-// ); -// export default Foo; - - -// === /bar.jsx === - -// import Foo from './foo'; -// const a = diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionLabels.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionLabels.baseline.jsonc deleted file mode 100644 index 834e6a6021..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionLabels.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionLabels.ts === - -// [|label1|]: while (true) { -// label2: while (true) { -// break /*GO TO DEFINITION*/label1; -// continue label2; -// () => { break label1; } -// continue unknownLabel; -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionLabels.ts === - -// label1: while (true) { -// [|label2|]: while (true) { -// break label1; -// continue /*GO TO DEFINITION*/label2; -// () => { break label1; } -// continue unknownLabel; -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionLabels.ts === - -// [|label1|]: while (true) { -// label2: while (true) { -// break label1; -// continue label2; -// () => { break /*GO TO DEFINITION*/label1; } -// continue unknownLabel; -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionLabels.ts === - -// label1: while (true) { -// label2: while (true) { -// break label1; -// continue label2; -// () => { break label1; } -// continue /*GO TO DEFINITION*/unknownLabel; -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMember.baseline.jsonc deleted file mode 100644 index 2e1b2688af..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMember.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// class A { -// private z/*GO TO DEFINITION*/[|z|]: string; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMetaProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMetaProperty.baseline.jsonc deleted file mode 100644 index 64438cdf2f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMetaProperty.baseline.jsonc +++ /dev/null @@ -1,59 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// im/*GO TO DEFINITION*/port.meta; -// function f() { new.target; } - - - - -// === goToDefinition === -// === /a.ts === - -// import.met/*GO TO DEFINITION*/a; -// function f() { new.target; } - - - - -// === goToDefinition === -// === /a.ts === - -// import.meta; -// function f() { n/*GO TO DEFINITION*/ew.target; } - - - - -// === goToDefinition === -// === /a.ts === - -// import.meta; -// function f() { new.t/*GO TO DEFINITION*/[|f|]() { new.target; } - - - - -// === goToDefinition === -// === /b.ts === - -// im/*GO TO DEFINITION*/port.m; -// class c { constructor() { new.target; } } - - - - -// === goToDefinition === -// === /b.ts === - -// import.m; -// class c { constructor() { n/*GO TO DEFINITION*/ew.target; } } - - - - -// === goToDefinition === -// === /b.ts === - -// import.m; -// class c { constructor() { new.t/*GO TO DEFINITION*/[|c|] { constructor() { new.target; } } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMethodOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMethodOverloads.baseline.jsonc deleted file mode 100644 index 6f294a944d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMethodOverloads.baseline.jsonc +++ /dev/null @@ -1,117 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === - -// class MethodOverload { -// static [|method|](); -// static method(foo: string); -// static method(foo?: any) { } -// public method(): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload./*GO TO DEFINITION*/method(); -// MethodOverload.method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload.method(); -// methodOverload.method("456"); - - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === - -// class MethodOverload { -// static method(); -// static [|method|](foo: string); -// static method(foo?: any) { } -// public method(): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// MethodOverload./*GO TO DEFINITION*/method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload.method(); -// methodOverload.method("456"); - - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === - -// class MethodOverload { -// static method(); -// static method(foo: string); -// static method(foo?: any) { } -// public [|method|](): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// MethodOverload.method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload./*GO TO DEFINITION*/method(); -// methodOverload.method("456"); - - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === - -// class MethodOverload { -// static method(); -// static method(foo: string); -// static method(foo?: any) { } -// public method(): any; -// public [|method|](foo: string); -// public method(foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// MethodOverload.method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload.method(); -// methodOverload./*GO TO DEFINITION*/method("456"); - - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === - -// class MethodOverload { -// static /*GO TO DEFINITION*/[|method|](); -// static [|method|](foo: string); -// static [|method|](foo?: any) { } -// public method(): any; -// public method(foo: string); -// public method(foo?: any) { return "foo" } -// // --- (line: 8) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionMethodOverloads.ts === - -// class MethodOverload { -// static method(); -// static method(foo: string); -// static method(foo?: any) { } -// public /*GO TO DEFINITION*/[|method|](): any; -// public [|method|](foo: string); -// public [|method|](foo?: any) { return "foo" } -// } -// // static method -// MethodOverload.method(); -// // --- (line: 11) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionModifiers.baseline.jsonc deleted file mode 100644 index 44c9df60f1..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionModifiers.baseline.jsonc +++ /dev/null @@ -1,230 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// /*GO TO DEFINITION*/export class [|A|] { -// -// private z: string; -// -// // --- (line: 5) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// export class A/*GO TO DEFINITION*/[|A|] { -// -// private z: string; -// -// // --- (line: 5) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// export class A { -// -// /*GO TO DEFINITION*/private [|z|]: string; -// -// readonly x: string; -// -// // --- (line: 7) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// export class A { -// -// private z/*GO TO DEFINITION*/[|z|]: string; -// -// readonly x: string; -// -// // --- (line: 7) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// export class A { -// -// private z: string; -// -// /*GO TO DEFINITION*/readonly [|x|]: string; -// -// async a() { } -// -// // --- (line: 9) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// export class A { -// -// private z: string; -// -// readonly x/*GO TO DEFINITION*/[|x|]: string; -// -// async a() { } -// -// // --- (line: 9) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 3) skipped --- -// -// readonly x: string; -// -// /*GO TO DEFINITION*/async [|a|]() { } -// -// override b() {} -// -// // --- (line: 11) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 3) skipped --- -// -// readonly x: string; -// -// async a/*GO TO DEFINITION*/[|a|]() { } -// -// override b() {} -// -// // --- (line: 11) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 5) skipped --- -// -// async a() { } -// -// /*GO TO DEFINITION*/override [|b|]() {} -// -// public async c() { } -// } -// -// export function foo() { } - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 5) skipped --- -// -// async a() { } -// -// override b/*GO TO DEFINITION*/[|b|]() {} -// -// public async c() { } -// } -// -// export function foo() { } - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 7) skipped --- -// -// override b() {} -// -// /*GO TO DEFINITION*/public async [|c|]() { } -// } -// -// export function foo() { } - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 7) skipped --- -// -// override b() {} -// -// public/*GO TO DEFINITION*/ async [|c|]() { } -// } -// -// export function foo() { } - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 7) skipped --- -// -// override b() {} -// -// public as/*GO TO DEFINITION*/ync [|c|]() { } -// } -// -// export function foo() { } - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 7) skipped --- -// -// override b() {} -// -// public async c/*GO TO DEFINITION*/[|c|]() { } -// } -// -// export function foo() { } - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 10) skipped --- -// public async c() { } -// } -// -// exp/*GO TO DEFINITION*/ort function [|foo|]() { } - - - - -// === goToDefinition === -// === /a.ts === - -// --- (line: 10) skipped --- -// public async c() { } -// } -// -// export function foo/*GO TO DEFINITION*/[|foo|]() { } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMultipleDefinitions.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMultipleDefinitions.baseline.jsonc deleted file mode 100644 index ed4abc4b5e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionMultipleDefinitions.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// interface [|IFoo|] { -// instance1: number; -// } - - -// === /b.ts === - -// interface [|IFoo|] { -// instance2: number; -// } -// -// interface [|IFoo|] { -// instance3: number; -// } -// -// var ifoo: IFo/*GO TO DEFINITION*/o; - - - - -// === goToDefinition === -// === /c.ts === - -// module [|Module|] { -// export class c1 { } -// } - - -// === /d.ts === - -// module [|Module|] { -// export class c2 { } -// } - - -// === /e.ts === - -// Modul/*GO TO DEFINITION*/e; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionNewExpressionTargetNotClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionNewExpressionTargetNotClass.baseline.jsonc deleted file mode 100644 index 022497479b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionNewExpressionTargetNotClass.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionNewExpressionTargetNotClass.ts === - -// class C2 { -// } -// let [|I|]: { -// [|new(): C2;|] -// }; -// new /*GO TO DEFINITION*/I(); -// let I2: { -// }; -// new I2(); - - - - -// === goToDefinition === -// === /goToDefinitionNewExpressionTargetNotClass.ts === - -// --- (line: 3) skipped --- -// new(): C2; -// }; -// new I(); -// let [|I2|]: { -// }; -// new /*GO TO DEFINITION*/I2(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectBindingElementPropertyName01.baseline.jsonc deleted file mode 100644 index 4e1149597e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectBindingElementPropertyName01.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectBindingElementPropertyName01.ts === - -// interface I { -// [|property1|]: number; -// property2: string; -// } -// -// var foo: I; -// var { /*GO TO DEFINITION*/property1: prop1 } = foo; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties.baseline.jsonc deleted file mode 100644 index 2e93fea859..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties.baseline.jsonc +++ /dev/null @@ -1,96 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === - -// var o = { -// [|value|]: 0, -// get getter() {return 0 }, -// set setter(v: number) { }, -// method: () => { }, -// es6StyleMethod() { } -// }; -// -// o./*GO TO DEFINITION*/value; -// o.getter; -// o.setter; -// o.method; -// o.es6StyleMethod; - - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === - -// var o = { -// value: 0, -// get [|getter|]() {return 0 }, -// set setter(v: number) { }, -// method: () => { }, -// es6StyleMethod() { } -// }; -// -// o.value; -// o./*GO TO DEFINITION*/getter; -// o.setter; -// o.method; -// o.es6StyleMethod; - - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === - -// var o = { -// value: 0, -// get getter() {return 0 }, -// set [|setter|](v: number) { }, -// method: () => { }, -// es6StyleMethod() { } -// }; -// -// o.value; -// o.getter; -// o./*GO TO DEFINITION*/setter; -// o.method; -// o.es6StyleMethod; - - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === - -// var o = { -// value: 0, -// get getter() {return 0 }, -// set setter(v: number) { }, -// [|method|]: () => { }, -// es6StyleMethod() { } -// }; -// -// o.value; -// o.getter; -// o.setter; -// o./*GO TO DEFINITION*/method; -// o.es6StyleMethod; - - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties.ts === - -// var o = { -// value: 0, -// get getter() {return 0 }, -// set setter(v: number) { }, -// method: () => { }, -// [|es6StyleMethod|]() { } -// }; -// -// o.value; -// o.getter; -// o.setter; -// o.method; -// o./*GO TO DEFINITION*/es6StyleMethod; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties1.baseline.jsonc deleted file mode 100644 index c4154c3905..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectLiteralProperties1.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties1.ts === - -// interface PropsBag { -// [|propx|]: number -// } -// function foo(arg: PropsBag) {} -// foo({ -// pr/*GO TO DEFINITION*/opx: 10 -// }) -// function bar(firstarg: boolean, secondarg: PropsBag) {} -// bar(true, { -// propx: 10 -// }) - - - - -// === goToDefinition === -// === /goToDefinitionObjectLiteralProperties1.ts === - -// interface PropsBag { -// [|propx|]: number -// } -// function foo(arg: PropsBag) {} -// foo({ -// propx: 10 -// }) -// function bar(firstarg: boolean, secondarg: PropsBag) {} -// bar(true, { -// pr/*GO TO DEFINITION*/opx: 10 -// }) diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectSpread.baseline.jsonc deleted file mode 100644 index afad471272..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionObjectSpread.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionObjectSpread.ts === - -// interface A1 { [|a|]: number }; -// interface A2 { [|a|]?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.a/*GO TO DEFINITION*/; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc deleted file mode 100644 index 761a85ba27..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverloadsInMultiplePropertyAccesses.ts === - -// namespace A { -// export namespace B { -// export function f(value: number): void; -// export function [|f|](value: string): void; -// export function f(value: number | string) {} -// } -// } -// A.B./*GO TO DEFINITION*/f(""); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember1.baseline.jsonc deleted file mode 100644 index ac11d76c79..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember1.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember1.ts === - -// class Foo { -// [|p|] = ''; -// } -// class Bar extends Foo { -// /*GO TO DEFINITION*/override p = ''; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember10.baseline.jsonc deleted file mode 100644 index 42b1667ea0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember10.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// class Foo {} -// class Bar extends Foo { -// /** @override/*GO TO DEFINITION*/ */ -// m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember11.baseline.jsonc deleted file mode 100644 index 96e1fa6c0b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember11.baseline.jsonc +++ /dev/null @@ -1,66 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @over/*GO TO DEFINITION*/ride see {@link https://test.com} description */ -// m() {} -// } - - - - -// === goToDefinition === -// === /a.js === - -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override se/*GO TO DEFINITION*/e {@link https://test.com} description */ -// m() {} -// } - - - - -// === goToDefinition === -// === /a.js === - -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override see {@li/*GO TO DEFINITION*/nk https://test.com} description */ -// m() {} -// } - - - - -// === goToDefinition === -// === /a.js === - -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override see {@link https://test.c/*GO TO DEFINITION*/om} description */ -// m() {} -// } - - - - -// === goToDefinition === -// === /a.js === - -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /** @override see {@link https://test.com} /*GO TO DEFINITION*/description */ -// m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember12.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember12.baseline.jsonc deleted file mode 100644 index 715a7cdf94..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember12.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember12.ts === - -// class Foo { -// static [|p|] = ''; -// } -// class Bar extends Foo { -// static /*GO TO DEFINITION*/override p = ''; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember13.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember13.baseline.jsonc deleted file mode 100644 index 7d6233d830..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember13.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember13.ts === - -// class Foo { -// static [|m|]() {} -// } -// class Bar extends Foo { -// static /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember14.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember14.baseline.jsonc deleted file mode 100644 index 3a62a94263..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember14.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember14.ts === - -// class A { -// [|m|]() {} -// } -// class B extends A {} -// class C extends B { -// /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember15.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember15.baseline.jsonc deleted file mode 100644 index e14990deea..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember15.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember15.ts === - -// class A { -// static [|m|]() {} -// } -// class B extends A {} -// class C extends B { -// static /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember16.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember16.baseline.jsonc deleted file mode 100644 index cbbf2a9da3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember16.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverrideJsdoc.ts === - -// export class C extends CompletelyUndefined { -// /** -// * @override/*GO TO DEFINITION*/ -// * @returns {{}} -// */ -// static foo() { -// // --- (line: 7) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember2.baseline.jsonc deleted file mode 100644 index 07cc95ddef..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember2.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember2.ts === - -// class Foo { -// [|m|]() {} -// } -// -// class Bar extends Foo { -// /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember3.baseline.jsonc deleted file mode 100644 index 2ed1e9c304..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember3.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember3.ts === - -// abstract class Foo { -// abstract [|m|]() {} -// } -// -// export class Bar extends Foo { -// /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember4.baseline.jsonc deleted file mode 100644 index addd84eab3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember4.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember4.ts === - -// class Foo { -// [|m|]() {} -// } -// function f () { -// return class extends Foo { -// /*GO TO DEFINITION*/override m() {} -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember5.baseline.jsonc deleted file mode 100644 index 242dfd2a73..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember5.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember5.ts === - -// class Foo extends (class { -// [|m|]() {} -// }) { -// /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember6.baseline.jsonc deleted file mode 100644 index 65f53f831e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember6.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember6.ts === - -// class Foo { -// m() {} -// } -// class Bar extends Foo { -// /*GO TO DEFINITION*/override [|m1|]() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember7.baseline.jsonc deleted file mode 100644 index 0a02b0caf7..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember7.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember7.ts === - -// class Foo { -// /*GO TO DEFINITION*/override [|m|]() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember8.baseline.jsonc deleted file mode 100644 index f7d0b7d83e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember8.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// export class A { -// [|m|]() {} -// } - - -// === /b.ts === - -// import { A } from "./a"; -// class B extends A { -// /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember9.baseline.jsonc deleted file mode 100644 index 24f841e86f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionOverriddenMember9.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionOverriddenMember9.ts === - -// interface I { -// m(): void; -// } -// class A { -// [|m|]() {}; -// } -// class B extends A implements I { -// /*GO TO DEFINITION*/override m() {} -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPartialImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPartialImplementation.baseline.jsonc deleted file mode 100644 index bc9376f290..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPartialImplementation.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPartialImplementation_1.ts === - -// module A { -// export interface [|IA|] { -// y: string; -// } -// } - - -// === /goToDefinitionPartialImplementation_2.ts === - -// module A { -// export interface [|IA|] { -// x: number; -// } -// -// var x: /*GO TO DEFINITION*/IA; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrimitives.baseline.jsonc deleted file mode 100644 index 60a68757fa..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrimitives.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPrimitives.ts === - -// var x: st/*GO TO DEFINITION*/ring; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrivateName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrivateName.baseline.jsonc deleted file mode 100644 index 8fea9247a7..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPrivateName.baseline.jsonc +++ /dev/null @@ -1,50 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPrivateName.ts === - -// class A { -// #method() { } -// [|#foo|] = 3; -// get #prop() { return ""; } -// set #prop(value: string) { } -// constructor() { -// this./*GO TO DEFINITION*/#foo -// this.#method -// this.#prop -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionPrivateName.ts === - -// class A { -// [|#method|]() { } -// #foo = 3; -// get #prop() { return ""; } -// set #prop(value: string) { } -// constructor() { -// this.#foo -// this./*GO TO DEFINITION*/#method -// this.#prop -// } -// } - - - - -// === goToDefinition === -// === /goToDefinitionPrivateName.ts === - -// class A { -// #method() { } -// #foo = 3; -// get [|#prop|]() { return ""; } -// set [|#prop|](value: string) { } -// constructor() { -// this.#foo -// this.#method -// this./*GO TO DEFINITION*/#prop -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPropertyAssignment.baseline.jsonc deleted file mode 100644 index f5450b633f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionPropertyAssignment.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionPropertyAssignment.ts === - -// export const [|Component|] = () => { return "OK"} -// Component.displayName = 'Component' -// -// /*GO TO DEFINITION*/Component -// -// Component.displayName - - - - -// === goToDefinition === -// === /goToDefinitionPropertyAssignment.ts === - -// export const Component = () => { return "OK"} -// Component.[|displayName|] = 'Component' -// -// Component -// -// Component./*GO TO DEFINITION*/displayName diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionRest.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionRest.baseline.jsonc deleted file mode 100644 index 3d68b15f4c..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionRest.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionRest.ts === - -// interface Gen { -// x: number; -// [|parent|]: Gen; -// millenial: string; -// } -// let t: Gen; -// var { x, ...rest } = t; -// rest./*GO TO DEFINITION*/parent; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn1.baseline.jsonc deleted file mode 100644 index 18f1b6b08f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn1.ts === - -// function [|foo|]() { -// /*GO TO DEFINITION*/return 10; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn2.baseline.jsonc deleted file mode 100644 index 1ebe526a40..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn2.ts === - -// function foo() { -// return [|() => { -// /*GO TO DEFINITION*/return 10; -// }|] -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn3.baseline.jsonc deleted file mode 100644 index 5c10796953..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn3.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn3.ts === - -// class C { -// [|m|]() { -// /*GO TO DEFINITION*/return 1; -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn4.baseline.jsonc deleted file mode 100644 index d521835508..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn4.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn4.ts === - -// /*GO TO DEFINITION*/return; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn5.baseline.jsonc deleted file mode 100644 index 0e064e17c1..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn5.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn5.ts === - -// function [|foo|]() { -// class Foo { -// static { /*GO TO DEFINITION*/return; } -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn6.baseline.jsonc deleted file mode 100644 index e0fe0441dd..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn6.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn6.ts === - -// function foo() { -// return [|function () { -// /*GO TO DEFINITION*/return 10; -// }|] -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn7.baseline.jsonc deleted file mode 100644 index 243bfca4ea..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionReturn7.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionReturn7.ts === - -// function foo(a: string, b: string): string; -// function foo(a: number, b: number): number; -// function [|foo|](a: any, b: any): any { -// /*GO TO DEFINITION*/return a + b; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSameFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSameFile.baseline.jsonc deleted file mode 100644 index 690de32b27..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSameFile.baseline.jsonc +++ /dev/null @@ -1,91 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSameFile.ts === - -// var [|localVariable|]; -// function localFunction() { } -// class localClass { } -// interface localInterface{ } -// module localModule{ export var foo = 1;} -// -// -// /*GO TO DEFINITION*/localVariable = 1; -// localFunction(); -// var foo = new localClass(); -// class fooCls implements localInterface { } -// var fooVar = localModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === - -// var localVariable; -// function [|localFunction|]() { } -// class localClass { } -// interface localInterface{ } -// module localModule{ export var foo = 1;} -// -// -// localVariable = 1; -// /*GO TO DEFINITION*/localFunction(); -// var foo = new localClass(); -// class fooCls implements localInterface { } -// var fooVar = localModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === - -// var localVariable; -// function localFunction() { } -// class [|localClass|] { } -// interface localInterface{ } -// module localModule{ export var foo = 1;} -// -// -// localVariable = 1; -// localFunction(); -// var foo = new /*GO TO DEFINITION*/localClass(); -// class fooCls implements localInterface { } -// var fooVar = localModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === - -// var localVariable; -// function localFunction() { } -// class localClass { } -// interface [|localInterface|]{ } -// module localModule{ export var foo = 1;} -// -// -// localVariable = 1; -// localFunction(); -// var foo = new localClass(); -// class fooCls implements /*GO TO DEFINITION*/localInterface { } -// var fooVar = localModule.foo; - - - - -// === goToDefinition === -// === /goToDefinitionSameFile.ts === - -// var localVariable; -// function localFunction() { } -// class localClass { } -// interface localInterface{ } -// module [|localModule|]{ export var foo = 1;} -// -// -// localVariable = 1; -// localFunction(); -// var foo = new localClass(); -// class fooCls implements localInterface { } -// var fooVar = /*GO TO DEFINITION*/localModule.foo; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSatisfiesExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSatisfiesExpression1.baseline.jsonc deleted file mode 100644 index 001af7fa9d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSatisfiesExpression1.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSatisfiesExpression1.ts === - -// const STRINGS = { -// /*GO TO DEFINITION*/[|title|]: 'A Title', -// } satisfies Record; -// -// //somewhere in app -// STRINGS.title - - - - -// === goToDefinition === -// === /goToDefinitionSatisfiesExpression1.ts === - -// const STRINGS = { -// [|title|]: 'A Title', -// } satisfies Record; -// -// //somewhere in app -// STRINGS./*GO TO DEFINITION*/title diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImport.baseline.jsonc deleted file mode 100644 index 4b809d76d9..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImport.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === goToDefinition === -// === /moduleThing.ts === - -// import /*GO TO DEFINITION*/"./scriptThing"; -// import "./stylez.css"; - - - - -// === goToDefinition === -// === /moduleThing.ts === - -// import "./scriptThing"; -// import /*GO TO DEFINITION*/"./stylez.css"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImportServer.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImportServer.baseline.jsonc deleted file mode 100644 index c502401d63..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionScriptImportServer.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === goToDefinition === -// === /home/src/workspaces/project/moduleThing.ts === - -// import /*GO TO DEFINITION*/"./scriptThing"; -// import "./stylez.css"; -// import "./foo.txt"; - - - - -// === goToDefinition === -// === /home/src/workspaces/project/moduleThing.ts === - -// import "./scriptThing"; -// import /*GO TO DEFINITION*/"./stylez.css"; -// import "./foo.txt"; - - - - -// === goToDefinition === -// === /home/src/workspaces/project/moduleThing.ts === - -// import "./scriptThing"; -// import "./stylez.css"; -// import /*GO TO DEFINITION*/"./foo.txt"; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariable.baseline.jsonc deleted file mode 100644 index 62cc613c22..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariable.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShadowVariable.ts === - -// var shadowVariable = "foo"; -// function shadowVariableTestModule() { -// var [|shadowVariable|]; -// /*GO TO DEFINITION*/shadowVariable = 1; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariableInsideModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariableInsideModule.baseline.jsonc deleted file mode 100644 index 6a9b66ac86..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShadowVariableInsideModule.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShadowVariableInsideModule.ts === - -// module shdModule { -// var [|shdVar|]; -// /*GO TO DEFINITION*/shdVar = 1; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty01.baseline.jsonc deleted file mode 100644 index 998495b181..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty01.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === - -// var name = "hello"; -// var id = 100000; -// declare var id; -// var obj = {/*GO TO DEFINITION*/name, id}; -// obj.name; -// obj.id; - - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === - -// var name = "hello"; -// var [|id|] = 100000; -// declare var [|id|]; -// var obj = {name, /*GO TO DEFINITION*/id}; -// obj.name; -// obj.id; - - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === - -// var name = "hello"; -// var id = 100000; -// declare var id; -// var obj = {[|name|], id}; -// obj./*GO TO DEFINITION*/name; -// obj.id; - - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty01.ts === - -// var name = "hello"; -// var id = 100000; -// declare var id; -// var obj = {name, [|id|]}; -// obj.name; -// obj./*GO TO DEFINITION*/id; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty02.baseline.jsonc deleted file mode 100644 index 66e755d602..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty02.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty02.ts === - -// let x = { -// f/*GO TO DEFINITION*/oo -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty03.baseline.jsonc deleted file mode 100644 index 93a377f606..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty03.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty03.ts === - -// var [|x|] = { -// /*GO TO DEFINITION*/x -// } -// let y = { -// y -// } - - - - -// === goToDefinition === -// === /goToDefinitionShorthandProperty03.ts === - -// var x = { -// x -// } -// let [|y|] = { -// /*GO TO DEFINITION*/y -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty04.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty04.baseline.jsonc deleted file mode 100644 index 0dbcc885e5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty04.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty04.ts === - -// interface Foo { -// foo(): void -// } -// -// let x: Foo = { -// f/*GO TO DEFINITION*/oo -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty05.baseline.jsonc deleted file mode 100644 index 32e9dbe162..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty05.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty05.ts === - -// interface Foo { -// foo(): void -// } -// const [|foo|] = 1; -// let x: Foo = { -// f/*GO TO DEFINITION*/oo -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty06.baseline.jsonc deleted file mode 100644 index 1b34e6d962..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionShorthandProperty06.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionShorthandProperty06.ts === - -// interface Foo { -// [|foo|](): void -// } -// const foo = 1; -// let x: Foo = { -// f/*GO TO DEFINITION*/oo() -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSignatureAlias_require.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSignatureAlias_require.baseline.jsonc deleted file mode 100644 index b25869586f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSignatureAlias_require.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// [|module.exports = function f() {}|][|f|]() {} - - -// === /b.js === - -// const f = require("./a"); -// /*GO TO DEFINITION*/f(); - - - - -// === goToDefinition === -// === /a.js === - -// [|module.exports = function f() {}|][|f|]() {} - - -// === /bar.ts === - -// import f = require("./a"); -// /*GO TO DEFINITION*/f(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSimple.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSimple.baseline.jsonc deleted file mode 100644 index 035841e248..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSimple.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === goToDefinition === -// === /Definition.ts === - -// class [|c|] { } - - -// === /Consumption.ts === - -// var n = new /*GO TO DEFINITION*/c(); -// var n = new c(); - - - - -// === goToDefinition === -// === /Definition.ts === - -// class [|c|] { } - - -// === /Consumption.ts === - -// var n = new c(); -// var n = new c/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSourceUnit.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSourceUnit.baseline.jsonc deleted file mode 100644 index 7b142582a5..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSourceUnit.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// //MyFile Comments -// //more comments -// /// -// /// -// -// class clsInOverload { -// // --- (line: 7) skipped --- - - - - -// === goToDefinition === -// === /a.ts === - -// //MyFile Comments -// //more comments -// /// -// /// -// -// class clsInOverload { -// static fnOverload(); -// // --- (line: 8) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase1.baseline.jsonc deleted file mode 100644 index fd566d3ed8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase1.ts === - -// [|switch|] (null ) { -// /*GO TO DEFINITION*/case null: break; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase2.baseline.jsonc deleted file mode 100644 index 5b5853f1ec..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase2.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase2.ts === - -// [|switch|] (null) { -// /*GO TO DEFINITION*/default: break; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase3.baseline.jsonc deleted file mode 100644 index 746a4c61e0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase3.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase3.ts === - -// [|switch|] (null) { -// /*GO TO DEFINITION*/default: { -// switch (null) { -// default: break; -// } -// }; -// } - - - - -// === goToDefinition === -// === /goToDefinitionSwitchCase3.ts === - -// switch (null) { -// default: { -// [|switch|] (null) { -// /*GO TO DEFINITION*/default: break; -// } -// }; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase4.baseline.jsonc deleted file mode 100644 index 38d9a577be..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase4.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase4.ts === - -// switch (null) { -// case null: break; -// } -// -// [|switch|] (null) { -// /*GO TO DEFINITION*/case null: break; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase5.baseline.jsonc deleted file mode 100644 index aaafe2addb..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase5.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase5.ts === - -// export /*GO TO DEFINITION*/default {} diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase6.baseline.jsonc deleted file mode 100644 index 7d19bcdcc4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase6.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase6.ts === - -// export default { /*GO TO DEFINITION*/[|case|] }; -// default; -// case 42; - - - - -// === goToDefinition === -// === /goToDefinitionSwitchCase6.ts === - -// export default { case }; -// /*GO TO DEFINITION*/default; -// case 42; - - - - -// === goToDefinition === -// === /goToDefinitionSwitchCase6.ts === - -// export default { case }; -// default; -// /*GO TO DEFINITION*/case 42; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase7.baseline.jsonc deleted file mode 100644 index e62291a379..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionSwitchCase7.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionSwitchCase7.ts === - -// switch (null) { -// case null: -// export /*GO TO DEFINITION*/default 123; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTaggedTemplateOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTaggedTemplateOverloads.baseline.jsonc deleted file mode 100644 index 0e0f59e55b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTaggedTemplateOverloads.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionTaggedTemplateOverloads.ts === - -// function [|f|](strs: TemplateStringsArray, x: number): void; -// function f(strs: TemplateStringsArray, x: boolean): void; -// function f(strs: TemplateStringsArray, x: number | boolean) {} -// -// /*GO TO DEFINITION*/f`${0}`; -// f`${false}`; - - - - -// === goToDefinition === -// === /goToDefinitionTaggedTemplateOverloads.ts === - -// function f(strs: TemplateStringsArray, x: number): void; -// function [|f|](strs: TemplateStringsArray, x: boolean): void; -// function f(strs: TemplateStringsArray, x: number | boolean) {} -// -// f`${0}`; -// /*GO TO DEFINITION*/f`${false}`; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionThis.baseline.jsonc deleted file mode 100644 index 777b49ba3f..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionThis.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionThis.ts === - -// function f([|this|]: number) { -// return /*GO TO DEFINITION*/this; -// } -// class C { -// constructor() { return this; } -// get self(this: number) { return this; } -// } - - - - -// === goToDefinition === -// === /goToDefinitionThis.ts === - -// function f(this: number) { -// return this; -// } -// class [|C|] { -// constructor() { return /*GO TO DEFINITION*/this; } -// get self(this: number) { return this; } -// } - - - - -// === goToDefinition === -// === /goToDefinitionThis.ts === - -// function f(this: number) { -// return this; -// } -// class C { -// constructor() { return this; } -// get self(this: number) { return /*GO TO DEFINITION*/[|this|]: number) { return this; } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeOnlyImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeOnlyImport.baseline.jsonc deleted file mode 100644 index c8789a193a..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeOnlyImport.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// enum [|SyntaxKind|] { SourceFile } -// export type { SyntaxKind } - - -// === /c.ts === - -// import type { SyntaxKind } from './b'; -// let kind: /*GO TO DEFINITION*/SyntaxKind; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypePredicate.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypePredicate.baseline.jsonc deleted file mode 100644 index 435ad196c3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypePredicate.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionTypePredicate.ts === - -// class A {} -// function f(parameter: any): /*GO TO DEFINITION*/[|parameter|]: any): parameter is A { -// return typeof parameter === "string"; -// } - - - - -// === goToDefinition === -// === /goToDefinitionTypePredicate.ts === - -// class [|A|] {} -// function f(parameter: any): parameter is /*GO TO DEFINITION*/A { -// return typeof parameter === "string"; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeReferenceDirective.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeReferenceDirective.baseline.jsonc deleted file mode 100644 index cebefaba91..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeReferenceDirective.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /src/app.ts === - -// /// -// $.x; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeofThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeofThis.baseline.jsonc deleted file mode 100644 index 727f6f5880..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionTypeofThis.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionTypeofThis.ts === - -// function f([|this|]: number) { -// type X = typeof /*GO TO DEFINITION*/this; -// } -// class C { -// constructor() { type X = typeof this; } -// get self(this: number) { type X = typeof this; } -// } - - - - -// === goToDefinition === -// === /goToDefinitionTypeofThis.ts === - -// function f(this: number) { -// type X = typeof this; -// } -// class [|C|] { -// constructor() { type X = typeof /*GO TO DEFINITION*/this; } -// get self(this: number) { type X = typeof this; } -// } - - - - -// === goToDefinition === -// === /goToDefinitionTypeofThis.ts === - -// function f(this: number) { -// type X = typeof this; -// } -// class C { -// constructor() { type X = typeof this; } -// get self(this: number) { type X = typeof /*GO TO DEFINITION*/[|this|]: number) { type X = typeof this; } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUndefinedSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUndefinedSymbols.baseline.jsonc deleted file mode 100644 index ca9d8f39db..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUndefinedSymbols.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === - -// some/*GO TO DEFINITION*/Variable; -// var a: someType; -// var x = {}; x.someProperty; -// var a: any; a.someProperty; - - - - -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === - -// someVariable; -// var a: some/*GO TO DEFINITION*/Type; -// var x = {}; x.someProperty; -// var a: any; a.someProperty; - - - - -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === - -// someVariable; -// var a: someType; -// var x = {}; x.some/*GO TO DEFINITION*/Property; -// var a: any; a.someProperty; - - - - -// === goToDefinition === -// === /goToDefinitionUndefinedSymbols.ts === - -// someVariable; -// var a: someType; -// var x = {}; x.someProperty; -// var a: any; a.some/*GO TO DEFINITION*/Property; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty1.baseline.jsonc deleted file mode 100644 index 29d630ae11..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty1.baseline.jsonc +++ /dev/null @@ -1,17 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty1.ts === - -// interface One { -// [|commonProperty|]: number; -// commonFunction(): number; -// } -// -// interface Two { -// [|commonProperty|]: string -// commonFunction(): number; -// } -// -// var x : One | Two; -// -// x./*GO TO DEFINITION*/commonProperty; -// x.commonFunction; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty2.baseline.jsonc deleted file mode 100644 index 5e619d1172..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty2.baseline.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty2.ts === - -// interface HasAOrB { -// [|a|]: string; -// b: string; -// } -// -// interface One { -// common: { [|a|] : number; }; -// } -// -// interface Two { -// common: HasAOrB; -// } -// -// var x : One | Two; -// -// x.common./*GO TO DEFINITION*/a; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty3.baseline.jsonc deleted file mode 100644 index 782208d88d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty3.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty3.ts === - -// interface Array { -// [|specialPop|](): T -// } -// -// var strings: string[]; -// var numbers: number[]; -// -// var x = (strings || numbers)./*GO TO DEFINITION*/specialPop() diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty4.baseline.jsonc deleted file mode 100644 index 606d1d677b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty4.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty4.ts === - -// interface SnapCrackle { -// [|pop|](): string; -// } -// -// interface Magnitude { -// [|pop|](): number; -// } -// -// interface Art { -// [|pop|](): boolean; -// } -// -// var art: Art; -// var magnitude: Magnitude; -// var snapcrackle: SnapCrackle; -// -// var x = (snapcrackle || magnitude || art)./*GO TO DEFINITION*/pop; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty_discriminated.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty_discriminated.baseline.jsonc deleted file mode 100644 index 16520ef58b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionUnionTypeProperty_discriminated.baseline.jsonc +++ /dev/null @@ -1,102 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === - -// type U = A | B; -// -// interface A { -// [|kind|]: "a"; -// prop: number; -// }; -// -// interface B { -// kind: "b"; -// prop: string; -// } -// -// const u: U = { -// /*GO TO DEFINITION*/kind: "a", -// prop: 0, -// }; -// const u2: U = { -// // --- (line: 18) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === - -// type U = A | B; -// -// interface A { -// kind: "a"; -// [|prop|]: number; -// }; -// -// interface B { -// kind: "b"; -// prop: string; -// } -// -// const u: U = { -// kind: "a", -// /*GO TO DEFINITION*/prop: 0, -// }; -// const u2: U = { -// kind: "bogus", -// prop: 0, -// }; - - - - -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === - -// type U = A | B; -// -// interface A { -// [|kind|]: "a"; -// prop: number; -// }; -// -// interface B { -// [|kind|]: "b"; -// prop: string; -// } -// -// const u: U = { -// kind: "a", -// prop: 0, -// }; -// const u2: U = { -// /*GO TO DEFINITION*/kind: "bogus", -// prop: 0, -// }; - - - - -// === goToDefinition === -// === /goToDefinitionUnionTypeProperty_discriminated.ts === - -// type U = A | B; -// -// interface A { -// kind: "a"; -// [|prop|]: number; -// }; -// -// interface B { -// kind: "b"; -// [|prop|]: string; -// } -// -// const u: U = { -// kind: "a", -// prop: 0, -// }; -// const u2: U = { -// kind: "bogus", -// /*GO TO DEFINITION*/prop: 0, -// }; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment.baseline.jsonc deleted file mode 100644 index 873fed0335..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /foo.js === - -// const Bar; -// const [|Foo|] = [|Bar|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment1.baseline.jsonc deleted file mode 100644 index 76b6e818f8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /foo.js === - -// const [|Foo|] = module.[|exports|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment2.baseline.jsonc deleted file mode 100644 index 170e6358ac..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment2.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /foo.ts === - -// const Bar; -// const [|Foo|] = [|Bar|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment3.baseline.jsonc deleted file mode 100644 index de3dc88da8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionVariableAssignment3.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /foo.ts === - -// const [|Foo|] = module.[|exports|] = function () {} -// Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield1.baseline.jsonc deleted file mode 100644 index 07180e5168..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield1.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield1.ts === - -// function* [|gen|]() { -// /*GO TO DEFINITION*/yield 0; -// } -// -// const genFunction = function*() { -// yield 0; -// } - - - - -// === goToDefinition === -// === /goToDefinitionYield1.ts === - -// function* gen() { -// yield 0; -// } -// -// const [|genFunction|] = function*() { -// /*GO TO DEFINITION*/yield 0; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield2.baseline.jsonc deleted file mode 100644 index eebbcc45cb..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield2.ts === - -// function* outerGen() { -// function* [|gen|]() { -// /*GO TO DEFINITION*/yield 0; -// } -// return gen -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield3.baseline.jsonc deleted file mode 100644 index 9511a8d4bd..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield3.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield3.ts === - -// class C { -// [|notAGenerator|]() { -// /*GO TO DEFINITION*/yield 0; -// } -// -// foo*() { -// // --- (line: 7) skipped --- - - - - -// === goToDefinition === -// === /goToDefinitionYield3.ts === - -// class C { -// notAGenerator() { -// yield 0; -// } -// -// foo*[||]() { -// /*GO TO DEFINITION*/yield 0; -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield4.baseline.jsonc deleted file mode 100644 index 895b2cff68..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionYield4.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinitionYield4.ts === - -// function* gen() { -// class C { [/*GO TO DEFINITION*/[|[yield 10]|]() {} } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringGenericMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringGenericMappedType.baseline.jsonc deleted file mode 100644 index 35aab26fd3..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringGenericMappedType.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_filteringGenericMappedType.ts === - -// const obj = { -// get [|id|]() { -// return 1; -// }, -// name: "test", -// // --- (line: 6) skipped --- - - -// --- (line: 17) skipped --- -// name: true, -// }); -// -// obj2./*GO TO DEFINITION*/id; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringMappedType.baseline.jsonc deleted file mode 100644 index 477bd810e2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_filteringMappedType.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_filteringMappedType.ts === - -// const obj = { [|a|]: 1, b: 2 }; -// const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { a: 0 }; -// filtered./*GO TO DEFINITION*/a; diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_mappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_mappedType.baseline.jsonc deleted file mode 100644 index 0657c65923..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_mappedType.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_mappedType.ts === - -// interface I { [|m|](): void; }; -// declare const i: { [K in "m"]: I[K] }; -// i./*GO TO DEFINITION*/m(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_super.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_super.baseline.jsonc deleted file mode 100644 index 285f2e5a82..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_super.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === goToDefinition === -// === /goToDefinition_super.ts === - -// class A { -// [|constructor() {}|] -// x() {} -// } -// class [|B|] extends A {} -// class C extends B { -// constructor() { -// /*GO TO DEFINITION*/super(); -// } -// method() { -// super.x(); -// // --- (line: 12) skipped --- - - - - -// === goToDefinition === -// === /goToDefinition_super.ts === - -// class A { -// constructor() {} -// x() {} -// } -// class [|B|] extends A {} -// class C extends B { -// constructor() { -// super(); -// } -// method() { -// /*GO TO DEFINITION*/super.x(); -// } -// } -// class D { -// // --- (line: 15) skipped --- - - - - -// === goToDefinition === -// === /goToDefinition_super.ts === - -// --- (line: 12) skipped --- -// } -// class D { -// constructor() { -// /*GO TO DEFINITION*/super(); -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_untypedModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_untypedModule.baseline.jsonc deleted file mode 100644 index 6ab5f34f4b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinition_untypedModule.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// import { [|f|] } from "foo"; -// /*GO TO DEFINITION*/f(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToModuleAliasDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToModuleAliasDefinition.baseline.jsonc deleted file mode 100644 index f9f31e6589..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GoToModuleAliasDefinition.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === goToDefinition === -// === /b.ts === - -// import [|n|] = require('a'); -// var x = new /*GO TO DEFINITION*/n.Foo(); diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionConstructorFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionConstructorFunction.baseline.jsonc deleted file mode 100644 index b355f41fa4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionConstructorFunction.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionConstructorFunction.js === - -// function [|StringStreamm|]() { -// } -// StringStreamm.prototype = { -// }; -// -// function runMode () { -// new /*GO TO DEFINITION*/StringStreamm() -// }; diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern1.baseline.jsonc deleted file mode 100644 index 7d088998b8..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern1.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern1.ts === - -// --- (line: 3) skipped --- -// interface Test { -// prop2: number -// } -// bar(({pr/*GO TO DEFINITION*/[|prop2|]})=>{}); diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern2.baseline.jsonc deleted file mode 100644 index 7eff2010c1..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionInObjectBindingPattern2.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern2.ts === - -// var p0 = ({a/*GO TO DEFINITION*/[|aa|]}) => {console.log(aa)}; -// function f2({ a1, b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} - - - - -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern2.ts === - -// var p0 = ({aa}) => {console.log(aa)}; -// function f2({ a/*GO TO DEFINITION*/[|a1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} - - - - -// === goToDefinition === -// === /gotoDefinitionInObjectBindingPattern2.ts === - -// var p0 = ({aa}) => {console.log(aa)}; -// function f2({ a1, b/*GO TO DEFINITION*/[|b1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag1.baseline.jsonc deleted file mode 100644 index 3b16d7e996..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag1.baseline.jsonc +++ /dev/null @@ -1,99 +0,0 @@ -// === goToDefinition === -// === /foo.ts === - -// --- (line: 5) skipped --- -// baz: Foo -// } -// } -// /** {@link /*GO TO DEFINITION*/Foo} foooo*/ -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" -// // --- (line: 13) skipped --- - - - - -// === goToDefinition === -// === /foo.ts === - -// --- (line: 7) skipped --- -// } -// /** {@link Foo} foooo*/ -// const a = "" -// /** {@link NS./*GO TO DEFINITION*/Bar} ns.bar*/ -// const b = "" -// /** {@link Foo f1}*/ -// const c = "" -// // --- (line: 15) skipped --- - - - - -// === goToDefinition === -// === /foo.ts === - -// --- (line: 9) skipped --- -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" -// /** {@link /*GO TO DEFINITION*/Foo f1}*/ -// const c = "" -// /** {@link NS.Bar ns.bar}*/ -// const d = "" -// // --- (line: 17) skipped --- - - - - -// === goToDefinition === -// === /foo.ts === - -// --- (line: 11) skipped --- -// const b = "" -// /** {@link Foo f1}*/ -// const c = "" -// /** {@link NS./*GO TO DEFINITION*/Bar ns.bar}*/ -// const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } - - - - -// === goToDefinition === -// === /foo.ts === - -// --- (line: 12) skipped --- -// /** {@link Foo f1}*/ -// const c = "" -// /** {@link NS.Bar ns.bar}*/ -// const [|d|] = "" -// /** {@link /*GO TO DEFINITION*/d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } - - - - -// === goToDefinition === -// === /foo.ts === - -// --- (line: 15) skipped --- -// const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link /*GO TO DEFINITION*/Foo} */ -// function foo(x) { } - - - - -// === goToDefinition === -// === /bar.ts === - -// /** {@link /*GO TO DEFINITION*/Foo }dd*/ -// const f = "" diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag2.baseline.jsonc deleted file mode 100644 index 85a54a4873..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag2.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionLinkTag2.ts === - -// enum E { -// /** {@link /*GO TO DEFINITION*/A} */ -// [|A|] -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag3.baseline.jsonc deleted file mode 100644 index 7da06310b0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag3.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.ts === - -// enum E { -// /** {@link /*GO TO DEFINITION*/Foo} */ -// [|Foo|] -// } -// interface Foo { -// foo: E.Foo; -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag4.baseline.jsonc deleted file mode 100644 index e2544a7456..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag4.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /b.ts === - -// enum E { -// /** {@link /*GO TO DEFINITION*/Foo} */ -// [|Foo|] -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag5.baseline.jsonc deleted file mode 100644 index 92dcc5f1e4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag5.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionLinkTag5.ts === - -// enum E { -// /** {@link /*GO TO DEFINITION*/B} */ -// A, -// [|B|] -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag6.baseline.jsonc deleted file mode 100644 index d8119d134b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionLinkTag6.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionLinkTag6.ts === - -// enum E { -// /** {@link E./*GO TO DEFINITION*/A} */ -// [|A|] -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc deleted file mode 100644 index 62ca3f6e95..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === - -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo())./*GO TO DEFINITION*/B {} -// class C1 extends foo().B {} - - - - -// === goToDefinition === -// === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === - -// class B {} -// function foo() { -// return {[|B|]: B}; -// } -// class C extends (foo()).B {} -// class C1 extends foo()./*GO TO DEFINITION*/B {} diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionSatisfiesTag.baseline.jsonc deleted file mode 100644 index 7f02562f3d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionSatisfiesTag.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /a.js === - -// /** -// * @typedef {Object} [|T|] -// * @property {number} a -// */ -// -// /** @satisfies {/*GO TO DEFINITION*/T} comment */ -// const foo = { a: 1 }; diff --git a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionThrowsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionThrowsTag.baseline.jsonc deleted file mode 100644 index 2c0e4a15c2..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/GotoDefinitionThrowsTag.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /gotoDefinitionThrowsTag.ts === - -// class E extends Error {} -// -// /** -// * @throws {/*GO TO DEFINITION*/E} -// */ -// function f() {} diff --git a/testdata/baselines/reference/fourslash/goToDef/ImportTypeNodeGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/ImportTypeNodeGoToDefinition.baseline.jsonc deleted file mode 100644 index 0f9c93a1f4..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/ImportTypeNodeGoToDefinition.baseline.jsonc +++ /dev/null @@ -1,122 +0,0 @@ -// === goToDefinition === -// === /ns.ts === - -// [|export namespace Foo { -// export namespace Bar { -// export class Baz {} -// } -// }|] - - -// === /usage.ts === - -// type A = typeof import(/*GO TO DEFINITION*/"./ns").Foo.Bar; -// type B = import("./ns").Foo.Bar.Baz; - - - - -// === goToDefinition === -// === /ns.ts === - -// export namespace [|Foo|] { -// export namespace Bar { -// export class Baz {} -// } -// } - - -// === /usage.ts === - -// type A = typeof import("./ns")./*GO TO DEFINITION*/Foo.Bar; -// type B = import("./ns").Foo.Bar.Baz; - - - - -// === goToDefinition === -// === /ns.ts === - -// export namespace Foo { -// export namespace [|Bar|] { -// export class Baz {} -// } -// } - - -// === /usage.ts === - -// type A = typeof import("./ns").Foo./*GO TO DEFINITION*/Bar; -// type B = import("./ns").Foo.Bar.Baz; - - - - -// === goToDefinition === -// === /ns.ts === - -// [|export namespace Foo { -// export namespace Bar { -// export class Baz {} -// } -// }|] - - -// === /usage.ts === - -// type A = typeof import("./ns").Foo.Bar; -// type B = import(/*GO TO DEFINITION*/"./ns").Foo.Bar.Baz; - - - - -// === goToDefinition === -// === /ns.ts === - -// export namespace [|Foo|] { -// export namespace Bar { -// export class Baz {} -// } -// } - - -// === /usage.ts === - -// type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns")./*GO TO DEFINITION*/Foo.Bar.Baz; - - - - -// === goToDefinition === -// === /ns.ts === - -// export namespace Foo { -// export namespace [|Bar|] { -// export class Baz {} -// } -// } - - -// === /usage.ts === - -// type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns").Foo./*GO TO DEFINITION*/Bar.Baz; - - - - -// === goToDefinition === -// === /ns.ts === - -// export namespace Foo { -// export namespace Bar { -// export class [|Baz|] {} -// } -// } - - -// === /usage.ts === - -// type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns").Foo.Bar./*GO TO DEFINITION*/Baz; diff --git a/testdata/baselines/reference/fourslash/goToDef/JavaScriptClass3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/JavaScriptClass3.baseline.jsonc deleted file mode 100644 index a25b5dc7cc..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/JavaScriptClass3.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === goToDefinition === -// === /Foo.js === - -// class Foo { -// constructor() { -// this.[|alpha|] = 10; -// this.beta = 'gamma'; -// } -// method() { return this.alpha; } -// } -// var x = new Foo(); -// x.alpha/*GO TO DEFINITION*/; -// x.beta; - - - - -// === goToDefinition === -// === /Foo.js === - -// class Foo { -// constructor() { -// this.alpha = 10; -// this.[|beta|] = 'gamma'; -// } -// method() { return this.alpha; } -// } -// var x = new Foo(); -// x.alpha; -// x.beta/*GO TO DEFINITION*/; diff --git a/testdata/baselines/reference/fourslash/goToDef/JsDocSee1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/JsDocSee1.baseline.jsonc deleted file mode 100644 index 8f9ba90722..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/JsDocSee1.baseline.jsonc +++ /dev/null @@ -1,73 +0,0 @@ -// === goToDefinition === -// === /jsDocSee1.ts === - -// --- (line: 5) skipped --- -// baz: Foo -// } -// } -// /** @see {/*GO TO DEFINITION*/Foo} foooo*/ -// const a = "" -// /** @see {NS.Bar} ns.bar*/ -// const b = "" -// // --- (line: 13) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee1.ts === - -// --- (line: 7) skipped --- -// } -// /** @see {Foo} foooo*/ -// const a = "" -// /** @see {NS./*GO TO DEFINITION*/Bar} ns.bar*/ -// const b = "" -// /** @see Foo f1*/ -// const c = "" -// // --- (line: 15) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee1.ts === - -// --- (line: 9) skipped --- -// const a = "" -// /** @see {NS.Bar} ns.bar*/ -// const b = "" -// /** @see /*GO TO DEFINITION*/Foo f1*/ -// const c = "" -// /** @see NS.Bar ns.bar*/ -// const d = "" -// /** @see d dd*/ -// const e = "" - - - - -// === goToDefinition === -// === /jsDocSee1.ts === - -// --- (line: 11) skipped --- -// const b = "" -// /** @see Foo f1*/ -// const c = "" -// /** @see NS./*GO TO DEFINITION*/Bar ns.bar*/ -// const d = "" -// /** @see d dd*/ -// const e = "" - - - - -// === goToDefinition === -// === /jsDocSee1.ts === - -// --- (line: 13) skipped --- -// const c = "" -// /** @see NS.Bar ns.bar*/ -// const d = "" -// /** @see /*GO TO DEFINITION*/d dd*/ -// const e = "" diff --git a/testdata/baselines/reference/fourslash/goToDef/JsDocSee2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/JsDocSee2.baseline.jsonc deleted file mode 100644 index 43e83241e0..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/JsDocSee2.baseline.jsonc +++ /dev/null @@ -1,99 +0,0 @@ -// === goToDefinition === -// === /jsDocSee2.ts === - -// /** @see {/*GO TO DEFINITION*/foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ -// const b = "" -// // --- (line: 5) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee2.ts === - -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {/*GO TO DEFINITION*/@bar} invalid tag*/ -// const b = "" -// /** @see foooo unknown reference without brace*/ -// const c = "" -// // --- (line: 7) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee2.ts === - -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ -// const b = "" -// /** @see /*GO TO DEFINITION*/foooo unknown reference without brace*/ -// const c = "" -// /** @see @bar invalid tag without brace*/ -// const d = "" -// // --- (line: 9) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee2.ts === - -// --- (line: 3) skipped --- -// const b = "" -// /** @see foooo unknown reference without brace*/ -// const c = "" -// /** @see /*GO TO DEFINITION*/@bar invalid tag without brace*/ -// const d = "" -// /** @see {d@fff} partial reference */ -// const e = "" -// // --- (line: 11) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee2.ts === - -// --- (line: 5) skipped --- -// const c = "" -// /** @see @bar invalid tag without brace*/ -// const d = "" -// /** @see {/*GO TO DEFINITION*/d@fff} partial reference */ -// const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" - - - - -// === goToDefinition === -// === /jsDocSee2.ts === - -// --- (line: 7) skipped --- -// const d = "" -// /** @see {d@fff} partial reference */ -// const e = "" -// /** @see /*GO TO DEFINITION*/@@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" - - - - -// === goToDefinition === -// === /jsDocSee2.ts === - -// --- (line: 9) skipped --- -// const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{/*GO TO DEFINITION*/fff} partial reference */ -// const g = "" diff --git a/testdata/baselines/reference/fourslash/goToDef/JsDocSee3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/JsDocSee3.baseline.jsonc deleted file mode 100644 index dc628f79be..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/JsDocSee3.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === goToDefinition === -// === /jsDocSee3.ts === - -// function foo (a: string) { -// /** -// * @see {/*GO TO DEFINITION*/a} -// */ -// function bar (a: string) { -// } -// } diff --git a/testdata/baselines/reference/fourslash/goToDef/JsDocSee4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/JsDocSee4.baseline.jsonc deleted file mode 100644 index 72a547ee1b..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/JsDocSee4.baseline.jsonc +++ /dev/null @@ -1,52 +0,0 @@ -// === goToDefinition === -// === /jsDocSee4.ts === - -// class A { -// foo () { } -// } -// declare const a: A; -// /** -// * @see {/*GO TO DEFINITION*/A#foo} -// */ -// const t1 = 1 -// /** -// // --- (line: 10) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee4.ts === - -// --- (line: 6) skipped --- -// */ -// const t1 = 1 -// /** -// * @see {/*GO TO DEFINITION*/a.foo()} -// */ -// const t2 = 1 -// /** -// // --- (line: 14) skipped --- - - - - -// === goToDefinition === -// === /jsDocSee4.ts === - -// class A { -// foo () { } -// } -// declare const [|a|]: A; -// /** -// * @see {A#foo} -// */ -// const t1 = 1 -// /** -// * @see {a.foo()} -// */ -// const t2 = 1 -// /** -// * @see {@link /*GO TO DEFINITION*/a.foo()} -// */ -// const t3 = 1 diff --git a/testdata/baselines/reference/fourslash/goToDef/JsdocTypedefTagGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/JsdocTypedefTagGoToDefinition.baseline.jsonc deleted file mode 100644 index 3697dc9d8e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/JsdocTypedefTagGoToDefinition.baseline.jsonc +++ /dev/null @@ -1,37 +0,0 @@ -// === goToDefinition === -// === /jsdocCompletion_typedef.js === - -// /** -// * @typedef {Object} Person -// * @property {string} [|personName|] -// * @property {number} personAge -// */ -// -// /** -// * @typedef {{ animalName: string, animalAge: number }} Animal -// */ -// -// /** @type {Person} */ -// var person; person.personName/*GO TO DEFINITION*/ -// -// /** @type {Animal} */ -// var animal; animal.animalName - - - - -// === goToDefinition === -// === /jsdocCompletion_typedef.js === - -// --- (line: 4) skipped --- -// */ -// -// /** -// * @typedef {{ [|animalName|]: string, animalAge: number }} Animal -// */ -// -// /** @type {Person} */ -// var person; person.personName -// -// /** @type {Animal} */ -// var animal; animal.animalName/*GO TO DEFINITION*/ diff --git a/testdata/baselines/reference/fourslash/goToDef/ReallyLargeFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/ReallyLargeFile.baseline.jsonc deleted file mode 100644 index 13ba87bdbc..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/ReallyLargeFile.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === goToDefinition === -// === /file.d.ts === - -// namespace /*GO TO DEFINITION*/[|Foo|] { -// -// -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionClasses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionClasses.baseline.jsonc deleted file mode 100644 index eb2a326717..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionClasses.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === goToDefinition === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { } -// interface ElementAttributesProperty { props; } -// } -// class [|MyClass|] { -// props: { -// foo: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 4) skipped --- -// } -// class MyClass { -// props: { -// [|foo|]: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { } -// interface ElementAttributesProperty { props; } -// } -// class [|MyClass|] { -// props: { -// foo: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; diff --git a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionIntrinsics.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionIntrinsics.baseline.jsonc deleted file mode 100644 index 4d2fb8c68d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionIntrinsics.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === goToDefinition === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; -// var y = ; -// var z =
; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 4) skipped --- -// name?: string; -// isOpen?: boolean; -// }; -// [|span|]: { n: string; }; -// } -// } -// var x =
; -// var y = ; -// var z =
; - - - - -// === goToDefinition === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// [|name|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x =
; -// var y = ; -// var z =
; diff --git a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction1.baseline.jsonc deleted file mode 100644 index 9e4d44a42d..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction1.baseline.jsonc +++ /dev/null @@ -1,98 +0,0 @@ -// === goToDefinition === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// [|propx|]: number -// propString: "hell" -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 6) skipped --- -// interface OptionPropBag { -// propx: number -// propString: "hell" -// [|optional|]?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; diff --git a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction2.baseline.jsonc deleted file mode 100644 index e32802af73..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionStatelessFunction2.baseline.jsonc +++ /dev/null @@ -1,115 +0,0 @@ -// === goToDefinition === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt =
; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt =
; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt =
{}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt =
{}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 14) skipped --- -// goTo: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt =
; -// let opt = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt =
; diff --git a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType1.baseline.jsonc deleted file mode 100644 index 365fd3d34e..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType1.baseline.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -// === goToDefinition === -// === /file.tsx === - -// --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props; } -// } -// function [|SFC1|](prop: { x: number }) { -// return
hello
; -// }; -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var [|SFCComp|] = SFC1 || SFC2; -// diff --git a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType2.baseline.jsonc deleted file mode 100644 index e0dde11950..0000000000 --- a/testdata/baselines/reference/fourslash/goToDef/TsxGoToDefinitionUnionElementType2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === goToDefinition === -// === /file.tsx === - -// --- (line: 8) skipped --- -// } -// private method() { } -// } -// var [|RCComp|] = RC1 || RC2; -// diff --git a/testdata/baselines/reference/fourslash/declarationMapGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/declarationMapGoToDefinition.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/declarationMapsOutOfDateMapping.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/declarationMapsOutOfDateMapping.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/definition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/definition.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/definition01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/definition01.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/definitionNameOnEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/definitionNameOnEnumMember.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDef/FindAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDef/FindAllRefsForDefaultExport.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionAcrossMultipleProjects.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionAlias.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAmbiants.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionAmbiants.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionApparentTypeProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionApparentTypeProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionAwait1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionAwait2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionAwait3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionAwait4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionAwait4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionBuiltInTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionBuiltInTypes.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionBuiltInValues.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionBuiltInValues.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionCSSPatternAmbientModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionCSSPatternAmbientModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionClassConstructors.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionClassConstructors.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionClassStaticBlocks.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassExpression01.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionConstructorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionConstructorOverloads.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDecorator.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDecorator.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDecoratorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDecoratorOverloads.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDestructuredRequire2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDifferentFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDifferentFile.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDifferentFileIndirectly.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDifferentFileIndirectly.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDynamicImport1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDynamicImport2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDynamicImport3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionDynamicImport4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionDynamicImport4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExpandoClass1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExpandoClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExpandoClass2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExpandoElementAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExpandoElementAccess.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName5.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName6.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName7.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName8.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionExternalModuleName9.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloads.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloadsInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionFunctionOverloadsInClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionFunctionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionFunctionType.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImplicitConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImplicitConstructor.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImport1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImport2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImport3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames10.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames11.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames5.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames6.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames7.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames8.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImportedNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImportedNames9.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionImports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionImports.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInMemberDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionInMemberDeclaration.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInTypeArgument.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionInTypeArgument.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionIndexSignature.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionIndexSignature2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionIndexSignature2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInstanceof1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionInstanceof1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInstanceof2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionInstanceof2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionInterfaceAfterImplement.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionInterfaceAfterImplement.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsDocImportTag5.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsModuleExports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsModuleExports.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsModuleName.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsModuleNameAtImportName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsModuleNameAtImportName.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsxCall.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsxCall.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionJsxNotSet.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionJsxNotSet.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionLabels.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionLabels.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionMember.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMetaProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionMetaProperty.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMethodOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionMethodOverloads.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionModifiers.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionMultipleDefinitions.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionMultipleDefinitions.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionObjectLiteralProperties1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionObjectSpread.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember10.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember11.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember12.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember12.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember13.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember13.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember14.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember14.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember15.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember15.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember16.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember16.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember5.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember6.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember7.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember8.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionOverriddenMember9.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPartialImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionPartialImplementation.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionPrimitives.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPrivateName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionPrivateName.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionPropertyAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionRest.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionRest.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionReturn1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionReturn2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionReturn3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionReturn4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionReturn5.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionReturn6.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionReturn7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionReturn7.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSameFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSameFile.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSatisfiesExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSatisfiesExpression1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionScriptImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionScriptImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionScriptImportServer.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionScriptImportServer.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShadowVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShadowVariable.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShadowVariableInsideModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShadowVariableInsideModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty01.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty02.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty03.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty04.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty04.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty05.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionShorthandProperty06.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSignatureAlias_require.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSignatureAlias_require.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSimple.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSimple.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSourceUnit.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSourceUnit.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSwitchCase1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSwitchCase2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSwitchCase3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSwitchCase4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSwitchCase5.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSwitchCase6.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionSwitchCase7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionSwitchCase7.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTaggedTemplateOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionTaggedTemplateOverloads.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionThis.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypeOnlyImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionTypeOnlyImport.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypePredicate.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionTypePredicate.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypeReferenceDirective.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionTypeReferenceDirective.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionTypeofThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionTypeofThis.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUndefinedSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionUndefinedSymbols.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionVariableAssignment3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionYield1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionYield2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionYield3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinitionYield4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinitionYield4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinition_filteringGenericMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinition_filteringGenericMappedType.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinition_filteringMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinition_filteringMappedType.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinition_mappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinition_mappedType.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinition_super.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinition_super.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDefinition_untypedModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDefinition_untypedModule.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToModuleAliasDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToModuleAliasDefinition.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionConstructorFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionConstructorFunction.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionInObjectBindingPattern2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionLinkTag1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionLinkTag2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionLinkTag3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionLinkTag4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionLinkTag5.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionLinkTag6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionLinkTag6.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionSatisfiesTag.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/gotoDefinitionThrowsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/gotoDefinitionThrowsTag.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/importTypeNodeGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/importTypeNodeGoToDefinition.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/javaScriptClass3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/javaScriptClass3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsDocSee1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocSee1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsDocSee2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocSee2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsDocSee3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocSee3.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsDocSee4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocSee4.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/jsdocTypedefTagGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocTypedefTagGoToDefinition.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/goToDef/JsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/goToDef/JsxSpreadReference.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/reallyLargeFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/reallyLargeFile.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionClasses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxGoToDefinitionClasses.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionIntrinsics.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxGoToDefinitionIntrinsics.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxGoToDefinitionStatelessFunction2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType1.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc similarity index 100% rename from testdata/baselines/reference/fourslash/tsxGoToDefinitionUnionElementType2.baseline.jsonc rename to testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc diff --git a/testdata/baselines/reference/fourslash/hover/CompletionDetailsOfContextSensitiveParameterNoCrash.baseline b/testdata/baselines/reference/fourslash/hover/CompletionDetailsOfContextSensitiveParameterNoCrash.baseline deleted file mode 100644 index 2ffe5f140f..0000000000 --- a/testdata/baselines/reference/fourslash/hover/CompletionDetailsOfContextSensitiveParameterNoCrash.baseline +++ /dev/null @@ -1,114 +0,0 @@ -// === QuickInfo === -=== /completionDetailsOfContextSensitiveParameterNoCrash.ts === -// type __ = never; -// -// interface CurriedFunction1 { -// (): CurriedFunction1; -// (t1: T1): R; -// } -// interface CurriedFunction2 { -// (): CurriedFunction2; -// (t1: T1): CurriedFunction1; -// (t1: __, t2: T2): CurriedFunction1; -// (t1: T1, t2: T2): R; -// } -// -// interface CurriedFunction3 { -// (): CurriedFunction3; -// (t1: T1): CurriedFunction2; -// (t1: __, t2: T2): CurriedFunction2; -// (t1: T1, t2: T2): CurriedFunction1; -// (t1: __, t2: __, t3: T3): CurriedFunction2; -// (t1: T1, t2: __, t3: T3): CurriedFunction1; -// (t1: __, t2: T2, t3: T3): CurriedFunction1; -// (t1: T1, t2: T2, t3: T3): R; -// } -// -// interface CurriedFunction4 { -// (): CurriedFunction4; -// (t1: T1): CurriedFunction3; -// (t1: __, t2: T2): CurriedFunction3; -// (t1: T1, t2: T2): CurriedFunction2; -// (t1: __, t2: __, t3: T3): CurriedFunction3; -// (t1: __, t2: __, t3: T3): CurriedFunction2; -// (t1: __, t2: T2, t3: T3): CurriedFunction2; -// (t1: T1, t2: T2, t3: T3): CurriedFunction1; -// (t1: __, t2: __, t3: __, t4: T4): CurriedFunction3; -// (t1: T1, t2: __, t3: __, t4: T4): CurriedFunction2; -// (t1: __, t2: T2, t3: __, t4: T4): CurriedFunction2; -// (t1: __, t2: __, t3: T3, t4: T4): CurriedFunction2; -// (t1: T1, t2: T2, t3: __, t4: T4): CurriedFunction1; -// (t1: T1, t2: __, t3: T3, t4: T4): CurriedFunction1; -// (t1: __, t2: T2, t3: T3, t4: T4): CurriedFunction1; -// (t1: T1, t2: T2, t3: T3, t4: T4): R; -// } -// -// declare var curry: { -// (func: (t1: T1) => R, arity?: number): CurriedFunction1; -// (func: (t1: T1, t2: T2) => R, arity?: number): CurriedFunction2; -// (func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): CurriedFunction3; -// (func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): CurriedFunction4; -// (func: (...args: any[]) => any, arity?: number): (...args: any[]) => any; -// placeholder: __; -// }; -// -// export type StylingFunction = ( -// keys: (string | false | undefined) | (string | false | undefined)[], -// ...rest: unknown[] -// ) => object; -// -// declare const getStylingByKeys: ( -// mergedStyling: object, -// keys: (string | false | undefined) | (string | false | undefined)[], -// ...args: unknown[] -// ) => object; -// -// declare var mergedStyling: object; -// -// export const createStyling: CurriedFunction3< -// (base16Theme: object) => unknown, -// object | undefined, -// object | undefined, -// StylingFunction -// > = curry< -// (base16Theme: object) => unknown, -// object | undefined, -// object | undefined, -// StylingFunction -// >( -// ( -// getStylingFromBase16: (base16Theme: object) => unknown, -// options: object = {}, -// themeOrStyling: object = {}, -// ...args -// ): StylingFunction => { -// return curry(getStylingByKeys, 2)(mergedStyling, ...args); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) args: [] -// | ``` -// | -// | ---------------------------------------------------------------------- -// }, -// 3 -// ); -[ - { - "marker": { - "Position": 3101, - "LSPosition": { - "line": 82, - "character": 60 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) args: []\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/hover/DeprecatedInheritedJSDocOverload.baseline b/testdata/baselines/reference/fourslash/hover/DeprecatedInheritedJSDocOverload.baseline deleted file mode 100644 index 12afda7f60..0000000000 --- a/testdata/baselines/reference/fourslash/hover/DeprecatedInheritedJSDocOverload.baseline +++ /dev/null @@ -1,53 +0,0 @@ -// === QuickInfo === -=== /deprecatedInheritedJSDocOverload.ts === -// interface PartialObserver {} -// interface Subscription {} -// interface Unsubscribable {} -// -// export interface Subscribable { -// subscribe(observer?: PartialObserver): Unsubscribable; -// /** @deprecated Base deprecation 1 */ -// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Unsubscribable; -// /** @deprecated Base deprecation 2 */ -// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Unsubscribable; -// /** @deprecated Base deprecation 3 */ -// subscribe(next: (value: T) => void, error: null | undefined, complete: () => void): Unsubscribable; -// subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Unsubscribable; -// } -// interface ThingWithDeprecations extends Subscribable { -// subscribe(observer?: PartialObserver): Subscription; -// /** @deprecated 'real' deprecation */ -// subscribe(next: null | undefined, error: null | undefined, complete: () => void): Subscription; -// /** @deprecated 'real' deprecation */ -// subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Subscription; -// } -// declare const a: ThingWithDeprecations -// a.subscribe(() => { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription -// | ``` -// | -// | ---------------------------------------------------------------------- -// console.log('something happened'); -// }); -[ - { - "marker": { - "Position": 1183, - "LSPosition": { - "line": 22, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) ThingWithDeprecations.subscribe(observer?: PartialObserver): Subscription\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc deleted file mode 100644 index 9ab690fbec..0000000000 --- a/testdata/baselines/reference/fourslash/jsDocAliasQuickInfo.baseline.jsonc +++ /dev/null @@ -1,61 +0,0 @@ -// === QuickInfo === -=== /jsDocAliasQuickInfo.ts === -// /** -// * Comment -// * @type {number} -// */ -// export default 10; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -=== /test.ts === -// export { default as test } from "./jsDocAliasQuickInfo"; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- - - -[ - { - "marker": { - "Position": 44, - "LSPosition": { - "line": 4, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 20, - "LSPosition": { - "line": 0, - "character": 20 - }, - "Name": "3", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc deleted file mode 100644 index e0e801f01b..0000000000 --- a/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo1.baseline.jsonc +++ /dev/null @@ -1,342 +0,0 @@ -// === QuickInfo === -=== /jsDocTypeTag1.js === -// /** @type {String} */ -// var S; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var S: String -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Number} */ -// var N; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var N: Number -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Boolean} */ -// var B; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var B: Boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Void} */ -// var V; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var V: Void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Undefined} */ -// var U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var U: Undefined -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Null} */ -// var Nl; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var Nl: Null -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Array} */ -// var A; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var A: any[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Promise} */ -// var P; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var P: Promise -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Object} */ -// var Obj; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var Obj: Object -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {Function} */ -// var Func; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var Func: Function -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {*} */ -// var AnyType; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var AnyType: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {?} */ -// var QType; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var QType: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {String|Number} */ -// var SOrN; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var SOrN: Number | String -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar S: String\n```\n" - } - } - }, - { - "marker": { - "Position": 55, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar N: Number\n```\n" - } - } - }, - { - "marker": { - "Position": 85, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar B: Boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 112, - "LSPosition": { - "line": 7, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar V: Void\n```\n" - } - } - }, - { - "marker": { - "Position": 144, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar U: Undefined\n```\n" - } - } - }, - { - "marker": { - "Position": 171, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar Nl: Null\n```\n" - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar A: any[]\n```\n" - } - } - }, - { - "marker": { - "Position": 230, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar P: Promise\n```\n" - } - } - }, - { - "marker": { - "Position": 259, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar Obj: Object\n```\n" - } - } - }, - { - "marker": { - "Position": 292, - "LSPosition": { - "line": 19, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar Func: Function\n```\n" - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 21, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar AnyType: any\n```\n" - } - } - }, - { - "marker": { - "Position": 349, - "LSPosition": { - "line": 23, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar QType: any\n```\n" - } - } - }, - { - "marker": { - "Position": 389, - "LSPosition": { - "line": 25, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar SOrN: Number | String\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc deleted file mode 100644 index 51d7853a5b..0000000000 --- a/testdata/baselines/reference/fourslash/jsDocTypeTagQuickInfo2.baseline.jsonc +++ /dev/null @@ -1,316 +0,0 @@ -// === QuickInfo === -=== /jsDocTypeTag2.js === -// /** @type {string} */ -// var s; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var s: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {number} */ -// var n; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var n: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {boolean} */ -// var b; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {void} */ -// var v; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var v: void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {undefined} */ -// var u; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var u: undefined -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {null} */ -// var nl; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var nl: null -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {array} */ -// var a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: array -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {promise} */ -// var p; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var p: promise -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {?number} */ -// var nullable; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var nullable: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {function} */ -// var func; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var func: function -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {function (number): number} */ -// var func1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var func1: function -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** @type {string | number} */ -// var sOrn; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var sOrn: string | number -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar s: string\n```\n" - } - } - }, - { - "marker": { - "Position": 55, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar n: number\n```\n" - } - } - }, - { - "marker": { - "Position": 85, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 112, - "LSPosition": { - "line": 7, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar v: void\n```\n" - } - } - }, - { - "marker": { - "Position": 144, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar u: undefined\n```\n" - } - } - }, - { - "marker": { - "Position": 171, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar nl: null\n```\n" - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: array\n```\n" - } - } - }, - { - "marker": { - "Position": 230, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar p: promise\n```\n" - } - } - }, - { - "marker": { - "Position": 260, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar nullable: number\n```\n" - } - } - }, - { - "marker": { - "Position": 298, - "LSPosition": { - "line": 19, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar func: function\n```\n" - } - } - }, - { - "marker": { - "Position": 349, - "LSPosition": { - "line": 21, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar func1: function\n```\n" - } - } - }, - { - "marker": { - "Position": 391, - "LSPosition": { - "line": 23, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar sOrn: string | number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc deleted file mode 100644 index 17be79caa3..0000000000 --- a/testdata/baselines/reference/fourslash/jsDocTypedefQuickInfo1.baseline.jsonc +++ /dev/null @@ -1,78 +0,0 @@ -// === QuickInfo === -=== /jsDocTypedef1.js === -// /** -// * @typedef {Object} Opts -// * @property {string} x -// * @property {string=} y -// * @property {string} [z] -// * @property {string} [w="hi"] -// * -// * @param {Opts} opts -// */ -// function foo(opts) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) opts: Opts -// | ``` -// | -// | ---------------------------------------------------------------------- -// opts.x; -// } -// foo({x: 'abc'}); -// /** -// * @typedef {object} Opts1 -// * @property {string} x -// * @property {string=} y -// * @property {string} [z] -// * @property {string} [w="hi"] -// * -// * @param {Opts1} opts -// */ -// function foo1(opts1) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) opts1: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// opts1.x; -// } -// foo1({x: 'abc'}); -[ - { - "marker": { - "Position": 179, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) opts: Opts\n```\n" - } - } - }, - { - "marker": { - "Position": 400, - "LSPosition": { - "line": 22, - "character": 14 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) opts1: any\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc deleted file mode 100644 index 8c1c73c68e..0000000000 --- a/testdata/baselines/reference/fourslash/jsdocLink1.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === QuickInfo === -=== /jsdocLink1.ts === -// 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() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function CC(): void -// | ``` -// | `C` -// | -// | *@wat* — Makes a `C`. A default one. -// | C() -// | C|postfix text -// | unformattedpostfix text -// | -// | *@see* — `C` its great -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 189, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction CC(): void\n```\n`C`\n\n*@wat* — Makes a `C`. A default one.\nC()\nC|postfix text\nunformattedpostfix text\n\n*@see* — `C` its great\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc deleted file mode 100644 index 34f8283b55..0000000000 --- a/testdata/baselines/reference/fourslash/jsdocLink4.baseline.jsonc +++ /dev/null @@ -1,92 +0,0 @@ -// === QuickInfo === -=== /jsdocLink4.ts === -// declare class I { -// /** {@link I} */ -// bar(): void -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.bar(): void -// | ``` -// | `I` -// | ---------------------------------------------------------------------- -// } -// /** {@link I} */ -// var n = 1 -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var n: number -// | ``` -// | `I` -// | ---------------------------------------------------------------------- -// /** -// * A real, very serious {@link I to an interface}. Right there. -// * @param x one {@link Pos here too} -// */ -// function f(x) { -// } -// f() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | A real, very serious Ito an interface. Right there. -// | -// | *@param* `x` — one Poshere too -// | ---------------------------------------------------------------------- -// type Pos = [number, number] -[ - { - "marker": { - "Position": 42, - "LSPosition": { - "line": 2, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.bar(): void\n```\n`I`" - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 5, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar n: number\n```\n`I`" - } - } - }, - { - "marker": { - "Position": 208, - "LSPosition": { - "line": 12, - "character": 1 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\nA real, very serious Ito an interface. Right there.\n\n*@param* `x` — one Poshere too" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc deleted file mode 100644 index 462571cb64..0000000000 --- a/testdata/baselines/reference/fourslash/jsdocLink5.baseline.jsonc +++ /dev/null @@ -1,37 +0,0 @@ -// === QuickInfo === -=== /jsdocLink5.ts === -// function g() { } -// /** -// * {@link g()} {@link g() } {@link g ()} {@link g () 0} {@link g()1} {@link g() 2} -// * {@link u()} {@link u() } {@link u ()} {@link u () 0} {@link u()1} {@link u() 2} -// */ -// function f(x) { -// } -// f() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | g() g() g() g() 0 g()1 g() 2 -// | u() u() u() u() 0 u()1 u() 2 -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 210, - "LSPosition": { - "line": 7, - "character": 1 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\ng() g() g() g() 0 g()1 g() 2\nu() u() u() u() 0 u()1 u() 2" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc deleted file mode 100644 index 8add321440..0000000000 --- a/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers1.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @template T */ -// class A { -// /** Method documentation. */ -// method() {} -// } -// -// /** @extends {A} */ -// class B extends A { -// method() {} -// } -// -// const b = new B(); -// b.method; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.method(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 175, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.method(): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc b/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc deleted file mode 100644 index 11aa33e878..0000000000 --- a/testdata/baselines/reference/fourslash/jsdocOnInheritedMembers2.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @template T */ -// class A { -// /** Method documentation. */ -// method() {} -// } -// -// /** @extends {A} */ -// const B = class extends A { -// method() {} -// } -// -// const b = new B(); -// b.method; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.method(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 183, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.method(): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc deleted file mode 100644 index 7b95e1f3ef..0000000000 --- a/testdata/baselines/reference/fourslash/jsxSpreadReference.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// } -// -// var /*RENAME*/[|nnRENAME|]: {name?: string; size?: number}; -// var x = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// } -// -// var [|nnRENAME|]: {name?: string; size?: number}; -// var x = ; - - - - -// === goToDefinition === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// } -// -// var [|nn|]: {name?: string; size?: number}; -// var x = ; diff --git a/testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc deleted file mode 100644 index 26c14f109e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoAtPropWithAmbientDeclarationInJs.baseline.jsonc +++ /dev/null @@ -1,29 +0,0 @@ -// === QuickInfo === -=== /a.js === -// class C { -// constructor() { -// this.prop = ""; -// } -// declare prop: string; -// method() { -// this.prop.foo -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 6, - "character": 21 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc deleted file mode 100644 index 1b6a7aed86..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoCircularInstantiationExpression.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === QuickInfo === -=== /quickInfoCircularInstantiationExpression.ts === -// declare function foo(t: T): typeof foo; -// foo(""); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(t: string): (t: string) => ... -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 46, - "LSPosition": { - "line": 1, - "character": 0 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(t: string): (t: string) => ...\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc deleted file mode 100644 index afd26eff9c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoCommentsClass.baseline.jsonc +++ /dev/null @@ -1,685 +0,0 @@ -// === QuickInfo === -=== /quickInfoCommentsClass.ts === -// /** This is class c2 without constructor*/ -// class c2 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c2 -// | ``` -// | This is class c2 without constructor -// | ---------------------------------------------------------------------- -// } -// var i2 = new c2(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i2: c2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c2 -// | ``` -// | This is class c2 without constructor -// | ---------------------------------------------------------------------- -// var i2_c = c2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i2_c: typeof c2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c2 -// | ``` -// | This is class c2 without constructor -// | ---------------------------------------------------------------------- -// class c3 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c3 -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** Constructor comment*/ -// constructor() { -// } -// } -// var i3 = new c3(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i3: c3 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c3(): c3 -// | ``` -// | Constructor comment -// | ---------------------------------------------------------------------- -// var i3_c = c3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i3_c: typeof c3 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c3 -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** Class comment*/ -// class c4 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c4 -// | ``` -// | Class comment -// | ---------------------------------------------------------------------- -// /** Constructor comment*/ -// constructor() { -// } -// } -// var i4 = new c4(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i4: c4 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c4(): c4 -// | ``` -// | Constructor comment -// | ---------------------------------------------------------------------- -// var i4_c = c4; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i4_c: typeof c4 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c4 -// | ``` -// | Class comment -// | ---------------------------------------------------------------------- -// /** Class with statics*/ -// class c5 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c5 -// | ``` -// | Class with statics -// | ---------------------------------------------------------------------- -// static s1: number; -// } -// var i5 = new c5(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i5: c5 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c5 -// | ``` -// | Class with statics -// | ---------------------------------------------------------------------- -// var i5_c = c5; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i5_c: typeof c5 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c5 -// | ``` -// | Class with statics -// | ---------------------------------------------------------------------- -// /** class with statics and constructor*/ -// class c6 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c6 -// | ``` -// | class with statics and constructor -// | ---------------------------------------------------------------------- -// /** s1 comment*/ -// static s1: number; -// /** constructor comment*/ -// constructor() { -// } -// } -// var i6 = new c6(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i6: c6 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c6(): c6 -// | ``` -// | constructor comment -// | ---------------------------------------------------------------------- -// var i6_c = c6; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i6_c: typeof c6 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c6 -// | ``` -// | class with statics and constructor -// | ---------------------------------------------------------------------- -// -// class a { -// /** -// constructor for a -// @param a this is my a -// */ -// constructor(a: string) { -// } -// } -// new a("Hello"); -// module m { -// export module m2 { -// /** class comment */ -// export class c1 { -// /** constructor comment*/ -// constructor() { -// } -// } -// } -// } -// var myVar = new m.m2.c1(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor m.m2.c1(): m.m2.c1 -// | ``` -// | constructor comment -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 50, - "LSPosition": { - "line": 1, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c2\n```\nThis is class c2 without constructor" - } - } - }, - { - "marker": { - "Position": 61, - "LSPosition": { - "line": 3, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i2: c2\n```\n" - } - } - }, - { - "marker": { - "Position": 70, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c2\n```\nThis is class c2 without constructor" - } - } - }, - { - "marker": { - "Position": 81, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i2_c: typeof c2\n```\n" - } - } - }, - { - "marker": { - "Position": 87, - "LSPosition": { - "line": 4, - "character": 12 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c2\n```\nThis is class c2 without constructor" - } - } - }, - { - "marker": { - "Position": 97, - "LSPosition": { - "line": 5, - "character": 7 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c3\n```\n" - } - } - }, - { - "marker": { - "Position": 164, - "LSPosition": { - "line": 10, - "character": 5 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i3: c3\n```\n" - } - } - }, - { - "marker": { - "Position": 173, - "LSPosition": { - "line": 10, - "character": 14 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c3(): c3\n```\nConstructor comment" - } - } - }, - { - "marker": { - "Position": 184, - "LSPosition": { - "line": 11, - "character": 6 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i3_c: typeof c3\n```\n" - } - } - }, - { - "marker": { - "Position": 190, - "LSPosition": { - "line": 11, - "character": 12 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c3\n```\n" - } - } - }, - { - "marker": { - "Position": 220, - "LSPosition": { - "line": 13, - "character": 7 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c4\n```\nClass comment" - } - } - }, - { - "marker": { - "Position": 287, - "LSPosition": { - "line": 18, - "character": 5 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i4: c4\n```\n" - } - } - }, - { - "marker": { - "Position": 296, - "LSPosition": { - "line": 18, - "character": 14 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c4(): c4\n```\nConstructor comment" - } - } - }, - { - "marker": { - "Position": 307, - "LSPosition": { - "line": 19, - "character": 6 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i4_c: typeof c4\n```\n" - } - } - }, - { - "marker": { - "Position": 313, - "LSPosition": { - "line": 19, - "character": 12 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c4\n```\nClass comment" - } - } - }, - { - "marker": { - "Position": 348, - "LSPosition": { - "line": 21, - "character": 7 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c5\n```\nClass with statics" - } - } - }, - { - "marker": { - "Position": 382, - "LSPosition": { - "line": 24, - "character": 5 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i5: c5\n```\n" - } - } - }, - { - "marker": { - "Position": 391, - "LSPosition": { - "line": 24, - "character": 14 - }, - "Name": "31", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c5\n```\nClass with statics" - } - } - }, - { - "marker": { - "Position": 403, - "LSPosition": { - "line": 25, - "character": 7 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i5_c: typeof c5\n```\n" - } - } - }, - { - "marker": { - "Position": 408, - "LSPosition": { - "line": 25, - "character": 12 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c5\n```\nClass with statics" - } - } - }, - { - "marker": { - "Position": 459, - "LSPosition": { - "line": 27, - "character": 7 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c6\n```\nclass with statics and constructor" - } - } - }, - { - "marker": { - "Position": 570, - "LSPosition": { - "line": 34, - "character": 5 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i6: c6\n```\n" - } - } - }, - { - "marker": { - "Position": 579, - "LSPosition": { - "line": 34, - "character": 14 - }, - "Name": "32", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c6(): c6\n```\nconstructor comment" - } - } - }, - { - "marker": { - "Position": 590, - "LSPosition": { - "line": 35, - "character": 6 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i6_c: typeof c6\n```\n" - } - } - }, - { - "marker": { - "Position": 596, - "LSPosition": { - "line": 35, - "character": 12 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c6\n```\nclass with statics and constructor" - } - } - }, - { - "marker": { - "Position": 935, - "LSPosition": { - "line": 56, - "character": 22 - }, - "Name": "33", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor m.m2.c1(): m.m2.c1\n```\nconstructor comment" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc deleted file mode 100644 index 48ba953a02..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoCommentsClassMembers.baseline.jsonc +++ /dev/null @@ -1,2346 +0,0 @@ -// === QuickInfo === -=== /quickInfoCommentsClassMembers.ts === -// /** This is comment for c1*/ -// class c1 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c1 -// | ``` -// | This is comment for c1 -// | ---------------------------------------------------------------------- -// /** p1 is property of c1*/ -// public p1: number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.p1: number -// | ``` -// | p1 is property of c1 -// | ---------------------------------------------------------------------- -// /** sum with property*/ -// public p2(/** number to add*/b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.p2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// return this.p1 + b; -// } -// /** getter property 1*/ -// public get p3() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.p3: number -// | ``` -// | getter property 1 -// | ---------------------------------------------------------------------- -// return this.p2(this.p1); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.p2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// } -// /** setter property 1*/ -// public set p3(/** this is value*/value: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.p3: number -// | ``` -// | getter property 1 -// | ---------------------------------------------------------------------- -// this.p1 = this.p2(value); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.p2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// } -// /** pp1 is property of c1*/ -// private pp1: number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.pp1: number -// | ``` -// | pp1 is property of c1 -// | ---------------------------------------------------------------------- -// /** sum with property*/ -// private pp2(/** number to add*/b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.pp2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// return this.p1 + b; -// } -// /** getter property 2*/ -// private get pp3() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.pp3: number -// | ``` -// | getter property 2 -// | ---------------------------------------------------------------------- -// return this.pp2(this.pp1); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.pp2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// } -// /** setter property 2*/ -// private set pp3( /** this is value*/value: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.pp3: number -// | ``` -// | getter property 2 -// | ---------------------------------------------------------------------- -// this.pp1 = this.pp2(value); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.pp2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// } -// /** Constructor method*/ -// constructor() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c1(): c1 -// | ``` -// | Constructor method -// | ---------------------------------------------------------------------- -// } -// /** s1 is static property of c1*/ -// static s1: number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.s1: number -// | ``` -// | s1 is static property of c1 -// | ---------------------------------------------------------------------- -// /** static sum with property*/ -// static s2(/** number to add*/b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.s2(b: number): number -// | ``` -// | static sum with property -// | ---------------------------------------------------------------------- -// return c1.s1 + b; -// } -// /** static getter property*/ -// static get s3() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.s3: number -// | ``` -// | static getter property -// | ---------------------------------------------------------------------- -// return c1.s2(c1.s1); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.s2(b: number): number -// | ``` -// | static sum with property -// | ---------------------------------------------------------------------- -// } -// /** setter property 3*/ -// static set s3( /** this is value*/value: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.s3: number -// | ``` -// | static getter property -// | ---------------------------------------------------------------------- -// c1.s1 = c1.s2(value); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.s2(b: number): number -// | ``` -// | static sum with property -// | ---------------------------------------------------------------------- -// } -// public nc_p1: number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.nc_p1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// public nc_p2(b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_p2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return this.nc_p1 + b; -// } -// public get nc_p3() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_p3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return this.nc_p2(this.nc_p1); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_p2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// public set nc_p3(value: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_p3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.nc_p1 = this.nc_p2(value); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_p2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// private nc_pp1: number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.nc_pp1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// private nc_pp2(b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_pp2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return this.nc_pp1 + b; -// } -// private get nc_pp3() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_pp3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return this.nc_pp2(this.nc_pp1); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_pp2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// private set nc_pp3(value: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_pp3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.nc_pp1 = this.nc_pp2(value); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_pp2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// static nc_s1: number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.nc_s1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// static nc_s2(b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_s2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return c1.nc_s1 + b; -// } -// static get nc_s3() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_s3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return c1.nc_s2(c1.nc_s1); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_s2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// static set nc_s3(value: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_s3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// c1.nc_s1 = c1.nc_s2(value); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_s2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var i1 = new c1(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1: c1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c1(): c1 -// | ``` -// | Constructor method -// | ---------------------------------------------------------------------- -// var i1_p = i1.p1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_p: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_f = i1.p2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_f: (b: number) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.p2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// var i1_r = i1.p2(20); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_r: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.p2(b: number): number -// | ``` -// | sum with property -// | ---------------------------------------------------------------------- -// var i1_prop = i1.p3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_prop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.p3: number -// | ``` -// | getter property 1 -// | ---------------------------------------------------------------------- -// i1.p3 = i1_prop; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.p3: number -// | ``` -// | getter property 1 -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_prop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_nc_p = i1.nc_p1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_nc_p: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.nc_p1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_ncf = i1.nc_p2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_ncf: (b: number) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_p2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_ncr = i1.nc_p2(20); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_ncr: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_p2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_ncprop = i1.nc_p3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_ncprop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_p3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// i1.nc_p3 = i1_ncprop; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_p3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_ncprop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_s_p = c1.s1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_p: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c1 -// | ``` -// | This is comment for c1 -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.s1: number -// | ``` -// | s1 is static property of c1 -// | ---------------------------------------------------------------------- -// var i1_s_f = c1.s2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_f: (b: number) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.s2(b: number): number -// | ``` -// | static sum with property -// | ---------------------------------------------------------------------- -// var i1_s_r = c1.s2(20); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_r: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.s2(b: number): number -// | ``` -// | static sum with property -// | ---------------------------------------------------------------------- -// var i1_s_prop = c1.s3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_prop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.s3: number -// | ``` -// | static getter property -// | ---------------------------------------------------------------------- -// c1.s3 = i1_s_prop; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.s3: number -// | ``` -// | static getter property -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_prop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_s_nc_p = c1.nc_s1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_nc_p: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c1.nc_s1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_s_ncf = c1.nc_s2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_ncf: (b: number) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_s2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_s_ncr = c1.nc_s2(20); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_ncr: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c1.nc_s2(b: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_s_ncprop = c1.nc_s3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_ncprop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_s3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// c1.nc_s3 = i1_s_ncprop; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c1.nc_s3: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_s_ncprop: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i1_c = c1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i1_c: typeof c1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c1 -// | ``` -// | This is comment for c1 -// | ---------------------------------------------------------------------- -// -// class cProperties { -// private val: number; -// /** getter only property*/ -// public get p1() { -// return this.val; -// } -// public get nc_p1() { -// return this.val; -// } -// /**setter only property*/ -// public set p2(value: number) { -// this.val = value; -// } -// public set nc_p2(value: number) { -// this.val = value; -// } -// } -// var cProperties_i = new cProperties(); -// cProperties_i.p2 = cProperties_i.p1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) cProperties.p2: number -// | ``` -// | setter only property -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) cProperties.p1: number -// | ``` -// | getter only property -// | ---------------------------------------------------------------------- -// cProperties_i.nc_p2 = cProperties_i.nc_p1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) cProperties.nc_p2: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) cProperties.nc_p1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// class cWithConstructorProperty { -// /** -// * this is class cWithConstructorProperty's constructor -// * @param a this is first parameter a -// */ -// constructor(/**more info about a*/public a: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithConstructorProperty(a: number): cWithConstructorProperty -// | ``` -// | this is class cWithConstructorProperty's constructor -// | -// | *@param* `a` — this is first parameter a -// | -// | ---------------------------------------------------------------------- -// var bbbb = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var bbbb: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.a = a + 2 + bbbb; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | this -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) cWithConstructorProperty.a: number -// | ``` -// | more info about a -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | more info about a -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var bbbb: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 36, - "LSPosition": { - "line": 1, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c1\n```\nThis is comment for c1" - } - } - }, - { - "marker": { - "Position": 83, - "LSPosition": { - "line": 3, - "character": 12 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.p1: number\n```\np1 is property of c1" - } - } - }, - { - "marker": { - "Position": 134, - "LSPosition": { - "line": 5, - "character": 12 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 246, - "LSPosition": { - "line": 9, - "character": 16 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" - } - } - }, - { - "marker": { - "Position": 273, - "LSPosition": { - "line": 10, - "character": 21 - }, - "Name": "8q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 335, - "LSPosition": { - "line": 13, - "character": 16 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" - } - } - }, - { - "marker": { - "Position": 397, - "LSPosition": { - "line": 14, - "character": 24 - }, - "Name": "13q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 458, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.pp1: number\n```\npp1 is property of c1" - } - } - }, - { - "marker": { - "Position": 511, - "LSPosition": { - "line": 19, - "character": 13 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.pp2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 625, - "LSPosition": { - "line": 23, - "character": 17 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.pp3: number\n```\ngetter property 2" - } - } - }, - { - "marker": { - "Position": 653, - "LSPosition": { - "line": 24, - "character": 21 - }, - "Name": "20q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.pp2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 718, - "LSPosition": { - "line": 27, - "character": 17 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.pp3: number\n```\ngetter property 2" - } - } - }, - { - "marker": { - "Position": 783, - "LSPosition": { - "line": 28, - "character": 25 - }, - "Name": "25q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.pp2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 840, - "LSPosition": { - "line": 31, - "character": 11 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c1(): c1\n```\nConstructor method" - } - } - }, - { - "marker": { - "Position": 905, - "LSPosition": { - "line": 34, - "character": 12 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.s1: number\n```\ns1 is static property of c1" - } - } - }, - { - "marker": { - "Position": 963, - "LSPosition": { - "line": 36, - "character": 12 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" - } - } - }, - { - "marker": { - "Position": 1078, - "LSPosition": { - "line": 40, - "character": 16 - }, - "Name": "32", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" - } - } - }, - { - "marker": { - "Position": 1103, - "LSPosition": { - "line": 41, - "character": 19 - }, - "Name": "35q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" - } - } - }, - { - "marker": { - "Position": 1163, - "LSPosition": { - "line": 44, - "character": 16 - }, - "Name": "37", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" - } - } - }, - { - "marker": { - "Position": 1222, - "LSPosition": { - "line": 45, - "character": 20 - }, - "Name": "42q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" - } - } - }, - { - "marker": { - "Position": 1252, - "LSPosition": { - "line": 47, - "character": 14 - }, - "Name": "43", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.nc_p1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1278, - "LSPosition": { - "line": 48, - "character": 14 - }, - "Name": "44", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1349, - "LSPosition": { - "line": 51, - "character": 18 - }, - "Name": "46", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1378, - "LSPosition": { - "line": 52, - "character": 22 - }, - "Name": "47q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1418, - "LSPosition": { - "line": 54, - "character": 17 - }, - "Name": "48", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1467, - "LSPosition": { - "line": 55, - "character": 28 - }, - "Name": "49q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1499, - "LSPosition": { - "line": 57, - "character": 14 - }, - "Name": "50", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.nc_pp1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1528, - "LSPosition": { - "line": 58, - "character": 15 - }, - "Name": "51", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_pp2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1601, - "LSPosition": { - "line": 61, - "character": 18 - }, - "Name": "53", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_pp3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1633, - "LSPosition": { - "line": 62, - "character": 23 - }, - "Name": "54q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_pp2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1677, - "LSPosition": { - "line": 64, - "character": 20 - }, - "Name": "55", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_pp3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1724, - "LSPosition": { - "line": 65, - "character": 27 - }, - "Name": "56q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_pp2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1758, - "LSPosition": { - "line": 67, - "character": 13 - }, - "Name": "57", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.nc_s1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1784, - "LSPosition": { - "line": 68, - "character": 13 - }, - "Name": "58", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1853, - "LSPosition": { - "line": 71, - "character": 17 - }, - "Name": "60", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1881, - "LSPosition": { - "line": 72, - "character": 20 - }, - "Name": "61q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1919, - "LSPosition": { - "line": 74, - "character": 17 - }, - "Name": "62", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1965, - "LSPosition": { - "line": 75, - "character": 25 - }, - "Name": "63q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1989, - "LSPosition": { - "line": 78, - "character": 5 - }, - "Name": "64", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1: c1\n```\n" - } - } - }, - { - "marker": { - "Position": 1998, - "LSPosition": { - "line": 78, - "character": 14 - }, - "Name": "65q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c1(): c1\n```\nConstructor method" - } - } - }, - { - "marker": { - "Position": 2009, - "LSPosition": { - "line": 79, - "character": 6 - }, - "Name": "66", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_p: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2027, - "LSPosition": { - "line": 80, - "character": 6 - }, - "Name": "68", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_f: (b: number) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 2036, - "LSPosition": { - "line": 80, - "character": 15 - }, - "Name": "69", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 2045, - "LSPosition": { - "line": 81, - "character": 6 - }, - "Name": "70", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_r: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2054, - "LSPosition": { - "line": 81, - "character": 15 - }, - "Name": "71q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.p2(b: number): number\n```\nsum with property" - } - } - }, - { - "marker": { - "Position": 2069, - "LSPosition": { - "line": 82, - "character": 8 - }, - "Name": "72", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_prop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2078, - "LSPosition": { - "line": 82, - "character": 17 - }, - "Name": "73", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" - } - } - }, - { - "marker": { - "Position": 2085, - "LSPosition": { - "line": 83, - "character": 3 - }, - "Name": "74", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.p3: number\n```\ngetter property 1" - } - } - }, - { - "marker": { - "Position": 2093, - "LSPosition": { - "line": 83, - "character": 11 - }, - "Name": "75", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_prop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2106, - "LSPosition": { - "line": 84, - "character": 7 - }, - "Name": "76", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_nc_p: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2117, - "LSPosition": { - "line": 84, - "character": 18 - }, - "Name": "77", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.nc_p1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2129, - "LSPosition": { - "line": 85, - "character": 6 - }, - "Name": "78", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_ncf: (b: number) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 2142, - "LSPosition": { - "line": 85, - "character": 19 - }, - "Name": "79", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 2153, - "LSPosition": { - "line": 86, - "character": 7 - }, - "Name": "80", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_ncr: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2164, - "LSPosition": { - "line": 86, - "character": 18 - }, - "Name": "81q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_p2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 2181, - "LSPosition": { - "line": 87, - "character": 8 - }, - "Name": "82", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_ncprop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2193, - "LSPosition": { - "line": 87, - "character": 20 - }, - "Name": "83", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2204, - "LSPosition": { - "line": 88, - "character": 5 - }, - "Name": "84", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_p3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2213, - "LSPosition": { - "line": 88, - "character": 14 - }, - "Name": "85", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_ncprop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2228, - "LSPosition": { - "line": 89, - "character": 7 - }, - "Name": "86", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_p: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2234, - "LSPosition": { - "line": 89, - "character": 13 - }, - "Name": "87", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c1\n```\nThis is comment for c1" - } - } - }, - { - "marker": { - "Position": 2237, - "LSPosition": { - "line": 89, - "character": 16 - }, - "Name": "88", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.s1: number\n```\ns1 is static property of c1" - } - } - }, - { - "marker": { - "Position": 2249, - "LSPosition": { - "line": 90, - "character": 8 - }, - "Name": "89", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_f: (b: number) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 2257, - "LSPosition": { - "line": 90, - "character": 16 - }, - "Name": "90", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" - } - } - }, - { - "marker": { - "Position": 2268, - "LSPosition": { - "line": 91, - "character": 7 - }, - "Name": "91", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_r: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2278, - "LSPosition": { - "line": 91, - "character": 17 - }, - "Name": "92q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.s2(b: number): number\n```\nstatic sum with property" - } - } - }, - { - "marker": { - "Position": 2293, - "LSPosition": { - "line": 92, - "character": 8 - }, - "Name": "93", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_prop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2305, - "LSPosition": { - "line": 92, - "character": 20 - }, - "Name": "94", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" - } - } - }, - { - "marker": { - "Position": 2312, - "LSPosition": { - "line": 93, - "character": 4 - }, - "Name": "95", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.s3: number\n```\nstatic getter property" - } - } - }, - { - "marker": { - "Position": 2320, - "LSPosition": { - "line": 93, - "character": 12 - }, - "Name": "96", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_prop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2335, - "LSPosition": { - "line": 94, - "character": 8 - }, - "Name": "97", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_nc_p: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2347, - "LSPosition": { - "line": 94, - "character": 20 - }, - "Name": "98", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c1.nc_s1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2362, - "LSPosition": { - "line": 95, - "character": 9 - }, - "Name": "99", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_ncf: (b: number) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 2373, - "LSPosition": { - "line": 95, - "character": 20 - }, - "Name": "100", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 2387, - "LSPosition": { - "line": 96, - "character": 9 - }, - "Name": "101", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_ncr: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2397, - "LSPosition": { - "line": 96, - "character": 19 - }, - "Name": "102q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c1.nc_s2(b: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 2417, - "LSPosition": { - "line": 97, - "character": 10 - }, - "Name": "103", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_ncprop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2430, - "LSPosition": { - "line": 97, - "character": 23 - }, - "Name": "104", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2440, - "LSPosition": { - "line": 98, - "character": 5 - }, - "Name": "105", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c1.nc_s3: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2453, - "LSPosition": { - "line": 98, - "character": 18 - }, - "Name": "106", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_s_ncprop: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2465, - "LSPosition": { - "line": 99, - "character": 6 - }, - "Name": "107", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i1_c: typeof c1\n```\n" - } - } - }, - { - "marker": { - "Position": 2471, - "LSPosition": { - "line": 99, - "character": 12 - }, - "Name": "108", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c1\n```\nThis is comment for c1" - } - } - }, - { - "marker": { - "Position": 2882, - "LSPosition": { - "line": 119, - "character": 14 - }, - "Name": "110", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) cProperties.p2: number\n```\nsetter only property" - } - } - }, - { - "marker": { - "Position": 2902, - "LSPosition": { - "line": 119, - "character": 34 - }, - "Name": "111", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) cProperties.p1: number\n```\ngetter only property" - } - } - }, - { - "marker": { - "Position": 2921, - "LSPosition": { - "line": 120, - "character": 16 - }, - "Name": "112", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) cProperties.nc_p2: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2943, - "LSPosition": { - "line": 120, - "character": 38 - }, - "Name": "113", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) cProperties.nc_p1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 3100, - "LSPosition": { - "line": 126, - "character": 4 - }, - "Name": "119", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithConstructorProperty(a: number): cWithConstructorProperty\n```\nthis is class cWithConstructorProperty's constructor\n\n*@param* `a` — this is first parameter a\n" - } - } - }, - { - "marker": { - "Position": 3167, - "LSPosition": { - "line": 127, - "character": 13 - }, - "Name": "118", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar bbbb: number\n```\n" - } - } - }, - { - "marker": { - "Position": 3187, - "LSPosition": { - "line": 128, - "character": 10 - }, - "Name": "116", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nthis\n```\n" - } - } - }, - { - "marker": { - "Position": 3190, - "LSPosition": { - "line": 128, - "character": 13 - }, - "Name": "114", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) cWithConstructorProperty.a: number\n```\nmore info about a" - } - } - }, - { - "marker": { - "Position": 3194, - "LSPosition": { - "line": 128, - "character": 17 - }, - "Name": "115", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\nmore info about a" - } - } - }, - { - "marker": { - "Position": 3204, - "LSPosition": { - "line": 128, - "character": 27 - }, - "Name": "117", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar bbbb: number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc deleted file mode 100644 index 0e4164e80a..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoCommentsCommentParsing.baseline.jsonc +++ /dev/null @@ -1,1630 +0,0 @@ -// === QuickInfo === -=== /quickInfoCommentsCommentParsing.ts === -// /// This is simple /// comments -// function simple() { -// } -// -// simple( ); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function simple(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /// multiLine /// Comments -// /// This is example of multiline /// comments -// /// Another multiLine -// function multiLine() { -// } -// multiLine( ); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function multiLine(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /** this is eg of single line jsdoc style comment */ -// function jsDocSingleLine() { -// } -// jsDocSingleLine(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocSingleLine(): void -// | ``` -// | this is eg of single line jsdoc style comment -// | ---------------------------------------------------------------------- -// -// -// /** this is multiple line jsdoc stule comment -// *New line1 -// *New Line2*/ -// function jsDocMultiLine() { -// } -// jsDocMultiLine(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMultiLine(): void -// | ``` -// | this is multiple line jsdoc stule comment -// | New line1 -// | New Line2 -// | ---------------------------------------------------------------------- -// -// /** multiple line jsdoc comments no longer merge -// *New line1 -// *New Line2*/ -// /** Shoul mege this line as well -// * and this too*/ /** Another this one too*/ -// function jsDocMultiLineMerge() { -// } -// jsDocMultiLineMerge(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMultiLineMerge(): void -// | ``` -// | Another this one too -// | ---------------------------------------------------------------------- -// -// -// /// Triple slash comment -// /** jsdoc comment */ -// function jsDocMixedComments1() { -// } -// jsDocMixedComments1(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMixedComments1(): void -// | ``` -// | jsdoc comment -// | ---------------------------------------------------------------------- -// -// /// Triple slash comment -// /** jsdoc comment */ /** another jsDocComment*/ -// function jsDocMixedComments2() { -// } -// jsDocMixedComments2(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMixedComments2(): void -// | ``` -// | another jsDocComment -// | ---------------------------------------------------------------------- -// -// /** jsdoc comment */ /*** triplestar jsDocComment*/ -// /// Triple slash comment -// function jsDocMixedComments3() { -// } -// jsDocMixedComments3(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMixedComments3(): void -// | ``` -// | * triplestar jsDocComment -// | ---------------------------------------------------------------------- -// -// /** jsdoc comment */ /** another jsDocComment*/ -// /// Triple slash comment -// /// Triple slash comment 2 -// function jsDocMixedComments4() { -// } -// jsDocMixedComments4(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMixedComments4(): void -// | ``` -// | another jsDocComment -// | ---------------------------------------------------------------------- -// -// /// Triple slash comment 1 -// /** jsdoc comment */ /** another jsDocComment*/ -// /// Triple slash comment -// /// Triple slash comment 2 -// function jsDocMixedComments5() { -// } -// jsDocMixedComments5(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMixedComments5(): void -// | ``` -// | another jsDocComment -// | ---------------------------------------------------------------------- -// -// /** another jsDocComment*/ -// /// Triple slash comment 1 -// /// Triple slash comment -// /// Triple slash comment 2 -// /** jsdoc comment */ -// function jsDocMixedComments6() { -// } -// jsDocMixedComments6(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocMixedComments6(): void -// | ``` -// | jsdoc comment -// | ---------------------------------------------------------------------- -// -// // This shoulnot be help comment -// function noHelpComment1() { -// } -// noHelpComment1(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function noHelpComment1(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /* This shoulnot be help comment */ -// function noHelpComment2() { -// } -// noHelpComment2(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function noHelpComment2(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// function noHelpComment3() { -// } -// noHelpComment3(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function noHelpComment3(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** Adds two integers and returns the result -// * @param {number} a first number -// * @param b second number -// */ -// function sum(a: number, b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | first number -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: number -// | ``` -// | second number -// | -// | ---------------------------------------------------------------------- -// return a + b; -// } -// sum(10, 20); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function sum(a: number, b: number): number -// | ``` -// | Adds two integers and returns the result -// | -// | *@param* `a` — first number -// | -// | -// | *@param* `b` — second number -// | -// | ---------------------------------------------------------------------- -// /** This is multiplication function -// * @param -// * @param a first number -// * @param b -// * @param c { -// @param d @anotherTag -// * @param e LastParam @anotherTag*/ -// function multiply(a: number, b: number, c?: number, d?, e?) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | first number -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) c: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) d: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) e: any -// | ``` -// | LastParam -// | ---------------------------------------------------------------------- -// } -// multiply(10, 20, 30, 40, 50); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function multiply(a: number, b: number, c?: number, d?: any, e?: any): void -// | ``` -// | This is multiplication function -// | -// | *@param* `` -// | -// | *@param* `a` — first number -// | -// | -// | *@param* `b` -// | -// | *@param* `c` -// | -// | *@param* `d` -// | -// | *@anotherTag* -// | -// | *@param* `e` — LastParam -// | -// | *@anotherTag* -// | ---------------------------------------------------------------------- -// /** fn f1 with number -// * @param { string} b about b -// */ -// function f1(a: number); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function f1(b: string); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// /**@param opt optional parameter*/ -// function f1(aOrb, opt?) { -// return aOrb; -// } -// f1(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f1(a: number): any -// | ``` -// | fn f1 with number -// | -// | *@param* `b` — about b -// | -// | ---------------------------------------------------------------------- -// f1("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f1(b: string): any -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /** This is subtract function -// @param { a -// *@param { number | } b this is about b -// @param { { () => string; } } c this is optional param c -// @param { { () => string; } d this is optional param d -// @param { { () => string; } } e this is optional param e -// @param { { { () => string; } } f this is optional param f -// */ -// function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: number -// | ``` -// | this is about b -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) c: () => string -// | ``` -// | this is optional param c -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) d: () => string -// | ``` -// | this is optional param d -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) e: () => string -// | ``` -// | this is optional param e -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) f: () => string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// subtract(10, 20, null, null, null, null); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void -// | ``` -// | This is subtract function -// | -// | *@param* `` -// | -// | *@param* `b` — this is about b -// | -// | -// | *@param* `c` — this is optional param c -// | -// | -// | *@param* `d` — this is optional param d -// | -// | -// | *@param* `e` — this is optional param e -// | -// | -// | *@param* `` — { () => string; } } f this is optional param f -// | -// | ---------------------------------------------------------------------- -// /** this is square function -// @paramTag { number } a this is input number of paramTag -// @param { number } a this is input number -// @returnType { number } it is return type -// */ -// function square(a: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | this is input number -// | -// | ---------------------------------------------------------------------- -// return a * a; -// } -// square(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function square(a: number): number -// | ``` -// | this is square function -// | -// | *@paramTag* — { number } a this is input number of paramTag -// | -// | -// | *@param* `a` — this is input number -// | -// | -// | *@returnType* — { number } it is return type -// | -// | ---------------------------------------------------------------------- -// /** this is divide function -// @param { number} a this is a -// @paramTag { number } g this is optional param g -// @param { number} b this is b -// */ -// function divide(a: number, b: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | this is a -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: number -// | ``` -// | this is b -// | -// | ---------------------------------------------------------------------- -// } -// divide(10, 20); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function divide(a: number, b: number): void -// | ``` -// | this is divide function -// | -// | *@param* `a` — this is a -// | -// | -// | *@paramTag* — { number } g this is optional param g -// | -// | -// | *@param* `b` — this is b -// | -// | ---------------------------------------------------------------------- -// /** -// Function returns string concat of foo and bar -// @param {string} foo is string -// @param {string} bar is second string -// */ -// function fooBar(foo: string, bar: string) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) foo: string -// | ``` -// | is string -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) bar: string -// | ``` -// | is second string -// | -// | ---------------------------------------------------------------------- -// return foo + bar; -// } -// fooBar("foo","bar"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function fooBar(foo: string, bar: string): string -// | ``` -// | Function returns string concat of foo and bar -// | -// | *@param* `foo` — is string -// | -// | -// | *@param* `bar` — is second string -// | -// | ---------------------------------------------------------------------- -// /** This is a comment */ -// var x; -// /** -// * This is a comment -// */ -// var y; -// /** this is jsdoc style function with param tag as well as inline parameter help -// *@param a it is first parameter -// *@param c it is third parameter -// */ -// function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | this is inline comment for a -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: number -// | ``` -// | this is inline comment for b -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) c: number -// | ``` -// | it is third parameter -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) d: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a + b + c + d; -// } -// jsDocParamTest(30, 40, 50, 60); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocParamTest(a: number, b: number, c: number, d: number): number -// | ``` -// | this is jsdoc style function with param tag as well as inline parameter help -// | -// | *@param* `a` — it is first parameter -// | -// | -// | *@param* `c` — it is third parameter -// | -// | ---------------------------------------------------------------------- -// /** This is function comment -// * And properly aligned comment -// */ -// function jsDocCommentAlignmentTest1() { -// } -// jsDocCommentAlignmentTest1(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocCommentAlignmentTest1(): void -// | ``` -// | This is function comment -// | And properly aligned comment -// | ---------------------------------------------------------------------- -// /** This is function comment -// * And aligned with 4 space char margin -// */ -// function jsDocCommentAlignmentTest2() { -// } -// jsDocCommentAlignmentTest2(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocCommentAlignmentTest2(): void -// | ``` -// | This is function comment -// | And aligned with 4 space char margin -// | ---------------------------------------------------------------------- -// /** This is function comment -// * And aligned with 4 space char margin -// * @param {string} a this is info about a -// * spanning on two lines and aligned perfectly -// * @param b this is info about b -// * spanning on two lines and aligned perfectly -// * spanning one more line alined perfectly -// * spanning another line with more margin -// * @param c this is info about b -// * not aligned text about parameter will eat only one space -// */ -// function jsDocCommentAlignmentTest3(a: string, b, c) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: string -// | ``` -// | this is info about a -// | spanning on two lines and aligned perfectly -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: any -// | ``` -// | this is info about b -// | spanning on two lines and aligned perfectly -// | spanning one more line alined perfectly -// | spanning another line with more margin -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) c: any -// | ``` -// | this is info about b -// | not aligned text about parameter will eat only one space -// | -// | ---------------------------------------------------------------------- -// } -// jsDocCommentAlignmentTest3("hello",1, 2); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function jsDocCommentAlignmentTest3(a: string, b: any, c: any): void -// | ``` -// | This is function comment -// | And aligned with 4 space char margin -// | -// | *@param* `a` — this is info about a -// | spanning on two lines and aligned perfectly -// | -// | -// | *@param* `b` — this is info about b -// | spanning on two lines and aligned perfectly -// | spanning one more line alined perfectly -// | spanning another line with more margin -// | -// | -// | *@param* `c` — this is info about b -// | not aligned text about parameter will eat only one space -// | -// | ---------------------------------------------------------------------- -// -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -// class NoQuickInfoClass { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class NoQuickInfoClass -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 58, - "LSPosition": { - "line": 4, - "character": 3 - }, - "Name": "1q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction simple(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 190, - "LSPosition": { - "line": 11, - "character": 3 - }, - "Name": "2q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction multiLine(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 291, - "LSPosition": { - "line": 16, - "character": 5 - }, - "Name": "3q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocSingleLine(): void\n```\nthis is eg of single line jsdoc style comment" - } - } - }, - { - "marker": { - "Position": 413, - "LSPosition": { - "line": 24, - "character": 6 - }, - "Name": "4q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMultiLine(): void\n```\nthis is multiple line jsdoc stule comment\nNew line1\nNew Line2" - } - } - }, - { - "marker": { - "Position": 618, - "LSPosition": { - "line": 33, - "character": 7 - }, - "Name": "5q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMultiLineMerge(): void\n```\nAnother this one too" - } - } - }, - { - "marker": { - "Position": 725, - "LSPosition": { - "line": 40, - "character": 8 - }, - "Name": "6q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMixedComments1(): void\n```\njsdoc comment" - } - } - }, - { - "marker": { - "Position": 856, - "LSPosition": { - "line": 46, - "character": 7 - }, - "Name": "7q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMixedComments2(): void\n```\nanother jsDocComment" - } - } - }, - { - "marker": { - "Position": 994, - "LSPosition": { - "line": 52, - "character": 9 - }, - "Name": "8q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMixedComments3(): void\n```\n* triplestar jsDocComment" - } - } - }, - { - "marker": { - "Position": 1154, - "LSPosition": { - "line": 59, - "character": 10 - }, - "Name": "9q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMixedComments4(): void\n```\nanother jsDocComment" - } - } - }, - { - "marker": { - "Position": 1336, - "LSPosition": { - "line": 67, - "character": 6 - }, - "Name": "10q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMixedComments5(): void\n```\nanother jsDocComment" - } - } - }, - { - "marker": { - "Position": 1524, - "LSPosition": { - "line": 76, - "character": 8 - }, - "Name": "11q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocMixedComments6(): void\n```\njsdoc comment" - } - } - }, - { - "marker": { - "Position": 1608, - "LSPosition": { - "line": 81, - "character": 5 - }, - "Name": "12q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction noHelpComment1(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 1695, - "LSPosition": { - "line": 86, - "character": 7 - }, - "Name": "13q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction noHelpComment2(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 1744, - "LSPosition": { - "line": 90, - "character": 7 - }, - "Name": "14q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction noHelpComment3(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 1880, - "LSPosition": { - "line": 95, - "character": 13 - }, - "Name": "16aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\nfirst number\n" - } - } - }, - { - "marker": { - "Position": 1891, - "LSPosition": { - "line": 95, - "character": 24 - }, - "Name": "17aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: number\n```\nsecond number\n" - } - } - }, - { - "marker": { - "Position": 1925, - "LSPosition": { - "line": 98, - "character": 1 - }, - "Name": "16q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction sum(a: number, b: number): number\n```\nAdds two integers and returns the result\n\n*@param* `a` — first number\n\n\n*@param* `b` — second number\n" - } - } - }, - { - "marker": { - "Position": 2111, - "LSPosition": { - "line": 106, - "character": 18 - }, - "Name": "19aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\nfirst number\n" - } - } - }, - { - "marker": { - "Position": 2122, - "LSPosition": { - "line": 106, - "character": 29 - }, - "Name": "20aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2133, - "LSPosition": { - "line": 106, - "character": 40 - }, - "Name": "21aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) c: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2145, - "LSPosition": { - "line": 106, - "character": 52 - }, - "Name": "22aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) d: any\n```\n" - } - } - }, - { - "marker": { - "Position": 2149, - "LSPosition": { - "line": 106, - "character": 56 - }, - "Name": "23aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) e: any\n```\nLastParam " - } - } - }, - { - "marker": { - "Position": 2161, - "LSPosition": { - "line": 108, - "character": 4 - }, - "Name": "19q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction multiply(a: number, b: number, c?: number, d?: any, e?: any): void\n```\nThis is multiplication function\n\n*@param* ``\n\n*@param* `a` — first number\n\n\n*@param* `b`\n\n*@param* `c`\n\n*@param* `d`\n\n*@anotherTag*\n\n*@param* `e` — LastParam \n\n*@anotherTag*" - } - } - }, - { - "marker": { - "Position": 2253, - "LSPosition": { - "line": 112, - "character": 12 - }, - "Name": "25aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2277, - "LSPosition": { - "line": 113, - "character": 12 - }, - "Name": "26aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: string\n```\n" - } - } - }, - { - "marker": { - "Position": 2370, - "LSPosition": { - "line": 118, - "character": 1 - }, - "Name": "25q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f1(a: number): any\n```\nfn f1 with number\n\n*@param* `b` — about b\n" - } - } - }, - { - "marker": { - "Position": 2378, - "LSPosition": { - "line": 119, - "character": 1 - }, - "Name": "26q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f1(b: string): any\n```\n" - } - } - }, - { - "marker": { - "Position": 2716, - "LSPosition": { - "line": 129, - "character": 18 - }, - "Name": "28aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2727, - "LSPosition": { - "line": 129, - "character": 29 - }, - "Name": "29aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: number\n```\nthis is about b\n" - } - } - }, - { - "marker": { - "Position": 2738, - "LSPosition": { - "line": 129, - "character": 40 - }, - "Name": "30aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) c: () => string\n```\nthis is optional param c\n" - } - } - }, - { - "marker": { - "Position": 2756, - "LSPosition": { - "line": 129, - "character": 58 - }, - "Name": "31aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) d: () => string\n```\nthis is optional param d\n" - } - } - }, - { - "marker": { - "Position": 2774, - "LSPosition": { - "line": 129, - "character": 76 - }, - "Name": "32aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) e: () => string\n```\nthis is optional param e\n" - } - } - }, - { - "marker": { - "Position": 2792, - "LSPosition": { - "line": 129, - "character": 94 - }, - "Name": "33aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) f: () => string\n```\n" - } - } - }, - { - "marker": { - "Position": 2818, - "LSPosition": { - "line": 131, - "character": 4 - }, - "Name": "28q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void\n```\nThis is subtract function\n\n*@param* ``\n\n*@param* `b` — this is about b\n\n\n*@param* `c` — this is optional param c\n\n\n*@param* `d` — this is optional param d\n\n\n*@param* `e` — this is optional param e\n\n\n*@param* `` — { () => string; } } f this is optional param f\n" - } - } - }, - { - "marker": { - "Position": 3045, - "LSPosition": { - "line": 137, - "character": 16 - }, - "Name": "34aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\nthis is input number\n" - } - } - }, - { - "marker": { - "Position": 3081, - "LSPosition": { - "line": 140, - "character": 3 - }, - "Name": "34q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction square(a: number): number\n```\nthis is square function\n\n*@paramTag* — { number } a this is input number of paramTag\n\n\n*@param* `a` — this is input number\n\n\n*@returnType* — { number } it is return type\n" - } - } - }, - { - "marker": { - "Position": 3243, - "LSPosition": { - "line": 146, - "character": 16 - }, - "Name": "35aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\nthis is a\n" - } - } - }, - { - "marker": { - "Position": 3254, - "LSPosition": { - "line": 146, - "character": 27 - }, - "Name": "36aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: number\n```\nthis is b\n" - } - } - }, - { - "marker": { - "Position": 3272, - "LSPosition": { - "line": 148, - "character": 3 - }, - "Name": "35q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction divide(a: number, b: number): void\n```\nthis is divide function\n\n*@param* `a` — this is a\n\n\n*@paramTag* — { number } g this is optional param g\n\n\n*@param* `b` — this is b\n" - } - } - }, - { - "marker": { - "Position": 3432, - "LSPosition": { - "line": 154, - "character": 16 - }, - "Name": "37aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) foo: string\n```\nis string\n" - } - } - }, - { - "marker": { - "Position": 3445, - "LSPosition": { - "line": 154, - "character": 29 - }, - "Name": "38aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) bar: string\n```\nis second string\n" - } - } - }, - { - "marker": { - "Position": 3486, - "LSPosition": { - "line": 157, - "character": 2 - }, - "Name": "37q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction fooBar(foo: string, bar: string): string\n```\nFunction returns string concat of foo and bar\n\n*@param* `foo` — is string\n\n\n*@param* `bar` — is second string\n" - } - } - }, - { - "marker": { - "Position": 3782, - "LSPosition": { - "line": 168, - "character": 59 - }, - "Name": "40aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\nthis is inline comment for a" - } - } - }, - { - "marker": { - "Position": 3828, - "LSPosition": { - "line": 168, - "character": 105 - }, - "Name": "41aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: number\n```\nthis is inline comment for b" - } - } - }, - { - "marker": { - "Position": 3839, - "LSPosition": { - "line": 168, - "character": 116 - }, - "Name": "42aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) c: number\n```\nit is third parameter\n" - } - } - }, - { - "marker": { - "Position": 3850, - "LSPosition": { - "line": 168, - "character": 127 - }, - "Name": "43aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) d: number\n```\n" - } - } - }, - { - "marker": { - "Position": 3894, - "LSPosition": { - "line": 171, - "character": 3 - }, - "Name": "40q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocParamTest(a: number, b: number, c: number, d: number): number\n```\nthis is jsdoc style function with param tag as well as inline parameter help\n\n*@param* `a` — it is first parameter\n\n\n*@param* `c` — it is third parameter\n" - } - } - }, - { - "marker": { - "Position": 4040, - "LSPosition": { - "line": 177, - "character": 8 - }, - "Name": "45q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocCommentAlignmentTest1(): void\n```\nThis is function comment\nAnd properly aligned comment" - } - } - }, - { - "marker": { - "Position": 4193, - "LSPosition": { - "line": 183, - "character": 10 - }, - "Name": "46q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocCommentAlignmentTest2(): void\n```\nThis is function comment\n And aligned with 4 space char margin" - } - } - }, - { - "marker": { - "Position": 4778, - "LSPosition": { - "line": 195, - "character": 36 - }, - "Name": "47aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: string\n```\nthis is info about a\nspanning on two lines and aligned perfectly\n" - } - } - }, - { - "marker": { - "Position": 4789, - "LSPosition": { - "line": 195, - "character": 47 - }, - "Name": "48aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: any\n```\nthis is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin\n" - } - } - }, - { - "marker": { - "Position": 4792, - "LSPosition": { - "line": 195, - "character": 50 - }, - "Name": "49aq", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) c: any\n```\nthis is info about b\nnot aligned text about parameter will eat only one space\n" - } - } - }, - { - "marker": { - "Position": 4809, - "LSPosition": { - "line": 197, - "character": 10 - }, - "Name": "47q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction jsDocCommentAlignmentTest3(a: string, b: any, c: any): void\n```\nThis is function comment\n And aligned with 4 space char margin\n\n*@param* `a` — this is info about a\nspanning on two lines and aligned perfectly\n\n\n*@param* `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\n\n\n*@param* `c` — this is info about b\nnot aligned text about parameter will eat only one space\n" - } - } - }, - { - "marker": { - "Position": 4841, - "LSPosition": { - "line": 198, - "character": 0 - }, - "Name": "", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 4854, - "LSPosition": { - "line": 199, - "character": 12 - }, - "Name": "50q", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass NoQuickInfoClass\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc deleted file mode 100644 index 73699ec88c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionDeclaration.baseline.jsonc +++ /dev/null @@ -1,141 +0,0 @@ -// === QuickInfo === -=== /quickInfoCommentsFunctionDeclaration.ts === -// /** This comment should appear for foo*/ -// function foo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | ``` -// | This comment should appear for foo -// | ---------------------------------------------------------------------- -// } -// foo(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | ``` -// | This comment should appear for foo -// | ---------------------------------------------------------------------- -// /** This is comment for function signature*/ -// function fooWithParameters(/** this is comment about a*/a: string, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function fooWithParameters(a: string, b: number): void -// | ``` -// | This is comment for function signature -// | ---------------------------------------------------------------------- -// /** this is comment for b*/ -// b: number) { -// var d = a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var d: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// fooWithParameters("a",10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function fooWithParameters(a: string, b: number): void -// | ``` -// | This is comment for function signature -// | ---------------------------------------------------------------------- -// /** -// * Does something -// * @param a a string -// */ -// declare function fn(a: string); -// fn("hello"); -[ - { - "marker": { - "Position": 51, - "LSPosition": { - "line": 1, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\n```\nThis comment should appear for foo" - } - } - }, - { - "marker": { - "Position": 61, - "LSPosition": { - "line": 3, - "character": 1 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\n```\nThis comment should appear for foo" - } - } - }, - { - "marker": { - "Position": 123, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction fooWithParameters(a: string, b: number): void\n```\nThis is comment for function signature" - } - } - }, - { - "marker": { - "Position": 236, - "LSPosition": { - "line": 8, - "character": 8 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar d: string\n```\n" - } - } - }, - { - "marker": { - "Position": 257, - "LSPosition": { - "line": 10, - "character": 12 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction fooWithParameters(a: string, b: number): void\n```\nThis is comment for function signature" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc deleted file mode 100644 index 5416640acb..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoCommentsFunctionExpression.baseline.jsonc +++ /dev/null @@ -1,310 +0,0 @@ -// === QuickInfo === -=== /quickInfoCommentsFunctionExpression.ts === -// /** lambdaFoo var comment*/ -// var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var lambdaFoo: (a: number, b: number) => number -// | ``` -// | lambdaFoo var comment -// | ---------------------------------------------------------------------- -// var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var lambddaNoVarComment: (a: number, b: number) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// lambdaFoo(10, 20); -// function anotherFunc(a: number) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function anotherFunc(a: number): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** documentation -// @param b {string} inner parameter */ -// var lambdaVar = /** inner docs */(b: string) => { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var lambdaVar: (b: string) => string -// | ``` -// | documentation -// | -// | *@param* `b` — inner parameter -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// var localVar = "Hello "; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var localVar: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// return localVar + b; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var localVar: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// return lambdaVar("World") + a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var lambdaVar: (b: string) => string -// | ``` -// | documentation -// | -// | *@param* `b` — inner parameter -// | ---------------------------------------------------------------------- -// } -// /** -// * On variable -// * @param s the first parameter! -// * @returns the parameter's length -// */ -// var assigned = /** -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var assigned: (s: string) => number -// | ``` -// | On variable -// | -// | *@param* `s` — the first parameter! -// | -// | -// | *@returns* — the parameter's length -// | -// | ---------------------------------------------------------------------- -// * Summary on expression -// * @param s param on expression -// * @returns return on expression -// */function(/** On parameter */s: string) { -// return s.length; -// } -// assigned("hey"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var assigned: (s: string) => number -// | ``` -// | On variable -// | -// | *@param* `s` — the first parameter! -// | -// | -// | *@returns* — the parameter's length -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 36, - "LSPosition": { - "line": 1, - "character": 8 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar lambdaFoo: (a: number, b: number) => number\n```\nlambdaFoo var comment" - } - } - }, - { - "marker": { - "Position": 142, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar lambddaNoVarComment: (a: number, b: number) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 277, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction anotherFunc(a: number): string\n```\n" - } - } - }, - { - "marker": { - "Position": 377, - "LSPosition": { - "line": 7, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar lambdaVar: (b: string) => string\n```\ndocumentation\n\n*@param* `b` — inner parameter " - } - } - }, - { - "marker": { - "Position": 407, - "LSPosition": { - "line": 7, - "character": 38 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: string\n```\n" - } - } - }, - { - "marker": { - "Position": 435, - "LSPosition": { - "line": 8, - "character": 12 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar localVar: string\n```\n" - } - } - }, - { - "marker": { - "Position": 471, - "LSPosition": { - "line": 9, - "character": 15 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar localVar: string\n```\n" - } - } - }, - { - "marker": { - "Position": 482, - "LSPosition": { - "line": 9, - "character": 26 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: string\n```\n" - } - } - }, - { - "marker": { - "Position": 506, - "LSPosition": { - "line": 11, - "character": 15 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar lambdaVar: (b: string) => string\n```\ndocumentation\n\n*@param* `b` — inner parameter " - } - } - }, - { - "marker": { - "Position": 627, - "LSPosition": { - "line": 18, - "character": 8 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar assigned: (s: string) => number\n```\nOn variable\n\n*@param* `s` — the first parameter!\n\n\n*@returns* — the parameter's length\n" - } - } - }, - { - "marker": { - "Position": 858, - "LSPosition": { - "line": 25, - "character": 5 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar assigned: (s: string) => number\n```\nOn variable\n\n*@param* `s` — the first parameter!\n\n\n*@returns* — the parameter's length\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc deleted file mode 100644 index fddab30122..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsArrowFunctionExpression.baseline.jsonc +++ /dev/null @@ -1,200 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsArrowFunctionExpression.ts === -// var x = a => 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: (a: any) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// var y = (a, b) => 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var y: (a: any, b: any) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: any -// | ``` -// | -// | ---------------------------------------------------------------------- -// var z = (a: number) => 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var z: (a: number) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var z2 = () => 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var z2: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: (a: any) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 8, - "LSPosition": { - "line": 0, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: any\n```\n" - } - } - }, - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar y: (a: any, b: any) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: any\n```\n" - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 12 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: any\n```\n" - } - } - }, - { - "marker": { - "Position": 43, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar z: (a: number) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 48, - "LSPosition": { - "line": 2, - "character": 9 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: number\n```\n" - } - } - }, - { - "marker": { - "Position": 70, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar z2: () => number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc deleted file mode 100644 index 6483631b59..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClass.baseline.jsonc +++ /dev/null @@ -1,128 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClass.ts === -// class c { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var cInstance = new c(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cVal = c; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cVal: typeof c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 16, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 32, - "LSPosition": { - "line": 2, - "character": 20 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cVal: typeof c\n```\n" - } - } - }, - { - "marker": { - "Position": 48, - "LSPosition": { - "line": 3, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc deleted file mode 100644 index 92dc276ff5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAccessors.baseline.jsonc +++ /dev/null @@ -1,807 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassAccessors.ts === -// class c { -// public get publicProperty() { return ""; } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// public set publicProperty(x: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private get privateProperty() { return ""; } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private set privateProperty(x: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected get protectedProperty() { return ""; } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected set protectedProperty(x: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// static get staticProperty() { return ""; } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// static set staticProperty(x: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private static get privateStaticProperty() { return ""; } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private static set privateStaticProperty(x: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected static get protectedStaticProperty() { return ""; } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected static set protectedStaticProperty(x: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// method() { -// var x : string; -// x = this.publicProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = this.privateProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = this.protectedProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = c.staticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = c.privateStaticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = c.protectedStaticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.publicProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.privateProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.protectedProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.privateStaticProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.protectedStaticProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance = new c(); -// var y: string; -// y = cInstance.publicProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// y = c.staticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// cInstance.publicProperty = y; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticProperty = y; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 25, - "LSPosition": { - "line": 1, - "character": 15 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 72, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "1s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 118, - "LSPosition": { - "line": 3, - "character": 16 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 167, - "LSPosition": { - "line": 4, - "character": 16 - }, - "Name": "2s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 216, - "LSPosition": { - "line": 5, - "character": 18 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 269, - "LSPosition": { - "line": 6, - "character": 18 - }, - "Name": "21s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 317, - "LSPosition": { - "line": 7, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 364, - "LSPosition": { - "line": 8, - "character": 15 - }, - "Name": "3s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 418, - "LSPosition": { - "line": 9, - "character": 24 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 480, - "LSPosition": { - "line": 10, - "character": 23 - }, - "Name": "4s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 542, - "LSPosition": { - "line": 11, - "character": 25 - }, - "Name": "41", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 608, - "LSPosition": { - "line": 12, - "character": 25 - }, - "Name": "41s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 703, - "LSPosition": { - "line": 15, - "character": 17 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 736, - "LSPosition": { - "line": 16, - "character": 17 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 770, - "LSPosition": { - "line": 17, - "character": 17 - }, - "Name": "61", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 803, - "LSPosition": { - "line": 18, - "character": 14 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 833, - "LSPosition": { - "line": 19, - "character": 14 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 870, - "LSPosition": { - "line": 20, - "character": 14 - }, - "Name": "81", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 908, - "LSPosition": { - "line": 21, - "character": 13 - }, - "Name": "5s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 942, - "LSPosition": { - "line": 22, - "character": 13 - }, - "Name": "6s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 977, - "LSPosition": { - "line": 23, - "character": 13 - }, - "Name": "61s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 1011, - "LSPosition": { - "line": 24, - "character": 10 - }, - "Name": "7s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 1042, - "LSPosition": { - "line": 25, - "character": 10 - }, - "Name": "8s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 1080, - "LSPosition": { - "line": 26, - "character": 10 - }, - "Name": "81s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 1162, - "LSPosition": { - "line": 31, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 1172, - "LSPosition": { - "line": 31, - "character": 14 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 1192, - "LSPosition": { - "line": 32, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 1194, - "LSPosition": { - "line": 32, - "character": 6 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 1210, - "LSPosition": { - "line": 33, - "character": 0 - }, - "Name": "9s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 1220, - "LSPosition": { - "line": 33, - "character": 10 - }, - "Name": "10s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 1240, - "LSPosition": { - "line": 34, - "character": 0 - }, - "Name": "11s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 1242, - "LSPosition": { - "line": 34, - "character": 2 - }, - "Name": "12s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc deleted file mode 100644 index f1e059e258..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassAutoAccessors.baseline.jsonc +++ /dev/null @@ -1,657 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassAutoAccessors.ts === -// class c { -// public accessor publicProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private accessor privateProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected accessor protectedProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// static accessor staticProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private static accessor privateStaticProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected static accessor protectedStaticProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// method() { -// var x: string; -// x = this.publicProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = this.privateProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = this.protectedProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = c.staticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = c.privateStaticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// x = c.protectedStaticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.publicProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.privateProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.protectedProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.privateStaticProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.protectedStaticProperty = ""; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance = new c(); -// var y: string; -// y = cInstance.publicProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// y = c.staticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// cInstance.publicProperty = y; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticProperty = y; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 30, - "LSPosition": { - "line": 1, - "character": 20 - }, - "Name": "1a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 2, - "character": 21 - }, - "Name": "2a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 123, - "LSPosition": { - "line": 3, - "character": 23 - }, - "Name": "3a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 170, - "LSPosition": { - "line": 4, - "character": 20 - }, - "Name": "4a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 222, - "LSPosition": { - "line": 5, - "character": 28 - }, - "Name": "5a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 283, - "LSPosition": { - "line": 6, - "character": 30 - }, - "Name": "6a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 371, - "LSPosition": { - "line": 9, - "character": 17 - }, - "Name": "1g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 404, - "LSPosition": { - "line": 10, - "character": 17 - }, - "Name": "2g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 438, - "LSPosition": { - "line": 11, - "character": 17 - }, - "Name": "3g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 471, - "LSPosition": { - "line": 12, - "character": 14 - }, - "Name": "4g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 501, - "LSPosition": { - "line": 13, - "character": 14 - }, - "Name": "5g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 538, - "LSPosition": { - "line": 14, - "character": 14 - }, - "Name": "6g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 576, - "LSPosition": { - "line": 15, - "character": 13 - }, - "Name": "1s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 610, - "LSPosition": { - "line": 16, - "character": 13 - }, - "Name": "2s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 645, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "3s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 679, - "LSPosition": { - "line": 18, - "character": 10 - }, - "Name": "4s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 710, - "LSPosition": { - "line": 19, - "character": 10 - }, - "Name": "5s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 748, - "LSPosition": { - "line": 20, - "character": 10 - }, - "Name": "6s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 830, - "LSPosition": { - "line": 25, - "character": 4 - }, - "Name": "7g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 840, - "LSPosition": { - "line": 25, - "character": 14 - }, - "Name": "8g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 860, - "LSPosition": { - "line": 26, - "character": 4 - }, - "Name": "9g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 862, - "LSPosition": { - "line": 26, - "character": 6 - }, - "Name": "10g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 878, - "LSPosition": { - "line": 27, - "character": 0 - }, - "Name": "7s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 888, - "LSPosition": { - "line": 27, - "character": 10 - }, - "Name": "8s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 908, - "LSPosition": { - "line": 28, - "character": 0 - }, - "Name": "9s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 910, - "LSPosition": { - "line": 28, - "character": 2 - }, - "Name": "10s", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) c.staticProperty: string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc deleted file mode 100644 index f14d749f68..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassConstructor.baseline.jsonc +++ /dev/null @@ -1,665 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassConstructor.ts === -// class c { -// constructor() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c(): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance = new c(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c(): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cVal = c; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cVal: typeof c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// class cWithOverloads { -// constructor(x: string); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithOverloads(x: string): cWithOverloads -// | constructor cWithOverloads(x: number): cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(x: number); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithOverloads(x: string): cWithOverloads -// | constructor cWithOverloads(x: number): cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(x: any) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithOverloads(x: string): cWithOverloads -// | constructor cWithOverloads(x: number): cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cWithOverloadsInstance = new cWithOverloads("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cWithOverloadsInstance: cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithOverloads(x: string): cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cWithOverloadsInstance2 = new cWithOverloads(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cWithOverloadsInstance2: cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithOverloads(x: number): cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cWithOverloadsVal = cWithOverloads; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cWithOverloadsVal: typeof cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class cWithOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// class cWithMultipleOverloads { -// constructor(x: string); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(x: number); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(x: boolean); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(x: any) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads -// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cWithMultipleOverloadsInstance = new cWithMultipleOverloads("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cWithMultipleOverloadsInstance: cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithMultipleOverloads(x: string): cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cWithMultipleOverloadsInstance2 = new cWithMultipleOverloads(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cWithMultipleOverloadsInstance2: cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithMultipleOverloads(x: number): cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cWithMultipleOverloadsInstance3 = new cWithMultipleOverloads(true); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cWithMultipleOverloadsInstance3: cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cWithMultipleOverloadsVal = cWithMultipleOverloads; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cWithMultipleOverloadsVal: typeof cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class cWithMultipleOverloads -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 14, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c(): c\n```\n" - } - } - }, - { - "marker": { - "Position": 42, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 58, - "LSPosition": { - "line": 4, - "character": 20 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c(): c\n```\n" - } - } - }, - { - "marker": { - "Position": 67, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cVal: typeof c\n```\n" - } - } - }, - { - "marker": { - "Position": 74, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 104, - "LSPosition": { - "line": 7, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 132, - "LSPosition": { - "line": 8, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 160, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 194, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cWithOverloadsInstance: cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 223, - "LSPosition": { - "line": 12, - "character": 33 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithOverloads(x: string): cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 252, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cWithOverloadsInstance2: cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 282, - "LSPosition": { - "line": 13, - "character": 34 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithOverloads(x: number): cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 306, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cWithOverloadsVal: typeof cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 326, - "LSPosition": { - "line": 14, - "character": 24 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass cWithOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 377, - "LSPosition": { - "line": 16, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 405, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 433, - "LSPosition": { - "line": 18, - "character": 4 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 462, - "LSPosition": { - "line": 19, - "character": 4 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 496, - "LSPosition": { - "line": 22, - "character": 4 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cWithMultipleOverloadsInstance: cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 533, - "LSPosition": { - "line": 22, - "character": 41 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithMultipleOverloads(x: string): cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 570, - "LSPosition": { - "line": 23, - "character": 4 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cWithMultipleOverloadsInstance2: cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 608, - "LSPosition": { - "line": 23, - "character": 42 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithMultipleOverloads(x: number): cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 640, - "LSPosition": { - "line": 24, - "character": 4 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cWithMultipleOverloadsInstance3: cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 678, - "LSPosition": { - "line": 24, - "character": 42 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor cWithMultipleOverloads(x: boolean): cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 712, - "LSPosition": { - "line": 25, - "character": 4 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cWithMultipleOverloadsVal: typeof cWithMultipleOverloads\n```\n" - } - } - }, - { - "marker": { - "Position": 740, - "LSPosition": { - "line": 25, - "character": 32 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass cWithMultipleOverloads\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc deleted file mode 100644 index 748eae06e8..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultAnonymous.baseline.jsonc +++ /dev/null @@ -1,70 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassDefaultAnonymous.ts === -// export default class { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*4*/. -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 0, - "LSPosition": { - "line": 0, - "character": 0 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 7, - "LSPosition": { - "line": 0, - "character": 7 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 15, - "LSPosition": { - "line": 0, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 0, - "character": 21 - }, - "Name": "4", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc deleted file mode 100644 index c8f640ffbe..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassDefaultNamed.baseline.jsonc +++ /dev/null @@ -1,94 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassDefaultNamed.ts === -// export default class C { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class C -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*5*/. -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 0, - "LSPosition": { - "line": 0, - "character": 0 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 7, - "LSPosition": { - "line": 0, - "character": 7 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 15, - "LSPosition": { - "line": 0, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 0, - "character": 21 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass C\n```\n" - } - } - }, - { - "marker": { - "Position": 23, - "LSPosition": { - "line": 0, - "character": 23 - }, - "Name": "5", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc deleted file mode 100644 index c864ef9b5e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassIncomplete.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassIncomplete.ts === -// class { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 0, - "LSPosition": { - "line": 0, - "character": 0 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "2", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc deleted file mode 100644 index d681656d03..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassMethod.baseline.jsonc +++ /dev/null @@ -1,407 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassMethod.ts === -// class c { -// public publicMethod() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.publicMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// private privateMethod() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.privateMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected protectedMethod() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.protectedMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// static staticMethod() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.staticMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// private static privateStaticMethod() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.privateStaticMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected static protectedStaticMethod() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.protectedStaticMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// method() { -// this.publicMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.publicMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.privateMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.privateMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.protectedMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.protectedMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.staticMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.privateStaticMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.privateStaticMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.protectedStaticMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.protectedStaticMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance = new c(); -// cInstance.publicMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.publicMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticMethod(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.staticMethod(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.publicMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 52, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.privateMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.protectedMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 119, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.staticMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 157, - "LSPosition": { - "line": 5, - "character": 19 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.privateStaticMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 204, - "LSPosition": { - "line": 6, - "character": 21 - }, - "Name": "41", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.protectedStaticMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 260, - "LSPosition": { - "line": 8, - "character": 13 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.publicMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 289, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.privateMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "61", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.protectedMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 348, - "LSPosition": { - "line": 11, - "character": 10 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.staticMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 374, - "LSPosition": { - "line": 12, - "character": 10 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.privateStaticMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 407, - "LSPosition": { - "line": 13, - "character": 10 - }, - "Name": "81", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.protectedStaticMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 465, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 475, - "LSPosition": { - "line": 17, - "character": 10 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.publicMethod(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 491, - "LSPosition": { - "line": 18, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 493, - "LSPosition": { - "line": 18, - "character": 2 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.staticMethod(): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc deleted file mode 100644 index 3842a8b06c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsClassProperty.baseline.jsonc +++ /dev/null @@ -1,407 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsClassProperty.ts === -// class c { -// public publicProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private privateProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected protectedProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// static staticProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// private static privateStaticProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected static protectedStaticProperty: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// method() { -// this.publicProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.privateProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.privateProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.protectedProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.protectedProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.privateStaticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.privateStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.protectedStaticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.protectedStaticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance = new c(); -// cInstance.publicProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.publicProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// c.staticProperty; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) c.staticProperty: string -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 96, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 134, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 177, - "LSPosition": { - "line": 5, - "character": 19 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 229, - "LSPosition": { - "line": 6, - "character": 21 - }, - "Name": "41", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 290, - "LSPosition": { - "line": 8, - "character": 13 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.privateProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 349, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "61", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.protectedProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 378, - "LSPosition": { - "line": 11, - "character": 10 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.staticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 404, - "LSPosition": { - "line": 12, - "character": 10 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.privateStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 437, - "LSPosition": { - "line": 13, - "character": 10 - }, - "Name": "81", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.protectedStaticProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 495, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 505, - "LSPosition": { - "line": 17, - "character": 10 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.publicProperty: string\n```\n" - } - } - }, - { - "marker": { - "Position": 521, - "LSPosition": { - "line": 18, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 523, - "LSPosition": { - "line": 18, - "character": 2 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) c.staticProperty: string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc deleted file mode 100644 index e347d4617f..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsConst.baseline.jsonc +++ /dev/null @@ -1,409 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsConst.ts === -// const a = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo() { -// const b = a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const b: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (b) { -// const b1 = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const b1: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// module m { -// const c = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const c: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// export const d = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const d: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (c) { -// const e = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const e: 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// const f: () => number = () => 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const g = f; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const g: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const h: { (a: string): number; (a: number): string; } = a => a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// const i = h; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const i: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: 10\n```\n" - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 10 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst b: 10\n```\n" - } - } - }, - { - "marker": { - "Position": 45, - "LSPosition": { - "line": 2, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: 10\n```\n" - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 4, - "character": 14 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst b1: 10\n```\n" - } - } - }, - { - "marker": { - "Position": 113, - "LSPosition": { - "line": 8, - "character": 10 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst c: 10\n```\n" - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 9, - "character": 17 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst d: 10\n```\n" - } - } - }, - { - "marker": { - "Position": 173, - "LSPosition": { - "line": 11, - "character": 14 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst e: 10\n```\n" - } - } - }, - { - "marker": { - "Position": 195, - "LSPosition": { - "line": 14, - "character": 6 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 229, - "LSPosition": { - "line": 15, - "character": 6 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst g: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 233, - "LSPosition": { - "line": 15, - "character": 10 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 236, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 247, - "LSPosition": { - "line": 17, - "character": 6 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 312, - "LSPosition": { - "line": 18, - "character": 6 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst i: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 316, - "LSPosition": { - "line": 18, - "character": 10 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 19, - "character": 0 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 326, - "LSPosition": { - "line": 20, - "character": 0 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst h: { (a: string): number; (a: number): string; }\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc deleted file mode 100644 index a6943094df..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum1.baseline.jsonc +++ /dev/null @@ -1,742 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum1.ts === -// enum E { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// e1, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e2 = 10, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e3 -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance: E; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// const enum constE { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// e1, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e2 = 10, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// e3 -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance1: constE; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 34, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 43, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 5, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 6, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 69, - "LSPosition": { - "line": 6, - "character": 12 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 71, - "LSPosition": { - "line": 6, - "character": 14 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 87, - "LSPosition": { - "line": 7, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 89, - "LSPosition": { - "line": 7, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 93, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 8, - "character": 12 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 107, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 135, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 156, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 165, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 177, - "LSPosition": { - "line": 14, - "character": 16 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 185, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 198, - "LSPosition": { - "line": 15, - "character": 13 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 205, - "LSPosition": { - "line": 15, - "character": 20 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 209, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 222, - "LSPosition": { - "line": 16, - "character": 13 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 229, - "LSPosition": { - "line": 16, - "character": 20 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 233, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 246, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 253, - "LSPosition": { - "line": 17, - "character": 20 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc deleted file mode 100644 index b779d9db5b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum2.baseline.jsonc +++ /dev/null @@ -1,742 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum2.ts === -// enum E { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance: E; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E.e3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// const enum constE { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance1: constE; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE.e3; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 23, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 38, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 60, - "LSPosition": { - "line": 5, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 6, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 6, - "character": 12 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 6, - "character": 14 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 81, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 93, - "LSPosition": { - "line": 7, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 95, - "LSPosition": { - "line": 7, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 99, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 111, - "LSPosition": { - "line": 8, - "character": 12 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 113, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 128, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 141, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 151, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 166, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 177, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 189, - "LSPosition": { - "line": 14, - "character": 16 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 197, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 210, - "LSPosition": { - "line": 15, - "character": 13 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 217, - "LSPosition": { - "line": 15, - "character": 20 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 221, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 234, - "LSPosition": { - "line": 16, - "character": 13 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 241, - "LSPosition": { - "line": 16, - "character": 20 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 245, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 265, - "LSPosition": { - "line": 17, - "character": 20 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc deleted file mode 100644 index e158a55c64..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum3.baseline.jsonc +++ /dev/null @@ -1,742 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum3.ts === -// enum E { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance: E; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E["e1"]; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E["e2"]; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance = E['e3']; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance: E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum E -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) E.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// const enum constE { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e1", -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// 'e2' = 10, -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// "e3" -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var eInstance1: constE; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE["e1"]; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e1 = 0 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE["e2"]; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e2 = 10 -// | ``` -// | -// | ---------------------------------------------------------------------- -// eInstance1 = constE['e3']; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var eInstance1: constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | enum constE -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) constE.e3 = 11 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 23, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 38, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 60, - "LSPosition": { - "line": 5, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 6, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 6, - "character": 12 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 6, - "character": 14 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 84, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 96, - "LSPosition": { - "line": 7, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 98, - "LSPosition": { - "line": 7, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance: E\n```\n" - } - } - }, - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 8, - "character": 12 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum E\n```\n" - } - } - }, - { - "marker": { - "Position": 119, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) E.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 137, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 150, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 160, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 175, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - } - } - }, - { - "marker": { - "Position": 186, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 198, - "LSPosition": { - "line": 14, - "character": 16 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 206, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 219, - "LSPosition": { - "line": 15, - "character": 13 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 226, - "LSPosition": { - "line": 15, - "character": 20 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e1 = 0\n```\n" - } - } - }, - { - "marker": { - "Position": 233, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 246, - "LSPosition": { - "line": 16, - "character": 13 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 253, - "LSPosition": { - "line": 16, - "character": 20 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e2 = 10\n```\n" - } - } - }, - { - "marker": { - "Position": 260, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar eInstance1: constE\n```\n" - } - } - }, - { - "marker": { - "Position": 273, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nenum constE\n```\n" - } - } - }, - { - "marker": { - "Position": 280, - "LSPosition": { - "line": 17, - "character": 20 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) constE.e3 = 11\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc deleted file mode 100644 index 2dd6b63672..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsEnum4.baseline.jsonc +++ /dev/null @@ -1,58 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsEnum4.ts === -// const enum Foo { -// "\t" = 9, -// "\u007f" = 127, -// } -// Foo["\t"] -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) typeof Foo["\t"] = 9 -// | ``` -// | -// | ---------------------------------------------------------------------- -// Foo["\u007f"] -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (enum member) typeof Foo[""] = 127 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 51, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) typeof Foo[\"\\t\"] = 9\n```\n" - } - } - }, - { - "marker": { - "Position": 61, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(enum member) typeof Foo[\"\"] = 127\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc deleted file mode 100644 index 6876a51533..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModuleAlias.baseline.jsonc +++ /dev/null @@ -1,104 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsExternalModuleAlias_file1.ts === -// import a1 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*mod1*/. -// | ---------------------------------------------------------------------- -// new a1.m1.c(); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// export import a2 = require("./quickInfoDisplayPartsExternalModuleAlias_file0"); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*mod2*/. -// | ---------------------------------------------------------------------- -// new a2.m1.c(); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*4*/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 7, - "LSPosition": { - "line": 0, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 20, - "LSPosition": { - "line": 0, - "character": 20 - }, - "Name": "mod1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 102, - "LSPosition": { - "line": 2, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 115, - "LSPosition": { - "line": 2, - "character": 27 - }, - "Name": "mod2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 172, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc deleted file mode 100644 index 9eb32d25c6..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsExternalModules.baseline.jsonc +++ /dev/null @@ -1,416 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsExternalModules.ts === -// export namespace m { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// export var a = m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var b: typeof m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// export namespace m1.m2 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*9*/. -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// export var x = m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var y: typeof m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var y: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 0, - "character": 17 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 120, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: typeof m\n```\n" - } - } - }, - { - "marker": { - "Position": 124, - "LSPosition": { - "line": 4, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: typeof m\n```\n" - } - } - }, - { - "marker": { - "Position": 148, - "LSPosition": { - "line": 5, - "character": 21 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 168, - "LSPosition": { - "line": 6, - "character": 17 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - } - } - }, - { - "marker": { - "Position": 171, - "LSPosition": { - "line": 6, - "character": 20 - }, - "Name": "9", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 184, - "LSPosition": { - "line": 7, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 232, - "LSPosition": { - "line": 8, - "character": 15 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 275, - "LSPosition": { - "line": 10, - "character": 11 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: typeof m1.m2\n```\n" - } - } - }, - { - "marker": { - "Position": 279, - "LSPosition": { - "line": 10, - "character": 15 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - } - } - }, - { - "marker": { - "Position": 282, - "LSPosition": { - "line": 10, - "character": 18 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - } - } - }, - { - "marker": { - "Position": 297, - "LSPosition": { - "line": 11, - "character": 11 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar y: typeof m1.m2\n```\n" - } - } - }, - { - "marker": { - "Position": 307, - "LSPosition": { - "line": 11, - "character": 21 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - } - } - }, - { - "marker": { - "Position": 310, - "LSPosition": { - "line": 11, - "character": 24 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc deleted file mode 100644 index a4f8ae7fc3..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunction.baseline.jsonc +++ /dev/null @@ -1,370 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsFunction.ts === -// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// function foowithoverload(a: string): string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: number): number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: any): any { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// function foowith3overload(a: string): string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: number): number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: boolean): boolean; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: any): any { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// foo("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(true); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - } - } - }, - { - "marker": { - "Position": 121, - "LSPosition": { - "line": 2, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 166, - "LSPosition": { - "line": 3, - "character": 9 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 211, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 267, - "LSPosition": { - "line": 7, - "character": 9 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 313, - "LSPosition": { - "line": 8, - "character": 9 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 359, - "LSPosition": { - "line": 9, - "character": 9 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 407, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 455, - "LSPosition": { - "line": 13, - "character": 0 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - } - } - }, - { - "marker": { - "Position": 469, - "LSPosition": { - "line": 14, - "character": 0 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" - } - } - }, - { - "marker": { - "Position": 495, - "LSPosition": { - "line": 15, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 516, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" - } - } - }, - { - "marker": { - "Position": 543, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 565, - "LSPosition": { - "line": 18, - "character": 0 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc deleted file mode 100644 index 86455d0563..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionExpression.baseline.jsonc +++ /dev/null @@ -1,156 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsFunctionExpression.ts === -// var x = function foo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: () => void -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// }; -// var y = function () { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var y: () => void -// | ``` -// | -// | ---------------------------------------------------------------------- -// }; -// (function foo1() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo1(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo1(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo1(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// })(); -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: () => void\n```\n" - } - } - }, - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 0, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 43, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar y: () => void\n```\n" - } - } - }, - { - "marker": { - "Position": 74, - "LSPosition": { - "line": 5, - "character": 10 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo1(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 87, - "LSPosition": { - "line": 6, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo1(): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc deleted file mode 100644 index 4fdac11c6d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsFunctionIncomplete.baseline.jsonc +++ /dev/null @@ -1,72 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsFunctionIncomplete.ts === -// function (param: string) { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// }\ -// function { -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*4*/. -// | ---------------------------------------------------------------------- -// }\ -[ - { - "marker": { - "Position": 0, - "LSPosition": { - "line": 0, - "character": 0 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 30, - "LSPosition": { - "line": 2, - "character": 0 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 39, - "LSPosition": { - "line": 2, - "character": 9 - }, - "Name": "4", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc deleted file mode 100644 index 0683b75288..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterface.baseline.jsonc +++ /dev/null @@ -1,79 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsInterface.ts === -// interface i { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface i -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var iInstance: i; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: i -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface i -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface i\n```\n" - } - } - }, - { - "marker": { - "Position": 20, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: i\n```\n" - } - } - }, - { - "marker": { - "Position": 31, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface i\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc deleted file mode 100644 index 5263452b01..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInterfaceMembers.baseline.jsonc +++ /dev/null @@ -1,230 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsInterfaceMembers.ts === -// interface I { -// property: string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) I.property: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// method(): string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method(): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// (): string; -// new (): I; -// } -// var iInstance: I; -// iInstance.property = iInstance.method(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) I.property: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method(): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// iInstance(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// var anotherInstance = new iInstance(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var anotherInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iInstance: I -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 18, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) I.property: string\n```\n" - } - } - }, - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method(): string\n```\n" - } - } - }, - { - "marker": { - "Position": 109, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - } - } - }, - { - "marker": { - "Position": 119, - "LSPosition": { - "line": 7, - "character": 10 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) I.property: string\n```\n" - } - } - }, - { - "marker": { - "Position": 130, - "LSPosition": { - "line": 7, - "character": 21 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - } - } - }, - { - "marker": { - "Position": 140, - "LSPosition": { - "line": 7, - "character": 31 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method(): string\n```\n" - } - } - }, - { - "marker": { - "Position": 150, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - } - } - }, - { - "marker": { - "Position": 167, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar anotherInstance: I\n```\n" - } - } - }, - { - "marker": { - "Position": 189, - "LSPosition": { - "line": 9, - "character": 26 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iInstance: I\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc deleted file mode 100644 index 5f209327b5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsInternalModuleAlias.baseline.jsonc +++ /dev/null @@ -1,210 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsInternalModuleAlias.ts === -// module m.m1 { -// export class c { -// } -// } -// module m2 { -// import a1 = m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a1.m1.c(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// import a2 = m.m1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a2.c(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// export import a3 = m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a3.m1.c(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// export import a4 = m.m1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// new a4.c(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (alias) namespace m.m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 66, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 82, - "LSPosition": { - "line": 6, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 104, - "LSPosition": { - "line": 7, - "character": 11 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - } - } - }, - { - "marker": { - "Position": 123, - "LSPosition": { - "line": 8, - "character": 8 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - } - } - }, - { - "marker": { - "Position": 149, - "LSPosition": { - "line": 9, - "character": 18 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 165, - "LSPosition": { - "line": 10, - "character": 8 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 194, - "LSPosition": { - "line": 11, - "character": 18 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - } - } - }, - { - "marker": { - "Position": 213, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(alias) namespace m.m1\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc deleted file mode 100644 index b1241d1974..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLet.baseline.jsonc +++ /dev/null @@ -1,409 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsLet.ts === -// let a = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo() { -// let b = a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let b: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (b) { -// let b1 = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let b1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// module m { -// let c = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let c: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export let d = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let d: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// if (c) { -// let e = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let e: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// let f: () => number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// let g = f; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let g: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// let h: { (a: string): number; (a: number): string; }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// let i = h; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let i: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet a: number\n```\n" - } - } - }, - { - "marker": { - "Position": 37, - "LSPosition": { - "line": 2, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet b: number\n```\n" - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet a: number\n```\n" - } - } - }, - { - "marker": { - "Position": 69, - "LSPosition": { - "line": 4, - "character": 12 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet b1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 8, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet c: number\n```\n" - } - } - }, - { - "marker": { - "Position": 128, - "LSPosition": { - "line": 9, - "character": 15 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet d: number\n```\n" - } - } - }, - { - "marker": { - "Position": 161, - "LSPosition": { - "line": 11, - "character": 12 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet e: number\n```\n" - } - } - }, - { - "marker": { - "Position": 181, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 202, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet g: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 206, - "LSPosition": { - "line": 15, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 209, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 218, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 272, - "LSPosition": { - "line": 18, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet i: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 276, - "LSPosition": { - "line": 18, - "character": 8 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 279, - "LSPosition": { - "line": 19, - "character": 0 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 286, - "LSPosition": { - "line": 20, - "character": 0 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet h: { (a: string): number; (a: number): string; }\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc deleted file mode 100644 index 0aa3ae36d9..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLiteralLikeNames01.baseline.jsonc +++ /dev/null @@ -1,257 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsLiteralLikeNames01.ts === -// class C { -// public 1() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C[1](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// private Infinity() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.Infinity(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// protected NaN() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.NaN(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// static "stringLiteralName"() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C["stringLiteralName"](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// method() { -// this[1](); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C[1](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this["1"](); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C[1](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.Infinity(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.Infinity(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this["Infinity"](); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.Infinity(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// this.NaN(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.NaN(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// C.stringLiteralName(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C["stringLiteralName"](): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 21, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[1](): void\n```\n" - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.Infinity(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 70, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.NaN(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 91, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" - } - } - }, - { - "marker": { - "Position": 145, - "LSPosition": { - "line": 6, - "character": 13 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[1](): void\n```\n" - } - } - }, - { - "marker": { - "Position": 164, - "LSPosition": { - "line": 7, - "character": 13 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[1](): void\n```\n" - } - } - }, - { - "marker": { - "Position": 185, - "LSPosition": { - "line": 8, - "character": 13 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.Infinity(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 210, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.Infinity(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 238, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.NaN(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 255, - "LSPosition": { - "line": 11, - "character": 10 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C[\"stringLiteralName\"](): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc deleted file mode 100644 index 09021e94d2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsLocalFunction.baseline.jsonc +++ /dev/null @@ -1,421 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsLocalFunction.ts === -// function outerFoo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function outerFoo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// function foowithoverload(a: string): string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: number): number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowithoverload(a: any): any { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// function foowith3overload(a: string): string; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: number): number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: boolean): boolean; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foowith3overload(a: any): any { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | function foowith3overload(a: number): number -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// } -// foo("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowithoverload(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowithoverload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: string): string -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foowith3overload(true); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foowith3overload(a: boolean): boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// outerFoo(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function outerFoo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction outerFoo(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 35, - "LSPosition": { - "line": 1, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - } - } - }, - { - "marker": { - "Position": 155, - "LSPosition": { - "line": 3, - "character": 13 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 204, - "LSPosition": { - "line": 4, - "character": 13 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 253, - "LSPosition": { - "line": 5, - "character": 13 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 321, - "LSPosition": { - "line": 8, - "character": 13 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 371, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 421, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 473, - "LSPosition": { - "line": 11, - "character": 13 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\nfunction foowith3overload(a: number): number\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 533, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n" - } - } - }, - { - "marker": { - "Position": 551, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: string): string\n```\n" - } - } - }, - { - "marker": { - "Position": 581, - "LSPosition": { - "line": 16, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowithoverload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 606, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: string): string\n```\n" - } - } - }, - { - "marker": { - "Position": 637, - "LSPosition": { - "line": 18, - "character": 4 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: number): number\n```\n" - } - } - }, - { - "marker": { - "Position": 663, - "LSPosition": { - "line": 19, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foowith3overload(a: boolean): boolean\n```\n" - } - } - }, - { - "marker": { - "Position": 689, - "LSPosition": { - "line": 21, - "character": 0 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction outerFoo(): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc deleted file mode 100644 index e53d6f58bd..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsModules.baseline.jsonc +++ /dev/null @@ -1,416 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsModules.ts === -// namespace m { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var a = m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// var b: typeof m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: typeof m -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m -// | ``` -// | -// | ---------------------------------------------------------------------- -// namespace m1.m2 { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*9*/. -// | ---------------------------------------------------------------------- -// var namespaceElemWithoutExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithoutExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var namespaceElemWithExport = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var namespaceElemWithExport: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var x = m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// var y: typeof m1.m2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var y: typeof m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | namespace m1.m2 -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 1, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 70, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 106, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: typeof m\n```\n" - } - } - }, - { - "marker": { - "Position": 110, - "LSPosition": { - "line": 4, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: typeof m\n```\n" - } - } - }, - { - "marker": { - "Position": 127, - "LSPosition": { - "line": 5, - "character": 14 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m\n```\n" - } - } - }, - { - "marker": { - "Position": 140, - "LSPosition": { - "line": 6, - "character": 10 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - } - } - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 6, - "character": 13 - }, - "Name": "9", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 156, - "LSPosition": { - "line": 7, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithoutExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 204, - "LSPosition": { - "line": 8, - "character": 15 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar namespaceElemWithExport: number\n```\n" - } - } - }, - { - "marker": { - "Position": 240, - "LSPosition": { - "line": 10, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: typeof m1.m2\n```\n" - } - } - }, - { - "marker": { - "Position": 244, - "LSPosition": { - "line": 10, - "character": 8 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - } - } - }, - { - "marker": { - "Position": 247, - "LSPosition": { - "line": 10, - "character": 11 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - } - } - }, - { - "marker": { - "Position": 255, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar y: typeof m1.m2\n```\n" - } - } - }, - { - "marker": { - "Position": 265, - "LSPosition": { - "line": 11, - "character": 14 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1\n```\n" - } - } - }, - { - "marker": { - "Position": 268, - "LSPosition": { - "line": 11, - "character": 17 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nnamespace m1.m2\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc deleted file mode 100644 index 51d767306d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsParameters.baseline.jsonc +++ /dev/null @@ -1,229 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsParameters.ts === -// /** @return *crunch* */ -// function foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void -// | ``` -// | -// | -// | *@return* — *crunch* -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) param: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) optionalParam: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) paramWithInitializer: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) restParam: string[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// param = "Hello"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) param: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// optionalParam = "World"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) optionalParam: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// paramWithInitializer = "Hello"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) paramWithInitializer: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// restParam[0] = "World"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) restParam: string[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 33, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(param: string, optionalParam?: string, paramWithInitializer?: string, ...restParam: string[]): void\n```\n\n\n*@return* — *crunch* " - } - } - }, - { - "marker": { - "Position": 37, - "LSPosition": { - "line": 1, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) param: string\n```\n" - } - } - }, - { - "marker": { - "Position": 52, - "LSPosition": { - "line": 1, - "character": 28 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) optionalParam: string\n```\n" - } - } - }, - { - "marker": { - "Position": 76, - "LSPosition": { - "line": 1, - "character": 52 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" - } - } - }, - { - "marker": { - "Position": 111, - "LSPosition": { - "line": 1, - "character": 87 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) restParam: string[]\n```\n" - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) param: string\n```\n" - } - } - }, - { - "marker": { - "Position": 159, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) optionalParam: string\n```\n" - } - } - }, - { - "marker": { - "Position": 188, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) paramWithInitializer: string\n```\n" - } - } - }, - { - "marker": { - "Position": 224, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) restParam: string[]\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc deleted file mode 100644 index db7ccbdd05..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeAlias.baseline.jsonc +++ /dev/null @@ -1,152 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeAlias.ts === -// class c { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// type t1 = c; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type t1 = c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cInstance: t1 = new c(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type t1 = c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 2, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype t1 = c\n```\n" - } - } - }, - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 2, - "character": 10 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 3, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype t1 = c\n```\n" - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 3, - "character": 24 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc deleted file mode 100644 index 0c212ea09e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInClass.baseline.jsonc +++ /dev/null @@ -1,1008 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInClass.ts === -// class c { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(a: T) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c(a: T): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// method(a: U, b: T) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.method(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance = new c("Hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c(a: string): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cVal = c; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cVal: typeof c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// cInstance.method("hello", "cello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c.method<"hello">(a: "hello", b: string): "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// class c2> { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor(a: T) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c2>(a: T): c2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// method>(a: U, b: T) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c2.method>(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends c -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// var cInstance1 = new c2(cInstance); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance1: c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor c2>(a: c): c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// var cVal2 = c2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cVal2: typeof c2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// cInstance1.method(cInstance, cInstance); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance1: c2> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) c2.method>(a: c, b: c): c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var cInstance: c -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 8, - "LSPosition": { - "line": 0, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c(a: T): c\n```\n" - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 16 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: T\n```\n" - } - } - }, - { - "marker": { - "Position": 32, - "LSPosition": { - "line": 1, - "character": 19 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 47, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.method(a: U, b: T): U\n```\n" - } - } - }, - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 3, - "character": 11 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 60, - "LSPosition": { - "line": 3, - "character": 17 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 3, - "character": 20 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 66, - "LSPosition": { - "line": 3, - "character": 23 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 4, - "character": 15 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 101, - "LSPosition": { - "line": 7, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 7, - "character": 20 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c(a: string): c\n```\n" - } - } - }, - { - "marker": { - "Position": 133, - "LSPosition": { - "line": 8, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cVal: typeof c\n```\n" - } - } - }, - { - "marker": { - "Position": 140, - "LSPosition": { - "line": 8, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 9, - "character": 0 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 153, - "LSPosition": { - "line": 9, - "character": 10 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" - } - } - }, - { - "marker": { - "Position": 185, - "LSPosition": { - "line": 10, - "character": 6 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c2>\n```\n" - } - } - }, - { - "marker": { - "Position": 188, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends c\n```\n" - } - } - }, - { - "marker": { - "Position": 198, - "LSPosition": { - "line": 10, - "character": 19 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 215, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c2>(a: T): c2\n```\n" - } - } - }, - { - "marker": { - "Position": 227, - "LSPosition": { - "line": 11, - "character": 16 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: T\n```\n" - } - } - }, - { - "marker": { - "Position": 230, - "LSPosition": { - "line": 11, - "character": 19 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends c\n```\n" - } - } - }, - { - "marker": { - "Position": 245, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c2.method>(a: U, b: T): U\n```\n" - } - } - }, - { - "marker": { - "Position": 252, - "LSPosition": { - "line": 13, - "character": 11 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends c\n```\n" - } - } - }, - { - "marker": { - "Position": 262, - "LSPosition": { - "line": 13, - "character": 21 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c\n```\n" - } - } - }, - { - "marker": { - "Position": 273, - "LSPosition": { - "line": 13, - "character": 32 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 276, - "LSPosition": { - "line": 13, - "character": 35 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends c\n```\n" - } - } - }, - { - "marker": { - "Position": 279, - "LSPosition": { - "line": 13, - "character": 38 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 282, - "LSPosition": { - "line": 13, - "character": 41 - }, - "Name": "31", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends c\n```\n" - } - } - }, - { - "marker": { - "Position": 302, - "LSPosition": { - "line": 14, - "character": 15 - }, - "Name": "32", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 317, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "33", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance1: c2>\n```\n" - } - } - }, - { - "marker": { - "Position": 334, - "LSPosition": { - "line": 17, - "character": 21 - }, - "Name": "34", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor c2>(a: c): c2>\n```\n" - } - } - }, - { - "marker": { - "Position": 337, - "LSPosition": { - "line": 17, - "character": 24 - }, - "Name": "35", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 353, - "LSPosition": { - "line": 18, - "character": 4 - }, - "Name": "36", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cVal2: typeof c2\n```\n" - } - } - }, - { - "marker": { - "Position": 361, - "LSPosition": { - "line": 18, - "character": 12 - }, - "Name": "37", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass c2>\n```\n" - } - } - }, - { - "marker": { - "Position": 365, - "LSPosition": { - "line": 19, - "character": 0 - }, - "Name": "38", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance1: c2>\n```\n" - } - } - }, - { - "marker": { - "Position": 376, - "LSPosition": { - "line": 19, - "character": 11 - }, - "Name": "39", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) c2.method>(a: c, b: c): c\n```\n" - } - } - }, - { - "marker": { - "Position": 383, - "LSPosition": { - "line": 19, - "character": 18 - }, - "Name": "40", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - }, - { - "marker": { - "Position": 394, - "LSPosition": { - "line": 19, - "character": 29 - }, - "Name": "41", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar cInstance: c\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc deleted file mode 100644 index 89635c55b6..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunction.baseline.jsonc +++ /dev/null @@ -1,300 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInFunction.ts === -// function foo(a: U) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(a: U): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// foo("Hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo<"Hello">(a: "Hello"): "Hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo2(a: U) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo2(a: U): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -// return a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// foo2("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo2<"hello">(a: "hello"): "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(a: U): U\n```\n" - } - } - }, - { - "marker": { - "Position": 13, - "LSPosition": { - "line": 0, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 16, - "LSPosition": { - "line": 0, - "character": 16 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 19, - "LSPosition": { - "line": 0, - "character": 19 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 35, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 3, - "character": 0 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo<\"Hello\">(a: \"Hello\"): \"Hello\"\n```\n" - } - } - }, - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo2(a: U): U\n```\n" - } - } - }, - { - "marker": { - "Position": 68, - "LSPosition": { - "line": 4, - "character": 14 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends string\n```\n" - } - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 4, - "character": 32 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 89, - "LSPosition": { - "line": 4, - "character": 35 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends string\n```\n" - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 5, - "character": 11 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 110, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo2<\"hello\">(a: \"hello\"): \"hello\"\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc deleted file mode 100644 index 9e7a964b12..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.baseline.jsonc +++ /dev/null @@ -1,78 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts === -// type MixinCtor = new () => A & { constructor: MixinCtor }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) A -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) A -// | ``` -// | -// | ---------------------------------------------------------------------- -// type MixinCtor = new () => A & { constructor: { constructor: MixinCtor } }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) A -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 30, - "LSPosition": { - "line": 0, - "character": 30 - }, - "Name": "0", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) A\n```\n" - } - } - }, - { - "marker": { - "Position": 59, - "LSPosition": { - "line": 0, - "character": 59 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) A\n```\n" - } - } - }, - { - "marker": { - "Position": 139, - "LSPosition": { - "line": 1, - "character": 74 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) A\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc deleted file mode 100644 index 5d6cb24e7d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInInterface.baseline.jsonc +++ /dev/null @@ -1,1582 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInInterface.ts === -// interface I { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// new (a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// (a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// method(a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var iVal: I; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// new iVal("hello", "hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal("hello", "hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal.method("hello", "hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I.method<"hello">(a: "hello", b: string): "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// interface I1> { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// new >(a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// >(a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// method>(a: U, b: T): U; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I1.method>(a: U, b: T): U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) a: U -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) b: T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) U extends I -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var iVal1: I1>; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | interface I -// | ``` -// | -// | ---------------------------------------------------------------------- -// new iVal1(iVal, iVal); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal1(iVal, iVal); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// iVal1.method(iVal, iVal); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal1: I1> -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) I1.method>(a: I, b: I): I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var iVal: I -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - } - } - }, - { - "marker": { - "Position": 12, - "LSPosition": { - "line": 0, - "character": 12 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 29, - "LSPosition": { - "line": 1, - "character": 12 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 32, - "LSPosition": { - "line": 1, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 35, - "LSPosition": { - "line": 1, - "character": 18 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 38, - "LSPosition": { - "line": 1, - "character": 21 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 42, - "LSPosition": { - "line": 1, - "character": 25 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 50, - "LSPosition": { - "line": 2, - "character": 5 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 53, - "LSPosition": { - "line": 2, - "character": 8 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 56, - "LSPosition": { - "line": 2, - "character": 11 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 59, - "LSPosition": { - "line": 2, - "character": 14 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 62, - "LSPosition": { - "line": 2, - "character": 17 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 66, - "LSPosition": { - "line": 2, - "character": 21 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 73, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method(a: U, b: T): U\n```\n" - } - } - }, - { - "marker": { - "Position": 80, - "LSPosition": { - "line": 3, - "character": 11 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 83, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 3, - "character": 17 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 89, - "LSPosition": { - "line": 3, - "character": 20 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 92, - "LSPosition": { - "line": 3, - "character": 23 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 96, - "LSPosition": { - "line": 3, - "character": 27 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U\n```\n" - } - } - }, - { - "marker": { - "Position": 105, - "LSPosition": { - "line": 5, - "character": 4 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 111, - "LSPosition": { - "line": 5, - "character": 10 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - } - } - }, - { - "marker": { - "Position": 126, - "LSPosition": { - "line": 6, - "character": 4 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 150, - "LSPosition": { - "line": 7, - "character": 0 - }, - "Name": "25", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 174, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "26", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 179, - "LSPosition": { - "line": 8, - "character": 5 - }, - "Name": "27", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I.method<\"hello\">(a: \"hello\", b: string): \"hello\"\n```\n" - } - } - }, - { - "marker": { - "Position": 215, - "LSPosition": { - "line": 9, - "character": 10 - }, - "Name": "28", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I1>\n```\n" - } - } - }, - { - "marker": { - "Position": 218, - "LSPosition": { - "line": 9, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 228, - "LSPosition": { - "line": 9, - "character": 23 - }, - "Name": "30", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - } - } - }, - { - "marker": { - "Position": 250, - "LSPosition": { - "line": 10, - "character": 9 - }, - "Name": "31", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 260, - "LSPosition": { - "line": 10, - "character": 19 - }, - "Name": "32", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - } - } - }, - { - "marker": { - "Position": 271, - "LSPosition": { - "line": 10, - "character": 30 - }, - "Name": "33", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 274, - "LSPosition": { - "line": 10, - "character": 33 - }, - "Name": "34", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 277, - "LSPosition": { - "line": 10, - "character": 36 - }, - "Name": "35", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 280, - "LSPosition": { - "line": 10, - "character": 39 - }, - "Name": "36", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 284, - "LSPosition": { - "line": 10, - "character": 43 - }, - "Name": "37", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 292, - "LSPosition": { - "line": 11, - "character": 5 - }, - "Name": "38", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 302, - "LSPosition": { - "line": 11, - "character": 15 - }, - "Name": "39", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - } - } - }, - { - "marker": { - "Position": 313, - "LSPosition": { - "line": 11, - "character": 26 - }, - "Name": "40", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 316, - "LSPosition": { - "line": 11, - "character": 29 - }, - "Name": "41", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 319, - "LSPosition": { - "line": 11, - "character": 32 - }, - "Name": "42", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 322, - "LSPosition": { - "line": 11, - "character": 35 - }, - "Name": "43", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 326, - "LSPosition": { - "line": 11, - "character": 39 - }, - "Name": "44", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 333, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "45", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I1.method>(a: U, b: T): U\n```\n" - } - } - }, - { - "marker": { - "Position": 340, - "LSPosition": { - "line": 12, - "character": 11 - }, - "Name": "46", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 350, - "LSPosition": { - "line": 12, - "character": 21 - }, - "Name": "47", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - } - } - }, - { - "marker": { - "Position": 361, - "LSPosition": { - "line": 12, - "character": 32 - }, - "Name": "48", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) a: U\n```\n" - } - } - }, - { - "marker": { - "Position": 364, - "LSPosition": { - "line": 12, - "character": 35 - }, - "Name": "49", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 367, - "LSPosition": { - "line": 12, - "character": 38 - }, - "Name": "50", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) b: T\n```\n" - } - } - }, - { - "marker": { - "Position": 370, - "LSPosition": { - "line": 12, - "character": 41 - }, - "Name": "51", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 374, - "LSPosition": { - "line": 12, - "character": 45 - }, - "Name": "52", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) U extends I\n```\n" - } - } - }, - { - "marker": { - "Position": 383, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "53", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - } - } - }, - { - "marker": { - "Position": 390, - "LSPosition": { - "line": 14, - "character": 11 - }, - "Name": "54", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I1>\n```\n" - } - } - }, - { - "marker": { - "Position": 393, - "LSPosition": { - "line": 14, - "character": 14 - }, - "Name": "55", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ninterface I\n```\n" - } - } - }, - { - "marker": { - "Position": 409, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "56", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - } - } - }, - { - "marker": { - "Position": 415, - "LSPosition": { - "line": 15, - "character": 10 - }, - "Name": "57", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 421, - "LSPosition": { - "line": 15, - "character": 16 - }, - "Name": "58", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 428, - "LSPosition": { - "line": 16, - "character": 0 - }, - "Name": "59", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - } - } - }, - { - "marker": { - "Position": 434, - "LSPosition": { - "line": 16, - "character": 6 - }, - "Name": "60", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 440, - "LSPosition": { - "line": 16, - "character": 12 - }, - "Name": "61", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 447, - "LSPosition": { - "line": 17, - "character": 0 - }, - "Name": "62", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal1: I1>\n```\n" - } - } - }, - { - "marker": { - "Position": 453, - "LSPosition": { - "line": 17, - "character": 6 - }, - "Name": "63", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) I1.method>(a: I, b: I): I\n```\n" - } - } - }, - { - "marker": { - "Position": 460, - "LSPosition": { - "line": 17, - "character": 13 - }, - "Name": "64", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - }, - { - "marker": { - "Position": 466, - "LSPosition": { - "line": 17, - "character": 19 - }, - "Name": "65", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar iVal: I\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc deleted file mode 100644 index bbda7b9577..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.baseline.jsonc +++ /dev/null @@ -1,150 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsTypeParameterInTypeAlias.ts === -// type List = T[] -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type List = T[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T -// | ``` -// | -// | ---------------------------------------------------------------------- -// type List2 = T[]; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type List2 = T[] -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (type parameter) T extends string -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 5, - "LSPosition": { - "line": 0, - "character": 5 - }, - "Name": "0", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype List = T[]\n```\n" - } - } - }, - { - "marker": { - "Position": 10, - "LSPosition": { - "line": 0, - "character": 10 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 15, - "LSPosition": { - "line": 0, - "character": 15 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T\n```\n" - } - } - }, - { - "marker": { - "Position": 24, - "LSPosition": { - "line": 1, - "character": 5 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype List2 = T[]\n```\n" - } - } - }, - { - "marker": { - "Position": 30, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends string\n```\n" - } - } - }, - { - "marker": { - "Position": 50, - "LSPosition": { - "line": 1, - "character": 31 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(type parameter) T extends string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc deleted file mode 100644 index 8cd399f48d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsUsing.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsUsing.ts === -// using a = "a"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | using a: "a" -// | ``` -// | -// | ---------------------------------------------------------------------- -// const f = async () => { -// await using b = { async [Symbol.asyncDispose]() {} }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | await using b: { [Symbol.asyncDispose](): Promise; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// }; -[ - { - "marker": { - "Position": 7, - "LSPosition": { - "line": 0, - "character": 7 - }, - "Name": "a", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nusing a: \"a\"\n```\n" - } - } - }, - { - "marker": { - "Position": 55, - "LSPosition": { - "line": 2, - "character": 16 - }, - "Name": "b", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nawait using b: { [Symbol.asyncDispose](): Promise; }\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc deleted file mode 100644 index e80c22615a..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVar.baseline.jsonc +++ /dev/null @@ -1,355 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsVar.ts === -// var a = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// function foo() { -// var b = a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// module m { -// var c = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var c: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// export var d = 10; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var d: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// var f: () => number; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var g = f; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var g: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var f: () => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// var h: { (a: string): number; (a: number): string; }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// var i = h; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var i: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h(10); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// h("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var h: { (a: string): number; (a: number): string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: number\n```\n" - } - } - }, - { - "marker": { - "Position": 37, - "LSPosition": { - "line": 2, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: number\n```\n" - } - } - }, - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 2, - "character": 12 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: number\n```\n" - } - } - }, - { - "marker": { - "Position": 65, - "LSPosition": { - "line": 5, - "character": 8 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar c: number\n```\n" - } - } - }, - { - "marker": { - "Position": 88, - "LSPosition": { - "line": 6, - "character": 15 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar d: number\n```\n" - } - } - }, - { - "marker": { - "Position": 102, - "LSPosition": { - "line": 8, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 123, - "LSPosition": { - "line": 9, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar g: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 127, - "LSPosition": { - "line": 9, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 130, - "LSPosition": { - "line": 10, - "character": 0 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar f: () => number\n```\n" - } - } - }, - { - "marker": { - "Position": 139, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 193, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar i: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 197, - "LSPosition": { - "line": 12, - "character": 8 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 13, - "character": 0 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 207, - "LSPosition": { - "line": 14, - "character": 0 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar h: { (a: string): number; (a: number): string; }\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc deleted file mode 100644 index f608f7f0c4..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoDisplayPartsVarWithStringTypes01.baseline.jsonc +++ /dev/null @@ -1,79 +0,0 @@ -// === QuickInfo === -=== /quickInfoDisplayPartsVarWithStringTypes01.ts === -// let hello: "hello" | 'hello' = "hello"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let hello: "hello" -// | ``` -// | -// | ---------------------------------------------------------------------- -// let world: 'world' = "world"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let world: "world" -// | ``` -// | -// | ---------------------------------------------------------------------- -// let helloOrWorld: "hello" | 'world'; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | let helloOrWorld: "hello" | "world" -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 4, - "LSPosition": { - "line": 0, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet hello: \"hello\"\n```\n" - } - } - }, - { - "marker": { - "Position": 44, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet world: \"world\"\n```\n" - } - } - }, - { - "marker": { - "Position": 74, - "LSPosition": { - "line": 2, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nlet helloOrWorld: \"hello\" | \"world\"\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc deleted file mode 100644 index 58c5d146ec..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode1.baseline.jsonc +++ /dev/null @@ -1,61 +0,0 @@ -// === QuickInfo === -=== /a.js === -// const foo = { -// f1: (params) => { } -// } -// -// function f2(x) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f2(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo.f1({ x, arguments: [] }); -// } -// -// f2(''); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f2(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 50, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f2(x: any): void\n```\n" - } - } - }, - { - "marker": { - "Position": 94, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f2(x: any): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc deleted file mode 100644 index 270ca1246c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForArgumentsPropertyNameInJsMode2.baseline.jsonc +++ /dev/null @@ -1,57 +0,0 @@ -// === QuickInfo === -=== /a.js === -// function f(x) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// arguments; -// } -// -// f(''); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 9, - "LSPosition": { - "line": 0, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\n" - } - } - }, - { - "marker": { - "Position": 33, - "LSPosition": { - "line": 4, - "character": 0 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(x: any): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc deleted file mode 100644 index 58e3a82f0b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForConstAssertions.baseline.jsonc +++ /dev/null @@ -1,104 +0,0 @@ -// === QuickInfo === -=== /quickInfoForConstAssertions.ts === -// const a = { a: 1 } as const; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -// const b = 1 as const; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -// const c = "c" as const; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -// const d = [1, 2] as const; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type const -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 0, - "character": 22 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - } - } - }, - { - "marker": { - "Position": 44, - "LSPosition": { - "line": 1, - "character": 15 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - } - } - }, - { - "marker": { - "Position": 68, - "LSPosition": { - "line": 2, - "character": 17 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - } - } - }, - { - "marker": { - "Position": 95, - "LSPosition": { - "line": 3, - "character": 20 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype const\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc deleted file mode 100644 index ad5bd08794..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForJSDocCodefence.baseline.jsonc +++ /dev/null @@ -1,81 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocCodefence.ts === -// /** -// * @example -// * ``` -// * 1 + 2 -// * ``` -// */ -// function foo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): string -// | ``` -// | -// | -// | *@example* -// | ``` -// | 1 + 2 -// | ``` -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @example -// * `` -// * 1 + 2 -// * ` -// */ -// function boo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function boo(): string -// | ``` -// | -// | -// | *@example* — `` -// | 1 + 2 -// | ` -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -[ - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example*\n```\n1 + 2\n```\n" - } - } - }, - { - "marker": { - "Position": 129, - "LSPosition": { - "line": 15, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction boo(): string\n```\n\n\n*@example* — ``\n1 + 2\n`\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc deleted file mode 100644 index 7f38a922c6..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForJSDocUnknownTag.baseline.jsonc +++ /dev/null @@ -1,199 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocUnknownTag.ts === -// /** -// * @example -// * if (true) { -// * foo() -// * } -// */ -// function foo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): string -// | ``` -// | -// | -// | *@example* — if (true) { -// | foo() -// | } -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// @example -// { -// foo() -// } -// */ -// function foo2() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo2(): string -// | ``` -// | -// | -// | *@example* — { -// | foo() -// | } -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @example -// * x y -// * 12345 -// * b -// */ -// function moo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function moo(): string -// | ``` -// | -// | -// | *@example* — x y -// | 12345 -// | b -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @func -// * @example -// * x y -// * 12345 -// * b -// */ -// function boo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function boo(): string -// | ``` -// | -// | -// | *@func* -// | -// | *@example* — x y -// | 12345 -// | b -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -// /** -// * @func -// * @example x y -// * 12345 -// * b -// */ -// function goo() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function goo(): string -// | ``` -// | -// | -// | *@func* -// | -// | *@example* — x y -// | 12345 -// | b -// | -// | ---------------------------------------------------------------------- -// return '2'; -// } -[ - { - "marker": { - "Position": 64, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): string\n```\n\n\n*@example* — if (true) {\n foo()\n}\n" - } - } - }, - { - "marker": { - "Position": 134, - "LSPosition": { - "line": 15, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo2(): string\n```\n\n\n*@example* — {\n foo()\n}\n" - } - } - }, - { - "marker": { - "Position": 219, - "LSPosition": { - "line": 24, - "character": 10 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction moo(): string\n```\n\n\n*@example* — x y\n 12345\n b\n" - } - } - }, - { - "marker": { - "Position": 313, - "LSPosition": { - "line": 34, - "character": 10 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction boo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n 12345\n b\n" - } - } - }, - { - "marker": { - "Position": 426, - "LSPosition": { - "line": 43, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction goo(): string\n```\n\n\n*@func*\n\n*@example* — x y\n12345\n b\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc deleted file mode 100644 index 9944a3a07f..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForJSDocWithHttpLinks.baseline.jsonc +++ /dev/null @@ -1,146 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocWithHttpLinks.js === -// /** @typedef {number} https://wat */ -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// -// /** -// * @typedef {Object} Oops -// * @property {number} https://wass -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// */ -// -// -// /** @callback http://vad */ -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// -// /** @see https://hvad */ -// var see1 = true -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see1: boolean -// | ``` -// | -// | -// | *@see* `https` — ://hvad -// | ---------------------------------------------------------------------- -// -// /** @see {@link https://hva} */ -// var see2 = true -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see2: boolean -// | ``` -// | -// | -// | *@see* — https://hva -// | ---------------------------------------------------------------------- -// -// /** {@link https://hvaD} */ -// var see3 = true -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see3: boolean -// | ``` -// | https://hvaD -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 22, - "LSPosition": { - "line": 0, - "character": 22 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 88, - "LSPosition": { - "line": 4, - "character": 21 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 120, - "LSPosition": { - "line": 8, - "character": 14 - }, - "Name": "3", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 164, - "LSPosition": { - "line": 11, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see1: boolean\n```\n\n\n*@see* `https` — ://hvad " - } - } - }, - { - "marker": { - "Position": 213, - "LSPosition": { - "line": 14, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — https://hva " - } - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 17, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see3: boolean\n```\nhttps://hvaD" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc deleted file mode 100644 index fcd61bd90e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForJSDocWithUnresolvedHttpLinks.baseline.jsonc +++ /dev/null @@ -1,59 +0,0 @@ -// === QuickInfo === -=== /quickInfoForJSDocWithHttpLinks.js === -// /** @see {@link https://hva} */ -// var see2 = true -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see2: boolean -// | ``` -// | -// | -// | *@see* — https://hva -// | ---------------------------------------------------------------------- -// -// /** {@link https://hvaD} */ -// var see3 = true -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var see3: boolean -// | ``` -// | https://hvaD -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 36, - "LSPosition": { - "line": 1, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see2: boolean\n```\n\n\n*@see* — https://hva " - } - } - }, - { - "marker": { - "Position": 81, - "LSPosition": { - "line": 4, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar see3: boolean\n```\nhttps://hvaD" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc deleted file mode 100644 index 2a6a51a9be..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName03.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName03.ts === -// interface Options { -// /** -// * A description of foo -// */ -// foo: string; -// } -// -// function f({ foo }: Options) { -// foo; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var foo: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 8, - "character": 7 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar foo: string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc deleted file mode 100644 index 96f0152680..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName04.baseline.jsonc +++ /dev/null @@ -1,68 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName04.ts === -// interface Options { -// /** -// * A description of 'a' -// */ -// a: { -// /** -// * A description of 'b' -// */ -// b: string; -// } -// } -// -// function f({ a, a: { b } }: Options) { -// a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: { b: string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// b; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var b: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 193, - "LSPosition": { - "line": 13, - "character": 5 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: { b: string; }\n```\n" - } - } - }, - { - "marker": { - "Position": 200, - "LSPosition": { - "line": 14, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar b: string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc deleted file mode 100644 index 26b721dc7a..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName05.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName05.ts === -// interface A { -// /** -// * A description of a -// */ -// a: number; -// } -// interface B { -// a: string; -// } -// -// function f({ a }: A | B) { -// a; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var a: string | number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 137, - "LSPosition": { - "line": 11, - "character": 5 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar a: string | number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc deleted file mode 100644 index 2abcbd5a35..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoForObjectBindingElementName06.baseline.jsonc +++ /dev/null @@ -1,46 +0,0 @@ -// === QuickInfo === -=== /quickInfoForObjectBindingElementName06.ts === -// type Foo = { -// /** -// * Thing is a bar -// */ -// isBar: boolean -// -// /** -// * Thing is a baz -// */ -// isBaz: boolean -// } -// -// function f(): Foo { -// return undefined as any -// } -// -// const { isBaz: isBar } = f(); -// isBar; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const isBar: boolean -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 217, - "LSPosition": { - "line": 17, - "character": 5 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst isBar: boolean\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc deleted file mode 100644 index d5ab03079f..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoImportMeta.baseline.jsonc +++ /dev/null @@ -1,47 +0,0 @@ -// === QuickInfo === -=== /foo.ts === -// /// -// /// -// import.meta; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) ImportMetaExpression.meta: ImportMeta -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 77, - "LSPosition": { - "line": 2, - "character": 2 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 84, - "LSPosition": { - "line": 2, - "character": 9 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) ImportMetaExpression.meta: ImportMeta\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc deleted file mode 100644 index 3e962e1430..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoInheritDoc.baseline.jsonc +++ /dev/null @@ -1,149 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc.ts === -// abstract class BaseClass { -// /** -// * Useful description always applicable -// * -// * @returns {string} Useful description of return value always applicable. -// */ -// public static doSomethingUseful(stuff?: any): string { -// throw new Error('Must be implemented by subclass'); -// } -// -// /** -// * BaseClass.func1 -// * @param {any} stuff1 BaseClass.func1.stuff1 -// * @returns {void} BaseClass.func1.returns -// */ -// public static func1(stuff1: any): void { -// } -// -// /** -// * Applicable description always. -// */ -// public static readonly someProperty: string = 'general value'; -// } -// -// -// -// -// class SubClass extends BaseClass { -// -// /** -// * @inheritDoc -// * -// * @param {{ tiger: string; lion: string; }} [mySpecificStuff] Description of my specific parameter. -// */ -// public static doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string -// | ``` -// | -// | -// | *@inheritDoc* -// | -// | *@param* `mySpecificStuff` — Description of my specific parameter. -// | -// | ---------------------------------------------------------------------- -// let useful = ''; -// -// // do something useful to useful -// -// return useful; -// } -// -// /** -// * @inheritDoc -// * @param {any} stuff1 SubClass.func1.stuff1 -// * @returns {void} SubClass.func1.returns -// */ -// public static func1(stuff1: any): void { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) SubClass.func1(stuff1: any): void -// | ``` -// | -// | -// | *@inheritDoc* -// | -// | *@param* `stuff1` — SubClass.func1.stuff1 -// | -// | -// | *@returns* — SubClass.func1.returns -// | -// | ---------------------------------------------------------------------- -// } -// -// /** -// * text over tag -// * @inheritDoc -// * text after tag -// */ -// public static readonly someProperty: string = 'specific to this class value' -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) SubClass.someProperty: string -// | ``` -// | text over tag -// | -// | *@inheritDoc* — text after tag -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 817, - "LSPosition": { - "line": 34, - "character": 18 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) SubClass.doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string\n```\n\n\n*@inheritDoc*\n\n*@param* `mySpecificStuff` — Description of my specific parameter.\n" - } - } - }, - { - "marker": { - "Position": 1143, - "LSPosition": { - "line": 47, - "character": 18 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) SubClass.func1(stuff1: any): void\n```\n\n\n*@inheritDoc*\n\n*@param* `stuff1` — SubClass.func1.stuff1\n\n\n*@returns* — SubClass.func1.returns\n" - } - } - }, - { - "marker": { - "Position": 1282, - "LSPosition": { - "line": 55, - "character": 27 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) SubClass.someProperty: string\n```\ntext over tag\n\n*@inheritDoc* — text after tag\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc deleted file mode 100644 index d29548d380..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoInheritDoc2.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc2.ts === -// class Base { -// /** -// * Base.prop -// */ -// prop: T | undefined; -// } -// -// class SubClass extends Base { -// /** -// * @inheritdoc -// * SubClass.prop -// */ -// prop: T | undefined; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) SubClass.prop: T -// | ``` -// | -// | -// | *@inheritdoc* — SubClass.prop -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 173, - "LSPosition": { - "line": 12, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) SubClass.prop: T\n```\n\n\n*@inheritdoc* — SubClass.prop\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc deleted file mode 100644 index f76416b1da..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoInheritDoc3.baseline.jsonc +++ /dev/null @@ -1,46 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc3.ts === -// function getBaseClass() { -// return class Base { -// /** -// * Base.prop -// */ -// prop: string | undefined; -// } -// } -// class SubClass extends getBaseClass() { -// /** -// * @inheritdoc -// * SubClass.prop -// */ -// prop: string | undefined; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) SubClass.prop: string -// | ``` -// | -// | -// | *@inheritdoc* — SubClass.prop -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 237, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) SubClass.prop: string\n```\n\n\n*@inheritdoc* — SubClass.prop\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc deleted file mode 100644 index fa23158f8c..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoInheritDoc4.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc4.ts === -// var A: any; -// -// class B extends A { -// /** -// * @inheritdoc -// */ -// static value() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.value(): any -// | ``` -// | -// | -// | *@inheritdoc* -// | ---------------------------------------------------------------------- -// return undefined; -// } -// } -[ - { - "marker": { - "Position": 79, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc deleted file mode 100644 index f86c973bda..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoInheritDoc5.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc5.js === -// function A() {} -// -// class B extends A { -// /** -// * @inheritdoc -// */ -// static value() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.value(): any -// | ``` -// | -// | -// | *@inheritdoc* -// | ---------------------------------------------------------------------- -// return undefined; -// } -// } -[ - { - "marker": { - "Position": 83, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc deleted file mode 100644 index 9e651b20ea..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoInheritDoc6.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === QuickInfo === -=== /quickInfoInheritDoc6.js === -// class B extends UNRESOLVED_VALUE_DEFINITELY_DOES_NOT_EXIST { -// /** -// * @inheritdoc -// */ -// static value() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.value(): any -// | ``` -// | -// | -// | *@inheritdoc* -// | ---------------------------------------------------------------------- -// return undefined; -// } -// } -[ - { - "marker": { - "Position": 107, - "LSPosition": { - "line": 4, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.value(): any\n```\n\n\n*@inheritdoc*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc deleted file mode 100644 index 6bc22d3678..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJSDocAtBeforeSpace.baseline.jsonc +++ /dev/null @@ -1,99 +0,0 @@ -// === QuickInfo === -=== /quickInfoJSDocAtBeforeSpace.ts === -// /** -// * @return Don't @ me -// */ -// function f() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | -// | -// | *@return* — Don't @ me -// | -// | ---------------------------------------------------------------------- -// /** -// * @return One final @ -// */ -// function g() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function g(): void -// | ``` -// | -// | -// | *@return* — One final @ -// | -// | ---------------------------------------------------------------------- -// /** -// * @return An @ -// * But another line -// */ -// function h() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function h(): void -// | ``` -// | -// | -// | *@return* — An @ -// | But another line -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 39, - "LSPosition": { - "line": 3, - "character": 9 - }, - "Name": "f", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\n\n\n*@return* — Don't @ me\n" - } - } - }, - { - "marker": { - "Position": 87, - "LSPosition": { - "line": 7, - "character": 9 - }, - "Name": "g", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction g(): void\n```\n\n\n*@return* — One final @\n" - } - } - }, - { - "marker": { - "Position": 148, - "LSPosition": { - "line": 12, - "character": 9 - }, - "Name": "h", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction h(): void\n```\n\n\n*@return* — An @\nBut another line\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc deleted file mode 100644 index cccda6068d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJSDocTags.baseline.jsonc +++ /dev/null @@ -1,396 +0,0 @@ -// === QuickInfo === -=== /quickInfoJSDocTags.ts === -// /** -// * This is class Foo. -// * @mytag comment1 comment2 -// */ -// class Foo { -// /** -// * This is the constructor. -// * @myjsdoctag this is a comment -// */ -// constructor(value: number) {} -// /** -// * method1 documentation -// * @mytag comment1 comment2 -// */ -// static method1() {} -// /** -// * @mytag -// */ -// method2() {} -// /** -// * @mytag comment1 comment2 -// */ -// property1: string; -// /** -// * @mytag1 some comments -// * some more comments about mytag1 -// * @mytag2 -// * here all the comments are on a new line -// * @mytag3 -// * @mytag -// */ -// property2: number; -// /** -// * @returns {number} a value -// */ -// method3(): number { return 3; } -// /** -// * @param {string} foo A value. -// * @returns {number} Another value -// * @mytag -// */ -// method4(foo: string): number { return 3; } -// /** @mytag */ -// method5() {} -// /** method documentation -// * @mytag a JSDoc tag -// */ -// newMethod() {} -// } -// var foo = new Foo(4); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | constructor Foo(value: number): Foo -// | ``` -// | This is the constructor. -// | -// | *@myjsdoctag* — this is a comment -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*10*/. -// | ---------------------------------------------------------------------- -// Foo.method1(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class Foo -// | ``` -// | This is class Foo. -// | -// | *@mytag* — comment1 comment2 -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method1(): void -// | ``` -// | method1 documentation -// | -// | *@mytag* — comment1 comment2 -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*11*/. -// | ---------------------------------------------------------------------- -// foo.method2(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method2(): void -// | ``` -// | -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*12*/. -// | ---------------------------------------------------------------------- -// foo.method3(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method3(): number -// | ``` -// | -// | -// | *@returns* — a value -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*13*/. -// | ---------------------------------------------------------------------- -// foo.method4(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method4(foo: string): number -// | ``` -// | -// | -// | *@param* `foo` — A value. -// | -// | -// | *@returns* — Another value -// | -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// foo.property1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo.property1: string -// | ``` -// | -// | -// | *@mytag* — comment1 comment2 -// | -// | ---------------------------------------------------------------------- -// foo.property2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo.property2: number -// | ``` -// | -// | -// | *@mytag1* — some comments -// | some more comments about mytag1 -// | -// | -// | *@mytag2* — here all the comments are on a new line -// | -// | -// | *@mytag3* -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// foo.method5(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Foo.method5(): void -// | ``` -// | -// | -// | *@mytag* -// | ---------------------------------------------------------------------- -// foo.newMet -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*14*/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 977, - "LSPosition": { - "line": 49, - "character": 14 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconstructor Foo(value: number): Foo\n```\nThis is the constructor.\n\n*@myjsdoctag* — this is a comment\n" - } - } - }, - { - "marker": { - "Position": 981, - "LSPosition": { - "line": 49, - "character": 18 - }, - "Name": "10", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 985, - "LSPosition": { - "line": 50, - "character": 0 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass Foo\n```\nThis is class Foo.\n\n*@mytag* — comment1 comment2\n" - } - } - }, - { - "marker": { - "Position": 989, - "LSPosition": { - "line": 50, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method1(): void\n```\nmethod1 documentation\n\n*@mytag* — comment1 comment2\n" - } - } - }, - { - "marker": { - "Position": 997, - "LSPosition": { - "line": 50, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 1004, - "LSPosition": { - "line": 51, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method2(): void\n```\n\n\n*@mytag*" - } - } - }, - { - "marker": { - "Position": 1012, - "LSPosition": { - "line": 51, - "character": 12 - }, - "Name": "12", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 1019, - "LSPosition": { - "line": 52, - "character": 4 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method3(): number\n```\n\n\n*@returns* — a value\n" - } - } - }, - { - "marker": { - "Position": 1027, - "LSPosition": { - "line": 52, - "character": 12 - }, - "Name": "13", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 1034, - "LSPosition": { - "line": 53, - "character": 4 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method4(foo: string): number\n```\n\n\n*@param* `foo` — A value.\n\n\n*@returns* — Another value\n\n\n*@mytag*" - } - } - }, - { - "marker": { - "Position": 1049, - "LSPosition": { - "line": 54, - "character": 4 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo.property1: string\n```\n\n\n*@mytag* — comment1 comment2\n" - } - } - }, - { - "marker": { - "Position": 1064, - "LSPosition": { - "line": 55, - "character": 4 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo.property2: number\n```\n\n\n*@mytag1* — some comments\nsome more comments about mytag1\n\n\n*@mytag2* — here all the comments are on a new line\n\n\n*@mytag3*\n\n*@mytag*" - } - } - }, - { - "marker": { - "Position": 1079, - "LSPosition": { - "line": 56, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Foo.method5(): void\n```\n\n\n*@mytag*" - } - } - }, - { - "marker": { - "Position": 1100, - "LSPosition": { - "line": 57, - "character": 10 - }, - "Name": "14", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc deleted file mode 100644 index 9b7306bd60..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDoc.baseline.jsonc +++ /dev/null @@ -1,363 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDoc.ts === -// /** -// * A constant -// * @deprecated -// */ -// var foo = "foo"; -// -// /** -// * A function -// * @deprecated -// */ -// function fn() { } -// -// /** -// * A class -// * @deprecated -// */ -// class C { -// /** -// * A field -// * @deprecated -// */ -// field = "field"; -// -// /** -// * A getter -// * @deprecated -// */ -// get getter() { -// return; -// } -// -// /** -// * A method -// * @deprecated -// */ -// m() { } -// -// get a() { -// this.field; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.field: string -// | ``` -// | A field -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.getter; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) C.getter: void -// | ``` -// | A getter -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.m(): void -// | ``` -// | A method -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// foo; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var foo: string -// | ``` -// | A constant -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// C/; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class C -// | ``` -// | A class -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// fn(); -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*5*/. -// | ---------------------------------------------------------------------- -// -// return 1; -// } -// -// set a(value: number) { -// this.field; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.field: string -// | ``` -// | A field -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.getter; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) C.getter: void -// | ``` -// | A getter -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// this.m; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.m(): void -// | ``` -// | A method -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// foo; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var foo: string -// | ``` -// | A constant -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// C; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | class C -// | ``` -// | A class -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// fn(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function fn(): void -// | ``` -// | A function -// | -// | *@deprecated* -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 416, - "LSPosition": { - "line": 38, - "character": 18 - }, - "Name": "0", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 437, - "LSPosition": { - "line": 39, - "character": 19 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 453, - "LSPosition": { - "line": 40, - "character": 14 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 466, - "LSPosition": { - "line": 41, - "character": 11 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 477, - "LSPosition": { - "line": 42, - "character": 9 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 492, - "LSPosition": { - "line": 43, - "character": 12 - }, - "Name": "5", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 565, - "LSPosition": { - "line": 49, - "character": 18 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.field: string\n```\nA field\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 586, - "LSPosition": { - "line": 50, - "character": 19 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) C.getter: void\n```\nA getter\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 602, - "LSPosition": { - "line": 51, - "character": 14 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.m(): void\n```\nA method\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 615, - "LSPosition": { - "line": 52, - "character": 11 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar foo: string\n```\nA constant\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 626, - "LSPosition": { - "line": 53, - "character": 9 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nclass C\n```\nA class\n\n*@deprecated*" - } - } - }, - { - "marker": { - "Position": 638, - "LSPosition": { - "line": 54, - "character": 10 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction fn(): void\n```\nA function\n\n*@deprecated*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc deleted file mode 100644 index 19796c5e87..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocAlias.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === QuickInfo === -=== /b.ts === -// import { A } from "./a"; -// A() -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 26, - "LSPosition": { - "line": 1, - "character": 1 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc deleted file mode 100644 index ebcd3ed5b1..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocGetterSetter.baseline.jsonc +++ /dev/null @@ -1,291 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocGetterSetter.ts === -// class A { -// /** -// * getter A -// * @returns return A -// */ -// get x(): string { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// return ""; -// } -// /** -// * setter A -// * @param value foo A -// * @todo empty jsdoc -// */ -// set x(value) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// } -// // override both getter and setter -// class B extends A { -// /** -// * getter B -// * @returns return B -// */ -// get x(): string { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) B.x: string -// | ``` -// | getter B -// | -// | *@returns* — return B -// | -// | ---------------------------------------------------------------------- -// return ""; -// } -// /** -// * setter B -// * @param value foo B -// */ -// set x(vale) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) B.x: string -// | ``` -// | getter B -// | -// | *@returns* — return B -// | -// | ---------------------------------------------------------------------- -// } -// // not override -// class C extends A { } -// // only override setter -// class D extends A { -// /** -// * setter D -// * @param value foo D -// */ -// set x(val: string) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) D.x: string -// | ``` -// | setter D -// | -// | *@param* `value` — foo D -// | -// | ---------------------------------------------------------------------- -// } -// new A().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// new B().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) B.x: string -// | ``` -// | getter B -// | -// | *@returns* — return B -// | -// | ---------------------------------------------------------------------- -// new C().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) A.x: string -// | ``` -// | getter A -// | -// | *@returns* — return A -// | -// | ---------------------------------------------------------------------- -// new D().x = "1"; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (accessor) D.x: string -// | ``` -// | setter D -// | -// | *@param* `value` — foo D -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 75, - "LSPosition": { - "line": 5, - "character": 8 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - } - } - }, - { - "marker": { - "Position": 205, - "LSPosition": { - "line": 13, - "character": 8 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - } - } - }, - { - "marker": { - "Position": 340, - "LSPosition": { - "line": 21, - "character": 8 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" - } - } - }, - { - "marker": { - "Position": 445, - "LSPosition": { - "line": 28, - "character": 8 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" - } - } - }, - { - "marker": { - "Position": 607, - "LSPosition": { - "line": 38, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" - } - } - }, - { - "marker": { - "Position": 636, - "LSPosition": { - "line": 40, - "character": 8 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - } - } - }, - { - "marker": { - "Position": 653, - "LSPosition": { - "line": 41, - "character": 8 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) B.x: string\n```\ngetter B\n\n*@returns* — return B\n" - } - } - }, - { - "marker": { - "Position": 670, - "LSPosition": { - "line": 42, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) A.x: string\n```\ngetter A\n\n*@returns* — return A\n" - } - } - }, - { - "marker": { - "Position": 687, - "LSPosition": { - "line": 43, - "character": 8 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(accessor) D.x: string\n```\nsetter D\n\n*@param* `value` — foo D\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc deleted file mode 100644 index cea936d462..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocInheritage.baseline.jsonc +++ /dev/null @@ -1,684 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocInheritage.ts === -// interface A { -// /** -// * @description A.foo1 -// */ -// foo1: number; -// /** -// * @description A.foo2 -// */ -// foo2: (para1: string) => number; -// } -// -// interface B { -// /** -// * @description B.foo1 -// */ -// foo1: number; -// /** -// * @description B.foo2 -// */ -// foo2: (para2: string) => number; -// } -// -// // implement multi interfaces with duplicate name -// // method for function signature -// class C implements A, B { -// foo1: number = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2(q: string) { return 1 } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.foo2(q: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// // implement multi interfaces with duplicate name -// // property for function signature -// class D implements A, B { -// foo1: number = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2 = (q: string) => { return 1 } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo2: (q: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// new C().foo1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) C.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new C().foo2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.foo2(q: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new D().foo1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new D().foo2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) D.foo2: (q: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// class Base1 { -// /** -// * @description Base1.foo1 -// */ -// foo1: number = 1; -// -// /** -// * -// * @param q Base1.foo2 parameter -// * @returns Base1.foo2 return -// */ -// foo2(q: string) { return 1 } -// } -// -// // extends class and implement interfaces with duplicate name -// // property override method -// class Drived1 extends Base1 implements A { -// foo1: number = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived1.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2(para1: string) { return 1 }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived1.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// // extends class and implement interfaces with duplicate name -// // method override method -// class Drived2 extends Base1 implements B { -// foo1: number = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2 = (para1: string) => { return 1; }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// class Base2 { -// /** -// * @description Base2.foo1 -// */ -// foo1: number = 1; -// /** -// * -// * @param q Base2.foo2 parameter -// * @returns Base2.foo2 return -// */ -// foo2(q: string) { return 1 } -// } -// -// // extends class and implement interfaces with duplicate name -// // property override method -// class Drived3 extends Base2 implements A { -// foo1: number = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived3.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2(para1: string) { return 1 }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived3.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// // extends class and implement interfaces with duplicate name -// // method override method -// class Drived4 extends Base2 implements B { -// foo1: number = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// foo2 = (para1: string) => { return 1; }; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// new Drived1().foo1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived1.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived1().foo2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived1.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived2().foo1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived2().foo2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived2.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived3().foo1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived3.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived3().foo2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Drived3.foo2(para1: string): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived4().foo1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo1: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// new Drived4().foo2; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Drived4.foo2: (para1: string) => number -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 429, - "LSPosition": { - "line": 25, - "character": 4 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 451, - "LSPosition": { - "line": 26, - "character": 4 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" - } - } - }, - { - "marker": { - "Position": 598, - "LSPosition": { - "line": 32, - "character": 4 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 620, - "LSPosition": { - "line": 33, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 666, - "LSPosition": { - "line": 36, - "character": 8 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) C.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 680, - "LSPosition": { - "line": 37, - "character": 8 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.foo2(q: string): number\n```\n" - } - } - }, - { - "marker": { - "Position": 694, - "LSPosition": { - "line": 38, - "character": 8 - }, - "Name": "7", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 708, - "LSPosition": { - "line": 39, - "character": 8 - }, - "Name": "8", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) D.foo2: (q: string) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 1069, - "LSPosition": { - "line": 58, - "character": 4 - }, - "Name": "9", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived1.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1091, - "LSPosition": { - "line": 59, - "character": 4 - }, - "Name": "10", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1263, - "LSPosition": { - "line": 65, - "character": 4 - }, - "Name": "11", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1285, - "LSPosition": { - "line": 66, - "character": 4 - }, - "Name": "12", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 1681, - "LSPosition": { - "line": 85, - "character": 4 - }, - "Name": "13", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived3.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1703, - "LSPosition": { - "line": 86, - "character": 4 - }, - "Name": "14", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1875, - "LSPosition": { - "line": 92, - "character": 4 - }, - "Name": "15", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1897, - "LSPosition": { - "line": 93, - "character": 4 - }, - "Name": "16", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 1955, - "LSPosition": { - "line": 96, - "character": 14 - }, - "Name": "17", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived1.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 1975, - "LSPosition": { - "line": 97, - "character": 14 - }, - "Name": "18", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived1.foo2(para1: string): number\n```\n" - } - } - }, - { - "marker": { - "Position": 1995, - "LSPosition": { - "line": 98, - "character": 14 - }, - "Name": "19", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2015, - "LSPosition": { - "line": 99, - "character": 14 - }, - "Name": "20", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived2.foo2: (para1: string) => number\n```\n" - } - } - }, - { - "marker": { - "Position": 2035, - "LSPosition": { - "line": 100, - "character": 14 - }, - "Name": "21", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived3.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2055, - "LSPosition": { - "line": 101, - "character": 14 - }, - "Name": "22", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Drived3.foo2(para1: string): number\n```\n" - } - } - }, - { - "marker": { - "Position": 2075, - "LSPosition": { - "line": 102, - "character": 14 - }, - "Name": "23", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo1: number\n```\n" - } - } - }, - { - "marker": { - "Position": 2095, - "LSPosition": { - "line": 103, - "character": 14 - }, - "Name": "24", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Drived4.foo2: (para1: string) => number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc deleted file mode 100644 index 4c6b2c784b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags1.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags1.ts === -// /** -// * Doc -// * @author Me -// * @augments {C} Augments it -// * @template T A template -// * @type {number | string} A type -// * @typedef {number | string} NumOrStr -// * @property {number} x The prop -// * @param {number} x The param -// * @returns The result -// * @see x (the parameter) -// */ -// function foo(x) {} -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(x: any): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 298, - "LSPosition": { - "line": 12, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(x: any): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc deleted file mode 100644 index dc3bfddfdc..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags10.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags10.js === -// /** -// * @param {T1} a -// * @param {T2} a -// * @template T1,T2 Comment Text -// */ -// const foo = (a, b) => {}; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (a: T1, b: any) => void -// | ``` -// | -// | -// | *@param* `a` -// | -// | *@param* `a` -// | -// | *@template* `T1`, `T2` — Comment Text -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 80, - "LSPosition": { - "line": 5, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (a: T1, b: any) => void\n```\n\n\n*@param* `a`\n\n*@param* `a`\n\n*@template* `T1`, `T2` — Comment Text\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc deleted file mode 100644 index 560ff899d5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags11.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags11.js === -// /** -// * @param {T1} a -// * @param {T2} b -// * @template {number} T1 Comment T1 -// * @template {number} T2 Comment T2 -// */ -// const foo = (a, b) => {}; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (a: T1, b: T2) => void -// | ``` -// | -// | -// | *@param* `a` -// | -// | *@param* `b` -// | -// | *@template* `T1` — Comment T1 -// | -// | -// | *@template* `T2` — Comment T2 -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 120, - "LSPosition": { - "line": 6, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (a: T1, b: T2) => void\n```\n\n\n*@param* `a`\n\n*@param* `b`\n\n*@template* `T1` — Comment T1\n\n\n*@template* `T2` — Comment T2\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc deleted file mode 100644 index 8dd86acbc7..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags12.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags12.ts === -// /** -// * @param {Object} options the args object -// * @param {number} options.a first number -// * @param {number} options.b second number -// * @param {Function} callback the callback function -// * @returns {number} -// */ -// function f(options, callback = null) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(options: any, callback?: any): void -// | ``` -// | -// | -// | *@param* `options` — the args object -// | -// | -// | *@param* `callback` — the callback function -// | -// | -// | *@returns* -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 218, - "LSPosition": { - "line": 7, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc deleted file mode 100644 index 2fe294b332..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags14.baseline.jsonc +++ /dev/null @@ -1,46 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags14.ts === -// /** -// * @param {Object} options the args object -// * @param {number} options.a first number -// * @param {number} options.b second number -// * @param {Object} options.c sub-object -// * @param {number} options.c.d third number -// * @param {Function} callback the callback function -// * @returns {number} -// */ -// function fn(options, callback = null) { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function fn(options: any, callback?: any): void -// | ``` -// | -// | -// | *@param* `options` — the args object -// | -// | -// | *@param* `callback` — the callback function -// | -// | -// | *@returns* -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 302, - "LSPosition": { - "line": 9, - "character": 9 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction fn(options: any, callback?: any): void\n```\n\n\n*@param* `options` — the args object\n\n\n*@param* `callback` — the callback function\n\n\n*@returns*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc deleted file mode 100644 index 12b27ff0f2..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags15.baseline.jsonc +++ /dev/null @@ -1,67 +0,0 @@ -// === QuickInfo === -=== /b.js === -// import * as _a from "./a.js"; -// /** -// * @implements {_a.Foo} -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// */ -// class C1 { } -// -// /** -// * @extends {_a.Foo} -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// */ -// class C2 { } -// -// /** -// * @augments {_a.Foo} -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*3*/. -// | ---------------------------------------------------------------------- -// */ -// class C3 { } -[ - { - "marker": { - "Position": 56, - "LSPosition": { - "line": 2, - "character": 22 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 99, - "LSPosition": { - "line": 7, - "character": 19 - }, - "Name": "2", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 143, - "LSPosition": { - "line": 12, - "character": 20 - }, - "Name": "3", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc deleted file mode 100644 index b6c858ac2a..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags16.baseline.jsonc +++ /dev/null @@ -1,68 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags16.ts === -// class A { -// /** -// * Description text here. -// * -// * @virtual -// */ -// foo() { } -// } -// -// class B extends A { -// override foo() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) B.foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// -// class C extends B { -// override foo() { } -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) C.foo(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -[ - { - "marker": { - "Position": 129, - "LSPosition": { - "line": 10, - "character": 13 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) B.foo(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 175, - "LSPosition": { - "line": 14, - "character": 13 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) C.foo(): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc deleted file mode 100644 index 63802eb7be..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags3.baseline.jsonc +++ /dev/null @@ -1,45 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags3.ts === -// interface Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @throws {Error} comment -// */ -// method(x: number, y: number): void; -// } -// -// class Bar implements Foo { -// method(): void { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// throw new Error("Method not implemented."); -// } -// } -[ - { - "marker": { - "Position": 290, - "LSPosition": { - "line": 13, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc deleted file mode 100644 index eff3013da0..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags4.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags4.ts === -// class Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @returns The result -// */ -// method(x: number, y: number): number { -// return x + y; -// } -// } -// -// class Bar extends Foo { -// method(x: number, y: number): number { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(x: number, y: number): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const res = super.method(x, y) + 100; -// return res; -// } -// } -[ - { - "marker": { - "Position": 309, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: number, y: number): number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc deleted file mode 100644 index dfba523d41..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags5.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags5.js === -// class Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @returns The result -// */ -// method(x, y) { -// return x + y; -// } -// } -// -// class Bar extends Foo { -// method(x, y) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(x: any, y: any): number -// | ``` -// | -// | ---------------------------------------------------------------------- -// const res = super.method(x, y) + 100; -// return res; -// } -// } -[ - { - "marker": { - "Position": 285, - "LSPosition": { - "line": 15, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc deleted file mode 100644 index 98f1da3ac5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags6.baseline.jsonc +++ /dev/null @@ -1,51 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags6.js === -// class Foo { -// /** -// * comment -// * @author Me -// * @see x (the parameter) -// * @param {number} x - x comment -// * @param {number} y - y comment -// * @returns The result -// */ -// method(x, y) { -// return x + y; -// } -// } -// -// class Bar extends Foo { -// /** @inheritDoc */ -// method(x, y) { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (method) Bar.method(x: any, y: any): number -// | ``` -// | -// | -// | *@inheritDoc* -// | ---------------------------------------------------------------------- -// const res = super.method(x, y) + 100; -// return res; -// } -// } -[ - { - "marker": { - "Position": 308, - "LSPosition": { - "line": 16, - "character": 4 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\n\n\n*@inheritDoc*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc deleted file mode 100644 index 5e563c6730..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags7.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags7.js === -// /** -// * @typedef {{ [x: string]: any, y: number }} Foo -// */ -// -// /** -// * @type {(t: T) => number} -// * @template T -// */ -// const foo = t => t.y; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (t: T) => number -// | ``` -// | -// | -// | *@template* `T` -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 116, - "LSPosition": { - "line": 8, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc deleted file mode 100644 index a14cc55397..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags8.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags8.js === -// /** -// * @typedef {{ [x: string]: any, y: number }} Foo -// */ -// -// /** -// * @type {(t: T) => number} -// * @template {Foo} T -// */ -// const foo = t => t.y; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (t: T) => number -// | ``` -// | -// | -// | *@template* `T` -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 8, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T`" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc deleted file mode 100644 index 5f0f6ba7ea..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTags9.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTags9.js === -// /** -// * @typedef {{ [x: string]: any, y: number }} Foo -// */ -// -// /** -// * @type {(t: T) => number} -// * @template {Foo} T Comment Text -// */ -// const foo = t => t.y; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: (t: T) => number -// | ``` -// | -// | -// | *@template* `T` — Comment Text -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 135, - "LSPosition": { - "line": 8, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: (t: T) => number\n```\n\n\n*@template* `T` — Comment Text\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc deleted file mode 100644 index 50bd2824be..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsCallback.baseline.jsonc +++ /dev/null @@ -1,55 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsCallback.js === -// /** -// * @callback cb -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// * @param {string} x - x comment -// */ -// -// /** -// * @param {cb} bar -callback comment -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type cb = (x: string) => any -// | ``` -// | -// | ---------------------------------------------------------------------- -// */ -// function foo(bar) { -// bar(bar); -// } -[ - { - "marker": { - "Position": 19, - "LSPosition": { - "line": 1, - "character": 15 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 73, - "LSPosition": { - "line": 6, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype cb = (x: string) => any\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc deleted file mode 100644 index a3a2dce10d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload01.baseline.jsonc +++ /dev/null @@ -1,64 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsFunctionOverload01.ts === -// /** -// * Doc foo -// */ -// declare function foo(): void; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | Doc foo -// | ---------------------------------------------------------------------- -// -// /** -// * Doc foo overloaded -// * @tag Tag text -// */ -// declare function foo(x: number): void -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | Doc foo -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 36, - "LSPosition": { - "line": 3, - "character": 17 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" - } - } - }, - { - "marker": { - "Position": 114, - "LSPosition": { - "line": 9, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\nDoc foo" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc deleted file mode 100644 index 2e07a08600..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload03.baseline.jsonc +++ /dev/null @@ -1,61 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsFunctionOverload03.ts === -// declare function foo(): void; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /** -// * Doc foo overloaded -// * @tag Tag text -// */ -// declare function foo(x: number): void -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 0, - "character": 17 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" - } - } - }, - { - "marker": { - "Position": 95, - "LSPosition": { - "line": 6, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc deleted file mode 100644 index 3901bb9548..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsFunctionOverload05.baseline.jsonc +++ /dev/null @@ -1,60 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsFunctionOverload05.ts === -// declare function foo(): void; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// -// /** -// * @tag Tag text -// */ -// declare function foo(x: number): void -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function foo(): void -// | function foo(x: number): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 17, - "LSPosition": { - "line": 0, - "character": 17 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" - } - } - }, - { - "marker": { - "Position": 73, - "LSPosition": { - "line": 5, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction foo(): void\nfunction foo(x: number): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc deleted file mode 100644 index 6f98b6a161..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocTagsTypedef.baseline.jsonc +++ /dev/null @@ -1,59 +0,0 @@ -// === QuickInfo === -=== /quickInfoJsDocTagsTypedef.js === -// /** -// * Bar comment -// * @typedef {Object} Bar -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// * @property {string} baz - baz comment -// * @property {string} qux - qux comment -// */ -// -// /** -// * foo comment -// * @param {Bar} x - x comment -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | type Bar = { baz: string; qux: string; } -// | ``` -// | -// | ---------------------------------------------------------------------- -// * @returns {Bar} -// */ -// function foo(x) { -// return x; -// } -[ - { - "marker": { - "Position": 40, - "LSPosition": { - "line": 2, - "character": 21 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 159, - "LSPosition": { - "line": 9, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\ntype Bar = { baz: string; qux: string; }\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc deleted file mode 100644 index f0e4e4aa86..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoJsDocThisTag.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === QuickInfo === -=== /a.ts === -// /** @this {number} */ -// function f() { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | -// | -// | *@this* -// | ---------------------------------------------------------------------- -// this -// } -[ - { - "marker": { - "Position": 32, - "LSPosition": { - "line": 1, - "character": 10 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\n\n\n*@this*" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc deleted file mode 100644 index 9436eebded..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoLink10.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink10.ts === -// /** -// * start {@link https://vscode.dev/ | end} -// */ -// const a = () => 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: () => number -// | ``` -// | start https://vscode.dev/ | end -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 3, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: () => number\n```\nstart https://vscode.dev/ | end" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc deleted file mode 100644 index 50655f184b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoLink11.baseline.jsonc +++ /dev/null @@ -1,40 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink11.ts === -// /** -// * {@link https://vscode.dev} -// * [link text]{https://vscode.dev} -// * {@link https://vscode.dev|link text} -// * {@link https://vscode.dev link text} -// */ -// function f() {} -// -// f(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | https://vscode.dev -// | [link text]{https://vscode.dev} -// | https://vscode.dev|link text -// | https://vscode.dev link text -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 170, - "LSPosition": { - "line": 8, - "character": 0 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\nhttps://vscode.dev\n[link text]{https://vscode.dev}\nhttps://vscode.dev|link text\nhttps://vscode.dev link text" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc deleted file mode 100644 index 6064786e91..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoLink5.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink5.ts === -// const A = 123; -// /** -// * See {@link A| constant A} instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See A| constant A instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 67, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee A| constant A instead" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc deleted file mode 100644 index 44aee68e6e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoLink6.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink6.ts === -// const A = 123; -// /** -// * See {@link A |constant A} instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See A|constant A instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 67, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee A|constant A instead" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc deleted file mode 100644 index 72b2cb44ce..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoLink7.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink7.ts === -// /** -// * See {@link | } instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See | instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 46, - "LSPosition": { - "line": 3, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee | instead" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc deleted file mode 100644 index d336abcb17..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoLink8.baseline.jsonc +++ /dev/null @@ -1,33 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink8.ts === -// const A = 123; -// /** -// * See {@link A | constant A} instead -// */ -// const B = 456; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const B: 456 -// | ``` -// | See A| constant A instead -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 67, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst B: 456\n```\nSee A| constant A instead" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc deleted file mode 100644 index c8755dabad..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoLink9.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === QuickInfo === -=== /quickInfoLink9.ts === -// type Foo = { -// /** -// * Text before {@link a} text after -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -// */ -// c: (a: number) => void; -// } -[ - { - "marker": { - "Position": 47, - "LSPosition": { - "line": 2, - "character": 26 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc deleted file mode 100644 index 655529433b..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoNestedExportEqualExportDefault.baseline.jsonc +++ /dev/null @@ -1,48 +0,0 @@ -// === QuickInfo === -=== /quickInfoNestedExportEqualExportDefault.ts === -// export = (state, messages) => { -// export default { -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) (Anonymous function).default: {} -// | ``` -// | -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*2*/. -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) (Anonymous function).default: {}\n```\n" - } - } - }, - { - "marker": { - "Position": 49, - "LSPosition": { - "line": 1, - "character": 17 - }, - "Name": "2", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc deleted file mode 100644 index 7778999760..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === QuickInfo === -=== /a.tsx === -// declare namespace JSX { -// interface IntrinsicElements { [elemName: string]: any; } -// } -//
; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 3, - "character": 1 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc deleted file mode 100644 index 897ac34cc1..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures.baseline.jsonc +++ /dev/null @@ -1,60 +0,0 @@ -// === QuickInfo === -=== /a.tsx === -// declare namespace JSX { -// interface IntrinsicElements { -// [k: `foo${string}`]: any; -// [k: `foobar${string}`]: any; -// } -// } -// ; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -// ; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 126, - "LSPosition": { - "line": 6, - "character": 1 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - } - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 7, - "character": 1 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc deleted file mode 100644 index 8dbf51c068..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoOnJsxNamespacedName.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === QuickInfo === -=== /a.tsx === -// ; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /**/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 1, - "LSPosition": { - "line": 0, - "character": 1 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc deleted file mode 100644 index 399006c05a..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoOnParameterProperties.baseline.jsonc +++ /dev/null @@ -1,77 +0,0 @@ -// === QuickInfo === -=== /quickInfoOnParameterProperties.ts === -// interface IFoo { -// /** this is the name of blabla -// * - use blabla -// * @example blabla -// */ -// name?: string; -// } -// -// // test1 should work -// class Foo implements IFoo { -// //public name: string = ''; -// constructor( -// public name: string, // documentation should leech and work ! -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo.name: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// ) { -// } -// } -// -// // test2 work -// class Foo2 implements IFoo { -// public name: string = ''; // documentation leeched and work ! -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) Foo2.name: string -// | ``` -// | -// | ---------------------------------------------------------------------- -// constructor( -// //public name: string, -// ) { -// } -// } -[ - { - "marker": { - "Position": 226, - "LSPosition": { - "line": 12, - "character": 13 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo.name: string\n```\n" - } - } - }, - { - "marker": { - "Position": 347, - "LSPosition": { - "line": 19, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) Foo2.name: string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc deleted file mode 100644 index 0baad3b4d9..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoOnThis5.baseline.jsonc +++ /dev/null @@ -1,160 +0,0 @@ -// === QuickInfo === -=== /quickInfoOnThis5.ts === -// const foo = { -// num: 0, -// f() { -// type Y = typeof this; -// ^ -// | ---------------------------------------------------------------------- -// | No quickinfo at /*1*/. -// | ---------------------------------------------------------------------- -// type Z = typeof this.num; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | any -// | ``` -// | -// | ---------------------------------------------------------------------- -// }, -// g(this: number) { -// type X = typeof this; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) this: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -// class Foo { -// num = 0; -// f() { -// type Y = typeof this; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | this -// | ``` -// | -// | ---------------------------------------------------------------------- -// type Z = typeof this.num; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | this -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// g(this: number) { -// type X = typeof this; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (parameter) this: number -// | ``` -// | -// | ---------------------------------------------------------------------- -// } -// } -[ - { - "marker": { - "Position": 62, - "LSPosition": { - "line": 3, - "character": 26 - }, - "Name": "1", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 92, - "LSPosition": { - "line": 4, - "character": 26 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nany\n```\n" - } - } - }, - { - "marker": { - "Position": 155, - "LSPosition": { - "line": 7, - "character": 26 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) this: number\n```\n" - } - } - }, - { - "marker": { - "Position": 228, - "LSPosition": { - "line": 13, - "character": 26 - }, - "Name": "4", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nthis\n```\n" - } - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 14, - "character": 26 - }, - "Name": "5", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nthis\n```\n" - } - } - }, - { - "marker": { - "Position": 320, - "LSPosition": { - "line": 17, - "character": 26 - }, - "Name": "6", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(parameter) this: number\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc deleted file mode 100644 index 6de7f6562d..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === QuickInfo === -=== /quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts === -// export type DocumentFilter = { -// /** A language id, like `typescript`. */ -// language: string; -// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ -// scheme?: string; -// /** A glob pattern, like `*.{ts,js}`. */ -// pattern?: string; -// } | { -// /** A language id, like `typescript`. */ -// language?: string; -// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ -// scheme: string; -// /** A glob pattern, like `*.{ts,js}`. */ -// pattern?: string; -// } | { -// /** A language id, like `typescript`. */ -// language?: string; -// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ -// scheme?: string; -// /** A glob pattern, like `*.{ts,js}`. */ -// pattern: string; -// }; -// -// declare let x: DocumentFilter; -// x.language -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | (property) language: string -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 746, - "LSPosition": { - "line": 24, - "character": 2 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\n(property) language: string\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc deleted file mode 100644 index d74b904a4e..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoSalsaMethodsOnAssignedFunctionExpressions.baseline.jsonc +++ /dev/null @@ -1,38 +0,0 @@ -// === QuickInfo === -=== /something.js === -// var C = function () { } -// /** -// * The prototype method. -// * @param {string} a Parameter definition. -// */ -// function f(a) {} -// C.prototype.m = f; -// -// var x = new C(); -// x.m(); -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | var x: any -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 155, - "LSPosition": { - "line": 9, - "character": 1 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nvar x: any\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc deleted file mode 100644 index 2f32d40691..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoSatisfiesTag.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @satisfies {number} comment */ -// const a = 1; -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const a: 1 -// | ``` -// | -// | -// | *@satisfies* — comment -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 41, - "LSPosition": { - "line": 1, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst a: 1\n```\n\n\n*@satisfies* — comment " - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc deleted file mode 100644 index c82883bc73..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoTypedefTag.baseline.jsonc +++ /dev/null @@ -1,98 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** -// * The typedef tag should not appear in the quickinfo. -// * @typedef {{ foo: 'foo' }} Foo -// */ -// function f() { } -// f() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function f(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** -// * A removed comment -// * @tag Usage shows that non-param tags in comments explain the typedef instead of using it -// * @typedef {{ nope: any }} Nope not here -// * @tag comment 2 -// */ -// function g() { } -// g() -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function g(): void -// | ``` -// | -// | ---------------------------------------------------------------------- -// /** -// * The whole thing is kept -// * @param {Local} keep -// * @typedef {{ local: any }} Local kept too -// * @returns {void} also kept -// */ -// function h(keep) { } -// h({ nope: 1 }) -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | function h(keep: Local): void -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 114, - "LSPosition": { - "line": 5, - "character": 1 - }, - "Name": "1", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction f(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 316, - "LSPosition": { - "line": 13, - "character": 1 - }, - "Name": "2", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction g(): void\n```\n" - } - } - }, - { - "marker": { - "Position": 472, - "LSPosition": { - "line": 21, - "character": 1 - }, - "Name": "3", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nfunction h(keep: Local): void\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc deleted file mode 100644 index e16714bca5..0000000000 --- a/testdata/baselines/reference/fourslash/quickInfoUniqueSymbolJsDoc.baseline.jsonc +++ /dev/null @@ -1,31 +0,0 @@ -// === QuickInfo === -=== /a.js === -// /** @type {unique symbol} */ -// const foo = Symbol(); -// foo -// ^ -// | ---------------------------------------------------------------------- -// | ```tsx -// | const foo: typeof foo -// | ``` -// | -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 54, - "LSPosition": { - "line": 2, - "character": 3 - }, - "Name": "", - "Data": {} - }, - "item": { - "contents": { - "kind": "markdown", - "value": "```tsx\nconst foo: typeof foo\n```\n" - } - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc deleted file mode 100644 index 4eb3200eb5..0000000000 --- a/testdata/baselines/reference/fourslash/rename/doubleUnderscoreRenames.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findRenameLocations === -// === /fileA.ts === - -// export function /*RENAME*/[|__fooRENAME|]() { -// } -// - - -// === /fileB.ts === - -// import { [|__fooRENAME|] as bar } from "./fileA"; -// -// bar(); - - - - -// === findRenameLocations === -// === /fileA.ts === - -// export function [|__fooRENAME|]() { -// } -// - - -// === /fileB.ts === - -// import { /*RENAME*/[|__fooRENAME|] as bar } from "./fileA"; -// -// bar(); diff --git a/testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc deleted file mode 100644 index 7cc641abc3..0000000000 --- a/testdata/baselines/reference/fourslash/rename/highlightsForExportFromUnfoundModule.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findRenameLocations === -// === /b.js === - -// export { -// /*RENAME*/foo -// } from './a'; diff --git a/testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc deleted file mode 100644 index 5fbb88135f..0000000000 --- a/testdata/baselines/reference/fourslash/rename/javaScriptClass2.baseline.jsonc +++ /dev/null @@ -1,52 +0,0 @@ -// === findRenameLocations === -// === /Foo.js === - -// class Foo { -// constructor() { -// this./*RENAME*/[|unionRENAME|] = 'foo'; -// this.[|unionRENAME|] = 100; -// } -// method() { return this.[|unionRENAME|]; } -// } -// var x = new Foo(); -// x.[|unionRENAME|]; - - - - -// === findRenameLocations === -// === /Foo.js === - -// class Foo { -// constructor() { -// this.[|unionRENAME|] = 'foo'; -// this./*RENAME*/[|unionRENAME|] = 100; -// } -// method() { return this.[|unionRENAME|]; } -// } -// var x = new Foo(); -// x.[|unionRENAME|]; - - - - -// === findRenameLocations === -// === /Foo.js === - -// /*RENAME*/class Foo { -// constructor() { -// this.union = 'foo'; -// this.union = 100; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /Foo.js === - -// /*RENAME*/class Foo { -// constructor() { -// this.union = 'foo'; -// this.union = 100; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc deleted file mode 100644 index 8e0893f09d..0000000000 --- a/testdata/baselines/reference/fourslash/rename/jsDocSee_rename1.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /jsDocSee_rename1.ts === - -// /*RENAME*/interface A {} -// /** -// * @see {A} -// */ -// declare const a: A - - - - -// === findRenameLocations === -// === /jsDocSee_rename1.ts === - -// /*RENAME*/interface A {} -// /** -// * @see {A} -// */ -// declare const a: A - - - - -// === findRenameLocations === -// === /jsDocSee_rename1.ts === - -// /*RENAME*/interface A {} -// /** -// * @see {A} -// */ -// declare const a: A diff --git a/testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc deleted file mode 100644 index 3ea25fe3e5..0000000000 --- a/testdata/baselines/reference/fourslash/rename/jsdocCallbackTagRename01.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /jsDocCallback.js === - -// /*RENAME*//** -// * @callback FooCallback -// * @param {string} eventName - Rename should work -// */ -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc deleted file mode 100644 index 80905d9ea4..0000000000 --- a/testdata/baselines/reference/fourslash/rename/jsdocSatisfiesTagRename.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// /** -// * @typedef {Object} T -// * @property {number} a -// */ -// -// /** @satisfies {/*RENAME*/[|TRENAME|]} comment */ -// const foo = { a: 1 }; diff --git a/testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc deleted file mode 100644 index 48c5f89b0b..0000000000 --- a/testdata/baselines/reference/fourslash/rename/jsdocThrowsTag_rename.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /jsdocThrowsTag_rename.ts === - -// class /*RENAME*/[|ERENAME|] extends Error {} -// /** -// * @throws {E} -// */ -// function f() {} diff --git a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc deleted file mode 100644 index 0f300f8817..0000000000 --- a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename01.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form1.js === - -// /*RENAME*/ /** @typedef {(string | number)} */ -// var NumberLike; -// -// NumberLike = 10; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /jsDocTypedef_form1.js === - -// /*RENAME*/ /** @typedef {(string | number)} */ -// var NumberLike; -// -// NumberLike = 10; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /jsDocTypedef_form1.js === - -// /*RENAME*/ /** @typedef {(string | number)} */ -// var NumberLike; -// -// NumberLike = 10; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc deleted file mode 100644 index e4be88e7bf..0000000000 --- a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename02.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form2.js === - -// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ -// -// /** @type {NumberLike} */ -// var numberLike; - - - - -// === findRenameLocations === -// === /jsDocTypedef_form2.js === - -// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ -// -// /** @type {NumberLike} */ -// var numberLike; diff --git a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc deleted file mode 100644 index 2c983f0fba..0000000000 --- a/testdata/baselines/reference/fourslash/rename/jsdocTypedefTagRename03.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form3.js === - -// /** -// * @typedef /*RENAME*/Person -// * @type {Object} -// * @property {number} age -// * @property {string} name -// // --- (line: 6) skipped --- - - - - -// === findRenameLocations === -// === /jsDocTypedef_form3.js === - -// /*RENAME*/ /** -// * @typedef Person -// * @type {Object} -// * @property {number} age -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc deleted file mode 100644 index f95d303132..0000000000 --- a/testdata/baselines/reference/fourslash/rename/processInvalidSyntax1.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /decl.js === - -// var [|objRENAME|] = {}; - - -// === /forof.js === - -// for (obj/*RENAME*/[|objRENAME|].prop of arr) { -// -// } - - -// === /unicode1.js === - -// [|objRENAME|].𝒜 ; - - -// === /unicode2.js === - -// [|objRENAME|].¬ ; diff --git a/testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc deleted file mode 100644 index 7e55516a9b..0000000000 --- a/testdata/baselines/reference/fourslash/rename/renameImportOfExportEquals.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === - -// declare namespace /*RENAME*/[|NRENAME|] { -// export var x: number; -// } -// declare module "mod" { -// export = [|NRENAME|]; -// } -// declare module "a" { -// import * as [|NRENAME|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - - - - -// === findRenameLocations === -// === /renameImportOfExportEquals.ts === - -// /*RENAME*/declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/rename01.baseline.jsonc b/testdata/baselines/reference/fourslash/rename01.baseline.jsonc deleted file mode 100644 index 95c9953d73..0000000000 --- a/testdata/baselines/reference/fourslash/rename01.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /rename01.ts === - -// /*RENAME*//// -// function Bar() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } diff --git a/testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc deleted file mode 100644 index 0159527d42..0000000000 --- a/testdata/baselines/reference/fourslash/renameAcrossMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// var /*RENAME*/[|xRENAME|]: number; - - -// === /b.ts === - -// /// -// [|xRENAME|]++; - - -// === /c.ts === - -// /// -// [|xRENAME|]++; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*//// -// x++; - - - - -// === findRenameLocations === -// === /c.ts === - -// /*RENAME*//// -// x++; diff --git a/testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc deleted file mode 100644 index 6a90b4e50a..0000000000 --- a/testdata/baselines/reference/fourslash/renameAlias.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findRenameLocations === -// === /renameAlias.ts === - -// module SomeModule { export class SomeClass { } } -// import /*RENAME*/[|MRENAME|] = SomeModule; -// import C = [|MRENAME|].SomeClass; - - - - -// === findRenameLocations === -// === /renameAlias.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// import M = SomeModule; -// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc deleted file mode 100644 index 3f204cb766..0000000000 --- a/testdata/baselines/reference/fourslash/renameAlias2.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findRenameLocations === -// === /renameAlias2.ts === - -// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } -// import M = [|SomeModuleRENAME|]; -// import C = M.SomeClass; - - - - -// === findRenameLocations === -// === /renameAlias2.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// import M = SomeModule; -// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc deleted file mode 100644 index 06968d0843..0000000000 --- a/testdata/baselines/reference/fourslash/renameAlias3.baseline.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -// === findRenameLocations === -// === /renameAlias3.ts === - -// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } -// import M = SomeModule; -// import C = M.SomeClass; - - - - -// === findRenameLocations === -// === /renameAlias3.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// import M = SomeModule; -// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc deleted file mode 100644 index 2a9bff9aad..0000000000 --- a/testdata/baselines/reference/fourslash/renameAliasExternalModule.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /b.ts === - -// import /*RENAME*/[|MRENAME|] = require("./a"); -// import C = [|MRENAME|].SomeClass; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc deleted file mode 100644 index cdd53ab6ea..0000000000 --- a/testdata/baselines/reference/fourslash/renameAliasExternalModule2.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// export = SomeModule; - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// export = SomeModule; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc deleted file mode 100644 index 7e751429c2..0000000000 --- a/testdata/baselines/reference/fourslash/renameAliasExternalModule3.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } -// export = SomeModule; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; diff --git a/testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc deleted file mode 100644 index 1f55b894bb..0000000000 --- a/testdata/baselines/reference/fourslash/renameBindingElementInitializerExternal.baseline.jsonc +++ /dev/null @@ -1,80 +0,0 @@ -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// const /*RENAME*/[|externalRENAME|] = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc deleted file mode 100644 index cbba4347b8..0000000000 --- a/testdata/baselines/reference/fourslash/renameBindingElementInitializerProperty.baseline.jsonc +++ /dev/null @@ -1,61 +0,0 @@ -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { -// console.log("required", required); -// console.log("optional", optional); -// } -// -// f({required: 10}); - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === - -// function f({required, optional = required}: {/*RENAME*/[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { -// console.log("required", required); -// console.log("optional", optional); -// } -// -// f({[|requiredRENAME|]: 10}); - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { -// console.log("required", required); -// console.log("optional", optional); -// } -// -// f({required: 10}); - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { -// console.log("required", required); -// console.log("optional", optional); -// } -// -// f({required: 10}); - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { -// console.log("required", required); -// console.log("optional", optional); -// } -// -// f({required: 10}); diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc deleted file mode 100644 index 096caa9e1d..0000000000 --- a/testdata/baselines/reference/fourslash/renameCommentsAndStrings1.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings1.ts === - -// /// -// function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc deleted file mode 100644 index 5fdc3f76ae..0000000000 --- a/testdata/baselines/reference/fourslash/renameCommentsAndStrings2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings2.ts === - -// /*RENAME*//// -// function Bar() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc deleted file mode 100644 index ace93735f1..0000000000 --- a/testdata/baselines/reference/fourslash/renameCommentsAndStrings3.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings3.ts === - -// /*RENAME*//// -// function Bar() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } diff --git a/testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc deleted file mode 100644 index 35d778a150..0000000000 --- a/testdata/baselines/reference/fourslash/renameCommentsAndStrings4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings4.ts === - -// /*RENAME*//// -// function Bar() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc deleted file mode 100644 index 8363ebb904..0000000000 --- a/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties.baseline.jsonc +++ /dev/null @@ -1,395 +0,0 @@ -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// interface I { -// /*RENAME*/[|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// /*RENAME*/[|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// /*RENAME*/[|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get /*RENAME*/[|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set [|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// interface I { -// [|prop1RENAME|]: () => void; -// prop2(): void; -// } -// -// var o1: I = { -// [|prop1RENAME|]() { }, -// prop2() { } -// }; -// -// var o2: I = { -// [|prop1RENAME|]: () => { }, -// prop2: () => { } -// }; -// -// var o3: I = { -// get [|prop1RENAME|]() { return () => { }; }, -// get prop2() { return () => { }; } -// }; -// -// var o4: I = { -// set /*RENAME*/[|prop1RENAME|](v) { }, -// set prop2(v) { } -// }; -// -// var o5: I = { -// "[|prop1RENAME|]"() { }, -// "prop2"() { } -// }; -// -// var o6: I = { -// "[|prop1RENAME|]": function () { }, -// "prop2": function () { } -// }; -// -// var o7: I = { -// ["[|prop1RENAME|]"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// var o8: I = { -// ["[|prop1RENAME|]"]() { }, -// ["prop2"]() { } -// }; -// -// var o9: I = { -// get ["[|prop1RENAME|]"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["[|prop1RENAME|]"](v) { }, -// set ["prop2"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// --- (line: 23) skipped --- -// }; -// -// var o5: I = { -// "/*RENAME*/prop1"() { }, -// "prop2"() { } -// }; -// -// // --- (line: 31) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// --- (line: 28) skipped --- -// }; -// -// var o6: I = { -// "/*RENAME*/prop1": function () { }, -// "prop2": function () { } -// }; -// -// // --- (line: 36) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// --- (line: 33) skipped --- -// }; -// -// var o7: I = { -// ["/*RENAME*/prop1"]: function () { }, -// ["prop2"]: function () { } -// }; -// -// // --- (line: 41) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// --- (line: 38) skipped --- -// }; -// -// var o8: I = { -// ["/*RENAME*/prop1"]() { }, -// ["prop2"]() { } -// }; -// -// // --- (line: 46) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// --- (line: 43) skipped --- -// }; -// -// var o9: I = { -// get ["/*RENAME*/prop1"]() { return () => { }; }, -// get ["prop2"]() { return () => { }; } -// }; -// -// // --- (line: 51) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties.ts === - -// --- (line: 48) skipped --- -// }; -// -// var o10: I = { -// set ["/*RENAME*/prop1"](v) { }, -// set ["prop2"](v) { } -// }; diff --git a/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc deleted file mode 100644 index e9c6610faf..0000000000 --- a/testdata/baselines/reference/fourslash/renameContextuallyTypedProperties2.baseline.jsonc +++ /dev/null @@ -1,394 +0,0 @@ -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// interface I { -// prop1: () => void; -// /*RENAME*/[|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// /*RENAME*/[|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// /*RENAME*/[|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get /*RENAME*/[|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set [|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// interface I { -// prop1: () => void; -// [|prop2RENAME|](): void; -// } -// -// var o1: I = { -// prop1() { }, -// [|prop2RENAME|]() { } -// }; -// -// var o2: I = { -// prop1: () => { }, -// [|prop2RENAME|]: () => { } -// }; -// -// var o3: I = { -// get prop1() { return () => { }; }, -// get [|prop2RENAME|]() { return () => { }; } -// }; -// -// var o4: I = { -// set prop1(v) { }, -// set /*RENAME*/[|prop2RENAME|](v) { } -// }; -// -// var o5: I = { -// "prop1"() { }, -// "[|prop2RENAME|]"() { } -// }; -// -// var o6: I = { -// "prop1": function () { }, -// "[|prop2RENAME|]": function () { } -// }; -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["[|prop2RENAME|]"]: function () { } -// }; -// -// var o8: I = { -// ["prop1"]() { }, -// ["[|prop2RENAME|]"]() { } -// }; -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["[|prop2RENAME|]"]() { return () => { }; } -// }; -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["[|prop2RENAME|]"](v) { } -// }; - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// --- (line: 24) skipped --- -// -// var o5: I = { -// "prop1"() { }, -// "/*RENAME*/prop2"() { } -// }; -// -// var o6: I = { -// // --- (line: 32) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// --- (line: 29) skipped --- -// -// var o6: I = { -// "prop1": function () { }, -// "/*RENAME*/prop2": function () { } -// }; -// -// var o7: I = { -// // --- (line: 37) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// --- (line: 34) skipped --- -// -// var o7: I = { -// ["prop1"]: function () { }, -// ["/*RENAME*/prop2"]: function () { } -// }; -// -// var o8: I = { -// // --- (line: 42) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// --- (line: 39) skipped --- -// -// var o8: I = { -// ["prop1"]() { }, -// ["/*RENAME*/prop2"]() { } -// }; -// -// var o9: I = { -// // --- (line: 47) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// --- (line: 44) skipped --- -// -// var o9: I = { -// get ["prop1"]() { return () => { }; }, -// get ["/*RENAME*/prop2"]() { return () => { }; } -// }; -// -// var o10: I = { -// // --- (line: 52) skipped --- - - - - -// === findRenameLocations === -// === /renameContextuallyTypedProperties2.ts === - -// --- (line: 49) skipped --- -// -// var o10: I = { -// set ["prop1"](v) { }, -// set ["/*RENAME*/prop2"](v) { } -// }; diff --git a/testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc deleted file mode 100644 index 19ba7ab61d..0000000000 --- a/testdata/baselines/reference/fourslash/renameDeclarationKeywords.baseline.jsonc +++ /dev/null @@ -1,212 +0,0 @@ -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// class /*RENAME*/[|C1RENAME|] extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// // --- (line: 7) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// /*RENAME*/class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// /*RENAME*/class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// /*RENAME*/get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// // --- (line: 8) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// /*RENAME*/set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// // --- (line: 9) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 3) skipped --- -// get e() { return 1; } -// set e(v) {} -// } -// interface /*RENAME*/[|I1RENAME|] extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// /*RENAME*/class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 4) skipped --- -// set e(v) {} -// } -// interface I1 extends Base { } -// type /*RENAME*/[|TRENAME|] = { } -// enum E { } -// namespace N { } -// module M { } -// // --- (line: 12) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 5) skipped --- -// } -// interface I1 extends Base { } -// type T = { } -// enum /*RENAME*/[|ERENAME|] { } -// namespace N { } -// module M { } -// function fn() {} -// // --- (line: 13) skipped --- - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 6) skipped --- -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace /*RENAME*/[|NRENAME|] { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 7) skipped --- -// type T = { } -// enum E { } -// namespace N { } -// module /*RENAME*/[|MRENAME|] { } -// function fn() {} -// var x; -// let y; -// const z = 1; - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 8) skipped --- -// enum E { } -// namespace N { } -// module M { } -// function /*RENAME*/[|fnRENAME|]() {} -// var x; -// let y; -// const z = 1; - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 9) skipped --- -// namespace N { } -// module M { } -// function fn() {} -// var /*RENAME*/[|xRENAME|]; -// let y; -// const z = 1; - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 10) skipped --- -// module M { } -// function fn() {} -// var x; -// let /*RENAME*/[|yRENAME|]; -// const z = 1; - - - - -// === findRenameLocations === -// === /renameDeclarationKeywords.ts === - -// --- (line: 11) skipped --- -// function fn() {} -// var x; -// let y; -// const /*RENAME*/[|zRENAME|] = 1; diff --git a/testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc deleted file mode 100644 index 401eb0406f..0000000000 --- a/testdata/baselines/reference/fourslash/renameDefaultLibDontWork.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findRenameLocations === -// === /file1.ts === - -// /*RENAME*/var test = "foo"; -// console.log(test); diff --git a/testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc deleted file mode 100644 index 44420f1298..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringAssignment.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignment.ts === - -// interface I { -// /*RENAME*/[|xRENAME|]: number; -// } -// var a: I; -// var x; -// ({ [|xRENAME|]: x } = a); - - - - -// === findRenameLocations === -// === /renameDestructuringAssignment.ts === - -// interface I { -// [|xRENAME|]: number; -// } -// var a: I; -// var x; -// ({ /*RENAME*/[|xRENAME|]: x } = a); diff --git a/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc deleted file mode 100644 index 0e8448e012..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc deleted file mode 100644 index 77f28ace03..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc deleted file mode 100644 index 452c7c75e1..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringClassProperty.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc deleted file mode 100644 index 1ac4ed6b4c..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInFor.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc deleted file mode 100644 index b4daf047b3..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringDeclarationInForOf.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc deleted file mode 100644 index edd4f72fd9..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringFunctionParameter.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringFunctionParameter.ts === - -// /*RENAME*/function f({a}: {a}) { -// f({a}); -// } - - - - -// === findRenameLocations === -// === /renameDestructuringFunctionParameter.ts === - -// /*RENAME*/function f({a}: {a}) { -// f({a}); -// } - - - - -// === findRenameLocations === -// === /renameDestructuringFunctionParameter.ts === - -// /*RENAME*/function f({a}: {a}) { -// f({a}); -// } diff --git a/testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc deleted file mode 100644 index 987e2f3613..0000000000 --- a/testdata/baselines/reference/fourslash/renameDestructuringNestedBindingElement.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc deleted file mode 100644 index 292ef092c5..0000000000 --- a/testdata/baselines/reference/fourslash/renameExportCrash.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findRenameLocations === -// === /Foo.js === - -// let [|aRENAME|]; -// module.exports = /*RENAME*/[|aRENAME|]; -// exports["foo"] = [|aRENAME|]; diff --git a/testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc deleted file mode 100644 index 3a1676e6cb..0000000000 --- a/testdata/baselines/reference/fourslash/renameExportSpecifier.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// const name = {}; -// export { name as name/*RENAME*/ }; diff --git a/testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc deleted file mode 100644 index 49da7e7525..0000000000 --- a/testdata/baselines/reference/fourslash/renameExportSpecifier2.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// const [|nameRENAME|] = {}; -// export { name/*RENAME*/ }; diff --git a/testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc deleted file mode 100644 index 7b556fb8a6..0000000000 --- a/testdata/baselines/reference/fourslash/renameForStringLiteral.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// interface Foo { -// property: /*RENAME*/"foo"; -// } -// /** -// * @type {{ property: "foo"}} -// // --- (line: 6) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc deleted file mode 100644 index 21df074896..0000000000 --- a/testdata/baselines/reference/fourslash/renameFunctionParameter1.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findRenameLocations === -// === /renameFunctionParameter1.ts === - -// function Foo() { -// /** -// * @param {number} p -// */ -// this.foo = function foo(p/*RENAME*/[|pRENAME|]) { -// return [|pRENAME|]; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc deleted file mode 100644 index e21a2c619c..0000000000 --- a/testdata/baselines/reference/fourslash/renameFunctionParameter2.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /renameFunctionParameter2.ts === - -// /** -// * @param {number} p -// */ -// const foo = function foo(p/*RENAME*/[|pRENAME|]) { -// return [|pRENAME|]; -// } diff --git a/testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc deleted file mode 100644 index 55c2ecc84f..0000000000 --- a/testdata/baselines/reference/fourslash/renameImportAndExport.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /renameImportAndExport.ts === - -// /*RENAME*/import a from "module"; -// export { a }; - - - - -// === findRenameLocations === -// === /renameImportAndExport.ts === - -// /*RENAME*/import a from "module"; -// export { a }; diff --git a/testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc deleted file mode 100644 index 4a2feb9b7c..0000000000 --- a/testdata/baselines/reference/fourslash/renameImportAndExportInDiffFiles.baseline.jsonc +++ /dev/null @@ -1,70 +0,0 @@ -// === findAllReferences === -// === /a.ts === - -// export var /*FIND ALL REFS*/[|a|]; - - -// === /b.ts === - -// import { [|a|] } from './a'; -// export { a }; - - - - -// === findAllReferences === -// === /a.ts === - -// export var [|a|]; - - -// === /b.ts === - -// import { /*FIND ALL REFS*/[|a|] } from './a'; -// export { a }; - - - - -// === findAllReferences === -// === /a.ts === - -// export var [|a|]; - - -// === /b.ts === - -// import { [|a|] } from './a'; -// export { /*FIND ALL REFS*/a }; - - - - -// === findRenameLocations === -// === /a.ts === - -// export var /*RENAME*/[|aRENAME|]; - - -// === /b.ts === - -// import { [|aRENAME|] } from './a'; -// export { a }; - - - - -// === findRenameLocations === -// === /b.ts === - -// import { /*RENAME*/[|aRENAME|] } from './a'; -// export { a }; - - - - -// === findRenameLocations === -// === /b.ts === - -// import { [|aRENAME|] } from './a'; -// export { /*RENAME*/a }; diff --git a/testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc deleted file mode 100644 index c5c9238f13..0000000000 --- a/testdata/baselines/reference/fourslash/renameImportAndShorthand.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /renameImportAndShorthand.ts === - -// /*RENAME*/import foo from 'bar'; -// const bar = { foo }; - - - - -// === findRenameLocations === -// === /renameImportAndShorthand.ts === - -// /*RENAME*/import foo from 'bar'; -// const bar = { foo }; diff --git a/testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc deleted file mode 100644 index 550de3d42f..0000000000 --- a/testdata/baselines/reference/fourslash/renameImportNamespaceAndShorthand.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /renameImportNamespaceAndShorthand.ts === - -// /*RENAME*/import * as foo from 'bar'; -// const bar = { foo }; - - - - -// === findRenameLocations === -// === /renameImportNamespaceAndShorthand.ts === - -// /*RENAME*/import * as foo from 'bar'; -// const bar = { foo }; diff --git a/testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc deleted file mode 100644 index df7e7c6868..0000000000 --- a/testdata/baselines/reference/fourslash/renameImportRequire.baseline.jsonc +++ /dev/null @@ -1,58 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/import e = require("mod4"); -// e; -// a = { e }; -// export { e }; - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/import e = require("mod4"); -// e; -// a = { e }; -// export { e }; - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/import e = require("mod4"); -// e; -// a = { e }; -// export { e }; - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/import e = require("mod4"); -// e; -// a = { e }; -// export { e }; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/import { e } from "./a"; -// export { e }; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/import { e } from "./a"; -// export { e }; diff --git a/testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc b/testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc deleted file mode 100644 index b6d213a13f..0000000000 --- a/testdata/baselines/reference/fourslash/renameImportSpecifierPropertyName.baseline.jsonc +++ /dev/null @@ -1,4 +0,0 @@ -// === findRenameLocations === -// === /canada.ts === - -// export interface /*RENAME*/[|GingerRENAME|] {} diff --git a/testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc deleted file mode 100644 index c28a20b58d..0000000000 --- a/testdata/baselines/reference/fourslash/renameInConfiguredProject.baseline.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// === findRenameLocations === -// === /referencesForGlobals_1.ts === - -// /*RENAME*/var globalName = 0; - - - - -// === findRenameLocations === -// === /referencesForGlobals_2.ts === - -// /*RENAME*/var y = globalName; diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc deleted file mode 100644 index 3ff816acc3..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties1.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties1.ts === - -// class class1 extends class1 { -// /*RENAME*/[|propNameRENAME|]: string; -// } -// -// var v: class1; -// v.[|propNameRENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties1.ts === - -// /*RENAME*/ class class1 extends class1 { -// propName: string; -// } -// -// var v: class1; -// v.propName; diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc deleted file mode 100644 index 08b679b79d..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties2.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties2.ts === - -// class class1 extends class1 { -// /*RENAME*/[|doStuffRENAME|]() { } -// } -// -// var v: class1; -// v.[|doStuffRENAME|](); - - - - -// === findRenameLocations === -// === /renameInheritedProperties2.ts === - -// /*RENAME*/ class class1 extends class1 { -// doStuff() { } -// } -// -// var v: class1; -// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc deleted file mode 100644 index 0b64ed73fa..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties3.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// /*RENAME*/[|propNameRENAME|]: string; -// } -// -// var v: interface1; -// v.[|propNameRENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties3.ts === - -// /*RENAME*/ interface interface1 extends interface1 { -// propName: string; -// } -// -// var v: interface1; -// v.propName; diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc deleted file mode 100644 index 692b84192b..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties4.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties4.ts === - -// interface interface1 extends interface1 { -// /*RENAME*/[|doStuffRENAME|](): string; -// } -// -// var v: interface1; -// v.[|doStuffRENAME|](); - - - - -// === findRenameLocations === -// === /renameInheritedProperties4.ts === - -// /*RENAME*/ interface interface1 extends interface1 { -// doStuff(): string; -// } -// -// var v: interface1; -// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc deleted file mode 100644 index 5be0e9682c..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties5.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties5.ts === - -// interface C extends D { -// propC: number; -// } -// interface D extends C { -// /*RENAME*/[|propDRENAME|]: string; -// } -// var d: D; -// d.[|propDRENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties5.ts === - -// /*RENAME*/interface C extends D { -// propC: number; -// } -// interface D extends C { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc deleted file mode 100644 index b396aa45a6..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties6.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties6.ts === - -// interface C extends D { -// propD: number; -// } -// interface D extends C { -// /*RENAME*/[|propCRENAME|]: number; -// } -// var d: D; -// d.[|propCRENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties6.ts === - -// /*RENAME*/interface C extends D { -// propD: number; -// } -// interface D extends C { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc deleted file mode 100644 index 2450b2c01d..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties7.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties7.ts === - -// class C extends D { -// /*RENAME*/[|prop1RENAME|]: string; -// } -// -// class D extends C { -// prop1: string; -// } -// -// var c: C; -// c.[|prop1RENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties7.ts === - -// /*RENAME*/ class C extends D { -// prop1: string; -// } -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc deleted file mode 100644 index 6f4a7034db..0000000000 --- a/testdata/baselines/reference/fourslash/renameInheritedProperties8.baseline.jsonc +++ /dev/null @@ -1,42 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties8.ts === - -// class C implements D { -// /*RENAME*/[|prop1RENAME|]: string; -// } -// -// interface D extends C { -// [|prop1RENAME|]: string; -// } -// -// var c: C; -// c.[|prop1RENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties8.ts === - -// class C implements D { -// [|prop1RENAME|]: string; -// } -// -// interface D extends C { -// /*RENAME*/[|prop1RENAME|]: string; -// } -// -// var c: C; -// c.[|prop1RENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties8.ts === - -// /*RENAME*/ class C implements D { -// prop1: string; -// } -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc deleted file mode 100644 index 8f16494b3d..0000000000 --- a/testdata/baselines/reference/fourslash/renameJSDocNamepath.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameJSDocNamepath.ts === - -// /** -// * @type {module:foo/A} x -// */ -// var x = 1 -// var /*RENAME*/[|ARENAME|] = 0; diff --git a/testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc deleted file mode 100644 index 5cc0363b6d..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsDocImportTag.baseline.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// /** -// * @import { A } from "./b"; -// */ -// -// /** -// * @param { A/*RENAME*/[|ARENAME|] } a -// */ -// function f(a) {} diff --git a/testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc deleted file mode 100644 index e308039562..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsDocTypeLiteral.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// /** -// * @param {Object} options -// * @param {string} options.foo -// * @param {number} options.bar -// */ -// function foo(/*RENAME*/[|optionsRENAME|]) {} diff --git a/testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc deleted file mode 100644 index f29d392321..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsExports01.baseline.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -// === findAllReferences === -// === /a.js === - -// exports.[|area|] = function (r) { return r * r; } - - -// === /b.js === - -// var mod = require('./a'); -// var t = mod./*FIND ALL REFS*/area(10); - - - - -// === findRenameLocations === -// === /a.js === - -// exports./*RENAME*/[|areaRENAME|] = function (r) { return r * r; } - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/var mod = require('./a'); -// var t = mod.area(10); diff --git a/testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc deleted file mode 100644 index 310f80d7b9..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsOverloadedFunctionParameter.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findRenameLocations === -// === /foo.js === - -// --- (line: 9) skipped --- -// * @param {unknown} x -// * @returns {unknown} -// */ -// function foo(x/*RENAME*/[|xRENAME|]) { -// return [|xRENAME|]; -// } diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc deleted file mode 100644 index cd3317c84f..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// function bar() { -// } -// bar./*RENAME*/[|fooRENAME|] = "foo"; -// console.log(bar.[|fooRENAME|]); - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/function bar() { -// } -// bar.foo = "foo"; -// console.log(bar.foo); diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc deleted file mode 100644 index b52fc08b65..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment2.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// class Minimatch { -// } -// Minimatch./*RENAME*/[|staticPropertyRENAME|] = "string"; -// console.log(Minimatch.[|staticPropertyRENAME|]); - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/class Minimatch { -// } -// Minimatch.staticProperty = "string"; -// console.log(Minimatch.staticProperty); diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc deleted file mode 100644 index da6fe0055e..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment3.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// var C = class { -// } -// C./*RENAME*/[|staticPropertyRENAME|] = "string"; -// console.log(C.[|staticPropertyRENAME|]); - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/var C = class { -// } -// C.staticProperty = "string"; -// console.log(C.staticProperty); diff --git a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc deleted file mode 100644 index 00aebe58bd..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsPropertyAssignment4.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// function f() { -// var /*RENAME*/[|fooRENAME|] = this; -// [|fooRENAME|].x = 1; -// } - - - - -// === findRenameLocations === -// === /a.js === - -// function f() { -// var [|fooRENAME|] = this; -// /*RENAME*/[|fooRENAME|].x = 1; -// } diff --git a/testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc deleted file mode 100644 index 0607885f53..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsPrototypeProperty01.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// function bar() { -// } -// bar.prototype./*RENAME*/x = 10; -// var t = new bar(); -// t.x = 11; - - - - -// === findRenameLocations === -// === /a.js === - -// function bar() { -// } -// bar.prototype.x = 10; -// var t = new bar(); -// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc deleted file mode 100644 index 0607885f53..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsPrototypeProperty02.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// function bar() { -// } -// bar.prototype./*RENAME*/x = 10; -// var t = new bar(); -// t.x = 11; - - - - -// === findRenameLocations === -// === /a.js === - -// function bar() { -// } -// bar.prototype.x = 10; -// var t = new bar(); -// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc deleted file mode 100644 index 5d46b7840b..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsThisProperty01.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// function bar() { -// this./*RENAME*/x = 10; -// } -// var t = new bar(); -// t.x = 11; - - - - -// === findRenameLocations === -// === /a.js === - -// function bar() { -// this.x = 10; -// } -// var t = new bar(); -// t./*RENAME*/x = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc deleted file mode 100644 index 61b25a2d6d..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsThisProperty03.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// class C { -// constructor(y) { -// this./*RENAME*/[|xRENAME|] = y; -// } -// } -// var t = new C(12); -// t.[|xRENAME|] = 11; - - - - -// === findRenameLocations === -// === /a.js === - -// class C { -// constructor(y) { -// this.[|xRENAME|] = y; -// } -// } -// var t = new C(12); -// t./*RENAME*/[|xRENAME|] = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc deleted file mode 100644 index 0975429736..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsThisProperty05.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// class C { -// constructor(y) { -// this.x = y; -// } -// } -// C.prototype./*RENAME*/z = 1; -// var t = new C(12); -// t.z = 11; - - - - -// === findRenameLocations === -// === /a.js === - -// --- (line: 4) skipped --- -// } -// C.prototype.z = 1; -// var t = new C(12); -// t./*RENAME*/z = 11; diff --git a/testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc deleted file mode 100644 index a4df38f6dd..0000000000 --- a/testdata/baselines/reference/fourslash/renameJsThisProperty06.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// var C = class { -// constructor(y) { -// this.x = y; -// } -// } -// C.prototype./*RENAME*/z = 1; -// var t = new C(12); -// t.z = 11; - - - - -// === findRenameLocations === -// === /a.js === - -// --- (line: 4) skipped --- -// } -// C.prototype.z = 1; -// var t = new C(12); -// t./*RENAME*/z = 11; diff --git a/testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc deleted file mode 100644 index 8052de8b13..0000000000 --- a/testdata/baselines/reference/fourslash/renameLabel1.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findRenameLocations === -// === /renameLabel1.ts === - -// [|fooRENAME|]: { -// break /*RENAME*/[|fooRENAME|]; -// } diff --git a/testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc deleted file mode 100644 index 90e5de9a9e..0000000000 --- a/testdata/baselines/reference/fourslash/renameLabel2.baseline.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -// === findRenameLocations === -// === /renameLabel2.ts === - -// /*RENAME*/[|fooRENAME|]: { -// break [|fooRENAME|]; -// } diff --git a/testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc deleted file mode 100644 index 0fddfa042b..0000000000 --- a/testdata/baselines/reference/fourslash/renameLabel3.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /renameLabel3.ts === - -// /*RENAME*/[|loopRENAME|]: -// for (let i = 0; i <= 10; i++) { -// if (i === 0) continue [|loopRENAME|]; -// if (i === 1) continue [|loopRENAME|]; -// if (i === 10) break [|loopRENAME|]; -// } diff --git a/testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc deleted file mode 100644 index 9a92975063..0000000000 --- a/testdata/baselines/reference/fourslash/renameLabel4.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /renameLabel4.ts === - -// [|loopRENAME|]: -// for (let i = 0; i <= 10; i++) { -// if (i === 0) continue [|loopRENAME|]; -// if (i === 1) continue /*RENAME*/[|loopRENAME|]; -// if (i === 10) break [|loopRENAME|]; -// } diff --git a/testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc deleted file mode 100644 index d9fabf7505..0000000000 --- a/testdata/baselines/reference/fourslash/renameLabel5.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /renameLabel5.ts === - -// [|loop1RENAME|]: for (let i = 0; i <= 10; i++) { -// loop2: for (let j = 0; j <= 10; j++) { -// if (i === 5) continue /*RENAME*/[|loop1RENAME|]; -// if (j === 5) break loop2; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc deleted file mode 100644 index eb521ed370..0000000000 --- a/testdata/baselines/reference/fourslash/renameLabel6.baseline.jsonc +++ /dev/null @@ -1,9 +0,0 @@ -// === findRenameLocations === -// === /renameLabel6.ts === - -// loop1: for (let i = 0; i <= 10; i++) { -// [|loop2RENAME|]: for (let j = 0; j <= 10; j++) { -// if (i === 5) continue loop1; -// if (j === 5) break /*RENAME*/[|loop2RENAME|]; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc deleted file mode 100644 index 25f1ddbcaf..0000000000 --- a/testdata/baselines/reference/fourslash/renameLocationsForClassExpression01.baseline.jsonc +++ /dev/null @@ -1,41 +0,0 @@ -// === findRenameLocations === -// === /renameLocationsForClassExpression01.ts === - -// class Foo { -// } -// -// var x = class /*RENAME*/[|FooRENAME|] { -// doIt() { -// return [|FooRENAME|]; -// } -// -// static doItStatically() { -// return [|FooRENAME|].y; -// } -// } -// -// // --- (line: 14) skipped --- - - - - -// === findRenameLocations === -// === /renameLocationsForClassExpression01.ts === - -// /*RENAME*/class Foo { -// } -// -// var x = class Foo { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameLocationsForClassExpression01.ts === - -// /*RENAME*/class Foo { -// } -// -// var x = class Foo { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc deleted file mode 100644 index f0dfea41e6..0000000000 --- a/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression01.baseline.jsonc +++ /dev/null @@ -1,26 +0,0 @@ -// === findRenameLocations === -// === /renameLocationsForFunctionExpression01.ts === - -// var x = function /*RENAME*/[|fRENAME|](g: any, h: any) { -// [|fRENAME|]([|fRENAME|], g); -// } - - - - -// === findRenameLocations === -// === /renameLocationsForFunctionExpression01.ts === - -// /*RENAME*/var x = function f(g: any, h: any) { -// f(f, g); -// } - - - - -// === findRenameLocations === -// === /renameLocationsForFunctionExpression01.ts === - -// /*RENAME*/var x = function f(g: any, h: any) { -// f(f, g); -// } diff --git a/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc b/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc deleted file mode 100644 index 0842391fc6..0000000000 --- a/testdata/baselines/reference/fourslash/renameLocationsForFunctionExpression02.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findRenameLocations === -// === /renameLocationsForFunctionExpression02.ts === - -// function f() { -// -// } -// var x = function /*RENAME*/[|fRENAME|](g: any, h: any) { -// -// let helper = function f(): any { f(); } -// -// let foo = () => [|fRENAME|]([|fRENAME|], g); -// } - - - - -// === findRenameLocations === -// === /renameLocationsForFunctionExpression02.ts === - -// /*RENAME*/function f() { -// -// } -// var x = function f(g: any, h: any) { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameLocationsForFunctionExpression02.ts === - -// /*RENAME*/function f() { -// -// } -// var x = function f(g: any, h: any) { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc deleted file mode 100644 index 842d23609f..0000000000 --- a/testdata/baselines/reference/fourslash/renameModifiers.baseline.jsonc +++ /dev/null @@ -1,132 +0,0 @@ -// === findRenameLocations === -// === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// declare abstract class /*RENAME*/[|C1RENAME|] { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// --- (line: 4) skipped --- -// protected d; -// private e; -// } -// const enum /*RENAME*/[|ERENAME|] { -// } -// async function fn() {} -// export default class C2 {} - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// --- (line: 6) skipped --- -// } -// const enum E { -// } -// async function /*RENAME*/[|fnRENAME|]() {} -// export default class C2 {} - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameModifiers.ts === - -// --- (line: 7) skipped --- -// const enum E { -// } -// async function fn() {} -// export default class /*RENAME*/[|C2RENAME|] {} diff --git a/testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc deleted file mode 100644 index 4c234f33c1..0000000000 --- a/testdata/baselines/reference/fourslash/renameModuleExportsProperties1.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /renameModuleExportsProperties1.ts === - -// /*RENAME*/class A {} -// module.exports = { A } - - - - -// === findRenameLocations === -// === /renameModuleExportsProperties1.ts === - -// /*RENAME*/class A {} -// module.exports = { A } diff --git a/testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc deleted file mode 100644 index 1dcc985090..0000000000 --- a/testdata/baselines/reference/fourslash/renameModuleExportsProperties2.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /renameModuleExportsProperties2.ts === - -// /*RENAME*/class A {} -// module.exports = { B: A } - - - - -// === findRenameLocations === -// === /renameModuleExportsProperties2.ts === - -// /*RENAME*/class A {} -// module.exports = { B: A } diff --git a/testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc deleted file mode 100644 index 1a76495d46..0000000000 --- a/testdata/baselines/reference/fourslash/renameModuleExportsProperties3.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/class A {} -// module.exports = { A } - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/class A {} -// module.exports = { A } diff --git a/testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc deleted file mode 100644 index c3cbf98e5f..0000000000 --- a/testdata/baselines/reference/fourslash/renameNamedImport.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findRenameLocations === -// === /home/src/workspaces/project/src/index.ts === - -// import { /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; -// [|someExportedVariableRENAME|]; diff --git a/testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc deleted file mode 100644 index 29f6081e21..0000000000 --- a/testdata/baselines/reference/fourslash/renameNamespaceImport.baseline.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// === findRenameLocations === -// === /home/src/workspaces/project/src/index.ts === - -// import * as /*RENAME*/[|libRENAME|] from '../lib/index'; -// [|libRENAME|].someExportedVariable; diff --git a/testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc deleted file mode 100644 index 56d118f523..0000000000 --- a/testdata/baselines/reference/fourslash/renameNumericalIndex.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /renameNumericalIndex.ts === - -// /*RENAME*/const foo = { 0: true }; -// foo[0]; - - - - -// === findRenameLocations === -// === /renameNumericalIndex.ts === - -// /*RENAME*/const foo = { 0: true }; -// foo[0]; diff --git a/testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc b/testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc deleted file mode 100644 index 060d984c32..0000000000 --- a/testdata/baselines/reference/fourslash/renameNumericalIndexSingleQuoted.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /renameNumericalIndexSingleQuoted.ts === - -// /*RENAME*/const foo = { 0: true }; -// foo[0]; - - - - -// === findRenameLocations === -// === /renameNumericalIndexSingleQuoted.ts === - -// /*RENAME*/const foo = { 0: true }; -// foo[0]; diff --git a/testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc deleted file mode 100644 index 16eef71662..0000000000 --- a/testdata/baselines/reference/fourslash/renameObjectBindingElementPropertyName01.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findRenameLocations === -// === /renameObjectBindingElementPropertyName01.ts === - -// interface I { -// /*RENAME*/[|property1RENAME|]: number; -// property2: string; -// } -// -// var foo: I; -// var { [|property1RENAME|]: prop1 } = foo; - - - - -// === findRenameLocations === -// === /renameObjectBindingElementPropertyName01.ts === - -// interface I { -// [|property1RENAME|]: number; -// property2: string; -// } -// -// var foo: I; -// var { /*RENAME*/[|property1RENAME|]: prop1 } = foo; diff --git a/testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc deleted file mode 100644 index 0184684b36..0000000000 --- a/testdata/baselines/reference/fourslash/renameObjectSpread.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findRenameLocations === -// === /renameObjectSpread.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.a; - - - - -// === findRenameLocations === -// === /renameObjectSpread.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.a; - - - - -// === findRenameLocations === -// === /renameObjectSpread.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; -// a12.a; diff --git a/testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc deleted file mode 100644 index 361b508fd3..0000000000 --- a/testdata/baselines/reference/fourslash/renameObjectSpreadAssignment.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; - - - - -// === findRenameLocations === -// === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; - - - - -// === findRenameLocations === -// === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; - - - - -// === findRenameLocations === -// === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; -// let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc deleted file mode 100644 index 22ff061a1d..0000000000 --- a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration1.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findRenameLocations === -// === /renameParameterPropertyDeclaration1.ts === - -// class Foo { -// constructor(private /*RENAME*/[|privateParamRENAME|]: number) { -// let localPrivate = [|privateParamRENAME|]; -// this.[|privateParamRENAME|] += 10; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration1.ts === - -// /*RENAME*/class Foo { -// constructor(private privateParam: number) { -// let localPrivate = privateParam; -// this.privateParam += 10; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration1.ts === - -// /*RENAME*/class Foo { -// constructor(private privateParam: number) { -// let localPrivate = privateParam; -// this.privateParam += 10; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc deleted file mode 100644 index 3ef54137ed..0000000000 --- a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration2.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findRenameLocations === -// === /renameParameterPropertyDeclaration2.ts === - -// class Foo { -// constructor(public /*RENAME*/[|publicParamRENAME|]: number) { -// let publicParam = [|publicParamRENAME|]; -// this.[|publicParamRENAME|] += 10; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration2.ts === - -// /*RENAME*/class Foo { -// constructor(public publicParam: number) { -// let publicParam = publicParam; -// this.publicParam += 10; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration2.ts === - -// /*RENAME*/class Foo { -// constructor(public publicParam: number) { -// let publicParam = publicParam; -// this.publicParam += 10; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc deleted file mode 100644 index 86b2967ef6..0000000000 --- a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration3.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findRenameLocations === -// === /renameParameterPropertyDeclaration3.ts === - -// class Foo { -// constructor(protected /*RENAME*/[|protectedParamRENAME|]: number) { -// let protectedParam = [|protectedParamRENAME|]; -// this.[|protectedParamRENAME|] += 10; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration3.ts === - -// /*RENAME*/class Foo { -// constructor(protected protectedParam: number) { -// let protectedParam = protectedParam; -// this.protectedParam += 10; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration3.ts === - -// /*RENAME*/class Foo { -// constructor(protected protectedParam: number) { -// let protectedParam = protectedParam; -// this.protectedParam += 10; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc deleted file mode 100644 index cfe486d4a5..0000000000 --- a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration4.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /renameParameterPropertyDeclaration4.ts === - -// /*RENAME*/class Foo { -// constructor(protected { protectedParam }) { -// let myProtectedParam = protectedParam; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration4.ts === - -// /*RENAME*/class Foo { -// constructor(protected { protectedParam }) { -// let myProtectedParam = protectedParam; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc deleted file mode 100644 index 94775fef82..0000000000 --- a/testdata/baselines/reference/fourslash/renameParameterPropertyDeclaration5.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /renameParameterPropertyDeclaration5.ts === - -// class Foo { -// constructor(protected [ /*RENAME*/[|protectedParamRENAME|] ]) { -// let myProtectedParam = [|protectedParamRENAME|]; -// } -// } - - - - -// === findRenameLocations === -// === /renameParameterPropertyDeclaration5.ts === - -// /*RENAME*/class Foo { -// constructor(protected [ protectedParam ]) { -// let myProtectedParam = protectedParam; -// } -// } diff --git a/testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc deleted file mode 100644 index 3fb81dd12c..0000000000 --- a/testdata/baselines/reference/fourslash/renamePrivateAccessor.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findRenameLocations === -// === /renamePrivateAccessor.ts === - -// class Foo { -// get /*RENAME*/#foo() { return 1 } -// set #foo(value: number) { } -// retFoo() { -// return this.#foo; -// } -// } - - - - -// === findRenameLocations === -// === /renamePrivateAccessor.ts === - -// class Foo { -// get #foo() { return 1 } -// set /*RENAME*/#foo(value: number) { } -// retFoo() { -// return this.#foo; -// } -// } - - - - -// === findRenameLocations === -// === /renamePrivateAccessor.ts === - -// /*RENAME*/class Foo { -// get #foo() { return 1 } -// set #foo(value: number) { } -// retFoo() { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc deleted file mode 100644 index 8467bc25b6..0000000000 --- a/testdata/baselines/reference/fourslash/renamePrivateFields1.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renamePrivateFields1.ts === - -// class Foo { -// /*RENAME*/#foo = 1; -// -// getFoo() { -// return this.#foo; -// } -// } - - - - -// === findRenameLocations === -// === /renamePrivateFields1.ts === - -// /*RENAME*/class Foo { -// #foo = 1; -// -// getFoo() { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc deleted file mode 100644 index 50f1136d57..0000000000 --- a/testdata/baselines/reference/fourslash/renamePrivateMethod.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renamePrivateMethod.ts === - -// class Foo { -// /*RENAME*/#foo() { } -// callFoo() { -// return this.#foo(); -// } -// } - - - - -// === findRenameLocations === -// === /renamePrivateMethod.ts === - -// /*RENAME*/class Foo { -// #foo() { } -// callFoo() { -// return this.#foo(); -// } -// } diff --git a/testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc deleted file mode 100644 index 26666e85bd..0000000000 --- a/testdata/baselines/reference/fourslash/renamePropertyAccessExpressionHeritageClause.baseline.jsonc +++ /dev/null @@ -1,35 +0,0 @@ -// === findRenameLocations === -// === /renamePropertyAccessExpressionHeritageClause.ts === - -// class B {} -// function foo() { -// return {/*RENAME*/[|BRENAME|]: B}; -// } -// class C extends (foo()).[|BRENAME|] {} -// class C1 extends foo().[|BRENAME|] {} - - - - -// === findRenameLocations === -// === /renamePropertyAccessExpressionHeritageClause.ts === - -// /*RENAME*/class B {} -// function foo() { -// return {B: B}; -// } -// class C extends (foo()).B {} -// class C1 extends foo().B {} - - - - -// === findRenameLocations === -// === /renamePropertyAccessExpressionHeritageClause.ts === - -// /*RENAME*/class B {} -// function foo() { -// return {B: B}; -// } -// class C extends (foo()).B {} -// class C1 extends foo().B {} diff --git a/testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc deleted file mode 100644 index a3d425fedf..0000000000 --- a/testdata/baselines/reference/fourslash/renameReExportDefault.baseline.jsonc +++ /dev/null @@ -1,53 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/export { default } from "./b"; -// export { default as b } from "./b"; -// export { default as bee } from "./b"; -// import { default as b } from "./b"; -// import { default as bee } from "./b"; -// import b from "./b"; - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/export { default } from "./b"; -// export { default as b } from "./b"; -// export { default as bee } from "./b"; -// import { default as b } from "./b"; -// import { default as bee } from "./b"; -// import b from "./b"; - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/export { default } from "./b"; -// export { default as b } from "./b"; -// export { default as bee } from "./b"; -// import { default as b } from "./b"; -// import { default as bee } from "./b"; -// import b from "./b"; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/const b = 0; -// export default b; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*/const b = 0; -// export default b; diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc deleted file mode 100644 index e8d98ace55..0000000000 --- a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag1.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /renameReferenceFromLinkTag1.ts === - -// enum E { -// /** {@link /*RENAME*/[|ARENAME|]} */ -// [|ARENAME|] -// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc deleted file mode 100644 index 95e0419a90..0000000000 --- a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag2.baseline.jsonc +++ /dev/null @@ -1,10 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// enum E { -// /** {@link /*RENAME*/[|FooRENAME|]} */ -// [|FooRENAME|] -// } -// interface Foo { -// foo: E.[|FooRENAME|]; -// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc deleted file mode 100644 index 9ae1143321..0000000000 --- a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag3.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// interface Foo { -// foo: E.[|FooRENAME|]; -// } - - -// === /b.ts === - -// enum E { -// /** {@link /*RENAME*/[|FooRENAME|]} */ -// [|FooRENAME|] -// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc deleted file mode 100644 index cdce4f1722..0000000000 --- a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameReferenceFromLinkTag4.ts === - -// enum E { -// /** {@link /*RENAME*/[|BRENAME|]} */ -// A, -// [|BRENAME|] -// } diff --git a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc deleted file mode 100644 index 09fe5ebbc3..0000000000 --- a/testdata/baselines/reference/fourslash/renameReferenceFromLinkTag5.baseline.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -// === findRenameLocations === -// === /renameReferenceFromLinkTag5.ts === - -// enum E { -// /** {@link E./*RENAME*/[|ARENAME|]} */ -// [|ARENAME|] -// } diff --git a/testdata/baselines/reference/fourslash/renameRest.baseline.jsonc b/testdata/baselines/reference/fourslash/renameRest.baseline.jsonc deleted file mode 100644 index a38db9c1da..0000000000 --- a/testdata/baselines/reference/fourslash/renameRest.baseline.jsonc +++ /dev/null @@ -1,23 +0,0 @@ -// === findRenameLocations === -// === /renameRest.ts === - -// interface Gen { -// x: number; -// /*RENAME*/[|parentRENAME|]: Gen; -// millenial: string; -// } -// let t: Gen; -// var { x, ...rest } = t; -// rest.[|parentRENAME|]; - - - - -// === findRenameLocations === -// === /renameRest.ts === - -// /*RENAME*/interface Gen { -// x: number; -// parent: Gen; -// millenial: string; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc deleted file mode 100644 index 069823071c..0000000000 --- a/testdata/baselines/reference/fourslash/renameRestBindingElement.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameRestBindingElement.ts === - -// /*RENAME*/interface I { -// a: number; -// b: number; -// c: number; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc deleted file mode 100644 index ee096940ae..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringLiteralOk.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralOk.ts === - -// /*RENAME*/interface Foo { -// f: 'foo' | 'bar' -// } -// const d: 'foo' = 'foo' -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralOk.ts === - -// /*RENAME*/interface Foo { -// f: 'foo' | 'bar' -// } -// const d: 'foo' = 'foo' -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralOk.ts === - -// /*RENAME*/interface Foo { -// f: 'foo' | 'bar' -// } -// const d: 'foo' = 'foo' -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc deleted file mode 100644 index 8e83ee0395..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringLiteralOk1.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralOk1.ts === - -// /*RENAME*/declare function f(): 'foo' | 'bar' -// class Foo { -// f = f() -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralOk1.ts === - -// /*RENAME*/declare function f(): 'foo' | 'bar' -// class Foo { -// f = f() -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc deleted file mode 100644 index bbcf860952..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringLiteralTypes1.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes1.ts === - -// /*RENAME*/interface AnimationOptions { -// deltaX: number; -// deltaY: number; -// easing: "ease-in" | "ease-out" | "ease-in-out"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes1.ts === - -// /*RENAME*/interface AnimationOptions { -// deltaX: number; -// deltaY: number; -// easing: "ease-in" | "ease-out" | "ease-in-out"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc deleted file mode 100644 index e171de1553..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringLiteralTypes2.baseline.jsonc +++ /dev/null @@ -1,116 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc deleted file mode 100644 index d7a7f4218e..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringLiteralTypes3.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes3.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes3.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes3.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc deleted file mode 100644 index 4eb7404ce2..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringLiteralTypes4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes4.ts === - -// --- (line: 3) skipped --- -// -// declare const fn: (p: K) => void -// -// fn("Prop 1"/*RENAME*/) diff --git a/testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc deleted file mode 100644 index e1a505609f..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringLiteralTypes5.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes5.ts === - -// --- (line: 3) skipped --- -// -// declare const fn: (p: K) => void -// -// fn("Prop 1"/*RENAME*/) diff --git a/testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc deleted file mode 100644 index 1ec338da15..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringPropertyNames.baseline.jsonc +++ /dev/null @@ -1,68 +0,0 @@ -// === findRenameLocations === -// === /renameStringPropertyNames.ts === - -// var o = { -// /*RENAME*/[|propRENAME|]: 0 -// }; -// -// o = { -// "[|propRENAME|]": 1 -// }; -// -// o["[|propRENAME|]"]; -// o['[|propRENAME|]']; -// o.[|propRENAME|]; - - - - -// === findRenameLocations === -// === /renameStringPropertyNames.ts === - -// var o = { -// prop: 0 -// }; -// -// o = { -// "/*RENAME*/prop": 1 -// }; -// -// o["prop"]; -// o['prop']; -// o.prop; - - - - -// === findRenameLocations === -// === /renameStringPropertyNames.ts === - -// /*RENAME*/var o = { -// prop: 0 -// }; -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringPropertyNames.ts === - -// /*RENAME*/var o = { -// prop: 0 -// }; -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringPropertyNames.ts === - -// /*RENAME*/var o = { -// prop: 0 -// }; -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc deleted file mode 100644 index 655994e633..0000000000 --- a/testdata/baselines/reference/fourslash/renameStringPropertyNames2.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameStringPropertyNames2.ts === - -// --- (line: 4) skipped --- -// let { foo }: Props = null as any; -// foo; -// -// let asd: Props = { "foo"/*RENAME*/: true }; // rename foo here diff --git a/testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc deleted file mode 100644 index 4f507d328d..0000000000 --- a/testdata/baselines/reference/fourslash/renameTemplateLiteralsComputedProperties.baseline.jsonc +++ /dev/null @@ -1,231 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// interface Obj { -// [`/*RENAME*/num`]: number; -// ['bool']: boolean; -// } -// -// // --- (line: 6) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 3) skipped --- -// } -// -// let o: Obj = { -// [`/*RENAME*/num`]: 0, -// ['bool']: true, -// }; -// -// // --- (line: 11) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 8) skipped --- -// }; -// -// o = { -// ['/*RENAME*/num']: 1, -// [`bool`]: false, -// }; -// -// // --- (line: 16) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// interface Obj { -// [`num`]: number; -// ['/*RENAME*/bool']: boolean; -// } -// -// let o: Obj = { -// // --- (line: 7) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 4) skipped --- -// -// let o: Obj = { -// [`num`]: 0, -// ['/*RENAME*/bool']: true, -// }; -// -// o = { -// // --- (line: 12) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 9) skipped --- -// -// o = { -// ['num']: 1, -// [`/*RENAME*/bool`]: false, -// }; -// -// o.num; -// // --- (line: 17) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc b/testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc deleted file mode 100644 index 738e7f4598..0000000000 --- a/testdata/baselines/reference/fourslash/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc +++ /dev/null @@ -1,73 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// obj = { -// [`/*RENAME*/prop`]: 1 -// }; -// -// obj.prop; -// // --- (line: 10) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc deleted file mode 100644 index e3b5f1b76a..0000000000 --- a/testdata/baselines/reference/fourslash/renameUMDModuleAlias1.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /0.d.ts === - -// export function doThing(): string; -// export function doTheOtherThing(): void; -// export as namespace /*RENAME*/[|myLibRENAME|]; - - -// === /1.ts === - -// /// -// [|myLibRENAME|].doThing(); - - - - -// === findRenameLocations === -// === /1.ts === - -// /*RENAME*//// -// myLib.doThing(); diff --git a/testdata/baselines/reference/fourslash/signatureHelp/JsDocDontBreakWithNamespaces.baseline b/testdata/baselines/reference/fourslash/signatureHelp/JsDocDontBreakWithNamespaces.baseline deleted file mode 100644 index 5b85fe7115..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/JsDocDontBreakWithNamespaces.baseline +++ /dev/null @@ -1,94 +0,0 @@ -// === SignatureHelp === -=== /jsDocDontBreakWithNamespaces.js === -// /** -// * @returns {module:@nodefuel/web~Webserver~wsServer#hello} Websocket server object -// */ -// function foo() { } -// foo(''); -// ^ -// | ---------------------------------------------------------------------- -// | foo(): module -// | ---------------------------------------------------------------------- -// -// /** -// * @type {module:xxxxx} */ -// */ -// function bar() { } -// bar(''); -// ^ -// | ---------------------------------------------------------------------- -// | bar(): void -// | ---------------------------------------------------------------------- -// -// /** @type {function(module:xxxx, module:xxxx): module:xxxxx} */ -// function zee() { } -// zee(''); -// ^ -// | ---------------------------------------------------------------------- -// | zee(): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 117, - "LSPosition": { - "line": 4, - "character": 6 - }, - "Name": "foo", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "foo(): module", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 181, - "LSPosition": { - "line": 10, - "character": 6 - }, - "Name": "bar", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "bar(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 274, - "LSPosition": { - "line": 14, - "character": 6 - }, - "Name": "zee", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "zee(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures5.baseline b/testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures5.baseline deleted file mode 100644 index 4738ec0a65..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures5.baseline +++ /dev/null @@ -1,54 +0,0 @@ -// === SignatureHelp === -=== /Foo.js === -// /** -// * Filters a path based on a regexp or glob pattern. -// * @param {String} basePath The base path where the search will be performed. -// * @param {String} pattern A string defining a regexp of a glob pattern. -// * @param {String} type The search pattern type, can be a regexp or a glob. -// * @param {Object} options A object containing options to the search. -// * @return {Array} A list containing the filtered paths. -// */ -// function pathFilter(basePath, pattern, type, options){ -// //... -// } -// pathFilter('foo', 'bar', 'baz', {}); -// ^ -// | ---------------------------------------------------------------------- -// | pathFilter(**basePath: String**, pattern: String, type: String, options: Object): any[] -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 489, - "LSPosition": { - "line": 11, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "pathFilter(basePath: String, pattern: String, type: String, options: Object): any[]", - "parameters": [ - { - "label": "basePath: String" - }, - { - "label": "pattern: String" - }, - { - "label": "type: String" - }, - { - "label": "options: Object" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures6.baseline b/testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures6.baseline deleted file mode 100644 index bb6a6fdfb8..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/JsDocFunctionSignatures6.baseline +++ /dev/null @@ -1,164 +0,0 @@ -// === SignatureHelp === -=== /Foo.js === -// /** -// * @param {string} p1 - A string param -// * @param {string?} p2 - An optional param -// * @param {string} [p3] - Another optional param -// * @param {string} [p4="test"] - An optional param with a default value -// */ -// function f1(p1, p2, p3, p4){} -// f1('foo', 'bar', 'baz', 'qux'); -// ^ -// | ---------------------------------------------------------------------- -// | f1(**p1: string**, p2: string, p3?: string, p4?: string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | f1(p1: string, **p2: string**, p3?: string, p4?: string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | f1(p1: string, p2: string, **p3?: string**, p4?: string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | f1(p1: string, p2: string, p3?: string, **p4?: string**): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 244, - "LSPosition": { - "line": 7, - "character": 3 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 251, - "LSPosition": { - "line": 7, - "character": 10 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 258, - "LSPosition": { - "line": 7, - "character": 17 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 265, - "LSPosition": { - "line": 7, - "character": 24 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(p1: string, p2: string, p3?: string, p4?: string): void", - "parameters": [ - { - "label": "p1: string" - }, - { - "label": "p2: string" - }, - { - "label": "p3?: string" - }, - { - "label": "p4?: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 3 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/JsDocSignature_43394.baseline b/testdata/baselines/reference/fourslash/signatureHelp/JsDocSignature_43394.baseline deleted file mode 100644 index e41f00da6a..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/JsDocSignature_43394.baseline +++ /dev/null @@ -1,25 +0,0 @@ -// === SignatureHelp === -=== /jsDocSignature_43394.ts === -// /** -// * @typedef {Object} Foo -// * @property {number} ... -// * @typedef {number} Bar -// ^ -// | ---------------------------------------------------------------------- -// | No signaturehelp at /**/. -// | ---------------------------------------------------------------------- -// */ -[ - { - "marker": { - "Position": 58, - "LSPosition": { - "line": 3, - "character": 3 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/JsdocReturnsTag.baseline b/testdata/baselines/reference/fourslash/signatureHelp/JsdocReturnsTag.baseline deleted file mode 100644 index 2043548ae2..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/JsdocReturnsTag.baseline +++ /dev/null @@ -1,46 +0,0 @@ -// === SignatureHelp === -=== /dummy.js === -// /** -// * Find an item -// * @template T -// * @param {T[]} l -// * @param {T} x -// * @returns {?T} The names of the found item(s). -// */ -// function find(l, x) { -// } -// find(''); -// ^ -// | ---------------------------------------------------------------------- -// | find(**l: unknown[]**, x: unknown): unknown -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 154, - "LSPosition": { - "line": 9, - "character": 7 - }, - "Name": "", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "find(l: unknown[], x: unknown): unknown", - "parameters": [ - { - "label": "l: unknown[]" - }, - { - "label": "x: unknown" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTags13.baseline b/testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTags13.baseline deleted file mode 100644 index 18ca3b5576..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTags13.baseline +++ /dev/null @@ -1,100 +0,0 @@ -// === SignatureHelp === -=== /a.js === -// /** -// * First overload -// * @overload -// * @param {number} a -// * @returns {void} -// */ -// -// /** -// * Second overload -// * @overload -// * @param {string} a -// * @returns {void} -// */ -// -// /** -// * @param {string | number} a -// * @returns {void} -// */ -// function f(a) {} -// -// f(1); -// ^ -// | ---------------------------------------------------------------------- -// | f(**a: number**): void -// | ---------------------------------------------------------------------- -// f(""); -// ^ -// | ---------------------------------------------------------------------- -// | f(**a: string**): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 238, - "LSPosition": { - "line": 20, - "character": 2 - }, - "Name": "a", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number): void", - "parameters": [ - { - "label": "a: number" - } - ] - }, - { - "label": "f(a: string): void", - "parameters": [ - { - "label": "a: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 244, - "LSPosition": { - "line": 21, - "character": 2 - }, - "Name": "b", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number): void", - "parameters": [ - { - "label": "a: number" - } - ] - }, - { - "label": "f(a: string): void", - "parameters": [ - { - "label": "a: string" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTextFormatting1.baseline b/testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTextFormatting1.baseline deleted file mode 100644 index 0a70cac362..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp/QuickInfoJsDocTextFormatting1.baseline +++ /dev/null @@ -1,205 +0,0 @@ -// === SignatureHelp === -=== /quickInfoJsDocTextFormatting1.ts === -// /** -// * @param {number} var1 **Highlighted text** -// * @param {string} var2 Another **Highlighted text** -// */ -// function f1(var1, var2) { } -// -// /** -// * @param {number} var1 *Regular text with an asterisk -// * @param {string} var2 Another *Regular text with an asterisk -// */ -// function f2(var1, var2) { } -// -// /** -// * @param {number} var1 -// * *Regular text with an asterisk -// * @param {string} var2 -// * Another *Regular text with an asterisk -// */ -// function f3(var1, var2) { } -// -// /** -// * @param {number} var1 -// * **Highlighted text** -// * @param {string} var2 -// * Another **Highlighted text** -// */ -// function f4(var1, var2) { } -// -// /** -// * @param {number} var1 -// **Highlighted text** -// * @param {string} var2 -// Another **Highlighted text** -// */ -// function f5(var1, var2) { } -// -// f1(); -// ^ -// | ---------------------------------------------------------------------- -// | f1(**var1: any**, var2: any): void -// | ---------------------------------------------------------------------- -// f2(); -// ^ -// | ---------------------------------------------------------------------- -// | f2(**var1: any**, var2: any): void -// | ---------------------------------------------------------------------- -// f3(); -// ^ -// | ---------------------------------------------------------------------- -// | f3(**var1: any**, var2: any): void -// | ---------------------------------------------------------------------- -// f4(); -// ^ -// | ---------------------------------------------------------------------- -// | f4(**var1: any**, var2: any): void -// | ---------------------------------------------------------------------- -// f5(); -// ^ -// | ---------------------------------------------------------------------- -// | f5(**var1: any**, var2: any): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 737, - "LSPosition": { - "line": 36, - "character": 3 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(var1: any, var2: any): void", - "parameters": [ - { - "label": "var1: any" - }, - { - "label": "var2: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 743, - "LSPosition": { - "line": 37, - "character": 3 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f2(var1: any, var2: any): void", - "parameters": [ - { - "label": "var1: any" - }, - { - "label": "var2: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 749, - "LSPosition": { - "line": 38, - "character": 3 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f3(var1: any, var2: any): void", - "parameters": [ - { - "label": "var1: any" - }, - { - "label": "var2: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 755, - "LSPosition": { - "line": 39, - "character": 3 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f4(var1: any, var2: any): void", - "parameters": [ - { - "label": "var1: any" - }, - { - "label": "var2: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 761, - "LSPosition": { - "line": 40, - "character": 3 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f5(var1: any, var2: any): void", - "parameters": [ - { - "label": "var1: any" - }, - { - "label": "var2: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/jsDocDontBreakWithNamespaces.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocDontBreakWithNamespaces.baseline.jsonc rename to testdata/baselines/reference/fourslash/signatureHelp/jsDocDontBreakWithNamespaces.baseline diff --git a/testdata/baselines/reference/fourslash/jsDocFunctionSignatures5.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocFunctionSignatures5.baseline.jsonc rename to testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures5.baseline diff --git a/testdata/baselines/reference/fourslash/jsDocFunctionSignatures6.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocFunctionSignatures6.baseline.jsonc rename to testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6.baseline diff --git a/testdata/baselines/reference/fourslash/jsDocSignature_43394.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/jsDocSignature_43394.baseline.jsonc rename to testdata/baselines/reference/fourslash/signatureHelp/jsDocSignature_43394.baseline diff --git a/testdata/baselines/reference/fourslash/jsdocReturnsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/jsdocReturnsTag.baseline.jsonc rename to testdata/baselines/reference/fourslash/signatureHelp/jsdocReturnsTag.baseline diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTags13.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/quickInfoJsDocTags13.baseline.jsonc rename to testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTags13.baseline diff --git a/testdata/baselines/reference/fourslash/quickInfoJsDocTextFormatting1.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTextFormatting1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/quickInfoJsDocTextFormatting1.baseline.jsonc rename to testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTextFormatting1.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpAfterParameter.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpAfterParameter.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpAfterParameter.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpAfterParameter.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsClass.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsClass.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsClass.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsClass.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsClassMembers.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsClassMembers.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsClassMembers.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsClassMembers.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsCommentParsing.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsCommentParsing.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsCommentParsing.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsCommentParsing.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsFunctionDeclaration.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsFunctionDeclaration.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsFunctionDeclaration.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsFunctionDeclaration.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsFunctionExpression.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsFunctionExpression.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpCommentsFunctionExpression.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsFunctionExpression.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpConstructorCallParamProperties.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpConstructorCallParamProperties.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpConstructorCallParamProperties.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpConstructorCallParamProperties.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpExpandedRestTuplesLocalLabels1.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpExpandedRestTuplesLocalLabels1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpExpandedRestTuplesLocalLabels1.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpExpandedRestTuplesLocalLabels1.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpIteratorNext.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpIteratorNext.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpIteratorNext.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpIteratorNext.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpJSDocCallbackTag.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpJSDocCallbackTag.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpJSDocCallbackTag.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpJSDocCallbackTag.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpJSDocTags.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpJSDocTags.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpJSDocTags.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpJSDocTags.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpJSMissingPropertyAccess.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpJSMissingPropertyAccess.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpJSMissingPropertyAccess.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpJSMissingPropertyAccess.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpRestArgs1.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpRestArgs1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpRestArgs1.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpRestArgs1.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpRestArgs2.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpRestArgs2.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpRestArgs2.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpRestArgs2.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpRestArgs3.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpRestArgs3.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpRestArgs3.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpRestArgs3.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpSkippedArgs1.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpSkippedArgs1.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpSkippedArgs1.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpSkippedArgs1.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpTypeArguments2.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpTypeArguments2.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpTypeArguments2.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpTypeArguments2.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpWithUnknown.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpWithUnknown.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelpWithUnknown.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelpWithUnknown.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/SignatureHelp_unionType.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelp_unionType.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/SignatureHelp_unionType.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/signatureHelp_unionType.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelp/TrailingCommaSignatureHelp.baseline b/testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline similarity index 100% rename from testdata/baselines/reference/fourslash/signatureHelp/TrailingCommaSignatureHelp.baseline rename to testdata/baselines/reference/fourslash/signatureHelp/trailingCommaSignatureHelp.baseline diff --git a/testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc deleted file mode 100644 index 8049e26f53..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpAfterParameter.baseline.jsonc +++ /dev/null @@ -1,428 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpAfterParameter.ts === -// type Type = (a, b, c) => void -// const a: Type = (a, b) => {} -// ^ -// | ---------------------------------------------------------------------- -// | Type(**a: any**, b: any, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(a: any, **b: any**, c: any): void -// | ---------------------------------------------------------------------- -// const b: Type = function (a, b) {} -// ^ -// | ---------------------------------------------------------------------- -// | Type(**a: any**, b: any, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(a: any, **b: any**, c: any): void -// | ---------------------------------------------------------------------- -// const c: Type = ({ a: { b }} = { }, [b], ...c) => {} -// ^ -// | ---------------------------------------------------------------------- -// | Type(**a: any**, b: any, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(**a: any**, b: any, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(**a: any**, b: any, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(**a: any**, b: any, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(a: any, **b: any**, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(a: any, **b: any**, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(a: any, b: any, **c: any**): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | Type(a: any, b: any, **c: any**): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 48, - "LSPosition": { - "line": 1, - "character": 18 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 51, - "LSPosition": { - "line": 1, - "character": 21 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 86, - "LSPosition": { - "line": 2, - "character": 27 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 89, - "LSPosition": { - "line": 2, - "character": 30 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 113, - "LSPosition": { - "line": 3, - "character": 19 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 119, - "LSPosition": { - "line": 3, - "character": 25 - }, - "Name": "6", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 122, - "LSPosition": { - "line": 3, - "character": 28 - }, - "Name": "7", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 128, - "LSPosition": { - "line": 3, - "character": 34 - }, - "Name": "8", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 132, - "LSPosition": { - "line": 3, - "character": 38 - }, - "Name": "9", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 133, - "LSPosition": { - "line": 3, - "character": 39 - }, - "Name": "10", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 138, - "LSPosition": { - "line": 3, - "character": 44 - }, - "Name": "11", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 139, - "LSPosition": { - "line": 3, - "character": 45 - }, - "Name": "12", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Type(a: any, b: any, c: any): void", - "parameters": [ - { - "label": "a: any" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc deleted file mode 100644 index 3ac1bec561..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpCommentsClass.baseline.jsonc +++ /dev/null @@ -1,215 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpCommentsClass.ts === -// /** This is class c2 without constructor*/ -// class c2 { -// } -// var i2 = new c2(); -// ^ -// | ---------------------------------------------------------------------- -// | c2(): c2 -// | ---------------------------------------------------------------------- -// var i2_c = c2; -// class c3 { -// /** Constructor comment*/ -// constructor() { -// } -// } -// var i3 = new c3(); -// ^ -// | ---------------------------------------------------------------------- -// | c3(): c3 -// | ---------------------------------------------------------------------- -// var i3_c = c3; -// /** Class comment*/ -// class c4 { -// /** Constructor comment*/ -// constructor() { -// } -// } -// var i4 = new c4(); -// ^ -// | ---------------------------------------------------------------------- -// | c4(): c4 -// | ---------------------------------------------------------------------- -// var i4_c = c4; -// /** Class with statics*/ -// class c5 { -// static s1: number; -// } -// var i5 = new c5(); -// ^ -// | ---------------------------------------------------------------------- -// | c5(): c5 -// | ---------------------------------------------------------------------- -// var i5_c = c5; -// /** class with statics and constructor*/ -// class c6 { -// /** s1 comment*/ -// static s1: number; -// /** constructor comment*/ -// constructor() { -// } -// } -// var i6 = new c6(); -// ^ -// | ---------------------------------------------------------------------- -// | c6(): c6 -// | ---------------------------------------------------------------------- -// var i6_c = c6; -// -// class a { -// /** -// constructor for a -// @param a this is my a -// */ -// constructor(a: string) { -// } -// } -// new a("Hello"); -// ^ -// | ---------------------------------------------------------------------- -// | a(**a: string**): a -// | ---------------------------------------------------------------------- -// module m { -// export module m2 { -// /** class comment */ -// export class c1 { -// /** constructor comment*/ -// constructor() { -// } -// } -// } -// } -// var myVar = new m.m2.c1(); -[ - { - "marker": { - "Position": 72, - "LSPosition": { - "line": 3, - "character": 16 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "c2(): c2", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 175, - "LSPosition": { - "line": 10, - "character": 16 - }, - "Name": "8", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "c3(): c3", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 298, - "LSPosition": { - "line": 18, - "character": 16 - }, - "Name": "13", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "c4(): c4", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 393, - "LSPosition": { - "line": 24, - "character": 16 - }, - "Name": "18", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "c5(): c5", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 581, - "LSPosition": { - "line": 34, - "character": 16 - }, - "Name": "23", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "c6(): c6", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 716, - "LSPosition": { - "line": 45, - "character": 6 - }, - "Name": "27", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "a(a: string): a", - "parameters": [ - { - "label": "a: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc deleted file mode 100644 index 3240abb65d..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpCommentsClassMembers.baseline.jsonc +++ /dev/null @@ -1,624 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpCommentsClassMembers.ts === -// /** This is comment for c1*/ -// class c1 { -// /** p1 is property of c1*/ -// public p1: number; -// /** sum with property*/ -// public p2(/** number to add*/b: number) { -// return this.p1 + b; -// } -// /** getter property 1*/ -// public get p3() { -// return this.p2(this.p1); -// ^ -// | ---------------------------------------------------------------------- -// | p2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// /** setter property 1*/ -// public set p3(/** this is value*/value: number) { -// this.p1 = this.p2(value); -// ^ -// | ---------------------------------------------------------------------- -// | p2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// /** pp1 is property of c1*/ -// private pp1: number; -// /** sum with property*/ -// private pp2(/** number to add*/b: number) { -// return this.p1 + b; -// } -// /** getter property 2*/ -// private get pp3() { -// return this.pp2(this.pp1); -// ^ -// | ---------------------------------------------------------------------- -// | pp2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// /** setter property 2*/ -// private set pp3( /** this is value*/value: number) { -// this.pp1 = this.pp2(value); -// ^ -// | ---------------------------------------------------------------------- -// | pp2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// /** Constructor method*/ -// constructor() { -// } -// /** s1 is static property of c1*/ -// static s1: number; -// /** static sum with property*/ -// static s2(/** number to add*/b: number) { -// return c1.s1 + b; -// } -// /** static getter property*/ -// static get s3() { -// return c1.s2(c1.s1); -// ^ -// | ---------------------------------------------------------------------- -// | s2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// /** setter property 3*/ -// static set s3( /** this is value*/value: number) { -// c1.s1 = c1.s2(value); -// ^ -// | ---------------------------------------------------------------------- -// | s2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// public nc_p1: number; -// public nc_p2(b: number) { -// return this.nc_p1 + b; -// } -// public get nc_p3() { -// return this.nc_p2(this.nc_p1); -// ^ -// | ---------------------------------------------------------------------- -// | nc_p2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// public set nc_p3(value: number) { -// this.nc_p1 = this.nc_p2(value); -// ^ -// | ---------------------------------------------------------------------- -// | nc_p2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// private nc_pp1: number; -// private nc_pp2(b: number) { -// return this.nc_pp1 + b; -// } -// private get nc_pp3() { -// return this.nc_pp2(this.nc_pp1); -// ^ -// | ---------------------------------------------------------------------- -// | nc_pp2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// private set nc_pp3(value: number) { -// this.nc_pp1 = this.nc_pp2(value); -// ^ -// | ---------------------------------------------------------------------- -// | nc_pp2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// static nc_s1: number; -// static nc_s2(b: number) { -// return c1.nc_s1 + b; -// } -// static get nc_s3() { -// return c1.nc_s2(c1.nc_s1); -// ^ -// | ---------------------------------------------------------------------- -// | nc_s2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// static set nc_s3(value: number) { -// c1.nc_s1 = c1.nc_s2(value); -// ^ -// | ---------------------------------------------------------------------- -// | nc_s2(**b: number**): number -// | ---------------------------------------------------------------------- -// } -// } -// var i1 = new c1(); -// ^ -// | ---------------------------------------------------------------------- -// | c1(): c1 -// | ---------------------------------------------------------------------- -// var i1_p = i1.p1; -// var i1_f = i1.p2; -// var i1_r = i1.p2(20); -// ^ -// | ---------------------------------------------------------------------- -// | p2(**b: number**): number -// | ---------------------------------------------------------------------- -// var i1_prop = i1.p3; -// i1.p3 = i1_prop; -// var i1_nc_p = i1.nc_p1; -// var i1_ncf = i1.nc_p2; -// var i1_ncr = i1.nc_p2(20); -// ^ -// | ---------------------------------------------------------------------- -// | nc_p2(**b: number**): number -// | ---------------------------------------------------------------------- -// var i1_ncprop = i1.nc_p3; -// i1.nc_p3 = i1_ncprop; -// var i1_s_p = c1.s1; -// var i1_s_f = c1.s2; -// var i1_s_r = c1.s2(20); -// ^ -// | ---------------------------------------------------------------------- -// | s2(**b: number**): number -// | ---------------------------------------------------------------------- -// var i1_s_prop = c1.s3; -// c1.s3 = i1_s_prop; -// var i1_s_nc_p = c1.nc_s1; -// var i1_s_ncf = c1.nc_s2; -// var i1_s_ncr = c1.nc_s2(20); -// ^ -// | ---------------------------------------------------------------------- -// | nc_s2(**b: number**): number -// | ---------------------------------------------------------------------- -// var i1_s_ncprop = c1.nc_s3; -// c1.nc_s3 = i1_s_ncprop; -// var i1_c = c1; -// -// class cProperties { -// private val: number; -// /** getter only property*/ -// public get p1() { -// return this.val; -// } -// public get nc_p1() { -// return this.val; -// } -// /**setter only property*/ -// public set p2(value: number) { -// this.val = value; -// } -// public set nc_p2(value: number) { -// this.val = value; -// } -// } -// var cProperties_i = new cProperties(); -// cProperties_i.p2 = cProperties_i.p1; -// cProperties_i.nc_p2 = cProperties_i.nc_p1; -// class cWithConstructorProperty { -// /** -// * this is class cWithConstructorProperty's constructor -// * @param a this is first parameter a -// */ -// constructor(/**more info about a*/public a: number) { -// var bbbb = 10; -// this.a = a + 2 + bbbb; -// } -// } -[ - { - "marker": { - "Position": 275, - "LSPosition": { - "line": 10, - "character": 23 - }, - "Name": "8", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "p2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 399, - "LSPosition": { - "line": 14, - "character": 26 - }, - "Name": "13", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "p2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 656, - "LSPosition": { - "line": 24, - "character": 24 - }, - "Name": "20", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "pp2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 786, - "LSPosition": { - "line": 28, - "character": 28 - }, - "Name": "25", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "pp2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1105, - "LSPosition": { - "line": 41, - "character": 21 - }, - "Name": "35", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "s2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1224, - "LSPosition": { - "line": 45, - "character": 22 - }, - "Name": "42", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "s2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1382, - "LSPosition": { - "line": 52, - "character": 26 - }, - "Name": "47", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_p2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1471, - "LSPosition": { - "line": 55, - "character": 32 - }, - "Name": "49", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_p2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1637, - "LSPosition": { - "line": 62, - "character": 27 - }, - "Name": "54", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_pp2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1731, - "LSPosition": { - "line": 65, - "character": 34 - }, - "Name": "56", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_pp2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1885, - "LSPosition": { - "line": 72, - "character": 24 - }, - "Name": "61", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_s2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1968, - "LSPosition": { - "line": 75, - "character": 28 - }, - "Name": "63", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_s2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2000, - "LSPosition": { - "line": 78, - "character": 16 - }, - "Name": "65", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "c1(): c1", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2056, - "LSPosition": { - "line": 81, - "character": 17 - }, - "Name": "71", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "p2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2168, - "LSPosition": { - "line": 86, - "character": 22 - }, - "Name": "81", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_p2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2280, - "LSPosition": { - "line": 91, - "character": 19 - }, - "Name": "92", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "s2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2402, - "LSPosition": { - "line": 96, - "character": 24 - }, - "Name": "102", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "nc_s2(b: number): number", - "parameters": [ - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc deleted file mode 100644 index e347d6162a..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpCommentsCommentParsing.baseline.jsonc +++ /dev/null @@ -1,1658 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpCommentsCommentParsing.ts === -// /// This is simple /// comments -// function simple() { -// } -// -// simple( ); -// ^ -// | ---------------------------------------------------------------------- -// | simple(): void -// | ---------------------------------------------------------------------- -// -// /// multiLine /// Comments -// /// This is example of multiline /// comments -// /// Another multiLine -// function multiLine() { -// } -// multiLine( ); -// ^ -// | ---------------------------------------------------------------------- -// | multiLine(): void -// | ---------------------------------------------------------------------- -// -// /** this is eg of single line jsdoc style comment */ -// function jsDocSingleLine() { -// } -// jsDocSingleLine(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocSingleLine(): void -// | ---------------------------------------------------------------------- -// -// -// /** this is multiple line jsdoc stule comment -// *New line1 -// *New Line2*/ -// function jsDocMultiLine() { -// } -// jsDocMultiLine(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMultiLine(): void -// | ---------------------------------------------------------------------- -// -// /** multiple line jsdoc comments no longer merge -// *New line1 -// *New Line2*/ -// /** Shoul mege this line as well -// * and this too*/ /** Another this one too*/ -// function jsDocMultiLineMerge() { -// } -// jsDocMultiLineMerge(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMultiLineMerge(): void -// | ---------------------------------------------------------------------- -// -// -// /// Triple slash comment -// /** jsdoc comment */ -// function jsDocMixedComments1() { -// } -// jsDocMixedComments1(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMixedComments1(): void -// | ---------------------------------------------------------------------- -// -// /// Triple slash comment -// /** jsdoc comment */ /** another jsDocComment*/ -// function jsDocMixedComments2() { -// } -// jsDocMixedComments2(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMixedComments2(): void -// | ---------------------------------------------------------------------- -// -// /** jsdoc comment */ /*** triplestar jsDocComment*/ -// /// Triple slash comment -// function jsDocMixedComments3() { -// } -// jsDocMixedComments3(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMixedComments3(): void -// | ---------------------------------------------------------------------- -// -// /** jsdoc comment */ /** another jsDocComment*/ -// /// Triple slash comment -// /// Triple slash comment 2 -// function jsDocMixedComments4() { -// } -// jsDocMixedComments4(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMixedComments4(): void -// | ---------------------------------------------------------------------- -// -// /// Triple slash comment 1 -// /** jsdoc comment */ /** another jsDocComment*/ -// /// Triple slash comment -// /// Triple slash comment 2 -// function jsDocMixedComments5() { -// } -// jsDocMixedComments5(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMixedComments5(): void -// | ---------------------------------------------------------------------- -// -// /** another jsDocComment*/ -// /// Triple slash comment 1 -// /// Triple slash comment -// /// Triple slash comment 2 -// /** jsdoc comment */ -// function jsDocMixedComments6() { -// } -// jsDocMixedComments6(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocMixedComments6(): void -// | ---------------------------------------------------------------------- -// -// // This shoulnot be help comment -// function noHelpComment1() { -// } -// noHelpComment1(); -// ^ -// | ---------------------------------------------------------------------- -// | noHelpComment1(): void -// | ---------------------------------------------------------------------- -// -// /* This shoulnot be help comment */ -// function noHelpComment2() { -// } -// noHelpComment2(); -// ^ -// | ---------------------------------------------------------------------- -// | noHelpComment2(): void -// | ---------------------------------------------------------------------- -// -// function noHelpComment3() { -// } -// noHelpComment3(); -// ^ -// | ---------------------------------------------------------------------- -// | noHelpComment3(): void -// | ---------------------------------------------------------------------- -// /** Adds two integers and returns the result -// * @param {number} a first number -// * @param b second number -// */ -// function sum(a: number, b: number) { -// return a + b; -// } -// sum(10, 20); -// ^ -// | ---------------------------------------------------------------------- -// | sum(**a: number**, b: number): number -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | sum(a: number, **b: number**): number -// | ---------------------------------------------------------------------- -// /** This is multiplication function -// * @param -// * @param a first number -// * @param b -// * @param c { -// @param d @anotherTag -// * @param e LastParam @anotherTag*/ -// function multiply(a: number, b: number, c?: number, d?, e?) { -// } -// multiply(10, 20, 30, 40, 50); -// ^ -// | ---------------------------------------------------------------------- -// | multiply(**a: number**, b: number, c?: number, d?: any, e?: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | multiply(a: number, **b: number**, c?: number, d?: any, e?: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | multiply(a: number, b: number, **c?: number**, d?: any, e?: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | multiply(a: number, b: number, c?: number, **d?: any**, e?: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | multiply(a: number, b: number, c?: number, d?: any, **e?: any**): void -// | ---------------------------------------------------------------------- -// /** fn f1 with number -// * @param { string} b about b -// */ -// function f1(a: number); -// function f1(b: string); -// /**@param opt optional parameter*/ -// function f1(aOrb, opt?) { -// return aOrb; -// } -// f1(10); -// ^ -// | ---------------------------------------------------------------------- -// | f1(**a: number**): any -// | ---------------------------------------------------------------------- -// f1("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | f1(**b: string**): any -// | ---------------------------------------------------------------------- -// -// /** This is subtract function -// @param { a -// *@param { number | } b this is about b -// @param { { () => string; } } c this is optional param c -// @param { { () => string; } d this is optional param d -// @param { { () => string; } } e this is optional param e -// @param { { { () => string; } } f this is optional param f -// */ -// function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { -// } -// subtract(10, 20, null, null, null, null); -// ^ -// | ---------------------------------------------------------------------- -// | subtract(**a: number**, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | subtract(a: number, **b: number**, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | subtract(a: number, b: number, **c?: () => string**, d?: () => string, e?: () => string, f?: () => string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | subtract(a: number, b: number, c?: () => string, **d?: () => string**, e?: () => string, f?: () => string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | subtract(a: number, b: number, c?: () => string, d?: () => string, **e?: () => string**, f?: () => string): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, **f?: () => string**): void -// | ---------------------------------------------------------------------- -// /** this is square function -// @paramTag { number } a this is input number of paramTag -// @param { number } a this is input number -// @returnType { number } it is return type -// */ -// function square(a: number) { -// return a * a; -// } -// square(10); -// ^ -// | ---------------------------------------------------------------------- -// | square(**a: number**): number -// | ---------------------------------------------------------------------- -// /** this is divide function -// @param { number} a this is a -// @paramTag { number } g this is optional param g -// @param { number} b this is b -// */ -// function divide(a: number, b: number) { -// } -// divide(10, 20); -// ^ -// | ---------------------------------------------------------------------- -// | divide(**a: number**, b: number): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | divide(a: number, **b: number**): void -// | ---------------------------------------------------------------------- -// /** -// Function returns string concat of foo and bar -// @param {string} foo is string -// @param {string} bar is second string -// */ -// function fooBar(foo: string, bar: string) { -// return foo + bar; -// } -// fooBar("foo","bar"); -// ^ -// | ---------------------------------------------------------------------- -// | fooBar(**foo: string**, bar: string): string -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | fooBar(foo: string, **bar: string**): string -// | ---------------------------------------------------------------------- -// /** This is a comment */ -// var x; -// /** -// * This is a comment -// */ -// var y; -// /** this is jsdoc style function with param tag as well as inline parameter help -// *@param a it is first parameter -// *@param c it is third parameter -// */ -// function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { -// return a + b + c + d; -// ^ -// | ---------------------------------------------------------------------- -// | No signaturehelp at /*39*/. -// | ---------------------------------------------------------------------- -// } -// jsDocParamTest(30, 40, 50, 60); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocParamTest(**a: number**, b: number, c: number, d: number): number -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | jsDocParamTest(a: number, **b: number**, c: number, d: number): number -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | jsDocParamTest(a: number, b: number, **c: number**, d: number): number -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | jsDocParamTest(a: number, b: number, c: number, **d: number**): number -// | ---------------------------------------------------------------------- -// /** This is function comment -// * And properly aligned comment -// */ -// function jsDocCommentAlignmentTest1() { -// } -// jsDocCommentAlignmentTest1(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocCommentAlignmentTest1(): void -// | ---------------------------------------------------------------------- -// /** This is function comment -// * And aligned with 4 space char margin -// */ -// function jsDocCommentAlignmentTest2() { -// } -// jsDocCommentAlignmentTest2(); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocCommentAlignmentTest2(): void -// | ---------------------------------------------------------------------- -// /** This is function comment -// * And aligned with 4 space char margin -// * @param {string} a this is info about a -// * spanning on two lines and aligned perfectly -// * @param b this is info about b -// * spanning on two lines and aligned perfectly -// * spanning one more line alined perfectly -// * spanning another line with more margin -// * @param c this is info about b -// * not aligned text about parameter will eat only one space -// */ -// function jsDocCommentAlignmentTest3(a: string, b, c) { -// } -// jsDocCommentAlignmentTest3("hello",1, 2); -// ^ -// | ---------------------------------------------------------------------- -// | jsDocCommentAlignmentTest3(**a: string**, b: any, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | jsDocCommentAlignmentTest3(a: string, **b: any**, c: any): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | jsDocCommentAlignmentTest3(a: string, b: any, **c: any**): void -// | ---------------------------------------------------------------------- -// -// ^ -// | ---------------------------------------------------------------------- -// | No signaturehelp at /**/. -// | ---------------------------------------------------------------------- -// class NoQuickInfoClass { -// } -[ - { - "marker": { - "Position": 63, - "LSPosition": { - "line": 4, - "character": 8 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "simple(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 198, - "LSPosition": { - "line": 11, - "character": 11 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "multiLine(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 302, - "LSPosition": { - "line": 16, - "character": 16 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocSingleLine(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 422, - "LSPosition": { - "line": 24, - "character": 15 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMultiLine(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 631, - "LSPosition": { - "line": 33, - "character": 20 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMultiLineMerge(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 737, - "LSPosition": { - "line": 40, - "character": 20 - }, - "Name": "6", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMixedComments1(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 869, - "LSPosition": { - "line": 46, - "character": 20 - }, - "Name": "7", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMixedComments2(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1005, - "LSPosition": { - "line": 52, - "character": 20 - }, - "Name": "8", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMixedComments3(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1164, - "LSPosition": { - "line": 59, - "character": 20 - }, - "Name": "9", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMixedComments4(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1350, - "LSPosition": { - "line": 67, - "character": 20 - }, - "Name": "10", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMixedComments5(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1536, - "LSPosition": { - "line": 76, - "character": 20 - }, - "Name": "11", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocMixedComments6(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1618, - "LSPosition": { - "line": 81, - "character": 15 - }, - "Name": "12", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "noHelpComment1(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1703, - "LSPosition": { - "line": 86, - "character": 15 - }, - "Name": "13", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "noHelpComment2(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1752, - "LSPosition": { - "line": 90, - "character": 15 - }, - "Name": "14", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "noHelpComment3(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1928, - "LSPosition": { - "line": 98, - "character": 4 - }, - "Name": "16", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "sum(a: number, b: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1932, - "LSPosition": { - "line": 98, - "character": 8 - }, - "Name": "17", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "sum(a: number, b: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 2166, - "LSPosition": { - "line": 108, - "character": 9 - }, - "Name": "19", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: number" - }, - { - "label": "d?: any" - }, - { - "label": "e?: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2169, - "LSPosition": { - "line": 108, - "character": 12 - }, - "Name": "20", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: number" - }, - { - "label": "d?: any" - }, - { - "label": "e?: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 2173, - "LSPosition": { - "line": 108, - "character": 16 - }, - "Name": "21", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: number" - }, - { - "label": "d?: any" - }, - { - "label": "e?: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 2178, - "LSPosition": { - "line": 108, - "character": 21 - }, - "Name": "22", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: number" - }, - { - "label": "d?: any" - }, - { - "label": "e?: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 3 - } - }, - { - "marker": { - "Position": 2182, - "LSPosition": { - "line": 108, - "character": 25 - }, - "Name": "23", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "multiply(a: number, b: number, c?: number, d?: any, e?: any): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: number" - }, - { - "label": "d?: any" - }, - { - "label": "e?: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 4 - } - }, - { - "marker": { - "Position": 2372, - "LSPosition": { - "line": 118, - "character": 3 - }, - "Name": "25", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(a: number): any", - "parameters": [ - { - "label": "a: number" - } - ] - }, - { - "label": "f1(b: string): any", - "parameters": [ - { - "label": "b: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2380, - "LSPosition": { - "line": 119, - "character": 3 - }, - "Name": "26", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f1(a: number): any", - "parameters": [ - { - "label": "a: number" - } - ] - }, - { - "label": "f1(b: string): any", - "parameters": [ - { - "label": "b: string" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2823, - "LSPosition": { - "line": 131, - "character": 9 - }, - "Name": "28", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: () => string" - }, - { - "label": "d?: () => string" - }, - { - "label": "e?: () => string" - }, - { - "label": "f?: () => string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 2827, - "LSPosition": { - "line": 131, - "character": 13 - }, - "Name": "29", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: () => string" - }, - { - "label": "d?: () => string" - }, - { - "label": "e?: () => string" - }, - { - "label": "f?: () => string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 2832, - "LSPosition": { - "line": 131, - "character": 18 - }, - "Name": "30", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: () => string" - }, - { - "label": "d?: () => string" - }, - { - "label": "e?: () => string" - }, - { - "label": "f?: () => string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 2839, - "LSPosition": { - "line": 131, - "character": 25 - }, - "Name": "31", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: () => string" - }, - { - "label": "d?: () => string" - }, - { - "label": "e?: () => string" - }, - { - "label": "f?: () => string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 3 - } - }, - { - "marker": { - "Position": 2846, - "LSPosition": { - "line": 131, - "character": 32 - }, - "Name": "32", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: () => string" - }, - { - "label": "d?: () => string" - }, - { - "label": "e?: () => string" - }, - { - "label": "f?: () => string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 4 - } - }, - { - "marker": { - "Position": 2853, - "LSPosition": { - "line": 131, - "character": 39 - }, - "Name": "33", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c?: () => string" - }, - { - "label": "d?: () => string" - }, - { - "label": "e?: () => string" - }, - { - "label": "f?: () => string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 5 - } - }, - { - "marker": { - "Position": 3085, - "LSPosition": { - "line": 140, - "character": 7 - }, - "Name": "34", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "square(a: number): number", - "parameters": [ - { - "label": "a: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 3276, - "LSPosition": { - "line": 148, - "character": 7 - }, - "Name": "35", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "divide(a: number, b: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 3280, - "LSPosition": { - "line": 148, - "character": 11 - }, - "Name": "36", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "divide(a: number, b: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 3491, - "LSPosition": { - "line": 157, - "character": 7 - }, - "Name": "37", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fooBar(foo: string, bar: string): string", - "parameters": [ - { - "label": "foo: string" - }, - { - "label": "bar: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 3497, - "LSPosition": { - "line": 157, - "character": 13 - }, - "Name": "38", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fooBar(foo: string, bar: string): string", - "parameters": [ - { - "label": "foo: string" - }, - { - "label": "bar: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 3874, - "LSPosition": { - "line": 169, - "character": 11 - }, - "Name": "39", - "Data": {} - }, - "item": null - }, - { - "marker": { - "Position": 3906, - "LSPosition": { - "line": 171, - "character": 15 - }, - "Name": "40", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - }, - { - "label": "d: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 3910, - "LSPosition": { - "line": 171, - "character": 19 - }, - "Name": "41", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - }, - { - "label": "d: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 3914, - "LSPosition": { - "line": 171, - "character": 23 - }, - "Name": "42", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - }, - { - "label": "d: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 3918, - "LSPosition": { - "line": 171, - "character": 27 - }, - "Name": "43", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocParamTest(a: number, b: number, c: number, d: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - }, - { - "label": "d: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 3 - } - }, - { - "marker": { - "Position": 4059, - "LSPosition": { - "line": 177, - "character": 27 - }, - "Name": "45", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocCommentAlignmentTest1(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 4210, - "LSPosition": { - "line": 183, - "character": 27 - }, - "Name": "46", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocCommentAlignmentTest2(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 4826, - "LSPosition": { - "line": 197, - "character": 27 - }, - "Name": "47", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocCommentAlignmentTest3(a: string, b: any, c: any): void", - "parameters": [ - { - "label": "a: string" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 4834, - "LSPosition": { - "line": 197, - "character": 35 - }, - "Name": "48", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocCommentAlignmentTest3(a: string, b: any, c: any): void", - "parameters": [ - { - "label": "a: string" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 4837, - "LSPosition": { - "line": 197, - "character": 38 - }, - "Name": "49", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "jsDocCommentAlignmentTest3(a: string, b: any, c: any): void", - "parameters": [ - { - "label": "a: string" - }, - { - "label": "b: any" - }, - { - "label": "c: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 4841, - "LSPosition": { - "line": 198, - "character": 0 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc deleted file mode 100644 index 7eeca6af5e..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionDeclaration.baseline.jsonc +++ /dev/null @@ -1,139 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpCommentsFunctionDeclaration.ts === -// /** This comment should appear for foo*/ -// function foo() { -// } -// foo(); -// ^ -// | ---------------------------------------------------------------------- -// | foo(): void -// | ---------------------------------------------------------------------- -// /** This is comment for function signature*/ -// function fooWithParameters(/** this is comment about a*/a: string, -// /** this is comment for b*/ -// b: number) { -// var d = a; -// } -// fooWithParameters("a",10); -// ^ -// | ---------------------------------------------------------------------- -// | fooWithParameters(**a: string**, b: number): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | fooWithParameters(a: string, **b: number**): void -// | ---------------------------------------------------------------------- -// /** -// * Does something -// * @param a a string -// */ -// declare function fn(a: string); -// fn("hello"); -// ^ -// | ---------------------------------------------------------------------- -// | fn(**a: string**): any -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 64, - "LSPosition": { - "line": 3, - "character": 4 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "foo(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 263, - "LSPosition": { - "line": 10, - "character": 18 - }, - "Name": "10", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fooWithParameters(a: string, b: number): void", - "parameters": [ - { - "label": "a: string" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 267, - "LSPosition": { - "line": 10, - "character": 22 - }, - "Name": "11", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fooWithParameters(a: string, b: number): void", - "parameters": [ - { - "label": "a: string" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 351, - "LSPosition": { - "line": 16, - "character": 3 - }, - "Name": "12", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: string): any", - "parameters": [ - { - "label": "a: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc deleted file mode 100644 index ddd0d0daad..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpCommentsFunctionExpression.baseline.jsonc +++ /dev/null @@ -1,123 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpCommentsFunctionExpression.ts === -// /** lambdaFoo var comment*/ -// var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; -// var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; -// lambdaFoo(10, 20); -// ^ -// | ---------------------------------------------------------------------- -// | lambdaFoo(**a: number**, b: number): number -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | lambdaFoo(a: number, **b: number**): number -// | ---------------------------------------------------------------------- -// function anotherFunc(a: number) { -// /** documentation -// @param b {string} inner parameter */ -// var lambdaVar = /** inner docs */(b: string) => { -// var localVar = "Hello "; -// return localVar + b; -// } -// return lambdaVar("World") + a; -// } -// /** -// * On variable -// * @param s the first parameter! -// * @returns the parameter's length -// */ -// var assigned = /** -// * Summary on expression -// * @param s param on expression -// * @returns return on expression -// */function(/** On parameter */s: string) { -// return s.length; -// } -// assigned("hey"); -// ^ -// | ---------------------------------------------------------------------- -// | assigned(**s: string**): number -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 259, - "LSPosition": { - "line": 3, - "character": 10 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "lambdaFoo(a: number, b: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 263, - "LSPosition": { - "line": 3, - "character": 14 - }, - "Name": "6", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "lambdaFoo(a: number, b: number): number", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 862, - "LSPosition": { - "line": 25, - "character": 9 - }, - "Name": "18", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "assigned(s: string): number", - "parameters": [ - { - "label": "s: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc deleted file mode 100644 index a9c2da5bea..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpConstructorCallParamProperties.baseline.jsonc +++ /dev/null @@ -1,42 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpConstructorCallParamProperties.ts === -// class Circle { -// /** -// * Initialize a circle. -// * @param radius The radius of the circle. -// */ -// constructor(private radius: number) { -// } -// } -// var a = new Circle( -// ^ -// | ---------------------------------------------------------------------- -// | Circle(**radius: number**): Circle -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 179, - "LSPosition": { - "line": 8, - "character": 19 - }, - "Name": "", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Circle(radius: number): Circle", - "parameters": [ - { - "label": "radius: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc deleted file mode 100644 index 97fcdc0a24..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpExpandedRestTuplesLocalLabels1.baseline.jsonc +++ /dev/null @@ -1,1339 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpExpandedRestTuplesLocalLabels1.ts === -// interface AppleInfo { -// color: "green" | "red"; -// } -// -// interface BananaInfo { -// curvature: number; -// } -// -// type FruitAndInfo1 = ["apple", AppleInfo] | ["banana", BananaInfo]; -// -// function logFruitTuple1(...[fruit, info]: FruitAndInfo1) {} -// logFruitTuple1(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple1(**fruit: "apple"**, info: AppleInfo): void -// | ---------------------------------------------------------------------- -// -// function logFruitTuple2(...[, info]: FruitAndInfo1) {} -// logFruitTuple2(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple2(**arg_0: "apple"**, info: AppleInfo): void -// | ---------------------------------------------------------------------- -// logFruitTuple2("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple2(arg_0: "apple", **info: AppleInfo**): void -// | ---------------------------------------------------------------------- -// -// function logFruitTuple3(...[fruit, ...rest]: FruitAndInfo1) {} -// logFruitTuple3(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple3(**fruit: "apple"**, rest_0: AppleInfo): void -// | ---------------------------------------------------------------------- -// logFruitTuple3("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple3(fruit: "apple", **rest_0: AppleInfo**): void -// | ---------------------------------------------------------------------- -// function logFruitTuple4(...[fruit, ...[info]]: FruitAndInfo1) {} -// logFruitTuple4(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple4(**fruit: "apple"**, info: AppleInfo): void -// | ---------------------------------------------------------------------- -// logFruitTuple4("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple4(fruit: "apple", **info: AppleInfo**): void -// | ---------------------------------------------------------------------- -// -// type FruitAndInfo2 = ["apple", ...AppleInfo[]] | ["banana", ...BananaInfo[]]; -// -// function logFruitTuple5(...[fruit, firstInfo]: FruitAndInfo2) {} -// logFruitTuple5(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple5(**fruit: "apple"**, ...firstInfo_n: AppleInfo[]): void -// | ---------------------------------------------------------------------- -// logFruitTuple5("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple5(fruit: "apple", **...firstInfo_n: AppleInfo[]**): void -// | ---------------------------------------------------------------------- -// -// function logFruitTuple6(...[fruit, ...fruitInfo]: FruitAndInfo2) {} -// logFruitTuple6(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple6(**fruit: "apple"**, ...fruitInfo: AppleInfo[]): void -// | ---------------------------------------------------------------------- -// logFruitTuple6("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple6(fruit: "apple", **...fruitInfo: AppleInfo[]**): void -// | ---------------------------------------------------------------------- -// -// type FruitAndInfo3 = ["apple", ...AppleInfo[], number] | ["banana", ...BananaInfo[], number]; -// -// function logFruitTuple7(...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]: FruitAndInfo3) {} -// logFruitTuple7(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple7(**fruit: "apple"**, ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple7("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple7(fruit: "apple", **...fruitInfoOrNumber_n: AppleInfo[]**, secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple7("apple", { color: "red" }, ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple7(fruit: "apple", ...fruitInfoOrNumber_n: AppleInfo[], **secondFruitInfoOrNumber: number**): void -// | ---------------------------------------------------------------------- -// -// function logFruitTuple8(...[fruit, , secondFruitInfoOrNumber]: FruitAndInfo3) {} -// logFruitTuple8(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple8(**fruit: "apple"**, ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple8("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple8(fruit: "apple", **...arg_1: AppleInfo[]**, secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple8("apple", { color: "red" }, ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple8(fruit: "apple", ...arg_1: AppleInfo[], **secondFruitInfoOrNumber: number**): void -// | ---------------------------------------------------------------------- -// -// function logFruitTuple9(...[...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]]: FruitAndInfo3) {} -// logFruitTuple9(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple9(**fruit: "apple"**, ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple9("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple9(fruit: "apple", **...fruitInfoOrNumber_n: AppleInfo[]**, secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple9("apple", { color: "red" }, ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple9(fruit: "apple", ...fruitInfoOrNumber_n: AppleInfo[], **secondFruitInfoOrNumber: number**): void -// | ---------------------------------------------------------------------- -// -// function logFruitTuple10(...[fruit, {}, secondFruitInfoOrNumber]: FruitAndInfo3) {} -// logFruitTuple10(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple10(**fruit: "apple"**, ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple10("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple10(fruit: "apple", **...arg_1: AppleInfo[]**, secondFruitInfoOrNumber: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple10("apple", { color: "red" }, ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple10(fruit: "apple", ...arg_1: AppleInfo[], **secondFruitInfoOrNumber: number**): void -// | ---------------------------------------------------------------------- -// -// function logFruitTuple11(...{}: FruitAndInfo3) {} -// logFruitTuple11(); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple11(**arg_0: "apple"**, ...arg_1: AppleInfo[], arg_2: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple11("apple", ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple11(arg_0: "apple", **...arg_1: AppleInfo[]**, arg_2: number): void -// | ---------------------------------------------------------------------- -// logFruitTuple11("apple", { color: "red" }, ); -// ^ -// | ---------------------------------------------------------------------- -// | logFruitTuple11(arg_0: "apple", ...arg_1: AppleInfo[], **arg_2: number**): void -// | ---------------------------------------------------------------------- -// function withPair(...[first, second]: [number, named: string]) {} -// withPair(); -// ^ -// | ---------------------------------------------------------------------- -// | withPair(**first: number**, named: string): void -// | ---------------------------------------------------------------------- -// withPair(101, ); -// ^ -// | ---------------------------------------------------------------------- -// | withPair(first: number, **named: string**): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 251, - "LSPosition": { - "line": 11, - "character": 16 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple1(fruit: \"apple\", info: AppleInfo): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "info: AppleInfo" - } - ] - }, - { - "label": "logFruitTuple1(fruit: \"banana\", info: BananaInfo): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "info: BananaInfo" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 327, - "LSPosition": { - "line": 14, - "character": 16 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple2(arg_0: \"apple\", info: AppleInfo): void", - "parameters": [ - { - "label": "arg_0: \"apple\"" - }, - { - "label": "info: AppleInfo" - } - ] - }, - { - "label": "logFruitTuple2(arg_0: \"banana\", info: BananaInfo): void", - "parameters": [ - { - "label": "arg_0: \"banana\"" - }, - { - "label": "info: BananaInfo" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 355, - "LSPosition": { - "line": 15, - "character": 25 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple2(arg_0: \"apple\", info: AppleInfo): void", - "parameters": [ - { - "label": "arg_0: \"apple\"" - }, - { - "label": "info: AppleInfo" - } - ] - }, - { - "label": "logFruitTuple2(arg_0: \"banana\", info: BananaInfo): void", - "parameters": [ - { - "label": "arg_0: \"banana\"" - }, - { - "label": "info: BananaInfo" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 439, - "LSPosition": { - "line": 18, - "character": 16 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple3(fruit: \"apple\", rest_0: AppleInfo): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "rest_0: AppleInfo" - } - ] - }, - { - "label": "logFruitTuple3(fruit: \"banana\", rest_0: BananaInfo): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "rest_0: BananaInfo" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 467, - "LSPosition": { - "line": 19, - "character": 25 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple3(fruit: \"apple\", rest_0: AppleInfo): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "rest_0: AppleInfo" - } - ] - }, - { - "label": "logFruitTuple3(fruit: \"banana\", rest_0: BananaInfo): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "rest_0: BananaInfo" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 552, - "LSPosition": { - "line": 21, - "character": 16 - }, - "Name": "6", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple4(fruit: \"apple\", info: AppleInfo): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "info: AppleInfo" - } - ] - }, - { - "label": "logFruitTuple4(fruit: \"banana\", info: BananaInfo): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "info: BananaInfo" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 580, - "LSPosition": { - "line": 22, - "character": 25 - }, - "Name": "7", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple4(fruit: \"apple\", info: AppleInfo): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "info: AppleInfo" - } - ] - }, - { - "label": "logFruitTuple4(fruit: \"banana\", info: BananaInfo): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "info: BananaInfo" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 746, - "LSPosition": { - "line": 27, - "character": 16 - }, - "Name": "8", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple5(fruit: \"apple\", ...firstInfo_n: AppleInfo[]): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...firstInfo_n: AppleInfo[]" - } - ] - }, - { - "label": "logFruitTuple5(fruit: \"banana\", ...firstInfo_n: BananaInfo[]): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...firstInfo_n: BananaInfo[]" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 774, - "LSPosition": { - "line": 28, - "character": 25 - }, - "Name": "9", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple5(fruit: \"apple\", ...firstInfo_n: AppleInfo[]): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...firstInfo_n: AppleInfo[]" - } - ] - }, - { - "label": "logFruitTuple5(fruit: \"banana\", ...firstInfo_n: BananaInfo[]): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...firstInfo_n: BananaInfo[]" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 863, - "LSPosition": { - "line": 31, - "character": 16 - }, - "Name": "10", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple6(fruit: \"apple\", ...fruitInfo: AppleInfo[]): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfo: AppleInfo[]" - } - ] - }, - { - "label": "logFruitTuple6(fruit: \"banana\", ...fruitInfo: BananaInfo[]): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfo: BananaInfo[]" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 891, - "LSPosition": { - "line": 32, - "character": 25 - }, - "Name": "11", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple6(fruit: \"apple\", ...fruitInfo: AppleInfo[]): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfo: AppleInfo[]" - } - ] - }, - { - "label": "logFruitTuple6(fruit: \"banana\", ...fruitInfo: BananaInfo[]): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfo: BananaInfo[]" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 1106, - "LSPosition": { - "line": 37, - "character": 16 - }, - "Name": "12", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple7(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfoOrNumber_n: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple7(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfoOrNumber_n: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1134, - "LSPosition": { - "line": 38, - "character": 25 - }, - "Name": "13", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple7(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfoOrNumber_n: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple7(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfoOrNumber_n: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 1180, - "LSPosition": { - "line": 39, - "character": 43 - }, - "Name": "14", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple7(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfoOrNumber_n: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple7(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfoOrNumber_n: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 1282, - "LSPosition": { - "line": 42, - "character": 16 - }, - "Name": "15", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple8(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple8(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1310, - "LSPosition": { - "line": 43, - "character": 25 - }, - "Name": "16", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple8(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple8(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 1356, - "LSPosition": { - "line": 44, - "character": 43 - }, - "Name": "17", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple8(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple8(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 1480, - "LSPosition": { - "line": 47, - "character": 16 - }, - "Name": "18", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple9(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfoOrNumber_n: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple9(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfoOrNumber_n: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1508, - "LSPosition": { - "line": 48, - "character": 25 - }, - "Name": "19", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple9(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfoOrNumber_n: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple9(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfoOrNumber_n: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 1554, - "LSPosition": { - "line": 49, - "character": 43 - }, - "Name": "20", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple9(fruit: \"apple\", ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...fruitInfoOrNumber_n: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple9(fruit: \"banana\", ...fruitInfoOrNumber_n: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...fruitInfoOrNumber_n: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 1660, - "LSPosition": { - "line": 52, - "character": 17 - }, - "Name": "21", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple10(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple10(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1689, - "LSPosition": { - "line": 53, - "character": 26 - }, - "Name": "22", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple10(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple10(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 1736, - "LSPosition": { - "line": 54, - "character": 44 - }, - "Name": "23", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple10(fruit: \"apple\", ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - }, - { - "label": "logFruitTuple10(fruit: \"banana\", ...arg_1: BananaInfo[], secondFruitInfoOrNumber: number): void", - "parameters": [ - { - "label": "fruit: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "secondFruitInfoOrNumber: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 1808, - "LSPosition": { - "line": 57, - "character": 17 - }, - "Name": "24", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple11(arg_0: \"apple\", ...arg_1: AppleInfo[], arg_2: number): void", - "parameters": [ - { - "label": "arg_0: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "arg_2: number" - } - ] - }, - { - "label": "logFruitTuple11(arg_0: \"banana\", ...arg_1: BananaInfo[], arg_2: number): void", - "parameters": [ - { - "label": "arg_0: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "arg_2: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1837, - "LSPosition": { - "line": 58, - "character": 26 - }, - "Name": "25", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple11(arg_0: \"apple\", ...arg_1: AppleInfo[], arg_2: number): void", - "parameters": [ - { - "label": "arg_0: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "arg_2: number" - } - ] - }, - { - "label": "logFruitTuple11(arg_0: \"banana\", ...arg_1: BananaInfo[], arg_2: number): void", - "parameters": [ - { - "label": "arg_0: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "arg_2: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 1884, - "LSPosition": { - "line": 59, - "character": 44 - }, - "Name": "26", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "logFruitTuple11(arg_0: \"apple\", ...arg_1: AppleInfo[], arg_2: number): void", - "parameters": [ - { - "label": "arg_0: \"apple\"" - }, - { - "label": "...arg_1: AppleInfo[]" - }, - { - "label": "arg_2: number" - } - ] - }, - { - "label": "logFruitTuple11(arg_0: \"banana\", ...arg_1: BananaInfo[], arg_2: number): void", - "parameters": [ - { - "label": "arg_0: \"banana\"" - }, - { - "label": "...arg_1: BananaInfo[]" - }, - { - "label": "arg_2: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 1964, - "LSPosition": { - "line": 61, - "character": 10 - }, - "Name": "27", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "withPair(first: number, named: string): void", - "parameters": [ - { - "label": "first: number" - }, - { - "label": "named: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1982, - "LSPosition": { - "line": 62, - "character": 15 - }, - "Name": "28", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "withPair(first: number, named: string): void", - "parameters": [ - { - "label": "first: number" - }, - { - "label": "named: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc deleted file mode 100644 index eda29800b5..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpIteratorNext.baseline.jsonc +++ /dev/null @@ -1,287 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpIteratorNext.ts === -// declare const iterator: Iterator; -// -// iterator.next(); -// ^ -// | ---------------------------------------------------------------------- -// | next(): IteratorResult -// | ---------------------------------------------------------------------- -// iterator.next( 0); -// ^ -// | ---------------------------------------------------------------------- -// | next(**value: number**): IteratorResult -// | ---------------------------------------------------------------------- -// -// declare const generator: Generator; -// -// generator.next(); -// ^ -// | ---------------------------------------------------------------------- -// | next(): IteratorResult -// | ---------------------------------------------------------------------- -// generator.next( 0); -// ^ -// | ---------------------------------------------------------------------- -// | next(**value: number**): IteratorResult -// | ---------------------------------------------------------------------- -// -// declare const asyncIterator: AsyncIterator; -// -// asyncIterator.next(); -// ^ -// | ---------------------------------------------------------------------- -// | next(): Promise> -// | ---------------------------------------------------------------------- -// asyncIterator.next( 0); -// ^ -// | ---------------------------------------------------------------------- -// | next(**value: number**): Promise> -// | ---------------------------------------------------------------------- -// -// declare const asyncGenerator: AsyncGenerator; -// -// asyncGenerator.next(); -// ^ -// | ---------------------------------------------------------------------- -// | next(): Promise> -// | ---------------------------------------------------------------------- -// asyncGenerator.next( 0); -// ^ -// | ---------------------------------------------------------------------- -// | next(**value: number**): Promise> -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 73, - "LSPosition": { - "line": 2, - "character": 15 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): IteratorResult", - "parameters": [] - }, - { - "label": "next(value: number): IteratorResult", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 91, - "LSPosition": { - "line": 3, - "character": 15 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): IteratorResult", - "parameters": [] - }, - { - "label": "next(value: number): IteratorResult", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 173, - "LSPosition": { - "line": 7, - "character": 16 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): IteratorResult", - "parameters": [] - }, - { - "label": "next(value: number): IteratorResult", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 192, - "LSPosition": { - "line": 8, - "character": 16 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): IteratorResult", - "parameters": [] - }, - { - "label": "next(value: number): IteratorResult", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 286, - "LSPosition": { - "line": 12, - "character": 20 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): Promise>", - "parameters": [] - }, - { - "label": "next(value: number): Promise>", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 309, - "LSPosition": { - "line": 13, - "character": 20 - }, - "Name": "6", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): Promise>", - "parameters": [] - }, - { - "label": "next(value: number): Promise>", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 406, - "LSPosition": { - "line": 17, - "character": 21 - }, - "Name": "7", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): Promise>", - "parameters": [] - }, - { - "label": "next(value: number): Promise>", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 430, - "LSPosition": { - "line": 18, - "character": 21 - }, - "Name": "8", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "next(): Promise>", - "parameters": [] - }, - { - "label": "next(value: number): Promise>", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc deleted file mode 100644 index d9d476bfcb..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpJSDocCallbackTag.baseline.jsonc +++ /dev/null @@ -1,131 +0,0 @@ -// === SignatureHelp === -=== /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("!", 12, false); -// ^ -// | ---------------------------------------------------------------------- -// | t(**eventName: string**, eventName2: string | number, eventName3: any): number -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | t(eventName: string, **eventName2: string | number**, eventName3: any): number -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | t(eventName: string, eventName2: string | number, **eventName3: any**): number -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 480, - "LSPosition": { - "line": 21, - "character": 2 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "t(eventName: string, eventName2: string | number, eventName3: any): number", - "parameters": [ - { - "label": "eventName: string" - }, - { - "label": "eventName2: string | number" - }, - { - "label": "eventName3: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 485, - "LSPosition": { - "line": 21, - "character": 7 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "t(eventName: string, eventName2: string | number, eventName3: any): number", - "parameters": [ - { - "label": "eventName: string" - }, - { - "label": "eventName2: string | number" - }, - { - "label": "eventName3: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 489, - "LSPosition": { - "line": 21, - "character": 11 - }, - "Name": "6", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "t(eventName: string, eventName2: string | number, eventName3: any): number", - "parameters": [ - { - "label": "eventName: string" - }, - { - "label": "eventName2: string | number" - }, - { - "label": "eventName3: any" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc deleted file mode 100644 index b4af169f8c..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpJSDocTags.baseline.jsonc +++ /dev/null @@ -1,166 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpJSDocTags.ts === -// /** -// * This is class Foo. -// * @mytag comment1 comment2 -// */ -// class Foo { -// /** -// * This is the constructor. -// * @myjsdoctag this is a comment -// */ -// constructor(value: number) {} -// /** -// * method1 documentation -// * @mytag comment1 comment2 -// */ -// static method1() {} -// /** -// * @mytag -// */ -// method2() {} -// /** -// * @mytag comment1 comment2 -// */ -// property1: string; -// /** -// * @mytag1 some comments -// * some more comments about mytag1 -// * @mytag2 -// * here all the comments are on a new line -// * @mytag3 -// * @mytag -// */ -// property2: number; -// /** -// * @returns {number} a value -// */ -// method3(): number { return 3; } -// /** -// * @param {string} foo A value. -// * @returns {number} Another value -// * @mytag -// */ -// method4(foo: string): number { return 3; } -// /** @mytag */ -// method5() {} -// /** method documentation -// * @mytag a JSDoc tag -// */ -// newMethod() {} -// } -// var foo = new Foo(4); -// ^ -// | ---------------------------------------------------------------------- -// | Foo(**value: number**): Foo -// | ---------------------------------------------------------------------- -// Foo.method1(); -// ^ -// | ---------------------------------------------------------------------- -// | method1(): void -// | ---------------------------------------------------------------------- -// foo.method2(); -// ^ -// | ---------------------------------------------------------------------- -// | method2(): void -// | ---------------------------------------------------------------------- -// foo.method3(); -// ^ -// | ---------------------------------------------------------------------- -// | method3(): number -// | ---------------------------------------------------------------------- -// foo.method4(); -// foo.property1; -// foo.property2; -// foo.method5(); -// foo.newMet -[ - { - "marker": { - "Position": 981, - "LSPosition": { - "line": 49, - "character": 18 - }, - "Name": "10", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Foo(value: number): Foo", - "parameters": [ - { - "label": "value: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 997, - "LSPosition": { - "line": 50, - "character": 12 - }, - "Name": "11", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "method1(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1012, - "LSPosition": { - "line": 51, - "character": 12 - }, - "Name": "12", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "method2(): void", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 1027, - "LSPosition": { - "line": 52, - "character": 12 - }, - "Name": "13", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "method3(): number", - "parameters": [] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc deleted file mode 100644 index 3ef7b0bf7a..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpJSMissingPropertyAccess.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === SignatureHelp === -=== /test.js === -// foo.filter() -// ^ -// | ---------------------------------------------------------------------- -// | No signaturehelp at /**/. -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 11, - "LSPosition": { - "line": 0, - "character": 11 - }, - "Name": "", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc deleted file mode 100644 index 4dd6dc8b41..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpRestArgs1.baseline.jsonc +++ /dev/null @@ -1,188 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpRestArgs1.ts === -// function fn(a: number, b: number, c: number) {} -// const a = [1, 2] as const; -// const b = [1] as const; -// -// fn(...a, ); -// ^ -// | ---------------------------------------------------------------------- -// | fn(a: number, b: number, **c: number**): void -// | ---------------------------------------------------------------------- -// fn(, ...a); -// ^ -// | ---------------------------------------------------------------------- -// | fn(**a: number**, b: number, c: number): void -// | ---------------------------------------------------------------------- -// -// fn(...b, ); -// ^ -// | ---------------------------------------------------------------------- -// | fn(a: number, **b: number**, c: number): void -// | ---------------------------------------------------------------------- -// fn(, ...b, ); -// ^ -// | ---------------------------------------------------------------------- -// | fn(**a: number**, b: number, c: number): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | fn(a: number, b: number, **c: number**): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 109, - "LSPosition": { - "line": 4, - "character": 9 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 115, - "LSPosition": { - "line": 5, - "character": 3 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 134, - "LSPosition": { - "line": 7, - "character": 9 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 140, - "LSPosition": { - "line": 8, - "character": 3 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 148, - "LSPosition": { - "line": 8, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc deleted file mode 100644 index 42f95f62b8..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpRestArgs2.baseline.jsonc +++ /dev/null @@ -1,28 +0,0 @@ -// === SignatureHelp === -=== /index.js === -// const promisify = function (thisArg, fnName) { -// const fn = thisArg[fnName]; -// return function () { -// return new Promise((resolve) => { -// fn.call(thisArg, ...arguments, ); -// ^ -// | ---------------------------------------------------------------------- -// | No signaturehelp at /*1*/. -// | ---------------------------------------------------------------------- -// }); -// }; -// }; -[ - { - "marker": { - "Position": 189, - "LSPosition": { - "line": 4, - "character": 43 - }, - "Name": "1", - "Data": {} - }, - "item": null - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc deleted file mode 100644 index 4da40c046b..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpRestArgs3.baseline.jsonc +++ /dev/null @@ -1,79 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpRestArgs3.ts === -// const layers = Object.assign({}, ...[]); -// ^ -// | ---------------------------------------------------------------------- -// | assign(target: object, **...sources: any[]**): any -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 33, - "LSPosition": { - "line": 0, - "character": 33 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "assign(target: T, source: U): T & U", - "parameters": [ - { - "label": "target: T" - }, - { - "label": "source: U" - } - ] - }, - { - "label": "assign(target: T, source1: U, source2: V): T & U & V", - "parameters": [ - { - "label": "target: T" - }, - { - "label": "source1: U" - }, - { - "label": "source2: V" - } - ] - }, - { - "label": "assign(target: T, source1: U, source2: V, source3: W): T & U & V & W", - "parameters": [ - { - "label": "target: T" - }, - { - "label": "source1: U" - }, - { - "label": "source2: V" - }, - { - "label": "source3: W" - } - ] - }, - { - "label": "assign(target: object, ...sources: any[]): any", - "parameters": [ - { - "label": "target: object" - }, - { - "label": "...sources: any[]" - } - ] - } - ], - "activeSignature": 3, - "activeParameter": 1 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc deleted file mode 100644 index 72b1c36645..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpSkippedArgs1.baseline.jsonc +++ /dev/null @@ -1,181 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpSkippedArgs1.ts === -// function fn(a: number, b: number, c: number) {} -// fn(, , , , ); -// ^ -// | ---------------------------------------------------------------------- -// | fn(**a: number**, b: number, c: number): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | fn(a: number, **b: number**, c: number): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | fn(a: number, b: number, **c: number**): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | fn(a: number, b: number, c: number): void -// | ---------------------------------------------------------------------- -// ^ -// | ---------------------------------------------------------------------- -// | fn(a: number, b: number, c: number): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 51, - "LSPosition": { - "line": 1, - "character": 3 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 53, - "LSPosition": { - "line": 1, - "character": 5 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 55, - "LSPosition": { - "line": 1, - "character": 7 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 57, - "LSPosition": { - "line": 1, - "character": 9 - }, - "Name": "4", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 3 - } - }, - { - "marker": { - "Position": 59, - "LSPosition": { - "line": 1, - "character": 11 - }, - "Name": "5", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "fn(a: number, b: number, c: number): void", - "parameters": [ - { - "label": "a: number" - }, - { - "label": "b: number" - }, - { - "label": "c: number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 4 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc deleted file mode 100644 index b18da8a20e..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpTypeArguments2.baseline.jsonc +++ /dev/null @@ -1,168 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpTypeArguments2.ts === -// /** some documentation -// * @template T some documentation 2 -// * @template W -// * @template U,V others -// * @param a ok -// * @param b not ok -// */ -// function f(a: number, b: string, c: boolean): void { } -// f<; -// ^ -// | ---------------------------------------------------------------------- -// | f<**T**, U, V, W>(a: number, b: string, c: boolean): void -// | ---------------------------------------------------------------------- -// f(a: number, b: string, c: boolean): void -// | ---------------------------------------------------------------------- -// f(a: number, b: string, c: boolean): void -// | ---------------------------------------------------------------------- -// f(a: number, b: string, c: boolean): void -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 205, - "LSPosition": { - "line": 8, - "character": 2 - }, - "Name": "f0", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number, b: string, c: boolean): void", - "parameters": [ - { - "label": "T" - }, - { - "label": "U" - }, - { - "label": "V" - }, - { - "label": "W" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 217, - "LSPosition": { - "line": 9, - "character": 10 - }, - "Name": "f1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number, b: string, c: boolean): void", - "parameters": [ - { - "label": "T" - }, - { - "label": "U" - }, - { - "label": "V" - }, - { - "label": "W" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 237, - "LSPosition": { - "line": 10, - "character": 18 - }, - "Name": "f2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number, b: string, c: boolean): void", - "parameters": [ - { - "label": "T" - }, - { - "label": "U" - }, - { - "label": "V" - }, - { - "label": "W" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 2 - } - }, - { - "marker": { - "Position": 266, - "LSPosition": { - "line": 11, - "character": 27 - }, - "Name": "f3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: number, b: string, c: boolean): void", - "parameters": [ - { - "label": "T" - }, - { - "label": "U" - }, - { - "label": "V" - }, - { - "label": "W" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 3 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc deleted file mode 100644 index b0c6b6254b..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelpWithUnknown.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === SignatureHelp === -=== /signatureHelpWithUnknown.ts === -// eval(\ -// ^ -// | ---------------------------------------------------------------------- -// | eval(**x: string**): any -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 6, - "LSPosition": { - "line": 0, - "character": 6 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "eval(x: string): any", - "parameters": [ - { - "label": "x: string" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc b/testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc deleted file mode 100644 index dfd2d40524..0000000000 --- a/testdata/baselines/reference/fourslash/signatureHelp_unionType.baseline.jsonc +++ /dev/null @@ -1,107 +0,0 @@ -// === SignatureHelp === -=== /signatureHelp_unionType.ts === -// declare const a: (fn?: ((x: string) => string) | ((y: number) => number)) => void; -// declare const b: (x: string | number) => void; -// -// interface Callback { -// (x: string): string; -// (x: number): number; -// (x: string | number): string | number; -// } -// declare function c(callback: Callback): void; -// a(() => { -// ^ -// | ---------------------------------------------------------------------- -// | a(**fn?: ((x: string) => string) | ((y: number) => number)**): void -// | ---------------------------------------------------------------------- -// return undefined; -// }); -// -// b(); -// ^ -// | ---------------------------------------------------------------------- -// | b(**x: string | number**): void -// | ---------------------------------------------------------------------- -// -// c(() => {}); -// ^ -// | ---------------------------------------------------------------------- -// | Callback(**x: string | number**): string | number -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 296, - "LSPosition": { - "line": 9, - "character": 3 - }, - "Name": "1", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "a(fn?: ((x: string) => string) | ((y: number) => number)): void", - "parameters": [ - { - "label": "fn?: ((x: string) => string) | ((y: number) => number)" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 332, - "LSPosition": { - "line": 13, - "character": 2 - }, - "Name": "2", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "b(x: string | number): void", - "parameters": [ - { - "label": "x: string | number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - }, - { - "marker": { - "Position": 339, - "LSPosition": { - "line": 15, - "character": 3 - }, - "Name": "3", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "Callback(x: string | number): string | number", - "parameters": [ - { - "label": "x: string | number" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 0 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc b/testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc deleted file mode 100644 index 3de5364af9..0000000000 --- a/testdata/baselines/reference/fourslash/trailingCommaSignatureHelp.baseline.jsonc +++ /dev/null @@ -1,85 +0,0 @@ -// === SignatureHelp === -=== /trailingCommaSignatureHelp.ts === -// function str(n: number): string; -// /** -// * Stringifies a number with radix -// * @param radix The radix -// */ -// function str(n: number, radix: number): string; -// function str(n: number, radix?: number): string { return ""; } -// -// str(1, ) -// ^ -// | ---------------------------------------------------------------------- -// | str(n: number, **radix: number**): string -// | ---------------------------------------------------------------------- -// -// declare function f(a: T): T; -// f(2, ); -// ^ -// | ---------------------------------------------------------------------- -// | f(a: 2): 2 -// | ---------------------------------------------------------------------- -[ - { - "marker": { - "Position": 221, - "LSPosition": { - "line": 8, - "character": 7 - }, - "Name": "a", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "str(n: number): string", - "parameters": [ - { - "label": "n: number" - } - ] - }, - { - "label": "str(n: number, radix: number): string", - "parameters": [ - { - "label": "n: number" - }, - { - "label": "radix: number" - } - ] - } - ], - "activeSignature": 1, - "activeParameter": 1 - } - }, - { - "marker": { - "Position": 261, - "LSPosition": { - "line": 11, - "character": 5 - }, - "Name": "b", - "Data": {} - }, - "item": { - "signatures": [ - { - "label": "f(a: 2): 2", - "parameters": [ - { - "label": "a: 2" - } - ] - } - ], - "activeSignature": 0, - "activeParameter": 1 - } - } -] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc deleted file mode 100644 index c7d52d86ff..0000000000 --- a/testdata/baselines/reference/fourslash/tsxRename1.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// /*RENAME*/[|divRENAME|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = <[|divRENAME|] />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|divRENAME|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc deleted file mode 100644 index ff27b9a654..0000000000 --- a/testdata/baselines/reference/fourslash/tsxRename2.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// /*RENAME*/[|nameRENAME|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// // --- (line: 9) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 7) skipped --- -// span: { n: string; }; -// } -// } -// var x =
; diff --git a/testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc deleted file mode 100644 index 706e37cefe..0000000000 --- a/testdata/baselines/reference/fourslash/tsxRename3.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 5) skipped --- -// } -// class MyClass { -// props: { -// /*RENAME*/[|nameRENAME|]?: string; -// size?: number; -// } -// -// -// var x = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// -// -// var x = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc deleted file mode 100644 index 64441c8ff3..0000000000 --- a/testdata/baselines/reference/fourslash/tsxRename5.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 9) skipped --- -// size?: number; -// } -// -// var /*RENAME*/[|nnRENAME|]: string; -// var x = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// /*RENAME*/ declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc deleted file mode 100644 index ccbeed823f..0000000000 --- a/testdata/baselines/reference/fourslash/tsxRename6.baseline.jsonc +++ /dev/null @@ -1,98 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function /*RENAME*/[|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = ; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = ; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = ; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc deleted file mode 100644 index 9f4bae05e1..0000000000 --- a/testdata/baselines/reference/fourslash/tsxRename7.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// /*RENAME*/[|propxRENAME|]: number -// propString: string -// optional?: boolean -// } -// // --- (line: 12) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 11) skipped --- -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; diff --git a/testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc b/testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc deleted file mode 100644 index 257d1b6d88..0000000000 --- a/testdata/baselines/reference/fourslash/tsxRename9.baseline.jsonc +++ /dev/null @@ -1,274 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// className?: string; -// } -// interface ButtonProps extends ClickableProps { -// /*RENAME*/[|onClickRENAME|](event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// goTo: string; -// // --- (line: 16) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 18) skipped --- -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 19) skipped --- -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 11) skipped --- -// onClick(event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// /*RENAME*/[|goToRENAME|]: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// // --- (line: 19) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 20) skipped --- -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function /*RENAME*/[|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function /*RENAME*/[|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function /*RENAME*/[|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = ; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = {}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = {}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = ; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// /*RENAME*/ declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// /*RENAME*/ declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// // --- (line: 5) skipped --- From 0983fa76501c3f35b6e742e1db0582371a89780b Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Mon, 8 Sep 2025 15:43:24 -0700 Subject: [PATCH 08/18] blank line fix for baselines, setup diffing for rename baselines --- internal/fourslash/baselineutil.go | 84 ++++++++++++++++++++++++++++-- internal/fourslash/fourslash.go | 27 +--------- 2 files changed, 82 insertions(+), 29 deletions(-) diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index a22fb48d73..4e58754220 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -14,9 +14,40 @@ import ( "github.com/microsoft/typescript-go/internal/core" "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/lsp/lsproto" + "github.com/microsoft/typescript-go/internal/testutil/baseline" "github.com/microsoft/typescript-go/internal/vfs" ) +func (f *FourslashTest) addResultToBaseline(t *testing.T, command string, actual string) { + b, ok := f.baselines[command] + if !ok { + f.baselines[command] = &strings.Builder{} + b = f.baselines[command] + } + if b.Len() != 0 { + b.WriteString("\n\n\n\n") + } + b.WriteString(`// === ` + command + " ===\n" + actual) +} + +func (f *FourslashTest) writeToBaseline(command string, content string) { + b, ok := f.baselines[command] + if !ok { + f.baselines[command] = &strings.Builder{} + b = f.baselines[command] + } + b.WriteString(content) +} + +// !!! HERE +func getBaselineFileName(t *testing.T, command string) string { + return "fourslash/" + command + "/" + getBaseFileNameFromTest(t) + "." + getBaselineExtension(command) +} + +func getSubmoduleBaselineFileName(t *testing.T, command string) string { + return getBaseFileNameFromTest(t) + "." + getBaselineExtension(command) +} + func getBaselineExtension(command string) string { switch command { case "QuickInfo", "SignatureHelp": @@ -30,6 +61,50 @@ func getBaselineExtension(command string) string { } } +func getBaselineOptions(command string) baseline.Options { + switch command { + case "findRenameLocations": + return baseline.Options{ + Subfolder: "fourslash/" + command, + IsSubmodule: true, + DiffFixupOld: func(s string) string { + var commandLines []string + commandPrefix := regexp.MustCompile(`// === ([a-z\sA-Z]*) ===`) + testFilePrefix := "/tests/cases/fourslash" + contextSpanOpening := "<|" + contextSpanClosing := "|>" + replacer := strings.NewReplacer( + contextSpanOpening, "", + contextSpanClosing, "", + testFilePrefix, "", + ) + lines := strings.Split(s, "\n") + var isInCommand bool + for _, line := range lines { + matches := commandPrefix.FindStringSubmatch(line) + if len(matches) > 0 { + commandName := matches[1] + if commandName == command { + isInCommand = true + } else { + isInCommand = false + } + } + if isInCommand { + fixedLine := replacer.Replace(line) + commandLines = append(commandLines, fixedLine) + } + } + return strings.Join(commandLines, "\n") + }, + } + default: + return baseline.Options{ + Subfolder: "fourslash/" + command, + } + } +} + type baselineFourslashLocationsOptions struct { // markerInfo marker *Marker // location @@ -278,7 +353,7 @@ func newTextWithContext(fileName string, content string) *textWithContext { t.converters = ls.NewConverters(lsproto.PositionEncodingKindUTF8, func(_ string) *ls.LineMap { return t.lineStarts }) - t.readableContents.WriteString("// === " + fileName + " ===\n") + t.readableContents.WriteString("// === " + fileName + " ===") return t } @@ -350,8 +425,11 @@ func (t *textWithContext) add(detail *baselineDetail) { } func (t *textWithContext) readableJsoncBaseline(text string) { - for _, line := range lineSplitter.Split(text, -1) { - t.readableContents.WriteString(`// ` + line + "\n") + for i, line := range lineSplitter.Split(text, -1) { + if i > 0 { + t.readableContents.WriteString("\n") + } + t.readableContents.WriteString(`// ` + line) } } diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 39d291ae8c..adaf4697ed 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1598,31 +1598,6 @@ func (f *FourslashTest) getRangeText(r *RangeMarker) string { func (f *FourslashTest) verifyBaselines(t *testing.T) { for command, content := range f.baselines { - baseline.Run(t, getBaselineFileName(t, command), content.String(), baseline.Options{}) // !!! options + baseline.Run(t, getSubmoduleBaselineFileName(t, command), content.String(), getBaselineOptions(command)) } } - -func (f *FourslashTest) addResultToBaseline(t *testing.T, command string, actual string) { - b, ok := f.baselines[command] - if !ok { - f.baselines[command] = &strings.Builder{} - b = f.baselines[command] - } - if b.Len() != 0 { - b.WriteString("\n\n\n\n") - } - b.WriteString(`// === ` + command + " ===\n" + actual) -} - -func (f *FourslashTest) writeToBaseline(command string, content string) { - b, ok := f.baselines[command] - if !ok { - f.baselines[command] = &strings.Builder{} - b = f.baselines[command] - } - b.WriteString(content) -} - -func getBaselineFileName(t *testing.T, command string) string { - return "fourslash/" + command + "/" + getBaseFileNameFromTest(t) + "." + getBaselineExtension(command) -} From f5e8c7ac9814db8b90a3904062f6518c87af4c8b Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Tue, 9 Sep 2025 09:17:40 -0700 Subject: [PATCH 09/18] fix marker position in baselines --- internal/fourslash/baselineutil.go | 6 +++--- internal/fourslash/fourslash.go | 17 +++++++-------- internal/fourslash/test_parser.go | 34 +++++++++++++++--------------- 3 files changed, 28 insertions(+), 29 deletions(-) diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index 4e58754220..8405ce2403 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -107,8 +107,8 @@ func getBaselineOptions(command string) baseline.Options { type baselineFourslashLocationsOptions struct { // markerInfo - marker *Marker // location - markerName string // name of the marker to be printed in baseline + marker MarkerOrRange // location + markerName string // name of the marker to be printed in baseline endMarker string @@ -204,7 +204,7 @@ func (f *FourslashTest) getBaselineContentForFile( canDetermineContextIdInline := true if options.marker != nil && options.marker.FileName() == fileName { - details = append(details, &baselineDetail{pos: options.marker.LSPosition, positionMarker: options.markerName}) + details = append(details, &baselineDetail{pos: options.marker.LSPos(), positionMarker: options.markerName}) } for _, span := range spansInFile { diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index adaf4697ed..ce9fe80f7c 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -300,8 +300,7 @@ func (f *FourslashTest) readMsg(t *testing.T) *lsproto.Message { } func (f *FourslashTest) GoToMarkerOrRange(t *testing.T, markerOrRange MarkerOrRange) { - // GoToRangeStart - f.goToMarker(t, markerOrRange.GetMarker()) + f.goToMarker(t, markerOrRange) } func (f *FourslashTest) GoToMarker(t *testing.T, markerName string) { @@ -312,10 +311,10 @@ func (f *FourslashTest) GoToMarker(t *testing.T, markerName string) { f.goToMarker(t, marker) } -func (f *FourslashTest) goToMarker(t *testing.T, marker *Marker) { - f.ensureActiveFile(t, marker.FileName()) - f.goToPosition(t, marker.LSPosition) - f.lastKnownMarkerName = marker.Name +func (f *FourslashTest) goToMarker(t *testing.T, markerOrRange MarkerOrRange) { + f.ensureActiveFile(t, markerOrRange.FileName()) + f.goToPosition(t, markerOrRange.LSPos()) + f.lastKnownMarkerName = markerOrRange.GetName() } func (f *FourslashTest) GoToEOF(t *testing.T) { @@ -796,7 +795,7 @@ func (f *FourslashTest) VerifyBaselineFindAllReferences( } f.addResultToBaseline(t, "findAllReferences", f.getBaselineForLocationsWithFileContents(*result.Locations, baselineFourslashLocationsOptions{ - marker: markerOrRange.GetMarker(), + marker: markerOrRange, markerName: "/*FIND ALL REFS*/", })) @@ -846,7 +845,7 @@ func (f *FourslashTest) VerifyBaselineGoToDefinition( } f.addResultToBaseline(t, "goToDefinition", f.getBaselineForLocationsWithFileContents(resultAsLocations, baselineFourslashLocationsOptions{ - marker: markerOrRange.GetMarker(), + marker: markerOrRange, markerName: "/*GO TO DEFINITION*/", })) } @@ -1533,7 +1532,7 @@ func (f *FourslashTest) verifyBaselineRename( f.getBaselineForGroupedLocationsWithFileContents( &fileToRange, baselineFourslashLocationsOptions{ - marker: markerOrRange.GetMarker(), + marker: markerOrRange, markerName: "/*RENAME*/", endMarker: "RENAME|]", }, diff --git a/internal/fourslash/test_parser.go b/internal/fourslash/test_parser.go index 697f54da53..f22a114ccb 100644 --- a/internal/fourslash/test_parser.go +++ b/internal/fourslash/test_parser.go @@ -22,9 +22,10 @@ import ( // // is a range with `text in range` "selected". type RangeMarker struct { - *Marker - Range core.TextRange - LSRange lsproto.Range + fileName string + Range core.TextRange + LSRange lsproto.Range + marker *Marker } func (r *RangeMarker) LSPos() lsproto.Position { @@ -35,8 +36,11 @@ func (r *RangeMarker) FileName() string { return r.fileName } -func (r *RangeMarker) GetMarker() *Marker { - return r.Marker +func (r *RangeMarker) GetName() *string { + if r.marker == nil { + return nil + } + return r.marker.Name } type Marker struct { @@ -44,7 +48,7 @@ type Marker struct { Position int LSPosition lsproto.Position Name *string // `nil` for anonymous markers such as `{| "foo": "bar" |}` - Data map[string]interface{} + Data map[string]any } func (m *Marker) LSPos() lsproto.Position { @@ -55,14 +59,14 @@ func (m *Marker) FileName() string { return m.fileName } -func (m *Marker) GetMarker() *Marker { - return m +func (m *Marker) GetName() *string { + return m.Name } type MarkerOrRange interface { FileName() string LSPos() lsproto.Position - GetMarker() *Marker + GetName() *string } type TestData struct { @@ -244,14 +248,10 @@ func parseFileContent(fileName string, content string, fileOptions map[string]st rangeStart := openRanges[len(openRanges)-1] openRanges = openRanges[:len(openRanges)-1] - closedRange := &RangeMarker{Range: core.NewTextRange(rangeStart.position, (i-1)-difference)} - if rangeStart.marker != nil { - closedRange.Marker = rangeStart.marker - } else { - // A default RangeMarker is not added to list of markers. If the RangeMarker was created by parsing an actual marker within the range - // in the test file, then the marker should have been added to the marker list when the marker was parsed. - // Similarly, if the RangeMarker has a name, this means that there was a named marker parsed within the range (and has been already included in the marker list) - closedRange.Marker = &Marker{fileName: fileName} + closedRange := &RangeMarker{ + fileName: fileName, + Range: core.NewTextRange(rangeStart.position, (i-1)-difference), + marker: rangeStart.marker, } rangeMarkers = append(rangeMarkers, closedRange) From b0eba8bda60a42ee28b9e211c4f244d72cfdc8ca Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Tue, 9 Sep 2025 11:22:33 -0700 Subject: [PATCH 10/18] more fixes --- .../fourslash/_scripts/convertFourslash.mts | 2 +- internal/fourslash/baselineutil.go | 2 +- ...jsxElementMissingOpeningTagNoCrash_test.go | 4 +- .../tests/gen/tsxCompletion10_test.go | 14 ++-- .../tests/gen/tsxCompletion11_test.go | 6 +- .../tests/gen/tsxCompletion12_test.go | 34 +++++----- .../tests/gen/tsxCompletion13_test.go | 50 +++++++------- .../tests/gen/tsxCompletion14_test.go | 30 ++++---- .../tests/gen/tsxCompletion15_test.go | 44 ++++++------ .../tests/gen/tsxCompletion1_test.go | 14 ++-- .../tests/gen/tsxCompletion2_test.go | 16 ++--- .../tests/gen/tsxCompletion3_test.go | 14 ++-- .../tests/gen/tsxCompletion4_test.go | 16 ++--- .../tests/gen/tsxCompletion5_test.go | 14 ++-- .../tests/gen/tsxCompletion6_test.go | 14 ++-- .../tests/gen/tsxCompletion7_test.go | 16 ++--- .../tests/gen/tsxCompletion8_test.go | 14 ++-- ...ctionExpressionOfChildrenCallback1_test.go | 46 ++++++------- ...nctionExpressionOfChildrenCallback_test.go | 44 ++++++------ .../gen/tsxCompletionOnClosingTag1_test.go | 14 ++-- .../gen/tsxCompletionOnClosingTag2_test.go | 18 ++--- ...xCompletionOnClosingTagWithoutJSX1_test.go | 2 +- ...xCompletionOnClosingTagWithoutJSX2_test.go | 6 +- .../tests/gen/tsxFindAllReferences10_test.go | 50 +++++++------- .../tests/gen/tsxFindAllReferences11_test.go | 40 +++++------ .../tests/gen/tsxFindAllReferences1_test.go | 22 +++--- .../tests/gen/tsxFindAllReferences2_test.go | 22 +++--- .../tests/gen/tsxFindAllReferences5_test.go | 34 +++++----- .../tests/gen/tsxFindAllReferences6_test.go | 26 +++---- .../tests/gen/tsxFindAllReferences7_test.go | 32 ++++----- .../tests/gen/tsxFindAllReferences8_test.go | 50 +++++++------- .../tests/gen/tsxFindAllReferences9_test.go | 52 +++++++------- ...FindAllReferencesUnionElementType1_test.go | 28 ++++---- ...FindAllReferencesUnionElementType2_test.go | 26 +++---- .../gen/tsxGoToDefinitionClasses_test.go | 26 +++---- .../gen/tsxGoToDefinitionIntrinsics_test.go | 26 +++---- ...sxGoToDefinitionStatelessFunction1_test.go | 32 ++++----- ...sxGoToDefinitionStatelessFunction2_test.go | 50 +++++++------- ...tsxGoToDefinitionUnionElementType1_test.go | 28 ++++---- ...tsxGoToDefinitionUnionElementType2_test.go | 26 +++---- .../fourslash/tests/gen/tsxQuickInfo1_test.go | 6 +- .../fourslash/tests/gen/tsxQuickInfo2_test.go | 18 ++--- .../fourslash/tests/gen/tsxQuickInfo3_test.go | 28 ++++---- .../fourslash/tests/gen/tsxQuickInfo4_test.go | 68 +++++++++---------- .../fourslash/tests/gen/tsxQuickInfo5_test.go | 10 +-- .../fourslash/tests/gen/tsxQuickInfo6_test.go | 14 ++-- .../fourslash/tests/gen/tsxQuickInfo7_test.go | 24 +++---- .../fourslash/tests/gen/tsxRename1_test.go | 22 +++--- .../fourslash/tests/gen/tsxRename2_test.go | 22 +++--- .../fourslash/tests/gen/tsxRename6_test.go | 34 +++++----- .../fourslash/tests/gen/tsxRename7_test.go | 32 ++++----- .../fourslash/tests/gen/tsxRename8_test.go | 34 +++++----- .../fourslash/tests/gen/tsxRename9_test.go | 50 +++++++------- 53 files changed, 683 insertions(+), 683 deletions(-) diff --git a/internal/fourslash/_scripts/convertFourslash.mts b/internal/fourslash/_scripts/convertFourslash.mts index 7b54259338..bd317fb2bb 100644 --- a/internal/fourslash/_scripts/convertFourslash.mts +++ b/internal/fourslash/_scripts/convertFourslash.mts @@ -118,7 +118,7 @@ function getTestInput(content: string): string { } // chomp leading spaces - if (!testInput.some(line => line.length != 0 && !line.startsWith(" ") && !line.startsWith("// "))) { + if (!testInput.some(line => line.length != 0 && !line.startsWith(" ") && !line.startsWith("// ") && !line.startsWith("//@"))) { testInput = testInput.map(line => { if (line.startsWith(" ")) return line.substring(1); return line; diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index 8405ce2403..2943ea3a70 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -69,7 +69,7 @@ func getBaselineOptions(command string) baseline.Options { IsSubmodule: true, DiffFixupOld: func(s string) string { var commandLines []string - commandPrefix := regexp.MustCompile(`// === ([a-z\sA-Z]*) ===`) + commandPrefix := regexp.MustCompile(`^// === ([a-z\sA-Z]*) ===`) testFilePrefix := "/tests/cases/fourslash" contextSpanOpening := "<|" contextSpanClosing := "|>" diff --git a/internal/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go b/internal/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go index 1f4cd26464..bef6c35d36 100644 --- a/internal/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go +++ b/internal/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go @@ -12,8 +12,8 @@ func TestJsxElementMissingOpeningTagNoCrash(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare function Foo(): any; - let x = <>;` +declare function Foo(): any; +let x = <>;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "$", "let Foo: any", "") } diff --git a/internal/fourslash/tests/gen/tsxCompletion10_test.go b/internal/fourslash/tests/gen/tsxCompletion10_test.go index 449a7f8dee..3b55a7dd91 100644 --- a/internal/fourslash/tests/gen/tsxCompletion10_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion10_test.go @@ -13,13 +13,13 @@ func TestTsxCompletion10(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { ONE: string; TWO: number; } - } - } - var x1 =
; - let opt1 = ; - let opt2 = ; - let opt3 = ; - let opt4 = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + propx: number + propString: "hell" + optional?: boolean +} +declare function Opt(attributes: OptionPropBag): JSX.Element; +let opt = ; +let opt1 = ; +let opt2 = ; +let opt3 = ; +let opt4 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"1", "2", "5"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion13_test.go b/internal/fourslash/tests/gen/tsxCompletion13_test.go index 893708bfdf..ac268e2c82 100644 --- a/internal/fourslash/tests/gen/tsxCompletion13_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion13_test.go @@ -17,31 +17,31 @@ func TestTsxCompletion13(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @skipLibCheck: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface ClickableProps { - children?: string; - className?: string; - } - interface ButtonProps extends ClickableProps { - onClick(event?: React.MouseEvent): void; - } - interface LinkProps extends ClickableProps { - goTo: string; - } - declare function MainButton(buttonProps: ButtonProps): JSX.Element; - declare function MainButton(linkProps: LinkProps): JSX.Element; - declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; - let opt = ; - let opt = ; - let opt = {}} /*3*/ />; - let opt = {}} ignore-prop /*4*/ />; - let opt = ; - let opt = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface ClickableProps { + children?: string; + className?: string; +} +interface ButtonProps extends ClickableProps { + onClick(event?: React.MouseEvent): void; +} +interface LinkProps extends ClickableProps { + goTo: string; +} +declare function MainButton(buttonProps: ButtonProps): JSX.Element; +declare function MainButton(linkProps: LinkProps): JSX.Element; +declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +let opt = ; +let opt = ; +let opt = {}} /*3*/ />; +let opt = {}} ignore-prop /*4*/ />; +let opt = ; +let opt = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"1", "6"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion14_test.go b/internal/fourslash/tests/gen/tsxCompletion14_test.go index 56161a9981..364cf42fc3 100644 --- a/internal/fourslash/tests/gen/tsxCompletion14_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion14_test.go @@ -14,23 +14,23 @@ func TestTsxCompletion14(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@module: commonjs //@jsx: preserve - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} //@Filename: exporter.tsx - export class Thing { props: { ONE: string; TWO: number } } - export module M { - export declare function SFCComp(props: { Three: number; Four: string }): JSX.Element; - } +export class Thing { props: { ONE: string; TWO: number } } +export module M { + export declare function SFCComp(props: { Three: number; Four: string }): JSX.Element; +} //@Filename: file.tsx - import * as Exp from './exporter'; - var x1 = ; - var x2 = ; - var x3 = ; - var x4 = ;` +import * as Exp from './exporter'; +var x1 = ; +var x2 = ; +var x3 = ; +var x4 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"1", "3"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion15_test.go b/internal/fourslash/tests/gen/tsxCompletion15_test.go index 2014f79daf..90478f63fd 100644 --- a/internal/fourslash/tests/gen/tsxCompletion15_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion15_test.go @@ -14,30 +14,30 @@ func TestTsxCompletion15(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@module: commonjs //@jsx: preserve - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} //@Filename: exporter.tsx - export module M { - export declare function SFCComp(props: { Three: number; Four: string }): JSX.Element; - } +export module M { + export declare function SFCComp(props: { Three: number; Four: string }): JSX.Element; +} //@Filename: file.tsx - import * as Exp from './exporter'; - var x1 = ; - var x2 = ; - var x3 = ; - var x4 = ; - var x6 = ; - var x7 = ; - var x8 = ; - var x9 = ; - var x10 = ; - var x11 = ; - var x12 =
;` +import * as Exp from './exporter'; +var x1 = ; +var x2 = ; +var x3 = ; +var x4 = ; +var x6 = ; +var x7 = ; +var x8 = ; +var x9 = ; +var x10 = ; +var x11 = ; +var x12 =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion1_test.go b/internal/fourslash/tests/gen/tsxCompletion1_test.go index 39c4c5bf8a..0773b53c04 100644 --- a/internal/fourslash/tests/gen/tsxCompletion1_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion1_test.go @@ -13,13 +13,13 @@ func TestTsxCompletion1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { ONE: string; TWO: number; } - } - } - var x =
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { ONE: string; TWO: number; } + } +} +var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion2_test.go b/internal/fourslash/tests/gen/tsxCompletion2_test.go index 8040d7c635..45fd5b31e8 100644 --- a/internal/fourslash/tests/gen/tsxCompletion2_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion2_test.go @@ -13,14 +13,14 @@ func TestTsxCompletion2(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - class MyComp { props: { ONE: string; TWO: number } } - var x = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +class MyComp { props: { ONE: string; TWO: number } } +var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion3_test.go b/internal/fourslash/tests/gen/tsxCompletion3_test.go index 90e1cbd65f..4fa3384be4 100644 --- a/internal/fourslash/tests/gen/tsxCompletion3_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion3_test.go @@ -13,13 +13,13 @@ func TestTsxCompletion3(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { one; two; } - } - } -
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { one; two; } + } +} +
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion4_test.go b/internal/fourslash/tests/gen/tsxCompletion4_test.go index 671f565f55..99b6acfb5f 100644 --- a/internal/fourslash/tests/gen/tsxCompletion4_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion4_test.go @@ -13,14 +13,14 @@ func TestTsxCompletion4(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare namespace JSX { - interface Element { } - interface IntrinsicElements { - div: { one; two; } - } - } - let bag = { x: 100, y: 200 }; -
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { ONE: string; TWO: number; } + } +} +var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion6_test.go b/internal/fourslash/tests/gen/tsxCompletion6_test.go index fb6602b366..9c74782933 100644 --- a/internal/fourslash/tests/gen/tsxCompletion6_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion6_test.go @@ -13,13 +13,13 @@ func TestTsxCompletion6(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { ONE: string; TWO: number; } - } - } - var x =
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { ONE: string; TWO: number; } + } +} +var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion7_test.go b/internal/fourslash/tests/gen/tsxCompletion7_test.go index c4c618ec6c..83ae418afb 100644 --- a/internal/fourslash/tests/gen/tsxCompletion7_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion7_test.go @@ -15,14 +15,14 @@ func TestTsxCompletion7(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { ONE: string; TWO: number; } - } - } - let y = { ONE: '' }; - var x =
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { ONE: string; TWO: number; } + } +} +let y = { ONE: '' }; +var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletion8_test.go b/internal/fourslash/tests/gen/tsxCompletion8_test.go index 9dd5c3cfd5..8783e19127 100644 --- a/internal/fourslash/tests/gen/tsxCompletion8_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion8_test.go @@ -13,13 +13,13 @@ func TestTsxCompletion8(t *testing.T) { t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { ONE: string; TWO: number; } - } - } - var x =
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { ONE: string; TWO: number; } + } +} +var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"1", "2"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback1_test.go b/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback1_test.go index c46afd59d2..b5a699142b 100644 --- a/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback1_test.go +++ b/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback1_test.go @@ -15,29 +15,29 @@ func TestTsxCompletionInFunctionExpressionOfChildrenCallback1(t *testing.T) { const content = `//@module: commonjs //@jsx: preserve // @Filename: 1.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - interface ElementChildrenAttribute { children; } - } - interface IUser { - Name: string; - } - interface IFetchUserProps { - children: (user: IUser) => any; - } - function FetchUser(props: IFetchUserProps) { return undefined; } - function UserName() { - return ( - - { user => ( -

{ user./**/ }

- )} -
- ); - }` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } + interface ElementChildrenAttribute { children; } +} +interface IUser { + Name: string; +} +interface IFetchUserProps { + children: (user: IUser) => any; +} +function FetchUser(props: IFetchUserProps) { return undefined; } +function UserName() { + return ( + + { user => ( +

{ user./**/ }

+ )} +
+ ); +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback_test.go b/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback_test.go index 18481affdb..0f0072dfff 100644 --- a/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback_test.go +++ b/internal/fourslash/tests/gen/tsxCompletionInFunctionExpressionOfChildrenCallback_test.go @@ -14,28 +14,28 @@ func TestTsxCompletionInFunctionExpressionOfChildrenCallback(t *testing.T) { const content = `//@module: commonjs //@jsx: preserve // @Filename: 1.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface IUser { - Name: string; - } - interface IFetchUserProps { - children: (user: IUser) => any; - } - function FetchUser(props: IFetchUserProps) { return undefined; } - function UserName() { - return ( - - { user => ( -

{ user./**/ }

- )} -
- ); - }` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface IUser { + Name: string; +} +interface IFetchUserProps { + children: (user: IUser) => any; +} +function FetchUser(props: IFetchUserProps) { return undefined; } +function UserName() { + return ( + + { user => ( +

{ user./**/ }

+ )} +
+ ); +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", nil) } diff --git a/internal/fourslash/tests/gen/tsxCompletionOnClosingTag1_test.go b/internal/fourslash/tests/gen/tsxCompletionOnClosingTag1_test.go index 6abb260db3..7f5c3f0e51 100644 --- a/internal/fourslash/tests/gen/tsxCompletionOnClosingTag1_test.go +++ b/internal/fourslash/tests/gen/tsxCompletionOnClosingTag1_test.go @@ -13,13 +13,13 @@ func TestTsxCompletionOnClosingTag1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { ONE: string; TWO: number; } - } - } - var x1 =
-

Hello world - ` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { ONE: string; TWO: number; } + } +} +var x1 =
+

Hello world + ` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxCompletionOnClosingTagWithoutJSX1_test.go b/internal/fourslash/tests/gen/tsxCompletionOnClosingTagWithoutJSX1_test.go index 09c4eee227..58a09bd67e 100644 --- a/internal/fourslash/tests/gen/tsxCompletionOnClosingTagWithoutJSX1_test.go +++ b/internal/fourslash/tests/gen/tsxCompletionOnClosingTagWithoutJSX1_test.go @@ -13,7 +13,7 @@ func TestTsxCompletionOnClosingTagWithoutJSX1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - var x1 =
-

Hello world - ` +var x1 =
+

Hello world + ` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences10_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences10_test.go index 5f8d62dba5..366d64b327 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences10_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences10_test.go @@ -14,31 +14,31 @@ func TestTsxFindAllReferences10(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface ClickableProps { - children?: string; - className?: string; - } - interface ButtonProps extends ClickableProps { - /*1*/onClick(event?: React.MouseEvent): void; - } - interface LinkProps extends ClickableProps { - goTo: string; - } - declare function MainButton(buttonProps: ButtonProps): JSX.Element; - declare function MainButton(linkProps: LinkProps): JSX.Element; - declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; - let opt = ; - let opt = ; - let opt = {}} />; - let opt = {}} ignore-prop />; - let opt = ; - let opt = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface ClickableProps { + children?: string; + className?: string; +} +interface ButtonProps extends ClickableProps { + /*1*/onClick(event?: React.MouseEvent): void; +} +interface LinkProps extends ClickableProps { + goTo: string; +} +declare function MainButton(buttonProps: ButtonProps): JSX.Element; +declare function MainButton(linkProps: LinkProps): JSX.Element; +declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +let opt = ; +let opt = ; +let opt = {}} />; +let opt = {}} ignore-prop />; +let opt = ; +let opt = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences11_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences11_test.go index 31e45fa9de..42e89b0693 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences11_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences11_test.go @@ -14,26 +14,26 @@ func TestTsxFindAllReferences11(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface ClickableProps { - children?: string; - className?: string; - } - interface ButtonProps extends ClickableProps { - onClick(event?: React.MouseEvent): void; - } - interface LinkProps extends ClickableProps { - goTo: string; - } - declare function MainButton(buttonProps: ButtonProps): JSX.Element; - declare function MainButton(linkProps: LinkProps): JSX.Element; - declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; - let opt = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface ClickableProps { + children?: string; + className?: string; +} +interface ButtonProps extends ClickableProps { + onClick(event?: React.MouseEvent): void; +} +interface LinkProps extends ClickableProps { + goTo: string; +} +declare function MainButton(buttonProps: ButtonProps): JSX.Element; +declare function MainButton(linkProps: LinkProps): JSX.Element; +declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +let opt = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences1_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences1_test.go index b7dc7d442f..64c20b11bb 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences1_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences1_test.go @@ -12,17 +12,17 @@ func TestTsxFindAllReferences1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - /*1*/div: { - name?: string; - isOpen?: boolean; - }; - span: { n: string; }; - } - } - var x = /*2*/;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + /*1*/div: { + name?: string; + isOpen?: boolean; + }; + span: { n: string; }; + } +} +var x = /*2*/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences2_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences2_test.go index e7631db8b4..51706edba1 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences2_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences2_test.go @@ -12,17 +12,17 @@ func TestTsxFindAllReferences2(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { - /*1*/name?: string; - isOpen?: boolean; - }; - span: { n: string; }; - } - } - var x =
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { + /*1*/name?: string; + isOpen?: boolean; + }; + span: { n: string; }; + } +} +var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences5_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences5_test.go index 3b06c56a3e..0e3597f575 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences5_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences5_test.go @@ -14,23 +14,23 @@ func TestTsxFindAllReferences5(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface OptionPropBag { - propx: number - propString: string - optional?: boolean - } - /*1*/declare function /*2*/Opt(attributes: OptionPropBag): JSX.Element; - let opt = /*3*/; - let opt1 = /*5*/; - let opt2 = /*7*/; - let opt3 = /*9*/; - let opt4 = /*11*/;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + propx: number + propString: string + optional?: boolean +} +/*1*/declare function /*2*/Opt(attributes: OptionPropBag): JSX.Element; +let opt = /*3*/; +let opt1 = /*5*/; +let opt2 = /*7*/; +let opt3 = /*9*/; +let opt4 = /*11*/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences6_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences6_test.go index 96922cf8d6..5241f95274 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences6_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences6_test.go @@ -14,19 +14,19 @@ func TestTsxFindAllReferences6(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface OptionPropBag { - propx: number - propString: string - optional?: boolean - } - declare function Opt(attributes: OptionPropBag): JSX.Element; - let opt = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + propx: number + propString: string + optional?: boolean +} +declare function Opt(attributes: OptionPropBag): JSX.Element; +let opt = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences7_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences7_test.go index 66a1e9d48d..d631a213f2 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences7_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences7_test.go @@ -14,22 +14,22 @@ func TestTsxFindAllReferences7(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface OptionPropBag { - /*1*/propx: number - propString: string - optional?: boolean - } - declare function Opt(attributes: OptionPropBag): JSX.Element; - let opt = ; - let opt1 = ; - let opt2 = ; - let opt3 = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + /*1*/propx: number + propString: string + optional?: boolean +} +declare function Opt(attributes: OptionPropBag): JSX.Element; +let opt = ; +let opt1 = ; +let opt2 = ; +let opt3 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences8_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences8_test.go index 77818118d9..d54ffe6739 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences8_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences8_test.go @@ -14,31 +14,31 @@ func TestTsxFindAllReferences8(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface ClickableProps { - children?: string; - className?: string; - } - interface ButtonProps extends ClickableProps { - onClick(event?: React.MouseEvent): void; - } - interface LinkProps extends ClickableProps { - goTo: string; - } - /*1*/declare function /*2*/MainButton(buttonProps: ButtonProps): JSX.Element; - /*3*/declare function /*4*/MainButton(linkProps: LinkProps): JSX.Element; - /*5*/declare function /*6*/MainButton(props: ButtonProps | LinkProps): JSX.Element; - let opt = /*7*/; - let opt = /*9*/; - let opt = /*11*/{}} />; - let opt = /*13*/{}} ignore-prop />; - let opt = /*15*/; - let opt = /*17*/;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface ClickableProps { + children?: string; + className?: string; +} +interface ButtonProps extends ClickableProps { + onClick(event?: React.MouseEvent): void; +} +interface LinkProps extends ClickableProps { + goTo: string; +} +/*1*/declare function /*2*/MainButton(buttonProps: ButtonProps): JSX.Element; +/*3*/declare function /*4*/MainButton(linkProps: LinkProps): JSX.Element; +/*5*/declare function /*6*/MainButton(props: ButtonProps | LinkProps): JSX.Element; +let opt = /*7*/; +let opt = /*9*/; +let opt = /*11*/{}} />; +let opt = /*13*/{}} ignore-prop />; +let opt = /*15*/; +let opt = /*17*/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences9_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences9_test.go index a8b2e41414..6aaee61522 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences9_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences9_test.go @@ -14,32 +14,32 @@ func TestTsxFindAllReferences9(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface ClickableProps { - children?: string; - className?: string; - } - interface ButtonProps extends ClickableProps { - onClick(event?: React.MouseEvent): void; - } - interface LinkProps extends ClickableProps { - /*1*/goTo: string; - } - declare function MainButton(buttonProps: ButtonProps): JSX.Element; - declare function MainButton(linkProps: LinkProps): JSX.Element; - declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; - let opt = ; - let opt = ; - let opt = {}} />; - let opt = {}} ignore-prop />; - let opt = ; - let opt = ; - let opt = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface ClickableProps { + children?: string; + className?: string; +} +interface ButtonProps extends ClickableProps { + onClick(event?: React.MouseEvent): void; +} +interface LinkProps extends ClickableProps { + /*1*/goTo: string; +} +declare function MainButton(buttonProps: ButtonProps): JSX.Element; +declare function MainButton(linkProps: LinkProps): JSX.Element; +declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +let opt = ; +let opt = ; +let opt = {}} />; +let opt = {}} ignore-prop />; +let opt = ; +let opt = ; +let opt = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go b/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go index b4e3518efc..57159c8d4c 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go @@ -14,20 +14,20 @@ func TestTsxFindAllReferencesUnionElementType1(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - function SFC1(prop: { x: number }) { - return
hello
; - }; - function SFC2(prop: { x: boolean }) { - return

World

; - } - /*1*/var /*2*/SFCComp = SFC1 || SFC2; - /*3*/` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +function SFC1(prop: { x: number }) { + return
hello
; +}; +function SFC2(prop: { x: boolean }) { + return

World

; +} +/*1*/var /*2*/SFCComp = SFC1 || SFC2; +/*3*/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go b/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go index 704de86965..2ca55c8204 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go @@ -14,19 +14,19 @@ func TestTsxFindAllReferencesUnionElementType2(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - class RC1 extends React.Component<{}, {}> { - render() { - return null; - } - } - class RC2 extends React.Component<{}, {}> { - render() { - return null; - } - private method() { } - } - /*1*/var /*2*/RCComp = RC1 || RC2; - /*3*/` +class RC1 extends React.Component<{}, {}> { + render() { + return null; + } +} +class RC2 extends React.Component<{}, {}> { + render() { + return null; + } + private method() { } +} +/*1*/var /*2*/RCComp = RC1 || RC2; +/*3*/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4") } diff --git a/internal/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go b/internal/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go index b58528199b..eae08d8b2a 100644 --- a/internal/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go +++ b/internal/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go @@ -12,19 +12,19 @@ func TestTsxGoToDefinitionClasses(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { } - interface ElementAttributesProperty { props; } - } - class /*ct*/MyClass { - props: { - /*pt*/foo: string; - } - } - var x = <[|My/*c*/Class|] />; - var y = ; - var z = <[|MyCl/*w*/ass|] wrong= 'hello' />;` +declare module JSX { + interface Element { } + interface IntrinsicElements { } + interface ElementAttributesProperty { props; } +} +class /*ct*/MyClass { + props: { + /*pt*/foo: string; + } +} +var x = <[|My/*c*/Class|] />; +var y = ; +var z = <[|MyCl/*w*/ass|] wrong= 'hello' />;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "c", "p", "w") } diff --git a/internal/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go b/internal/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go index 36cdcd87fe..3004b81b24 100644 --- a/internal/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go +++ b/internal/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go @@ -12,19 +12,19 @@ func TestTsxGoToDefinitionIntrinsics(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - /*dt*/div: { - /*pt*/name?: string; - isOpen?: boolean; - }; - /*st*/span: { n: string; }; - } - } - var x = <[|di/*ds*/v|] />; - var y = <[|s/*ss*/pan|] />; - var z =
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + /*dt*/div: { + /*pt*/name?: string; + isOpen?: boolean; + }; + /*st*/span: { n: string; }; + } +} +var x = <[|di/*ds*/v|] />; +var y = <[|s/*ss*/pan|] />; +var z =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "ds", "ss", "ps") } diff --git a/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go b/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go index 706f4cb1e0..5a3fa3be7a 100644 --- a/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go +++ b/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go @@ -14,22 +14,22 @@ func TestTsxGoToDefinitionStatelessFunction1(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface OptionPropBag { - /*pt1*/propx: number - propString: "hell" - /*pt2*/optional?: boolean - } - declare function /*opt*/Opt(attributes: OptionPropBag): JSX.Element; - let opt = <[|O/*one*/pt|] />; - let opt1 = <[|Op/*two*/t|] [|pr/*p1*/opx|]={100} />; - let opt2 = <[|Op/*three*/t|] propx={100} [|opt/*p2*/ional|] />; - let opt3 = <[|Op/*four*/t|] wr/*p3*/ong />;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + /*pt1*/propx: number + propString: "hell" + /*pt2*/optional?: boolean +} +declare function /*opt*/Opt(attributes: OptionPropBag): JSX.Element; +let opt = <[|O/*one*/pt|] />; +let opt1 = <[|Op/*two*/t|] [|pr/*p1*/opx|]={100} />; +let opt2 = <[|Op/*three*/t|] propx={100} [|opt/*p2*/ional|] />; +let opt3 = <[|Op/*four*/t|] wr/*p3*/ong />;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "one", "two", "three", "four", "p1", "p2") } diff --git a/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go b/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go index 60402ac427..542014f9c3 100644 --- a/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go +++ b/internal/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go @@ -14,31 +14,31 @@ func TestTsxGoToDefinitionStatelessFunction2(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface ClickableProps { - children?: string; - className?: string; - } - interface ButtonProps extends ClickableProps { - onClick(event?: React.MouseEvent): void; - } - interface LinkProps extends ClickableProps { - goTo: string; - } - declare function /*firstSource*/MainButton(buttonProps: ButtonProps): JSX.Element; - declare function /*secondSource*/MainButton(linkProps: LinkProps): JSX.Element; - declare function /*thirdSource*/MainButton(props: ButtonProps | LinkProps): JSX.Element; - let opt = <[|Main/*firstTarget*/Button|] />; - let opt = <[|Main/*secondTarget*/Button|] children="chidlren" />; - let opt = <[|Main/*thirdTarget*/Button|] onClick={()=>{}} />; - let opt = <[|Main/*fourthTarget*/Button|] onClick={()=>{}} ignore-prop />; - let opt = <[|Main/*fifthTarget*/Button|] goTo="goTo" />; - let opt = <[|Main/*sixthTarget*/Button|] wrong />;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface ClickableProps { + children?: string; + className?: string; +} +interface ButtonProps extends ClickableProps { + onClick(event?: React.MouseEvent): void; +} +interface LinkProps extends ClickableProps { + goTo: string; +} +declare function /*firstSource*/MainButton(buttonProps: ButtonProps): JSX.Element; +declare function /*secondSource*/MainButton(linkProps: LinkProps): JSX.Element; +declare function /*thirdSource*/MainButton(props: ButtonProps | LinkProps): JSX.Element; +let opt = <[|Main/*firstTarget*/Button|] />; +let opt = <[|Main/*secondTarget*/Button|] children="chidlren" />; +let opt = <[|Main/*thirdTarget*/Button|] onClick={()=>{}} />; +let opt = <[|Main/*fourthTarget*/Button|] onClick={()=>{}} ignore-prop />; +let opt = <[|Main/*fifthTarget*/Button|] goTo="goTo" />; +let opt = <[|Main/*sixthTarget*/Button|] wrong />;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "firstTarget", "secondTarget", "thirdTarget", "fourthTarget", "fifthTarget", "sixthTarget") } diff --git a/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go b/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go index 9268ad44db..0278a88ab6 100644 --- a/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go +++ b/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go @@ -14,20 +14,20 @@ func TestTsxGoToDefinitionUnionElementType1(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - function /*pt1*/SFC1(prop: { x: number }) { - return
hello
; - }; - function SFC2(prop: { x: boolean }) { - return

World

; - } - var /*def*/SFCComp = SFC1 || SFC2; - <[|SFC/*one*/Comp|] x />` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +function /*pt1*/SFC1(prop: { x: number }) { + return
hello
; +}; +function SFC2(prop: { x: boolean }) { + return

World

; +} +var /*def*/SFCComp = SFC1 || SFC2; +<[|SFC/*one*/Comp|] x />` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "one") } diff --git a/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go b/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go index 6fb417cafa..f6a91c8869 100644 --- a/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go +++ b/internal/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go @@ -14,19 +14,19 @@ func TestTsxGoToDefinitionUnionElementType2(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - class RC1 extends React.Component<{}, {}> { - render() { - return null; - } - } - class RC2 extends React.Component<{}, {}> { - render() { - return null; - } - private method() { } - } - var /*pt1*/RCComp = RC1 || RC2; - <[|RC/*one*/Comp|] />` +class RC1 extends React.Component<{}, {}> { + render() { + return null; + } +} +class RC2 extends React.Component<{}, {}> { + render() { + return null; + } + private method() { } +} +var /*pt1*/RCComp = RC1 || RC2; +<[|RC/*one*/Comp|] />` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "one") } diff --git a/internal/fourslash/tests/gen/tsxQuickInfo1_test.go b/internal/fourslash/tests/gen/tsxQuickInfo1_test.go index 08bfd41391..01de96160d 100644 --- a/internal/fourslash/tests/gen/tsxQuickInfo1_test.go +++ b/internal/fourslash/tests/gen/tsxQuickInfo1_test.go @@ -12,9 +12,9 @@ func TestTsxQuickInfo1(t *testing.T) { t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - var x1 = - class MyElement {} - var z = ` +var x1 = +class MyElement {} +var z = ` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "any", "") f.VerifyQuickInfoAt(t, "2", "any", "") diff --git a/internal/fourslash/tests/gen/tsxQuickInfo2_test.go b/internal/fourslash/tests/gen/tsxQuickInfo2_test.go index 88fb36f54c..5168e269c3 100644 --- a/internal/fourslash/tests/gen/tsxQuickInfo2_test.go +++ b/internal/fourslash/tests/gen/tsxQuickInfo2_test.go @@ -12,15 +12,15 @@ func TestTsxQuickInfo2(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: any - } - } - var x1 = - class MyElement {} - var z = ` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: any + } +} +var x1 = +class MyElement {} +var z = ` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "(property) JSX.IntrinsicElements.div: any", "") f.VerifyQuickInfoAt(t, "2", "(property) JSX.IntrinsicElements.div: any", "") diff --git a/internal/fourslash/tests/gen/tsxQuickInfo3_test.go b/internal/fourslash/tests/gen/tsxQuickInfo3_test.go index 4d03d0de19..5611268ec0 100644 --- a/internal/fourslash/tests/gen/tsxQuickInfo3_test.go +++ b/internal/fourslash/tests/gen/tsxQuickInfo3_test.go @@ -14,20 +14,20 @@ func TestTsxQuickInfo3(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - interface OptionProp { - propx: 2 - } - class Opt extends React.Component { - render() { - return
Hello
; - } - } - const obj1: OptionProp = { - propx: 2 - } - let y1 = ; - let y2 = ; - let y2 = ;` +interface OptionProp { + propx: 2 +} +class Opt extends React.Component { + render() { + return
Hello
; + } +} +const obj1: OptionProp = { + propx: 2 +} +let y1 = ; +let y2 = ; +let y2 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "class Opt", "") f.VerifyQuickInfoAt(t, "2", "(property) propx: number", "") diff --git a/internal/fourslash/tests/gen/tsxQuickInfo4_test.go b/internal/fourslash/tests/gen/tsxQuickInfo4_test.go index 4d22dc9e1b..c41173a082 100644 --- a/internal/fourslash/tests/gen/tsxQuickInfo4_test.go +++ b/internal/fourslash/tests/gen/tsxQuickInfo4_test.go @@ -14,40 +14,40 @@ func TestTsxQuickInfo4(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - export interface ClickableProps { - children?: string; - className?: string; - } - export interface ButtonProps extends ClickableProps { - onClick(event?: React.MouseEvent): void; - } - export interface LinkProps extends ClickableProps { - to: string; - } - export function MainButton(buttonProps: ButtonProps): JSX.Element; - export function MainButton(linkProps: LinkProps): JSX.Element; - export function MainButton(props: ButtonProps | LinkProps): JSX.Element { - const linkProps = props as LinkProps; - if(linkProps.to) { - return this._buildMainLink(props); - } - return this._buildMainButton(props); - } - function _buildMainButton({ onClick, children, className }: ButtonProps): JSX.Element { - return(); - } - declare function buildMainLink({ to, children, className }: LinkProps): JSX.Element; - function buildSomeElement1(): JSX.Element { - return ( - GO - ); - } - function buildSomeElement2(): JSX.Element { - return ( - {}}>GO; - ); - } - let componenet = {}} ext/*5*/ra-prop>GO;` +export interface ClickableProps { + children?: string; + className?: string; +} +export interface ButtonProps extends ClickableProps { + onClick(event?: React.MouseEvent): void; +} +export interface LinkProps extends ClickableProps { + to: string; +} +export function MainButton(buttonProps: ButtonProps): JSX.Element; +export function MainButton(linkProps: LinkProps): JSX.Element; +export function MainButton(props: ButtonProps | LinkProps): JSX.Element { + const linkProps = props as LinkProps; + if(linkProps.to) { + return this._buildMainLink(props); + } + return this._buildMainButton(props); +} +function _buildMainButton({ onClick, children, className }: ButtonProps): JSX.Element { + return(); +} +declare function buildMainLink({ to, children, className }: LinkProps): JSX.Element; +function buildSomeElement1(): JSX.Element { + return ( + GO + ); +} +function buildSomeElement2(): JSX.Element { + return ( + {}}>GO; + ); +} +let componenet = {}} ext/*5*/ra-prop>GO;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "function MainButton(linkProps: LinkProps): JSX.Element (+1 overload)", "") f.VerifyQuickInfoAt(t, "2", "(property) LinkProps.to: string", "") diff --git a/internal/fourslash/tests/gen/tsxQuickInfo5_test.go b/internal/fourslash/tests/gen/tsxQuickInfo5_test.go index 8ee8842317..555123e53d 100644 --- a/internal/fourslash/tests/gen/tsxQuickInfo5_test.go +++ b/internal/fourslash/tests/gen/tsxQuickInfo5_test.go @@ -14,11 +14,11 @@ func TestTsxQuickInfo5(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare function ComponentWithTwoAttributes(l: {key1: K, value: V}): JSX.Element; - function Baz(key1: T, value: U) { - let a0 = - let a1 = - }` +declare function ComponentWithTwoAttributes(l: {key1: K, value: V}): JSX.Element; +function Baz(key1: T, value: U) { + let a0 = + let a1 = +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "function ComponentWithTwoAttributes(l: {\n key1: T;\n value: U;\n}): JSX.Element", "") f.VerifyQuickInfoAt(t, "2", "(property) key1: T", "") diff --git a/internal/fourslash/tests/gen/tsxQuickInfo6_test.go b/internal/fourslash/tests/gen/tsxQuickInfo6_test.go index 9c7109fc99..c346724cb6 100644 --- a/internal/fourslash/tests/gen/tsxQuickInfo6_test.go +++ b/internal/fourslash/tests/gen/tsxQuickInfo6_test.go @@ -14,13 +14,13 @@ func TestTsxQuickInfo6(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare function ComponentSpecific(l: {prop: U}): JSX.Element; - declare function ComponentSpecific1(l: {prop: U, "ignore-prop": number}): JSX.Element; - function Bar(arg: T) { - let a1 = ; // U is number - let a2 = ; // U is number - let a3 = ; // U is "hello" - }` +declare function ComponentSpecific(l: {prop: U}): JSX.Element; +declare function ComponentSpecific1(l: {prop: U, "ignore-prop": number}): JSX.Element; +function Bar(arg: T) { + let a1 = ; // U is number + let a2 = ; // U is number + let a3 = ; // U is "hello" +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "function ComponentSpecific(l: {\n prop: number;\n}): JSX.Element", "") f.VerifyQuickInfoAt(t, "2", "function ComponentSpecific(l: {\n prop: never;\n}): JSX.Element", "") diff --git a/internal/fourslash/tests/gen/tsxQuickInfo7_test.go b/internal/fourslash/tests/gen/tsxQuickInfo7_test.go index d622480c16..a4dd0eb9db 100644 --- a/internal/fourslash/tests/gen/tsxQuickInfo7_test.go +++ b/internal/fourslash/tests/gen/tsxQuickInfo7_test.go @@ -14,18 +14,18 @@ func TestTsxQuickInfo7(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare function OverloadComponent(attr: {b: U, a?: string, "ignore-prop": boolean}): JSX.Element; - declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; - declare function OverloadComponent(): JSX.Element; // effective argument type of ` + "`" + `{}` + "`" + `, needs to be last - function Baz(arg1: T, arg2: U) { - let a0 = ; - let a1 = ; - let a2 = ; - let a3 = ; - let a4 = ; - let a5 = ; - let a6 = ; - }` +declare function OverloadComponent(attr: {b: U, a?: string, "ignore-prop": boolean}): JSX.Element; +declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; +declare function OverloadComponent(): JSX.Element; // effective argument type of ` + "`" + `{}` + "`" + `, needs to be last +function Baz(arg1: T, arg2: U) { + let a0 = ; + let a1 = ; + let a2 = ; + let a3 = ; + let a4 = ; + let a5 = ; + let a6 = ; +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "function OverloadComponent(attr: {\n b: number;\n a?: string;\n \"ignore-prop\": boolean;\n}): JSX.Element (+2 overloads)", "") f.VerifyQuickInfoAt(t, "2", "function OverloadComponent(attr: {\n b: string;\n a: boolean;\n}): JSX.Element (+2 overloads)", "") diff --git a/internal/fourslash/tests/gen/tsxRename1_test.go b/internal/fourslash/tests/gen/tsxRename1_test.go index f3caf97354..53d46c82b4 100644 --- a/internal/fourslash/tests/gen/tsxRename1_test.go +++ b/internal/fourslash/tests/gen/tsxRename1_test.go @@ -12,17 +12,17 @@ func TestTsxRename1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - [|[|{| "contextRangeIndex": 0 |}div|]: { - name?: string; - isOpen?: boolean; - };|] - span: { n: string; }; - } - } - var x = [|<[|{| "contextRangeIndex": 2 |}div|] />|];` +declare module JSX { + interface Element { } + interface IntrinsicElements { + [|[|{| "contextRangeIndex": 0 |}div|]: { + name?: string; + isOpen?: boolean; + };|] + span: { n: string; }; + } +} +var x = [|<[|{| "contextRangeIndex": 2 |}div|] />|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "div") } diff --git a/internal/fourslash/tests/gen/tsxRename2_test.go b/internal/fourslash/tests/gen/tsxRename2_test.go index 19c8d8d568..5ef6242627 100644 --- a/internal/fourslash/tests/gen/tsxRename2_test.go +++ b/internal/fourslash/tests/gen/tsxRename2_test.go @@ -12,17 +12,17 @@ func TestTsxRename2(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - div: { - [|[|{| "contextRangeIndex": 0 |}name|]?: string;|] - isOpen?: boolean; - }; - span: { n: string; }; - } - } - var x =
;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + div: { + [|[|{| "contextRangeIndex": 0 |}name|]?: string;|] + isOpen?: boolean; + }; + span: { n: string; }; + } +} +var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "name") } diff --git a/internal/fourslash/tests/gen/tsxRename6_test.go b/internal/fourslash/tests/gen/tsxRename6_test.go index 6aa4cc41c0..ee1aa60262 100644 --- a/internal/fourslash/tests/gen/tsxRename6_test.go +++ b/internal/fourslash/tests/gen/tsxRename6_test.go @@ -14,23 +14,23 @@ func TestTsxRename6(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface OptionPropBag { - propx: number - propString: string - optional?: boolean - } - [|declare function [|{| "contextRangeIndex": 0 |}Opt|](attributes: OptionPropBag): JSX.Element;|] - let opt = [|<[|{| "contextRangeIndex": 2 |}Opt|] />|]; - let opt1 = [|<[|{| "contextRangeIndex": 4 |}Opt|] propx={100} propString />|]; - let opt2 = [|<[|{| "contextRangeIndex": 6 |}Opt|] propx={100} optional/>|]; - let opt3 = [|<[|{| "contextRangeIndex": 8 |}Opt|] wrong />|]; - let opt4 = [|<[|{| "contextRangeIndex": 10 |}Opt|] propx={100} propString="hi" />|];` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + propx: number + propString: string + optional?: boolean +} +[|declare function [|{| "contextRangeIndex": 0 |}Opt|](attributes: OptionPropBag): JSX.Element;|] +let opt = [|<[|{| "contextRangeIndex": 2 |}Opt|] />|]; +let opt1 = [|<[|{| "contextRangeIndex": 4 |}Opt|] propx={100} propString />|]; +let opt2 = [|<[|{| "contextRangeIndex": 6 |}Opt|] propx={100} optional/>|]; +let opt3 = [|<[|{| "contextRangeIndex": 8 |}Opt|] wrong />|]; +let opt4 = [|<[|{| "contextRangeIndex": 10 |}Opt|] propx={100} propString="hi" />|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "Opt") } diff --git a/internal/fourslash/tests/gen/tsxRename7_test.go b/internal/fourslash/tests/gen/tsxRename7_test.go index bfb1c6e839..b5edf7dad7 100644 --- a/internal/fourslash/tests/gen/tsxRename7_test.go +++ b/internal/fourslash/tests/gen/tsxRename7_test.go @@ -14,22 +14,22 @@ func TestTsxRename7(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface OptionPropBag { - [|[|{| "contextRangeIndex": 0 |}propx|]: number|] - propString: string - optional?: boolean - } - declare function Opt(attributes: OptionPropBag): JSX.Element; - let opt = ; - let opt1 = ; - let opt2 = ; - let opt3 = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + [|[|{| "contextRangeIndex": 0 |}propx|]: number|] + propString: string + optional?: boolean +} +declare function Opt(attributes: OptionPropBag): JSX.Element; +let opt = ; +let opt1 = ; +let opt2 = ; +let opt3 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "propx") } diff --git a/internal/fourslash/tests/gen/tsxRename8_test.go b/internal/fourslash/tests/gen/tsxRename8_test.go index 31c42f30a0..4a86214420 100644 --- a/internal/fourslash/tests/gen/tsxRename8_test.go +++ b/internal/fourslash/tests/gen/tsxRename8_test.go @@ -14,23 +14,23 @@ func TestTsxRename8(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface OptionPropBag { - propx: number - propString: string - optional?: boolean - } - declare function Opt(attributes: OptionPropBag): JSX.Element; - let opt = ; - let opt1 = ; - let opt2 = ; - let opt3 = ; - let opt4 = ;` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface OptionPropBag { + propx: number + propString: string + optional?: boolean +} +declare function Opt(attributes: OptionPropBag): JSX.Element; +let opt = ; +let opt1 = ; +let opt2 = ; +let opt3 = ; +let opt4 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRename(t) } diff --git a/internal/fourslash/tests/gen/tsxRename9_test.go b/internal/fourslash/tests/gen/tsxRename9_test.go index 252ac142c0..6f98c2443d 100644 --- a/internal/fourslash/tests/gen/tsxRename9_test.go +++ b/internal/fourslash/tests/gen/tsxRename9_test.go @@ -14,31 +14,31 @@ func TestTsxRename9(t *testing.T) { const content = `//@Filename: file.tsx // @jsx: preserve // @noLib: true - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props; } - } - interface ClickableProps { - children?: string; - className?: string; - } - interface ButtonProps extends ClickableProps { - [|[|{| "contextRangeIndex": 0 |}onClick|](event?: React.MouseEvent): void;|] - } - interface LinkProps extends ClickableProps { - [|[|{| "contextRangeIndex": 2 |}goTo|]: string;|] - } - [|declare function [|{| "contextRangeIndex": 4 |}MainButton|](buttonProps: ButtonProps): JSX.Element;|] - [|declare function [|{| "contextRangeIndex": 6 |}MainButton|](linkProps: LinkProps): JSX.Element;|] - [|declare function [|{| "contextRangeIndex": 8 |}MainButton|](props: ButtonProps | LinkProps): JSX.Element;|] - let opt = [|<[|{| "contextRangeIndex": 10 |}MainButton|] />|]; - let opt = [|<[|{| "contextRangeIndex": 12 |}MainButton|] children="chidlren" />|]; - let opt = [|<[|{| "contextRangeIndex": 14 |}MainButton|] [|[|{| "contextRangeIndex": 16 |}onClick|]={()=>{}}|] />|]; - let opt = [|<[|{| "contextRangeIndex": 18 |}MainButton|] [|[|{| "contextRangeIndex": 20 |}onClick|]={()=>{}}|] [|ignore-prop|] />|]; - let opt = [|<[|{| "contextRangeIndex": 23 |}MainButton|] [|[|{| "contextRangeIndex": 25 |}goTo|]="goTo"|] />|]; - let opt = [|<[|{| "contextRangeIndex": 27 |}MainButton|] [|wrong|] />|];` +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props; } +} +interface ClickableProps { + children?: string; + className?: string; +} +interface ButtonProps extends ClickableProps { + [|[|{| "contextRangeIndex": 0 |}onClick|](event?: React.MouseEvent): void;|] +} +interface LinkProps extends ClickableProps { + [|[|{| "contextRangeIndex": 2 |}goTo|]: string;|] +} +[|declare function [|{| "contextRangeIndex": 4 |}MainButton|](buttonProps: ButtonProps): JSX.Element;|] +[|declare function [|{| "contextRangeIndex": 6 |}MainButton|](linkProps: LinkProps): JSX.Element;|] +[|declare function [|{| "contextRangeIndex": 8 |}MainButton|](props: ButtonProps | LinkProps): JSX.Element;|] +let opt = [|<[|{| "contextRangeIndex": 10 |}MainButton|] />|]; +let opt = [|<[|{| "contextRangeIndex": 12 |}MainButton|] children="chidlren" />|]; +let opt = [|<[|{| "contextRangeIndex": 14 |}MainButton|] [|[|{| "contextRangeIndex": 16 |}onClick|]={()=>{}}|] />|]; +let opt = [|<[|{| "contextRangeIndex": 18 |}MainButton|] [|[|{| "contextRangeIndex": 20 |}onClick|]={()=>{}}|] [|ignore-prop|] />|]; +let opt = [|<[|{| "contextRangeIndex": 23 |}MainButton|] [|[|{| "contextRangeIndex": 25 |}goTo|]="goTo"|] />|]; +let opt = [|<[|{| "contextRangeIndex": 27 |}MainButton|] [|wrong|] />|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "onClick", "goTo", "MainButton", "ignore-prop", "wrong") } From 99c2f673d45d8e7cab7084d9ba566b028b0a119d Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Tue, 9 Sep 2025 20:06:24 -0700 Subject: [PATCH 11/18] more fixes --- .../fourslash/_scripts/convertFourslash.mts | 11 +- internal/fourslash/baselineutil.go | 2 + internal/fourslash/fourslash.go | 2 +- .../gen/commentsLinePreservation_test.go | 36 ++--- .../tests/gen/completionAfterBrace_test.go | 2 +- ...OfContextSensitiveParameterNoCrash_test.go | 2 +- ...tionEntryAfterASIExpressionInClass_test.go | 6 +- .../tests/gen/completionInJsDoc_test.go | 76 +++++------ .../gen/completionListAfterAnyType_test.go | 12 +- .../completionListAtInvalidLocations_test.go | 38 +++--- .../completionListInObjectLiteral5_test.go | 2 +- ...ompletionListPrivateNamesAccessors_test.go | 54 ++++---- .../completionListPrivateNamesMethods_test.go | 42 +++--- .../fourslash/tests/gen/completions03_test.go | 20 +-- ...ionAttributesEmptyModuleSpecifier1_test.go | 2 +- ...ionAttributesErrorModuleSpecifier1_test.go | 2 +- ...TagAttributesEmptyModuleSpecifier1_test.go | 2 +- ...TagAttributesErrorModuleSpecifier1_test.go | 2 +- ...pletionsUnionStringLiteralProperty_test.go | 18 +-- .../gen/completionsWithDeprecatedTag1_test.go | 30 ++--- .../gen/completionsWithOverride1_test.go | 2 +- .../gen/completionsWithOverride2_test.go | 2 +- .../completionsWritingSpreadArgument_test.go | 2 +- ...tualTypingOfGenericCallSignatures1_test.go | 2 +- .../tests/gen/doubleUnderscoreRenames_test.go | 8 +- .../tests/gen/emptyArrayInference_test.go | 2 +- ...sivelyLargeArrayLiteralCompletions_test.go | 4 +- ...encesJsOverloadedFunctionParameter_test.go | 4 +- .../findAllRefsInheritedProperties1_test.go | 14 +- .../findAllRefsInheritedProperties2_test.go | 14 +- .../findAllRefsInheritedProperties3_test.go | 30 ++--- .../findAllRefsInheritedProperties4_test.go | 20 +-- .../findAllRefsInheritedProperties5_test.go | 20 +-- ...fsWithShorthandPropertyAssignment2_test.go | 14 +- ...efsWithShorthandPropertyAssignment_test.go | 8 +- ...icCallSignaturesInNonGenericTypes1_test.go | 2 +- .../genericCombinatorWithConstraints1_test.go | 2 +- ...icTypeAliasIntersectionCompletions_test.go | 54 ++++---- .../genericWithSpecializedProperties2_test.go | 8 +- .../gen/getJavaScriptCompletions20_test.go | 24 ++-- .../getJavaScriptGlobalCompletions1_test.go | 16 +-- .../tests/gen/getJavaScriptQuickInfo8_test.go | 30 ++--- .../gen/goToDefinitionDynamicImport2_test.go | 2 +- .../tests/gen/goToDefinitionModifiers_test.go | 28 ++-- .../goToDefinitionPropertyAssignment_test.go | 8 +- .../gen/goToDefinitionSwitchCase4_test.go | 12 +- .../gen/insertMethodCallAboveOthers_test.go | 2 +- .../tests/gen/javaScriptModulesError1_test.go | 2 +- .../gen/jsDocFunctionSignatures3_test.go | 32 ++--- .../tests/gen/jsDocGenerics1_test.go | 28 ++-- .../gen/jsDocPropertyDescription1_test.go | 4 +- .../gen/jsDocPropertyDescription9_test.go | 2 +- .../tests/gen/jsDocTypedefQuickInfo1_test.go | 4 +- .../gen/jsdocTypedefTagGoToDefinition_test.go | 24 ++-- .../tests/gen/jsdocTypedefTagRename01_test.go | 10 +- .../tests/gen/jsdocTypedefTagRename02_test.go | 6 +- .../tests/gen/jsdocTypedefTagRename03_test.go | 16 +-- .../tests/gen/jsdocTypedefTagRename04_test.go | 20 +-- .../tests/gen/jsdocTypedefTag_test.go | 76 +++++------ .../gen/jsxQualifiedTagCompletion_test.go | 10 +- .../tests/gen/jsxSpreadReference_test.go | 28 ++-- .../tests/gen/noQuickInfoInWhitespace_test.go | 2 +- .../tests/gen/overloadQuickInfo_test.go | 2 +- .../tests/gen/promiseTyping2_test.go | 2 +- .../quickInfoCommentsCommentParsing_test.go | 2 +- .../gen/quickInfoForGetterAndSetter_test.go | 26 ++-- .../tests/gen/quickInfoInheritDoc_test.go | 4 +- .../gen/quickInfoJsDocInheritage_test.go | 8 +- .../gen/quickInfoJsDocTextFormatting1_test.go | 12 +- .../quickInfoOnParameterProperties_test.go | 8 +- ...aceMergeWithClassConstrainedToSelf_test.go | 30 ++--- .../recursiveWrappedTypeParameters1_test.go | 2 +- ...enceInParameterPropertyDeclaration_test.go | 24 ++-- .../referencesForInheritedProperties3_test.go | 14 +- .../referencesForInheritedProperties4_test.go | 14 +- .../referencesForInheritedProperties5_test.go | 22 +-- .../referencesForInheritedProperties7_test.go | 30 ++--- .../referencesForInheritedProperties9_test.go | 16 +-- .../gen/renameInheritedProperties1_test.go | 10 +- .../gen/renameInheritedProperties2_test.go | 10 +- .../gen/renameInheritedProperties3_test.go | 10 +- .../gen/renameInheritedProperties4_test.go | 10 +- .../gen/renameInheritedProperties7_test.go | 16 +-- .../gen/renameInheritedProperties8_test.go | 16 +-- ...enameJsOverloadedFunctionParameter_test.go | 4 +- ...ignatureHelpCommentsCommentParsing_test.go | 2 +- ...HelpExpandedRestTuplesLocalLabels1_test.go | 126 +++++++++--------- .../gen/signatureHelpIteratorNext_test.go | 24 ++-- ...onalTypesUsingTemplateLiteralTypes_test.go | 12 +- .../tests/gen/stringPropertyNames2_test.go | 2 +- .../tests/gen/switchCompletions_test.go | 48 +++---- .../tests/gen/thisBindingInLambda_test.go | 2 +- ...thisPredicateFunctionCompletions02_test.go | 56 ++++---- ...thisPredicateFunctionCompletions03_test.go | 74 +++++----- .../thisPredicateFunctionQuickInfo01_test.go | 74 +++++----- .../thisPredicateFunctionQuickInfo02_test.go | 56 ++++---- .../thisPredicateFunctionQuickInfo_test.go | 98 +++++++------- .../tests/gen/tsxFindAllReferences3_test.go | 24 ++-- .../tests/gen/tsxFindAllReferences4_test.go | 24 ++-- .../fourslash/tests/gen/tsxRename3_test.go | 24 ++-- .../fourslash/tests/gen/tsxRename5_test.go | 26 ++-- .../gen/typeOperatorNodeBuilding_test.go | 18 +-- 102 files changed, 975 insertions(+), 966 deletions(-) diff --git a/internal/fourslash/_scripts/convertFourslash.mts b/internal/fourslash/_scripts/convertFourslash.mts index bd317fb2bb..0508d0380e 100644 --- a/internal/fourslash/_scripts/convertFourslash.mts +++ b/internal/fourslash/_scripts/convertFourslash.mts @@ -97,7 +97,7 @@ function parseFileContent(filename: string, content: string): GoTest | undefined } function getTestInput(content: string): string { - const lines = content.split("\n"); + const lines = content.split("\n").map(line => line.trimEnd()); let testInput: string[] = []; for (const line of lines) { let newLine = ""; @@ -118,7 +118,14 @@ function getTestInput(content: string): string { } // chomp leading spaces - if (!testInput.some(line => line.length != 0 && !line.startsWith(" ") && !line.startsWith("// ") && !line.startsWith("//@"))) { + if ( + !testInput.some(line => + line.length != 0 && + !line.startsWith(" ") && + !line.startsWith("// ") && + !line.startsWith("//@") + ) + ) { testInput = testInput.map(line => { if (line.startsWith(" ")) return line.substring(1); return line; diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index 2943ea3a70..b5664d752f 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -71,12 +71,14 @@ func getBaselineOptions(command string) baseline.Options { var commandLines []string commandPrefix := regexp.MustCompile(`^// === ([a-z\sA-Z]*) ===`) testFilePrefix := "/tests/cases/fourslash" + serverTestFilePrefix := "/server" contextSpanOpening := "<|" contextSpanClosing := "|>" replacer := strings.NewReplacer( contextSpanOpening, "", contextSpanClosing, "", testFilePrefix, "", + serverTestFilePrefix, "", ) lines := strings.Split(s, "\n") var isInCommand bool diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index ce9fe80f7c..d98d65941f 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -846,7 +846,7 @@ func (f *FourslashTest) VerifyBaselineGoToDefinition( f.addResultToBaseline(t, "goToDefinition", f.getBaselineForLocationsWithFileContents(resultAsLocations, baselineFourslashLocationsOptions{ marker: markerOrRange, - markerName: "/*GO TO DEFINITION*/", + markerName: "/*GOTO DEF*/", })) } } diff --git a/internal/fourslash/tests/gen/commentsLinePreservation_test.go b/internal/fourslash/tests/gen/commentsLinePreservation_test.go index ff30730fb5..8b8cb30d01 100644 --- a/internal/fourslash/tests/gen/commentsLinePreservation_test.go +++ b/internal/fourslash/tests/gen/commentsLinePreservation_test.go @@ -13,39 +13,39 @@ func TestCommentsLinePreservation(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is firstLine * This is second Line - * + * * This is fourth Line */ var /*a*/a: string; -/** +/** * This is firstLine * This is second Line - * + * * This is fourth Line */ var /*b*/b: string; -/** +/** * This is firstLine * This is second Line - * + * * This is fourth Line * */ var /*c*/c: string; -/** +/** * This is firstLine * This is second Line * @param param * @random tag This should be third line */ function /*d*/d(param: string) { /*1*/param = "hello"; } -/** +/** * This is firstLine * This is second Line * @param param */ function /*e*/e(param: string) { /*2*/param = "hello"; } -/** +/** * This is firstLine * This is second Line * @param param1 first line of param @@ -54,7 +54,7 @@ function /*e*/e(param: string) { /*2*/param = "hello"; } * @random tag This should be third line */ function /*f*/f(param1: string) { /*3*/param1 = "hello"; } -/** +/** * This is firstLine * This is second Line * @param param1 @@ -63,7 +63,7 @@ function /*f*/f(param1: string) { /*3*/param1 = "hello"; } * @random tag This should be third line */ function /*g*/g(param1: string) { /*4*/param1 = "hello"; } -/** +/** * This is firstLine * This is second Line * @param param1 @@ -74,7 +74,7 @@ function /*g*/g(param1: string) { /*4*/param1 = "hello"; } * @random tag This should be third line */ function /*h*/h(param1: string) { /*5*/param1 = "hello"; } -/** +/** * This is firstLine * This is second Line * @param param1 @@ -85,7 +85,7 @@ function /*h*/h(param1: string) { /*5*/param1 = "hello"; } * */ function /*i*/i(param1: string) { /*6*/param1 = "hello"; } -/** +/** * This is firstLine * This is second Line * @param param1 @@ -95,28 +95,28 @@ function /*i*/i(param1: string) { /*6*/param1 = "hello"; } * param information third line */ function /*j*/j(param1: string) { /*7*/param1 = "hello"; } -/** +/** * This is firstLine * This is second Line - * @param param1 hello @randomtag + * @param param1 hello @randomtag * * random information first line * * random information third line */ function /*k*/k(param1: string) { /*8*/param1 = "hello"; } -/** +/** * This is firstLine * This is second Line * @param param1 first Line text * - * @param param1 + * @param param1 * - * blank line that shouldnt be shown when starting this + * blank line that shouldnt be shown when starting this * second time information about the param again */ function /*l*/l(param1: string) { /*9*/param1 = "hello"; } - /** + /** * This is firstLine This is second Line [1]: third * line diff --git a/internal/fourslash/tests/gen/completionAfterBrace_test.go b/internal/fourslash/tests/gen/completionAfterBrace_test.go index 9bfb94b058..db731e0b67 100644 --- a/internal/fourslash/tests/gen/completionAfterBrace_test.go +++ b/internal/fourslash/tests/gen/completionAfterBrace_test.go @@ -13,7 +13,7 @@ func TestCompletionAfterBrace(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` - }/**/ +}/**/ ` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ diff --git a/internal/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go b/internal/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go index 44adbe8bd4..9183835807 100644 --- a/internal/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go +++ b/internal/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go @@ -56,7 +56,7 @@ interface CurriedFunction4 { } declare var curry: { - (func: (t1: T1) => R, arity?: number): CurriedFunction1; + (func: (t1: T1) => R, arity?: number): CurriedFunction1; (func: (t1: T1, t2: T2) => R, arity?: number): CurriedFunction2; (func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): CurriedFunction3; (func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): CurriedFunction4; diff --git a/internal/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go b/internal/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go index 7e76fce8c7..02834c4360 100644 --- a/internal/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go +++ b/internal/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go @@ -19,13 +19,13 @@ func TestCompletionEntryAfterASIExpressionInClass(t *testing.T) { } class Child extends Parent { - // this assumes ASI, but on next line wants to + // this assumes ASI, but on next line wants to x = () => 1 - shoul/*insideid*/ + shoul/*insideid*/ } class ChildTwo extends Parent { - // this assumes ASI, but on next line wants to + // this assumes ASI, but on next line wants to x = () => 1 /*root*/ //nothing }` diff --git a/internal/fourslash/tests/gen/completionInJsDoc_test.go b/internal/fourslash/tests/gen/completionInJsDoc_test.go index d950da13fe..8fbf13f2aa 100644 --- a/internal/fourslash/tests/gen/completionInJsDoc_test.go +++ b/internal/fourslash/tests/gen/completionInJsDoc_test.go @@ -16,61 +16,61 @@ func TestCompletionInJsDoc(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js - /** @/*1*/ */ - var v1; +/** @/*1*/ */ +var v1; - /** @p/*2*/ */ - var v2; +/** @p/*2*/ */ +var v2; - /** @param /*3*/ */ - var v3; +/** @param /*3*/ */ +var v3; - /** @param { n/*4*/ } bar */ - var v4; +/** @param { n/*4*/ } bar */ +var v4; - /** @type { n/*5*/ } */ - var v5; +/** @type { n/*5*/ } */ +var v5; - // @/*6*/ - var v6; +// @/*6*/ +var v6; - // @pa/*7*/ - var v7; +// @pa/*7*/ +var v7; - /** @return { n/*8*/ } */ - var v8; +/** @return { n/*8*/ } */ +var v8; - /** /*9*/ */ +/** /*9*/ */ - /** - /*10*/ +/** + /*10*/ +*/ + +/** + * /*11*/ */ - /** - * /*11*/ - */ +/** + /*12*/ + */ - /** - /*12*/ +/** + * /*13*/ */ - /** - * /*13*/ - */ - - /** - * some comment /*14*/ - */ +/** + * some comment /*14*/ + */ - /** - * @param /*15*/ - */ +/** + * @param /*15*/ + */ - /** @param /*16*/ */ +/** @param /*16*/ */ - /** - * jsdoc inline tag {@/*17*/} - */` +/** + * jsdoc inline tag {@/*17*/} + */` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"1", "2"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionListAfterAnyType_test.go b/internal/fourslash/tests/gen/completionListAfterAnyType_test.go index cfd4308977..74c5858beb 100644 --- a/internal/fourslash/tests/gen/completionListAfterAnyType_test.go +++ b/internal/fourslash/tests/gen/completionListAfterAnyType_test.go @@ -12,13 +12,13 @@ func TestCompletionListAfterAnyType(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` declare class myString { - charAt(pos: number): string; - } + const content = `declare class myString { + charAt(pos: number): string; +} - function bar(a: myString) { - var x: any = a./**/ - }` +function bar(a: myString) { + var x: any = a./**/ +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionListAtInvalidLocations_test.go b/internal/fourslash/tests/gen/completionListAtInvalidLocations_test.go index 90b58dfe01..0a1673eb86 100644 --- a/internal/fourslash/tests/gen/completionListAtInvalidLocations_test.go +++ b/internal/fourslash/tests/gen/completionListAtInvalidLocations_test.go @@ -12,26 +12,26 @@ func TestCompletionListAtInvalidLocations(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` var v1 = ''; - " /*openString1*/ - var v2 = ''; - "/*openString2*/ - var v3 = ''; - " bar./*openString3*/ - var v4 = ''; - // bar./*inComment1*/ - var v6 = ''; - // /*inComment2*/ - var v7 = ''; - /* /*inComment3*/ - var v11 = ''; - // /*inComment4*/ - var v12 = ''; - type htm/*inTypeAlias*/ + const content = `var v1 = ''; +" /*openString1*/ +var v2 = ''; +"/*openString2*/ +var v3 = ''; +" bar./*openString3*/ +var v4 = ''; +// bar./*inComment1*/ +var v6 = ''; +// /*inComment2*/ +var v7 = ''; +/* /*inComment3*/ +var v11 = ''; + // /*inComment4*/ +var v12 = ''; +type htm/*inTypeAlias*/ - // /*inComment5*/ - foo; - var v10 = /reg/*inRegExp1*/ex/;` +// /*inComment5*/ +foo; +var v10 = /reg/*inRegExp1*/ex/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"openString1", "openString2", "openString3"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionListInObjectLiteral5_test.go b/internal/fourslash/tests/gen/completionListInObjectLiteral5_test.go index cd3b718ef1..d42c87dffe 100644 --- a/internal/fourslash/tests/gen/completionListInObjectLiteral5_test.go +++ b/internal/fourslash/tests/gen/completionListInObjectLiteral5_test.go @@ -12,7 +12,7 @@ func TestCompletionListInObjectLiteral5(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `const o = 'something' + const content = `const o = 'something' const obj = { prop: o/*1*/, pro() { diff --git a/internal/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go b/internal/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go index 517f1aa377..ed3e92cd6d 100644 --- a/internal/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go +++ b/internal/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go @@ -12,34 +12,34 @@ func TestCompletionListPrivateNamesAccessors(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class Foo { - get #x() { return 1 }; - set #x(value: number) { }; - y() {}; - } - class Bar extends Foo { - get #z() { return 1 }; - set #z(value: number) { }; - t() {}; - l; - constructor() { - this./*1*/ - class Baz { - get #z() { return 1 }; - set #z(value: number) { }; - get #u() { return 1 }; - set #u(value: number) { }; - v() {}; - k; - constructor() { - this./*2*/ - new Bar()./*3*/ - } - } - } - } + const content = `class Foo { + get #x() { return 1 }; + set #x(value: number) { }; + y() {}; +} +class Bar extends Foo { + get #z() { return 1 }; + set #z(value: number) { }; + t() {}; + l; + constructor() { + this./*1*/ + class Baz { + get #z() { return 1 }; + set #z(value: number) { }; + get #u() { return 1 }; + set #u(value: number) { }; + v() {}; + k; + constructor() { + this./*2*/ + new Bar()./*3*/ + } + } + } +} - new Foo()./*4*/` +new Foo()./*4*/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionListPrivateNamesMethods_test.go b/internal/fourslash/tests/gen/completionListPrivateNamesMethods_test.go index 1e17ec4cb2..f0800fb41c 100644 --- a/internal/fourslash/tests/gen/completionListPrivateNamesMethods_test.go +++ b/internal/fourslash/tests/gen/completionListPrivateNamesMethods_test.go @@ -12,28 +12,28 @@ func TestCompletionListPrivateNamesMethods(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class Foo { - #x() {}; - y() {}; - } - class Bar extends Foo { - #z() {}; - t() {}; - constructor() { - this./*1*/ - class Baz { - #z() {}; - #u() {}; - v() {}; - constructor() { - this./*2*/ - new Bar()./*3*/ - } - } - } - } + const content = `class Foo { + #x() {}; + y() {}; +} +class Bar extends Foo { + #z() {}; + t() {}; + constructor() { + this./*1*/ + class Baz { + #z() {}; + #u() {}; + v() {}; + constructor() { + this./*2*/ + new Bar()./*3*/ + } + } + } +} - new Foo()./*4*/` +new Foo()./*4*/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completions03_test.go b/internal/fourslash/tests/gen/completions03_test.go index 1545e2ff5e..e2a1f5b622 100644 --- a/internal/fourslash/tests/gen/completions03_test.go +++ b/internal/fourslash/tests/gen/completions03_test.go @@ -12,17 +12,17 @@ func TestCompletions03(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface Foo { - one: any; - two: any; - three: any; - } + const content = `interface Foo { + one: any; + two: any; + three: any; +} - let x: Foo = { - get one() { return "" }, - set two(t) {}, - /**/ - }` +let x: Foo = { + get one() { return "" }, + set two(t) {}, + /**/ +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go index ac124b371d..ed5d98fda7 100644 --- a/internal/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go @@ -14,7 +14,7 @@ func TestCompletionsImportDeclarationAttributesEmptyModuleSpecifier1(t *testing. defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: global.d.ts -interface ImportAttributes { +interface ImportAttributes { type: "json"; } // @filename: index.ts diff --git a/internal/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go index 3cf04cc102..a28bd4eca6 100644 --- a/internal/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go @@ -14,7 +14,7 @@ func TestCompletionsImportDeclarationAttributesErrorModuleSpecifier1(t *testing. defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: global.d.ts -interface ImportAttributes { +interface ImportAttributes { type: "json"; } // @filename: index.ts diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go index 4e464bc577..dd44976a05 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go @@ -16,7 +16,7 @@ func TestCompletionsJSDocImportTagAttributesEmptyModuleSpecifier1(t *testing.T) // @checkJs: true // @allowJs: true // @filename: global.d.ts -interface ImportAttributes { +interface ImportAttributes { type: "json"; } // @filename: index.js diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go index 98c319a844..a357f7d617 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go @@ -16,7 +16,7 @@ func TestCompletionsJSDocImportTagAttributesErrorModuleSpecifier1(t *testing.T) // @checkJs: true // @allowJs: true // @filename: global.d.ts -interface ImportAttributes { +interface ImportAttributes { type: "json"; } // @filename: index.js diff --git a/internal/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go b/internal/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go index 256767bbc4..e2baf0b8cb 100644 --- a/internal/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go +++ b/internal/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go @@ -12,17 +12,17 @@ func TestCompletionsUnionStringLiteralProperty(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` type Foo = { a: 0, b: 'x' } | { a: 0, b: 'y' } | { a: 1, b: 'z' }; - const foo: Foo = { a: 0, b: '/*1*/' } + const content = `type Foo = { a: 0, b: 'x' } | { a: 0, b: 'y' } | { a: 1, b: 'z' }; +const foo: Foo = { a: 0, b: '/*1*/' } - type Bar = { a: 0, b: 'fx' } | { a: 0, b: 'fy' } | { a: 1, b: 'fz' }; - const bar: Bar = { a: 0, b: 'f/*2*/' } +type Bar = { a: 0, b: 'fx' } | { a: 0, b: 'fy' } | { a: 1, b: 'fz' }; +const bar: Bar = { a: 0, b: 'f/*2*/' } - type Baz = { x: 0, y: 0, z: 'a' } | { x: 0, y: 1, z: 'b' } | { x: 1, y: 0, z: 'c' } | { x: 1, y: 1, z: 'd' }; - const baz1: Baz = { z: '/*3*/' }; - const baz2: Baz = { x: 0, z: '/*4*/' }; - const baz3: Baz = { x: 0, y: 1, z: '/*5*/' }; - const baz4: Baz = { x: 2, y: 1, z: '/*6*/' };` +type Baz = { x: 0, y: 0, z: 'a' } | { x: 0, y: 1, z: 'b' } | { x: 1, y: 0, z: 'c' } | { x: 1, y: 1, z: 'd' }; +const baz1: Baz = { z: '/*3*/' }; +const baz2: Baz = { x: 0, z: '/*4*/' }; +const baz3: Baz = { x: 0, y: 1, z: '/*5*/' }; +const baz4: Baz = { x: 2, y: 1, z: '/*6*/' };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go b/internal/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go index 05fff1596e..2b8d217bf3 100644 --- a/internal/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go +++ b/internal/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go @@ -16,24 +16,24 @@ func TestCompletionsWithDeprecatedTag1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: /foobar.ts - /** @deprecated */ - export function foobar() {} +/** @deprecated */ +export function foobar() {} // @filename: /foo.ts - import { foobar/*4*/ } from "./foobar"; +import { foobar/*4*/ } from "./foobar"; - /** @deprecated */ - interface Foo { - /** @deprecated */ - bar(): void - /** @deprecated */ - prop: number - } - declare const foo: Foo; - declare const foooo: Fo/*1*/; - foo.ba/*2*/; - foo.pro/*3*/; +/** @deprecated */ +interface Foo { + /** @deprecated */ + bar(): void + /** @deprecated */ + prop: number +} +declare const foo: Foo; +declare const foooo: Fo/*1*/; +foo.ba/*2*/; +foo.pro/*3*/; - fooba/*5*/;` +fooba/*5*/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/completionsWithOverride1_test.go b/internal/fourslash/tests/gen/completionsWithOverride1_test.go index b4dc432544..e6e2333353 100644 --- a/internal/fourslash/tests/gen/completionsWithOverride1_test.go +++ b/internal/fourslash/tests/gen/completionsWithOverride1_test.go @@ -13,7 +13,7 @@ func TestCompletionsWithOverride1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { - foo () {} + foo () {} bar () {} } class B extends A { diff --git a/internal/fourslash/tests/gen/completionsWithOverride2_test.go b/internal/fourslash/tests/gen/completionsWithOverride2_test.go index 544af7304d..a20428cedb 100644 --- a/internal/fourslash/tests/gen/completionsWithOverride2_test.go +++ b/internal/fourslash/tests/gen/completionsWithOverride2_test.go @@ -16,7 +16,7 @@ func TestCompletionsWithOverride2(t *testing.T) { baz () {} } class A { - foo () {} + foo () {} bar () {} } class B extends A implements I { diff --git a/internal/fourslash/tests/gen/completionsWritingSpreadArgument_test.go b/internal/fourslash/tests/gen/completionsWritingSpreadArgument_test.go index 44e2f3467a..b922cd01bb 100644 --- a/internal/fourslash/tests/gen/completionsWritingSpreadArgument_test.go +++ b/internal/fourslash/tests/gen/completionsWritingSpreadArgument_test.go @@ -13,7 +13,7 @@ func TestCompletionsWritingSpreadArgument(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` - const [] = [Math.min(./*marker*/)] +const [] = [Math.min(./*marker*/)] ` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "marker") diff --git a/internal/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go b/internal/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go index a16399fd45..fcb3b44190 100644 --- a/internal/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go +++ b/internal/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go @@ -14,7 +14,7 @@ func TestContextualTypingOfGenericCallSignatures1(t *testing.T) { const content = `var f24: { (x: T): U }; -// x should not be contextually typed +// x should not be contextually typed var f24 = (/**/x) => { return 1 };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "", "(parameter) x: any", "") diff --git a/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go b/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go index 60cb50e64d..208ba30e2a 100644 --- a/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go +++ b/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go @@ -12,13 +12,13 @@ func TestDoubleUnderscoreRenames(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: fileA.ts - [|export function [|{| "contextRangeIndex": 0 |}__foo|]() { - }|] +[|export function [|{| "contextRangeIndex": 0 |}__foo|]() { +}|] // @Filename: fileB.ts - [|import { [|{| "contextRangeIndex": 2 |}__foo|] as bar } from "./fileA";|] +[|import { [|{| "contextRangeIndex": 2 |}__foo|] as bar } from "./fileA";|] - bar();` +bar();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "__foo") } diff --git a/internal/fourslash/tests/gen/emptyArrayInference_test.go b/internal/fourslash/tests/gen/emptyArrayInference_test.go index dd91394879..53e2c32d49 100644 --- a/internal/fourslash/tests/gen/emptyArrayInference_test.go +++ b/internal/fourslash/tests/gen/emptyArrayInference_test.go @@ -11,7 +11,7 @@ func TestEmptyArrayInference(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `var x/*1*/x = true ? [1] : [undefined]; + const content = `var x/*1*/x = true ? [1] : [undefined]; var y/*2*/y = true ? [1] : [];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "var xx: number[]", "") diff --git a/internal/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go b/internal/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go index 32e2a6d8e3..17e408ad7c 100644 --- a/internal/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go +++ b/internal/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go @@ -16,8 +16,8 @@ func TestExcessivelyLargeArrayLiteralCompletions(t *testing.T) { Route exported from CloudMade; Map data used is Copyright (c) OpenStreetMap contributors 2010 - OpenStreetMap® is open data, licensed under the - Open Data Commons Open Database License (ODbL) by + OpenStreetMap® is open data, licensed under the + Open Data Commons Open Database License (ODbL) by the OpenStreetMap Foundation (OSMF). See full license: https://www.openstreetmap.org/copyright diff --git a/internal/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go b/internal/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go index d5f3537436..1bb7d4dc0a 100644 --- a/internal/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go @@ -21,10 +21,10 @@ func TestFindAllReferencesJsOverloadedFunctionParameter(t *testing.T) { * * @overload * @param {string} x - * @returns {string} + * @returns {string} * * @param {unknown} x - * @returns {unknown} + * @returns {unknown} */ function foo(x/*1*/) { return x; diff --git a/internal/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go b/internal/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go index 217a55284e..aee4b2e077 100644 --- a/internal/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go +++ b/internal/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go @@ -11,14 +11,14 @@ func TestFindAllRefsInheritedProperties1(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class class1 extends class1 { - /*1*/doStuff() { } - /*2*/propName: string; - } + const content = `class class1 extends class1 { + /*1*/doStuff() { } + /*2*/propName: string; +} - var v: class1; - v./*3*/doStuff(); - v./*4*/propName;` +var v: class1; +v./*3*/doStuff(); +v./*4*/propName;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4") } diff --git a/internal/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go b/internal/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go index deb24b7092..d32bae90e9 100644 --- a/internal/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go +++ b/internal/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go @@ -11,14 +11,14 @@ func TestFindAllRefsInheritedProperties2(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface interface1 extends interface1 { - /*1*/doStuff(): void; // r0 - /*2*/propName: string; // r1 - } + const content = `interface interface1 extends interface1 { + /*1*/doStuff(): void; // r0 + /*2*/propName: string; // r1 +} - var v: interface1; - v./*3*/doStuff(); // r2 - v./*4*/propName; // r3` +var v: interface1; +v./*3*/doStuff(); // r2 +v./*4*/propName; // r3` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4") } diff --git a/internal/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go b/internal/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go index dfd454127b..577bbac1f9 100644 --- a/internal/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go +++ b/internal/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go @@ -11,22 +11,22 @@ func TestFindAllRefsInheritedProperties3(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class class1 extends class1 { - [|/*0*/doStuff() { }|] - [|/*1*/propName: string;|] - } - interface interface1 extends interface1 { - [|/*2*/doStuff(): void;|] - [|/*3*/propName: string;|] - } - class class2 extends class1 implements interface1 { - [|/*4*/doStuff() { }|] - [|/*5*/propName: string;|] - } + const content = `class class1 extends class1 { + [|/*0*/doStuff() { }|] + [|/*1*/propName: string;|] +} +interface interface1 extends interface1 { + [|/*2*/doStuff(): void;|] + [|/*3*/propName: string;|] +} +class class2 extends class1 implements interface1 { + [|/*4*/doStuff() { }|] + [|/*5*/propName: string;|] +} - var v: class2; - v./*6*/doStuff(); - v./*7*/propName;` +var v: class2; +v./*6*/doStuff(); +v./*7*/propName;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "1", "2", "3", "4", "6", "5", "7") } diff --git a/internal/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go b/internal/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go index dd73c27523..a2ef46c64b 100644 --- a/internal/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go +++ b/internal/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go @@ -11,18 +11,18 @@ func TestFindAllRefsInheritedProperties4(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface C extends D { - /*0*/prop0: string; - /*1*/prop1: number; - } + const content = `interface C extends D { + /*0*/prop0: string; + /*1*/prop1: number; +} - interface D extends C { - /*2*/prop0: string; - } +interface D extends C { + /*2*/prop0: string; +} - var d: D; - d./*3*/prop0; - d./*4*/prop1;` +var d: D; +d./*3*/prop0; +d./*4*/prop1;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "2", "3", "1", "4") } diff --git a/internal/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go b/internal/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go index 5bc90a3d9a..6a6481ab36 100644 --- a/internal/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go +++ b/internal/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go @@ -11,18 +11,18 @@ func TestFindAllRefsInheritedProperties5(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class C extends D { - /*0*/prop0: string; - /*1*/prop1: number; - } + const content = `class C extends D { + /*0*/prop0: string; + /*1*/prop1: number; +} - class D extends C { - /*2*/prop0: string; - } +class D extends C { + /*2*/prop0: string; +} - var d: D; - d./*3*/prop0; - d./*4*/prop1;` +var d: D; +d./*3*/prop0; +d./*4*/prop1;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "1", "2", "3", "4") } diff --git a/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go b/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go index 0f95e39d3f..413e283810 100644 --- a/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go +++ b/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go @@ -11,14 +11,14 @@ func TestFindAllRefsWithShorthandPropertyAssignment2(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` var /*0*/dx = "Foo"; + const content = `var /*0*/dx = "Foo"; - module M { export var /*1*/dx; } - module M { - var z = 100; - export var y = { /*2*/dx, z }; - } - M.y./*3*/dx;` +module M { export var /*1*/dx; } +module M { + var z = 100; + export var y = { /*2*/dx, z }; +} +M.y./*3*/dx;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "1", "2", "3") } diff --git a/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go b/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go index b3d83a5d77..d2620643e5 100644 --- a/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go +++ b/internal/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go @@ -11,11 +11,11 @@ func TestFindAllRefsWithShorthandPropertyAssignment(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` var /*0*/name = "Foo"; + const content = `var /*0*/name = "Foo"; - var obj = { /*1*/name }; - var obj1 = { /*2*/name: /*3*/name }; - obj./*4*/name;` +var obj = { /*1*/name }; +var obj1 = { /*2*/name: /*3*/name }; +obj./*4*/name;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "3", "1", "2", "4") } diff --git a/internal/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go b/internal/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go index 02086763f5..92c5b5f542 100644 --- a/internal/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go +++ b/internal/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go @@ -19,7 +19,7 @@ interface Underscore { } var _: Underscore; var a: number[]; -var /**/b = _(a); ` +var /**/b = _(a);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "", "var b: WrappedArray", "") } diff --git a/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go b/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go index 289cad2512..794cdadc2c 100644 --- a/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go +++ b/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go @@ -13,7 +13,7 @@ func TestGenericCombinatorWithConstraints1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function apply(source: T[], selector: (x: T) => U) { var /*1*/xs = source.map(selector); // any[] - var /*2*/xs2 = source.map((x: T, a, b): U => { return null }); // any[] + var /*2*/xs2 = source.map((x: T, a, b): U => { return null }); // any[] }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "(local var) xs: U[]", "") diff --git a/internal/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go b/internal/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go index cfa4db116a..7bc5b1e10b 100644 --- a/internal/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go +++ b/internal/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go @@ -12,33 +12,33 @@ func TestGenericTypeAliasIntersectionCompletions(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` type MixinCtor = new () => A & B & { constructor: MixinCtor }; - function merge(a: { prototype: A }, b: { prototype: B }): MixinCtor { - let merged = function() { } - Object.assign(merged.prototype, a.prototype, b.prototype); - return >merged; - } - - class TreeNode { - value: any; - } - - abstract class LeftSideNode extends TreeNode { - abstract right(): TreeNode; - left(): TreeNode { - return null; - } - } - - abstract class RightSideNode extends TreeNode { - abstract left(): TreeNode; - right(): TreeNode { - return null; - }; - } - - var obj = new (merge(LeftSideNode, RightSideNode))(); - obj./**/` + const content = `type MixinCtor = new () => A & B & { constructor: MixinCtor }; +function merge(a: { prototype: A }, b: { prototype: B }): MixinCtor { + let merged = function() { } + Object.assign(merged.prototype, a.prototype, b.prototype); + return >merged; +} + +class TreeNode { + value: any; +} + +abstract class LeftSideNode extends TreeNode { + abstract right(): TreeNode; + left(): TreeNode { + return null; + } +} + +abstract class RightSideNode extends TreeNode { + abstract left(): TreeNode; + right(): TreeNode { + return null; + }; +} + +var obj = new (merge(LeftSideNode, RightSideNode))(); +obj./**/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/genericWithSpecializedProperties2_test.go b/internal/fourslash/tests/gen/genericWithSpecializedProperties2_test.go index bd789b939f..c70edfea61 100644 --- a/internal/fourslash/tests/gen/genericWithSpecializedProperties2_test.go +++ b/internal/fourslash/tests/gen/genericWithSpecializedProperties2_test.go @@ -16,11 +16,11 @@ func TestGenericWithSpecializedProperties2(t *testing.T) { x: Foo; } var f: Foo; -var /*1*/x = f.x; -var /*2*/y = f.y; +var /*1*/x = f.x; +var /*2*/y = f.y; var f2: Foo; -var /*3*/x2 = f2.x; -var /*4*/y2 = f2.y; ` +var /*3*/x2 = f2.x; +var /*4*/y2 = f2.y;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "var x: Foo", "") f.VerifyQuickInfoAt(t, "2", "var y: Foo", "") diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go index bca25cd83a..498828b7f8 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go @@ -16,20 +16,20 @@ func TestGetJavaScriptCompletions20(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js - /** - * A person - * @constructor - * @param {string} name - The name of the person. - * @param {number} age - The age of the person. - */ - function Person(name, age) { - this.name = name; - this.age = age; - } +/** + * A person + * @constructor + * @param {string} name - The name of the person. + * @param {number} age - The age of the person. + */ +function Person(name, age) { + this.name = name; + this.age = age; +} - Person.getName = 10; - Person.getNa/**/ = 10;` +Person.getName = 10; +Person.getNa/**/ = 10;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go b/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go index 2bfa0fd883..2319d3d19a 100644 --- a/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go @@ -16,15 +16,15 @@ func TestGetJavaScriptGlobalCompletions1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js - function f() { - // helloWorld leaks from here into the global space? - if (helloWorld) { - return 3; - } - return 5; - } +function f() { + // helloWorld leaks from here into the global space? + if (helloWorld) { + return 3; + } + return 5; +} - hello/**/` +hello/**/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, nil, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go index 36185ff9e7..d72a4462b2 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go @@ -15,22 +15,22 @@ func TestGetJavaScriptQuickInfo8(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js - let x = { - /** @type {number} */ - get m() { - return undefined; - } - } - x.m/*1*/; +let x = { + /** @type {number} */ + get m() { + return undefined; + } +} +x.m/*1*/; - class Foo { - /** @type {string} */ - get b() { - return undefined; - } - } - var y = new Foo(); - y.b/*2*/;` +class Foo { + /** @type {string} */ + get b() { + return undefined; + } +} +var y = new Foo(); +y.b/*2*/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "1") f.Insert(t, ".") diff --git a/internal/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go b/internal/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go index 9806c5971c..36717ef177 100644 --- a/internal/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go +++ b/internal/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go @@ -15,7 +15,7 @@ func TestGoToDefinitionDynamicImport2(t *testing.T) { export function /*Destination*/bar() { return "bar"; } var x = import("./foo"); x.then(foo => { - foo.[|b/*1*/ar|](); + foo.[|b/*1*/ar|](); })` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "1") diff --git a/internal/fourslash/tests/gen/goToDefinitionModifiers_test.go b/internal/fourslash/tests/gen/goToDefinitionModifiers_test.go index 96c7d72f9f..8c8a7b6493 100644 --- a/internal/fourslash/tests/gen/goToDefinitionModifiers_test.go +++ b/internal/fourslash/tests/gen/goToDefinitionModifiers_test.go @@ -12,20 +12,20 @@ func TestGoToDefinitionModifiers(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts - /*export*/export class A/*A*/ { - - /*private*/private z/*z*/: string; - - /*readonly*/readonly x/*x*/: string; - - /*async*/async a/*a*/() { } - - /*override*/override b/*b*/() {} - - /*public1*/public/*public2*/ as/*multipleModifiers*/ync c/*c*/() { } - } - - exp/*exportFunction*/ort function foo/*foo*/() { }` +/*export*/export class A/*A*/ { + + /*private*/private z/*z*/: string; + + /*readonly*/readonly x/*x*/: string; + + /*async*/async a/*a*/() { } + + /*override*/override b/*b*/() {} + + /*public1*/public/*public2*/ as/*multipleModifiers*/ync c/*c*/() { } +} + +exp/*exportFunction*/ort function foo/*foo*/() { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "export", "A", "private", "z", "readonly", "x", "async", "a", "override", "b", "public1", "public2", "multipleModifiers", "c", "exportFunction", "foo") } diff --git a/internal/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go b/internal/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go index bb461b9ddc..9efc4ab81d 100644 --- a/internal/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go +++ b/internal/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go @@ -11,12 +11,12 @@ func TestGoToDefinitionPropertyAssignment(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` export const /*FunctionResult*/Component = () => { return "OK"} - Component./*PropertyResult*/displayName = 'Component' + const content = `export const /*FunctionResult*/Component = () => { return "OK"} +Component./*PropertyResult*/displayName = 'Component' - [|/*FunctionClick*/Component|] +[|/*FunctionClick*/Component|] - Component.[|/*PropertyClick*/displayName|]` +Component.[|/*PropertyClick*/displayName|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "FunctionClick", "PropertyClick") } diff --git a/internal/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go b/internal/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go index 58046740af..0367913533 100644 --- a/internal/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go +++ b/internal/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go @@ -11,13 +11,13 @@ func TestGoToDefinitionSwitchCase4(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` switch (null) { - case null: break; - } + const content = ` switch (null) { + case null: break; + } - switch (null) { - [|/*start*/case|] null: break; - }` + switch (null) { + [|/*start*/case|] null: break; + }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "start") } diff --git a/internal/fourslash/tests/gen/insertMethodCallAboveOthers_test.go b/internal/fourslash/tests/gen/insertMethodCallAboveOthers_test.go index 06c77c0f3b..c377d01b98 100644 --- a/internal/fourslash/tests/gen/insertMethodCallAboveOthers_test.go +++ b/internal/fourslash/tests/gen/insertMethodCallAboveOthers_test.go @@ -11,7 +11,7 @@ func TestInsertMethodCallAboveOthers(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `/**/ + const content = `/**/ paired.reduce(); paired.map(() => undefined);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/javaScriptModulesError1_test.go b/internal/fourslash/tests/gen/javaScriptModulesError1_test.go index e37b7d41be..2b1ae3443e 100644 --- a/internal/fourslash/tests/gen/javaScriptModulesError1_test.go +++ b/internal/fourslash/tests/gen/javaScriptModulesError1_test.go @@ -14,7 +14,7 @@ func TestJavaScriptModulesError1(t *testing.T) { const content = `// @allowNonTsExtensions: true // @Filename: Foo.js define('mod1', ['a'], /**/function(a, b) { - + });` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") diff --git a/internal/fourslash/tests/gen/jsDocFunctionSignatures3_test.go b/internal/fourslash/tests/gen/jsDocFunctionSignatures3_test.go index 4fb93ea5ba..d02f2ddd38 100644 --- a/internal/fourslash/tests/gen/jsDocFunctionSignatures3_test.go +++ b/internal/fourslash/tests/gen/jsDocFunctionSignatures3_test.go @@ -15,23 +15,23 @@ func TestJsDocFunctionSignatures3(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js - var someObject = { - /** - * @param {string} param1 Some string param. - * @param {number} parm2 Some number param. - */ - someMethod: function(param1, param2) { - console.log(param1/*1*/); - return false; - }, - /** - * @param {number} p1 Some number param. - */ - otherMethod(p1) { - p1/*2*/ - } +var someObject = { + /** + * @param {string} param1 Some string param. + * @param {number} parm2 Some number param. + */ + someMethod: function(param1, param2) { + console.log(param1/*1*/); + return false; + }, + /** + * @param {number} p1 Some number param. + */ + otherMethod(p1) { + p1/*2*/ + } - };` +};` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "1") f.Insert(t, ".") diff --git a/internal/fourslash/tests/gen/jsDocGenerics1_test.go b/internal/fourslash/tests/gen/jsDocGenerics1_test.go index 5c4dc4501b..067835f753 100644 --- a/internal/fourslash/tests/gen/jsDocGenerics1_test.go +++ b/internal/fourslash/tests/gen/jsDocGenerics1_test.go @@ -15,24 +15,24 @@ func TestJsDocGenerics1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: ref.d.ts - namespace Thing { - export interface Thung { - a: number; - ] - ] +namespace Thing { + export interface Thung { + a: number; + ] +] // @Filename: Foo.js - /** @type {Array} */ - var v; - v[0]./*1*/ +/** @type {Array} */ +var v; +v[0]./*1*/ - /** @type {{x: Array>}} */ - var w; - w.x[0][0]./*2*/ +/** @type {{x: Array>}} */ +var w; +w.x[0][0]./*2*/ - /** @type {Array} */ - var x; - x[0].a./*3*/` +/** @type {Array} */ +var x; +x[0].a./*3*/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, f.Markers(), &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go index 78ae5c2eec..5d89bd3ee7 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go @@ -13,13 +13,13 @@ func TestJsDocPropertyDescription1(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface StringExample { /** Something generic */ - [p: string]: any; + [p: string]: any; /** Something specific */ property: number; } function stringExample(e: StringExample) { console.log(e./*property*/property); - console.log(e./*string*/anything); + console.log(e./*string*/anything); }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "property", "(property) StringExample.property: number", "Something specific") diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go index ece23930bc..27f7acce06 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go @@ -18,7 +18,7 @@ func TestJsDocPropertyDescription9(t *testing.T) { static [key: ` + "`" + `prefix${number}` + "`" + `]: number; } function literalClass(e: typeof LiteralClass) { - console.log(e./*literal1Class*/prefixMember); + console.log(e./*literal1Class*/prefixMember); console.log(e./*literal2Class*/anything); console.log(e./*literal3Class*/prefix0); }` diff --git a/internal/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go b/internal/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go index f4a36af122..77cfe192ab 100644 --- a/internal/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go +++ b/internal/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go @@ -19,7 +19,7 @@ func TestJsDocTypedefQuickInfo1(t *testing.T) { * @property {string=} y * @property {string} [z] * @property {string} [w="hi"] - * + * * @param {Opts} opts */ function foo(/*1*/opts) { @@ -32,7 +32,7 @@ foo({x: 'abc'}); * @property {string=} y * @property {string} [z] * @property {string} [w="hi"] - * + * * @param {Opts1} opts */ function foo1(/*2*/opts1) { diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go index e8fd2fbcec..7cb4093f34 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go @@ -13,21 +13,21 @@ func TestJsdocTypedefTagGoToDefinition(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js - /** - * @typedef {Object} Person - * @property {string} /*1*/personName - * @property {number} personAge - */ +/** + * @typedef {Object} Person + * @property {string} /*1*/personName + * @property {number} personAge + */ - /** - * @typedef {{ /*2*/animalName: string, animalAge: number }} Animal - */ +/** + * @typedef {{ /*2*/animalName: string, animalAge: number }} Animal + */ - /** @type {Person} */ - var person; person.[|personName/*3*/|] +/** @type {Person} */ +var person; person.[|personName/*3*/|] - /** @type {Animal} */ - var animal; animal.[|animalName/*4*/|]` +/** @type {Animal} */ +var animal; animal.[|animalName/*4*/|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineGoToDefinition(t, "3", "4") } diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go index 851e1bbce9..8399f183af 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go @@ -15,13 +15,13 @@ func TestJsdocTypedefTagRename01(t *testing.T) { const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form1.js - /** @typedef {(string | number)} */ - [|var [|{| "contextRangeIndex": 0 |}NumberLike|];|] +/** @typedef {(string | number)} */ +[|var [|{| "contextRangeIndex": 0 |}NumberLike|];|] - [|NumberLike|] = 10; +[|NumberLike|] = 10; - /** @type {[|NumberLike|]} */ - var numberLike;` +/** @type {[|NumberLike|]} */ +var numberLike;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) } diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go index 9407594117..aaf681849b 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go @@ -15,10 +15,10 @@ func TestJsdocTypedefTagRename02(t *testing.T) { const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js - /** [|@typedef {(string | number)} [|{| "contextRangeIndex": 0 |}NumberLike|]|] */ +/** [|@typedef {(string | number)} [|{| "contextRangeIndex": 0 |}NumberLike|]|] */ - /** @type {[|NumberLike|]} */ - var numberLike;` +/** @type {[|NumberLike|]} */ +var numberLike;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) } diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go index 66d47a8d33..393b1d5b94 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go @@ -15,15 +15,15 @@ func TestJsdocTypedefTagRename03(t *testing.T) { const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form3.js - /** - * [|@typedef /*1*/[|{| "contextRangeIndex": 0 |}Person|] - * @type {Object} - * @property {number} age - * @property {string} name - |]*/ +/** + * [|@typedef /*1*/[|{| "contextRangeIndex": 0 |}Person|] + * @type {Object} + * @property {number} age + * @property {string} name + |]*/ - /** @type {/*2*/[|Person|]} */ - var person;` +/** @type {/*2*/[|Person|]} */ +var person;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToFile(t, "jsDocTypedef_form3.js") f.VerifyBaselineRename(t, ToAny(f.GetRangesByText().Get("Person"))...) diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename04_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename04_test.go index 2583e5ec90..5e8b871a75 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagRename04_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename04_test.go @@ -14,18 +14,18 @@ func TestJsdocTypedefTagRename04(t *testing.T) { const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js - function test1() { - /** @typedef {(string | number)} NumberLike */ +function test1() { + /** @typedef {(string | number)} NumberLike */ - /** @type {/*1*/NumberLike} */ - var numberLike; - } - function test2() { - /** @typedef {(string | number)} NumberLike2 */ + /** @type {/*1*/NumberLike} */ + var numberLike; +} +function test2() { + /** @typedef {(string | number)} NumberLike2 */ - /** @type {NumberLike2} */ - var n/*2*/umberLike2; - }` + /** @type {NumberLike2} */ + var n/*2*/umberLike2; +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "2") f.VerifyQuickInfoExists(t) diff --git a/internal/fourslash/tests/gen/jsdocTypedefTag_test.go b/internal/fourslash/tests/gen/jsdocTypedefTag_test.go index a003ca03d3..bf281d7383 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTag_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTag_test.go @@ -14,53 +14,53 @@ func TestJsdocTypedefTag(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js - /** @typedef {(string | number)} NumberLike */ +/** @typedef {(string | number)} NumberLike */ - /** - * @typedef Animal - think Giraffes - * @type {Object} - * @property {string} animalName - * @property {number} animalAge - */ +/** + * @typedef Animal - think Giraffes + * @type {Object} + * @property {string} animalName + * @property {number} animalAge + */ - /** - * @typedef {Object} Person - * @property {string} personName - * @property {number} personAge - */ +/** + * @typedef {Object} Person + * @property {string} personName + * @property {number} personAge + */ - /** - * @typedef {Object} - * @property {string} catName - * @property {number} catAge - */ - var Cat; +/** + * @typedef {Object} + * @property {string} catName + * @property {number} catAge + */ +var Cat; - /** @typedef {{ dogName: string, dogAge: number }} */ - var Dog; +/** @typedef {{ dogName: string, dogAge: number }} */ +var Dog; - /** @type {NumberLike} */ - var numberLike; numberLike./*numberLike*/ +/** @type {NumberLike} */ +var numberLike; numberLike./*numberLike*/ - /** @type {Person} */ - var p;p./*person*/; - p.personName./*personName*/; - p.personAge./*personAge*/; +/** @type {Person} */ +var p;p./*person*/; +p.personName./*personName*/; +p.personAge./*personAge*/; - /** @type {/*AnimalType*/Animal} */ - var a;a./*animal*/; - a.animalName./*animalName*/; - a.animalAge./*animalAge*/; +/** @type {/*AnimalType*/Animal} */ +var a;a./*animal*/; +a.animalName./*animalName*/; +a.animalAge./*animalAge*/; - /** @type {Cat} */ - var c;c./*cat*/; - c.catName./*catName*/; - c.catAge./*catAge*/; +/** @type {Cat} */ +var c;c./*cat*/; +c.catName./*catName*/; +c.catAge./*catAge*/; - /** @type {Dog} */ - var d;d./*dog*/; - d.dogName./*dogName*/; - d.dogAge./*dogAge*/;` +/** @type {Dog} */ +var d;d./*dog*/; +d.dogName./*dogName*/; +d.dogAge./*dogAge*/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "numberLike", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go b/internal/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go index 4a51ee36df..5675eed65d 100644 --- a/internal/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go +++ b/internal/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go @@ -13,11 +13,11 @@ func TestJsxQualifiedTagCompletion(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare var React: any; - namespace NS { - export var Foo: any = null; - } - const j = Hello!/**/ +declare var React: any; +namespace NS { + export var Foo: any = null; +} +const j = Hello!/**/ ` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") diff --git a/internal/fourslash/tests/gen/jsxSpreadReference_test.go b/internal/fourslash/tests/gen/jsxSpreadReference_test.go index c89f900571..2de89b8d1d 100644 --- a/internal/fourslash/tests/gen/jsxSpreadReference_test.go +++ b/internal/fourslash/tests/gen/jsxSpreadReference_test.go @@ -12,21 +12,21 @@ func TestJsxSpreadReference(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props } - } - class MyClass { - props: { - name?: string; - size?: number; - } - } +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } +} +class MyClass { + props: { + name?: string; + size?: number; + } +} - [|var [|/*dst*/{| "contextRangeIndex": 0 |}nn|]: {name?: string; size?: number};|] - var x = ;` +[|var [|/*dst*/{| "contextRangeIndex": 0 |}nn|]: {name?: string; size?: number};|] +var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "nn") f.VerifyBaselineGoToDefinition(t, "src") diff --git a/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go b/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go index 6bd9ccdcae..d346b8cf85 100644 --- a/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go +++ b/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go @@ -14,7 +14,7 @@ func TestNoQuickInfoInWhitespace(t *testing.T) { const content = `class C { /*1*/ private _mspointerupHandler(args) { if (args.button === 3) { - return null; + return null; /*2*/ } else if (args.button === 4) { /*3*/ return null; } diff --git a/internal/fourslash/tests/gen/overloadQuickInfo_test.go b/internal/fourslash/tests/gen/overloadQuickInfo_test.go index cb80335610..066fc9ca53 100644 --- a/internal/fourslash/tests/gen/overloadQuickInfo_test.go +++ b/internal/fourslash/tests/gen/overloadQuickInfo_test.go @@ -19,7 +19,7 @@ function Foo(fred: any[], name: string[], age: number[]); function Foo(fred: any, name: string[], age: number[]); // Extraneous spaces should get removed function Foo(fred: any, name: boolean, age: number[]); function Foo(dave: boolean, name: string); -function Foo(fred: any, mandy: {(): number}, age: number[]); // Embedded interface will get converted to shorthand notation, () => +function Foo(fred: any, mandy: {(): number}, age: number[]); // Embedded interface will get converted to shorthand notation, () => function Foo(fred: any, name: string, age: { }); function Foo(fred: any, name: string, age: number[]); function Foo(test: string, name, age: number); diff --git a/internal/fourslash/tests/gen/promiseTyping2_test.go b/internal/fourslash/tests/gen/promiseTyping2_test.go index 57b4637759..e33abf4d91 100644 --- a/internal/fourslash/tests/gen/promiseTyping2_test.go +++ b/internal/fourslash/tests/gen/promiseTyping2_test.go @@ -19,7 +19,7 @@ func TestPromiseTyping2(t *testing.T) { done? (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void ): void; } var p1: IPromise = null; -p/*1*/1.then(function (x/*2*/x) { }); +p/*1*/1.then(function (x/*2*/x) { }); var p/*3*/2 = p1.then(function (x/*4*/x) { return "hello"; }) var p/*5*/3 = p2.then(function (x/*6*/x) { return x/*7*/x; diff --git a/internal/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go b/internal/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go index 32ff2882da..e8e6abff3b 100644 --- a/internal/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go +++ b/internal/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go @@ -111,7 +111,7 @@ function sum(/*16aq*/a: number, /*17aq*/b: number) { } s/*16q*/um(10, 20); /** This is multiplication function - * @param + * @param * @param a first number * @param b * @param c { diff --git a/internal/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go b/internal/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go index 5a0fcd4898..80e85ee17d 100644 --- a/internal/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go +++ b/internal/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go @@ -11,21 +11,21 @@ func TestQuickInfoForGetterAndSetter(t *testing.T) { t.Parallel() t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class Test { - constructor() { - this.value; - } + const content = `class Test { + constructor() { + this.value; + } - /** Getter text */ - get val/*1*/ue() { - return this.value; - } + /** Getter text */ + get val/*1*/ue() { + return this.value; + } - /** Setter text */ - set val/*2*/ue(value) { - this.value = value; - } - }` + /** Setter text */ + set val/*2*/ue(value) { + this.value = value; + } +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "1") f.VerifyQuickInfoIs(t, "(getter) Test.value: any", "Getter text") diff --git a/internal/fourslash/tests/gen/quickInfoInheritDoc_test.go b/internal/fourslash/tests/gen/quickInfoInheritDoc_test.go index db1b8a3b46..f57f274648 100644 --- a/internal/fourslash/tests/gen/quickInfoInheritDoc_test.go +++ b/internal/fourslash/tests/gen/quickInfoInheritDoc_test.go @@ -17,7 +17,7 @@ func TestQuickInfoInheritDoc(t *testing.T) { abstract class BaseClass { /** * Useful description always applicable - * + * * @returns {string} Useful description of return value always applicable. */ public static doSomethingUseful(stuff?: any): string { @@ -45,7 +45,7 @@ class SubClass extends BaseClass { /** * @inheritDoc - * + * * @param {{ tiger: string; lion: string; }} [mySpecificStuff] Description of my specific parameter. */ public static /*1*/doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string { diff --git a/internal/fourslash/tests/gen/quickInfoJsDocInheritage_test.go b/internal/fourslash/tests/gen/quickInfoJsDocInheritage_test.go index 3f78b2fce8..469b16e575 100644 --- a/internal/fourslash/tests/gen/quickInfoJsDocInheritage_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsDocInheritage_test.go @@ -54,12 +54,12 @@ new D()./*8*/foo2; class Base1 { /** - * @description Base1.foo1 + * @description Base1.foo1 */ foo1: number = 1; /** - * + * * @param q Base1.foo2 parameter * @returns Base1.foo2 return */ @@ -82,11 +82,11 @@ class Drived2 extends Base1 implements B { class Base2 { /** - * @description Base2.foo1 + * @description Base2.foo1 */ foo1: number = 1; /** - * + * * @param q Base2.foo2 parameter * @returns Base2.foo2 return */ diff --git a/internal/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go b/internal/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go index df8f0eba08..032c341eaa 100644 --- a/internal/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go @@ -24,25 +24,25 @@ function f1(var1, var2) { } function f2(var1, var2) { } /** - * @param {number} var1 + * @param {number} var1 * *Regular text with an asterisk - * @param {string} var2 + * @param {string} var2 * Another *Regular text with an asterisk */ function f3(var1, var2) { } /** - * @param {number} var1 + * @param {number} var1 * **Highlighted text** - * @param {string} var2 + * @param {string} var2 * Another **Highlighted text** */ function f4(var1, var2) { } /** - * @param {number} var1 + * @param {number} var1 **Highlighted text** - * @param {string} var2 + * @param {string} var2 Another **Highlighted text** */ function f5(var1, var2) { } diff --git a/internal/fourslash/tests/gen/quickInfoOnParameterProperties_test.go b/internal/fourslash/tests/gen/quickInfoOnParameterProperties_test.go index a6560da6bf..8c3f50cb7d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnParameterProperties_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnParameterProperties_test.go @@ -12,8 +12,8 @@ func TestQuickInfoOnParameterProperties(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { - /** this is the name of blabla - * - use blabla + /** this is the name of blabla + * - use blabla * @example blabla */ name?: string; @@ -23,14 +23,14 @@ func TestQuickInfoOnParameterProperties(t *testing.T) { class Foo implements IFoo { //public name: string = ''; constructor( - public na/*1*/me: string, // documentation should leech and work ! + public na/*1*/me: string, // documentation should leech and work ! ) { } } // test2 work class Foo2 implements IFoo { - public na/*2*/me: string = ''; // documentation leeched and work ! + public na/*2*/me: string = ''; // documentation leeched and work ! constructor( //public name: string, ) { diff --git a/internal/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go b/internal/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go index 82e2b716f9..23d6665f41 100644 --- a/internal/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go +++ b/internal/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go @@ -11,22 +11,22 @@ func TestQuickinfoForNamespaceMergeWithClassConstrainedToSelf(t *testing.T) { t.Parallel() t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` declare namespace AMap { - namespace MassMarks { - interface Data { - style?: number; - } - } - class MassMarks { - constructor(data: D[] | string); - clear(): void; - } - } + const content = `declare namespace AMap { + namespace MassMarks { + interface Data { + style?: number; + } + } + class MassMarks { + constructor(data: D[] | string); + clear(): void; + } +} - interface MassMarksCustomData extends AMap.MassMarks./*1*/Data { - name: string; - id: string; - }` +interface MassMarksCustomData extends AMap.MassMarks./*1*/Data { + name: string; + id: string; +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "interface AMap.MassMarks.Data", "") } diff --git a/internal/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go b/internal/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go index 535eadeb48..7ef7f08acc 100644 --- a/internal/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go +++ b/internal/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go @@ -23,7 +23,7 @@ var b/*3*/b = x.b; var c/*4*/c = x.c; var d/*5*/d = x.c.a; var e/*6*/e = x.c.b; -var f/*7*/f = x.c.c; ` +var f/*7*/f = x.c.c;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "var yy: I>>>>>", "") f.VerifyQuickInfoAt(t, "2", "var aa: number", "") diff --git a/internal/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go b/internal/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go index b579a1d06d..45b104fc83 100644 --- a/internal/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go +++ b/internal/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go @@ -12,21 +12,21 @@ func TestReferenceInParameterPropertyDeclaration(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts - class Foo { - constructor(private /*1*/privateParam: number, - public /*2*/publicParam: string, - protected /*3*/protectedParam: boolean) { +class Foo { + constructor(private /*1*/privateParam: number, + public /*2*/publicParam: string, + protected /*3*/protectedParam: boolean) { - let localPrivate = privateParam; - this.privateParam += 10; + let localPrivate = privateParam; + this.privateParam += 10; - let localPublic = publicParam; - this.publicParam += " Hello!"; + let localPublic = publicParam; + this.publicParam += " Hello!"; - let localProtected = protectedParam; - this.protectedParam = false; - } - }` + let localProtected = protectedParam; + this.protectedParam = false; + } +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3") } diff --git a/internal/fourslash/tests/gen/referencesForInheritedProperties3_test.go b/internal/fourslash/tests/gen/referencesForInheritedProperties3_test.go index 48f0d4850b..8484f6d798 100644 --- a/internal/fourslash/tests/gen/referencesForInheritedProperties3_test.go +++ b/internal/fourslash/tests/gen/referencesForInheritedProperties3_test.go @@ -11,14 +11,14 @@ func TestReferencesForInheritedProperties3(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface interface1 extends interface1 { - /*1*/doStuff(): void; - /*2*/propName: string; - } + const content = `interface interface1 extends interface1 { + /*1*/doStuff(): void; + /*2*/propName: string; +} - var v: interface1; - v./*3*/propName; - v./*4*/doStuff();` +var v: interface1; +v./*3*/propName; +v./*4*/doStuff();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4") } diff --git a/internal/fourslash/tests/gen/referencesForInheritedProperties4_test.go b/internal/fourslash/tests/gen/referencesForInheritedProperties4_test.go index fe811d22c3..f598a032e3 100644 --- a/internal/fourslash/tests/gen/referencesForInheritedProperties4_test.go +++ b/internal/fourslash/tests/gen/referencesForInheritedProperties4_test.go @@ -11,14 +11,14 @@ func TestReferencesForInheritedProperties4(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class class1 extends class1 { - /*1*/doStuff() { } - /*2*/propName: string; - } + const content = `class class1 extends class1 { + /*1*/doStuff() { } + /*2*/propName: string; +} - var c: class1; - c./*3*/doStuff(); - c./*4*/propName;` +var c: class1; +c./*3*/doStuff(); +c./*4*/propName;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4") } diff --git a/internal/fourslash/tests/gen/referencesForInheritedProperties5_test.go b/internal/fourslash/tests/gen/referencesForInheritedProperties5_test.go index ebceec5557..17cda004e3 100644 --- a/internal/fourslash/tests/gen/referencesForInheritedProperties5_test.go +++ b/internal/fourslash/tests/gen/referencesForInheritedProperties5_test.go @@ -11,18 +11,18 @@ func TestReferencesForInheritedProperties5(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface interface1 extends interface1 { - /*1*/doStuff(): void; - /*2*/propName: string; - } - interface interface2 extends interface1 { - doStuff(): void; - propName: string; - } + const content = `interface interface1 extends interface1 { + /*1*/doStuff(): void; + /*2*/propName: string; +} +interface interface2 extends interface1 { + doStuff(): void; + propName: string; +} - var v: interface1; - v.propName; - v.doStuff();` +var v: interface1; +v.propName; +v.doStuff();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2") } diff --git a/internal/fourslash/tests/gen/referencesForInheritedProperties7_test.go b/internal/fourslash/tests/gen/referencesForInheritedProperties7_test.go index c2e3b2e0ed..a6f8c30b11 100644 --- a/internal/fourslash/tests/gen/referencesForInheritedProperties7_test.go +++ b/internal/fourslash/tests/gen/referencesForInheritedProperties7_test.go @@ -11,22 +11,22 @@ func TestReferencesForInheritedProperties7(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class class1 extends class1 { - /*0*/doStuff() { } - /*1*/propName: string; - } - interface interface1 extends interface1 { - /*2*/doStuff(): void; - /*3*/propName: string; - } - class class2 extends class1 implements interface1 { - /*4*/doStuff() { } - /*5*/propName: string; - } + const content = `class class1 extends class1 { + /*0*/doStuff() { } + /*1*/propName: string; +} +interface interface1 extends interface1 { + /*2*/doStuff(): void; + /*3*/propName: string; +} +class class2 extends class1 implements interface1 { + /*4*/doStuff() { } + /*5*/propName: string; +} - var v: class2; - v.doStuff(); - v.propName;` +var v: class2; +v.doStuff(); +v.propName;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "1", "2", "3", "4", "5") } diff --git a/internal/fourslash/tests/gen/referencesForInheritedProperties9_test.go b/internal/fourslash/tests/gen/referencesForInheritedProperties9_test.go index e273930cf9..cd6281249e 100644 --- a/internal/fourslash/tests/gen/referencesForInheritedProperties9_test.go +++ b/internal/fourslash/tests/gen/referencesForInheritedProperties9_test.go @@ -11,16 +11,16 @@ func TestReferencesForInheritedProperties9(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class D extends C { - /*1*/prop1: string; - } + const content = `class D extends C { + /*1*/prop1: string; +} - class C extends D { - /*2*/prop1: string; - } +class C extends D { + /*2*/prop1: string; +} - var c: C; - c./*3*/prop1;` +var c: C; +c./*3*/prop1;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties1_test.go b/internal/fourslash/tests/gen/renameInheritedProperties1_test.go index 8d8508f05d..42547d0362 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties1_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties1_test.go @@ -11,12 +11,12 @@ func TestRenameInheritedProperties1(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class class1 extends class1 { - [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] - } + const content = `class class1 extends class1 { + [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] +} - var v: class1; - v.[|propName|];` +var v: class1; +v.[|propName|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "propName") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties2_test.go b/internal/fourslash/tests/gen/renameInheritedProperties2_test.go index d4736474da..fedcf8099e 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties2_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties2_test.go @@ -11,12 +11,12 @@ func TestRenameInheritedProperties2(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class class1 extends class1 { - [|[|{| "contextRangeIndex": 0 |}doStuff|]() { }|] - } + const content = `class class1 extends class1 { + [|[|{| "contextRangeIndex": 0 |}doStuff|]() { }|] +} - var v: class1; - v.[|doStuff|]();` +var v: class1; +v.[|doStuff|]();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "doStuff") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties3_test.go b/internal/fourslash/tests/gen/renameInheritedProperties3_test.go index 15e214952b..ddc8bb3fae 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties3_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties3_test.go @@ -11,12 +11,12 @@ func TestRenameInheritedProperties3(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface interface1 extends interface1 { - [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] - } + const content = `interface interface1 extends interface1 { + [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] +} - var v: interface1; - v.[|propName|];` +var v: interface1; +v.[|propName|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "propName") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties4_test.go b/internal/fourslash/tests/gen/renameInheritedProperties4_test.go index 621d0f675a..ee619bdc11 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties4_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties4_test.go @@ -11,12 +11,12 @@ func TestRenameInheritedProperties4(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface interface1 extends interface1 { - [|[|{| "contextRangeIndex": 0 |}doStuff|](): string;|] - } + const content = `interface interface1 extends interface1 { + [|[|{| "contextRangeIndex": 0 |}doStuff|](): string;|] +} - var v: interface1; - v.[|doStuff|]();` +var v: interface1; +v.[|doStuff|]();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "doStuff") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties7_test.go b/internal/fourslash/tests/gen/renameInheritedProperties7_test.go index 7b62aeda39..d5a80c5358 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties7_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties7_test.go @@ -11,16 +11,16 @@ func TestRenameInheritedProperties7(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class C extends D { - [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] - } + const content = `class C extends D { + [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] +} - class D extends C { - prop1: string; - } +class D extends C { + prop1: string; +} - var c: C; - c.[|prop1|];` +var c: C; +c.[|prop1|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "prop1") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties8_test.go b/internal/fourslash/tests/gen/renameInheritedProperties8_test.go index ae8de2485c..dd422d008c 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties8_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties8_test.go @@ -11,16 +11,16 @@ func TestRenameInheritedProperties8(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class C implements D { - [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] - } + const content = `class C implements D { + [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] +} - interface D extends C { - [|[|{| "contextRangeIndex": 2 |}prop1|]: string;|] - } +interface D extends C { + [|[|{| "contextRangeIndex": 2 |}prop1|]: string;|] +} - var c: C; - c.[|prop1|];` +var c: C; +c.[|prop1|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "prop1") } diff --git a/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go b/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go index b6f3a4df1f..5499401e8f 100644 --- a/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go +++ b/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go @@ -21,10 +21,10 @@ func TestRenameJsOverloadedFunctionParameter(t *testing.T) { * * @overload * @param {string} x - * @returns {string} + * @returns {string} * * @param {unknown} x - * @returns {unknown} + * @returns {unknown} */ function foo(x/**/) { return x; diff --git a/internal/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go b/internal/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go index 06e778cf0f..a7dd595336 100644 --- a/internal/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go +++ b/internal/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go @@ -111,7 +111,7 @@ function sum(a: number, b: number) { } sum(/*16*/10, /*17*/20); /** This is multiplication function - * @param + * @param * @param a first number * @param b * @param c { diff --git a/internal/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go b/internal/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go index 50d57fe426..2510615b65 100644 --- a/internal/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go +++ b/internal/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go @@ -11,69 +11,69 @@ func TestSignatureHelpExpandedRestTuplesLocalLabels1(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface AppleInfo { - color: "green" | "red"; - } - - interface BananaInfo { - curvature: number; - } - - type FruitAndInfo1 = ["apple", AppleInfo] | ["banana", BananaInfo]; - - function logFruitTuple1(...[fruit, info]: FruitAndInfo1) {} - logFruitTuple1(/*1*/); - - function logFruitTuple2(...[, info]: FruitAndInfo1) {} - logFruitTuple2(/*2*/); - logFruitTuple2("apple", /*3*/); - - function logFruitTuple3(...[fruit, ...rest]: FruitAndInfo1) {} - logFruitTuple3(/*4*/); - logFruitTuple3("apple", /*5*/); - function logFruitTuple4(...[fruit, ...[info]]: FruitAndInfo1) {} - logFruitTuple4(/*6*/); - logFruitTuple4("apple", /*7*/); - - type FruitAndInfo2 = ["apple", ...AppleInfo[]] | ["banana", ...BananaInfo[]]; - - function logFruitTuple5(...[fruit, firstInfo]: FruitAndInfo2) {} - logFruitTuple5(/*8*/); - logFruitTuple5("apple", /*9*/); - - function logFruitTuple6(...[fruit, ...fruitInfo]: FruitAndInfo2) {} - logFruitTuple6(/*10*/); - logFruitTuple6("apple", /*11*/); - - type FruitAndInfo3 = ["apple", ...AppleInfo[], number] | ["banana", ...BananaInfo[], number]; - - function logFruitTuple7(...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]: FruitAndInfo3) {} - logFruitTuple7(/*12*/); - logFruitTuple7("apple", /*13*/); - logFruitTuple7("apple", { color: "red" }, /*14*/); - - function logFruitTuple8(...[fruit, , secondFruitInfoOrNumber]: FruitAndInfo3) {} - logFruitTuple8(/*15*/); - logFruitTuple8("apple", /*16*/); - logFruitTuple8("apple", { color: "red" }, /*17*/); - - function logFruitTuple9(...[...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]]: FruitAndInfo3) {} - logFruitTuple9(/*18*/); - logFruitTuple9("apple", /*19*/); - logFruitTuple9("apple", { color: "red" }, /*20*/); - - function logFruitTuple10(...[fruit, {}, secondFruitInfoOrNumber]: FruitAndInfo3) {} - logFruitTuple10(/*21*/); - logFruitTuple10("apple", /*22*/); - logFruitTuple10("apple", { color: "red" }, /*23*/); - - function logFruitTuple11(...{}: FruitAndInfo3) {} - logFruitTuple11(/*24*/); - logFruitTuple11("apple", /*25*/); - logFruitTuple11("apple", { color: "red" }, /*26*/); - function withPair(...[first, second]: [number, named: string]) {} - withPair(/*27*/); - withPair(101, /*28*/);` + const content = `interface AppleInfo { + color: "green" | "red"; +} + +interface BananaInfo { + curvature: number; +} + +type FruitAndInfo1 = ["apple", AppleInfo] | ["banana", BananaInfo]; + +function logFruitTuple1(...[fruit, info]: FruitAndInfo1) {} +logFruitTuple1(/*1*/); + +function logFruitTuple2(...[, info]: FruitAndInfo1) {} +logFruitTuple2(/*2*/); +logFruitTuple2("apple", /*3*/); + +function logFruitTuple3(...[fruit, ...rest]: FruitAndInfo1) {} +logFruitTuple3(/*4*/); +logFruitTuple3("apple", /*5*/); +function logFruitTuple4(...[fruit, ...[info]]: FruitAndInfo1) {} +logFruitTuple4(/*6*/); +logFruitTuple4("apple", /*7*/); + +type FruitAndInfo2 = ["apple", ...AppleInfo[]] | ["banana", ...BananaInfo[]]; + +function logFruitTuple5(...[fruit, firstInfo]: FruitAndInfo2) {} +logFruitTuple5(/*8*/); +logFruitTuple5("apple", /*9*/); + +function logFruitTuple6(...[fruit, ...fruitInfo]: FruitAndInfo2) {} +logFruitTuple6(/*10*/); +logFruitTuple6("apple", /*11*/); + +type FruitAndInfo3 = ["apple", ...AppleInfo[], number] | ["banana", ...BananaInfo[], number]; + +function logFruitTuple7(...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]: FruitAndInfo3) {} +logFruitTuple7(/*12*/); +logFruitTuple7("apple", /*13*/); +logFruitTuple7("apple", { color: "red" }, /*14*/); + +function logFruitTuple8(...[fruit, , secondFruitInfoOrNumber]: FruitAndInfo3) {} +logFruitTuple8(/*15*/); +logFruitTuple8("apple", /*16*/); +logFruitTuple8("apple", { color: "red" }, /*17*/); + +function logFruitTuple9(...[...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]]: FruitAndInfo3) {} +logFruitTuple9(/*18*/); +logFruitTuple9("apple", /*19*/); +logFruitTuple9("apple", { color: "red" }, /*20*/); + +function logFruitTuple10(...[fruit, {}, secondFruitInfoOrNumber]: FruitAndInfo3) {} +logFruitTuple10(/*21*/); +logFruitTuple10("apple", /*22*/); +logFruitTuple10("apple", { color: "red" }, /*23*/); + +function logFruitTuple11(...{}: FruitAndInfo3) {} +logFruitTuple11(/*24*/); +logFruitTuple11("apple", /*25*/); +logFruitTuple11("apple", { color: "red" }, /*26*/); +function withPair(...[first, second]: [number, named: string]) {} +withPair(/*27*/); +withPair(101, /*28*/);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineSignatureHelp(t) } diff --git a/internal/fourslash/tests/gen/signatureHelpIteratorNext_test.go b/internal/fourslash/tests/gen/signatureHelpIteratorNext_test.go index 8ae55291a8..866a4fe0c6 100644 --- a/internal/fourslash/tests/gen/signatureHelpIteratorNext_test.go +++ b/internal/fourslash/tests/gen/signatureHelpIteratorNext_test.go @@ -12,25 +12,25 @@ func TestSignatureHelpIteratorNext(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: esnext - declare const iterator: Iterator; +declare const iterator: Iterator; - iterator.next(/*1*/); - iterator.next(/*2*/ 0); +iterator.next(/*1*/); +iterator.next(/*2*/ 0); - declare const generator: Generator; +declare const generator: Generator; - generator.next(/*3*/); - generator.next(/*4*/ 0); +generator.next(/*3*/); +generator.next(/*4*/ 0); - declare const asyncIterator: AsyncIterator; +declare const asyncIterator: AsyncIterator; - asyncIterator.next(/*5*/); - asyncIterator.next(/*6*/ 0); +asyncIterator.next(/*5*/); +asyncIterator.next(/*6*/ 0); - declare const asyncGenerator: AsyncGenerator; +declare const asyncGenerator: AsyncGenerator; - asyncGenerator.next(/*7*/); - asyncGenerator.next(/*8*/ 0);` +asyncGenerator.next(/*7*/); +asyncGenerator.next(/*8*/ 0);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineSignatureHelp(t) } diff --git a/internal/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go b/internal/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go index 57607ae275..fcd73090be 100644 --- a/internal/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go +++ b/internal/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go @@ -12,14 +12,14 @@ func TestStringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralT t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` type PathOf = - K extends ` + "`" + `${infer U}.${infer V}` + "`" + ` - ? U extends keyof T ? PathOf : ` + "`" + `${P}${keyof T & (string | number)}` + "`" + ` - : K extends keyof T ? ` + "`" + `${P}${K}` + "`" + ` : ` + "`" + `${P}${keyof T & (string | number)}` + "`" + `; + const content = `type PathOf = + K extends ` + "`" + `${infer U}.${infer V}` + "`" + ` + ? U extends keyof T ? PathOf : ` + "`" + `${P}${keyof T & (string | number)}` + "`" + ` + : K extends keyof T ? ` + "`" + `${P}${K}` + "`" + ` : ` + "`" + `${P}${keyof T & (string | number)}` + "`" + `; - declare function consumer(path: PathOf<{a: string, b: {c: string}}, K>) : number; +declare function consumer(path: PathOf<{a: string, b: {c: string}}, K>) : number; - consumer('b./*ts*/')` +consumer('b./*ts*/')` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"ts"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/stringPropertyNames2_test.go b/internal/fourslash/tests/gen/stringPropertyNames2_test.go index 118de60613..8bb1048f5e 100644 --- a/internal/fourslash/tests/gen/stringPropertyNames2_test.go +++ b/internal/fourslash/tests/gen/stringPropertyNames2_test.go @@ -15,7 +15,7 @@ func TestStringPropertyNames2(t *testing.T) { "artist": T; } var a: Album; -var /**/x = a['artist']; ` +var /**/x = a['artist'];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "", "var x: number", "") } diff --git a/internal/fourslash/tests/gen/switchCompletions_test.go b/internal/fourslash/tests/gen/switchCompletions_test.go index 85159922b1..e1ea0670d2 100644 --- a/internal/fourslash/tests/gen/switchCompletions_test.go +++ b/internal/fourslash/tests/gen/switchCompletions_test.go @@ -12,31 +12,31 @@ func TestSwitchCompletions(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` enum E { A, B } - declare const e: E; - switch (e) { - case E.A: - return 0; - case E./*1*/ - } - declare const f: 1 | 2 | 3; - switch (f) { - case 1: - return 1; - case /*2*/ - } - declare const f2: 'foo' | 'bar' | 'baz'; - switch (f2) { - case 'bar': - return 1; - case '/*3*/' - } + const content = `enum E { A, B } +declare const e: E; +switch (e) { + case E.A: + return 0; + case E./*1*/ +} +declare const f: 1 | 2 | 3; +switch (f) { + case 1: + return 1; + case /*2*/ +} +declare const f2: 'foo' | 'bar' | 'baz'; +switch (f2) { + case 'bar': + return 1; + case '/*3*/' +} - // repro from #52874 - declare let x: "foo" | "bar"; - switch (x) { - case ('/*4*/') - }` +// repro from #52874 +declare let x: "foo" | "bar"; +switch (x) { + case ('/*4*/') +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/thisBindingInLambda_test.go b/internal/fourslash/tests/gen/thisBindingInLambda_test.go index 85f333fac9..9895684f2a 100644 --- a/internal/fourslash/tests/gen/thisBindingInLambda_test.go +++ b/internal/fourslash/tests/gen/thisBindingInLambda_test.go @@ -12,7 +12,7 @@ func TestThisBindingInLambda(t *testing.T) { t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Greeter { - constructor() { + constructor() { [].forEach((anything)=>{ console.log(th/**/is); }); diff --git a/internal/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go b/internal/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go index e956393ba1..1d8cdb5d15 100644 --- a/internal/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go +++ b/internal/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go @@ -12,36 +12,36 @@ func TestThisPredicateFunctionCompletions02(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface Sundries { - broken: boolean; - } + const content = `interface Sundries { + broken: boolean; +} - interface Supplies { - spoiled: boolean; - } +interface Supplies { + spoiled: boolean; +} - interface Crate { - contents: T; - isSundries(): this is Crate; - isSupplies(): this is Crate; - isPackedTight(): this is (this & {extraContents: T}); - } - const crate: Crate; - if (crate.isPackedTight()) { - crate./*1*/; - } - if (crate.isSundries()) { - crate.contents./*2*/; - if (crate.isPackedTight()) { - crate./*3*/; - } - } - if (crate.isSupplies()) { - crate.contents./*4*/; - if (crate.isPackedTight()) { - crate./*5*/; - } - }` +interface Crate { + contents: T; + isSundries(): this is Crate; + isSupplies(): this is Crate; + isPackedTight(): this is (this & {extraContents: T}); +} +const crate: Crate; +if (crate.isPackedTight()) { + crate./*1*/; +} +if (crate.isSundries()) { + crate.contents./*2*/; + if (crate.isPackedTight()) { + crate./*3*/; + } +} +if (crate.isSupplies()) { + crate.contents./*4*/; + if (crate.isPackedTight()) { + crate./*5*/; + } +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"1", "3", "5"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go b/internal/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go index 050aaed177..5cc32ef6d3 100644 --- a/internal/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go +++ b/internal/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go @@ -12,49 +12,49 @@ func TestThisPredicateFunctionCompletions03(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class RoyalGuard { - isLeader(): this is LeadGuard { - return this instanceof LeadGuard; - } - isFollower(): this is FollowerGuard { - return this instanceof FollowerGuard; - } - } + const content = `class RoyalGuard { + isLeader(): this is LeadGuard { + return this instanceof LeadGuard; + } + isFollower(): this is FollowerGuard { + return this instanceof FollowerGuard; + } +} - class LeadGuard extends RoyalGuard { - lead(): void {}; - } +class LeadGuard extends RoyalGuard { + lead(): void {}; +} - class FollowerGuard extends RoyalGuard { - follow(): void {}; - } +class FollowerGuard extends RoyalGuard { + follow(): void {}; +} - let a: RoyalGuard = new FollowerGuard(); - if (a.is/*1*/Leader()) { - a./*2*/; - } - else if (a.is/*3*/Follower()) { - a./*4*/; - } +let a: RoyalGuard = new FollowerGuard(); +if (a.is/*1*/Leader()) { + a./*2*/; +} +else if (a.is/*3*/Follower()) { + a./*4*/; +} - interface GuardInterface { - isLeader(): this is LeadGuard; - isFollower(): this is FollowerGuard; - } +interface GuardInterface { + isLeader(): this is LeadGuard; + isFollower(): this is FollowerGuard; +} - let b: GuardInterface; - if (b.is/*5*/Leader()) { - b./*6*/; - } - else if (b.is/*7*/Follower()) { - b./*8*/; - } +let b: GuardInterface; +if (b.is/*5*/Leader()) { + b./*6*/; +} +else if (b.is/*7*/Follower()) { + b./*8*/; +} - let leader/*13*/Status = a.isLeader(); - function isLeaderGuard(g: RoyalGuard) { - return g.isLeader(); - } - let checked/*14*/LeaderStatus = isLeader/*15*/Guard(a);` +let leader/*13*/Status = a.isLeader(); +function isLeaderGuard(g: RoyalGuard) { + return g.isLeader(); +} +let checked/*14*/LeaderStatus = isLeader/*15*/Guard(a);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyCompletions(t, []string{"2", "6"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, diff --git a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go index 198ea5e01f..0ec1ae9e21 100644 --- a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go +++ b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go @@ -11,45 +11,45 @@ func TestThisPredicateFunctionQuickInfo01(t *testing.T) { t.Parallel() t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class FileSystemObject { - /*1*/isFile(): this is Item { - return this instanceof Item; - } - /*2*/isDirectory(): this is Directory { - return this instanceof Directory; - } - /*3*/isNetworked(): this is (Networked & this) { - return !!(this as Networked).host; - } - constructor(public path: string) {} - } + const content = `class FileSystemObject { + /*1*/isFile(): this is Item { + return this instanceof Item; + } + /*2*/isDirectory(): this is Directory { + return this instanceof Directory; + } + /*3*/isNetworked(): this is (Networked & this) { + return !!(this as Networked).host; + } + constructor(public path: string) {} +} - class Item extends FileSystemObject { - constructor(path: string, public content: string) { super(path); } - } - class Directory extends FileSystemObject { - children: FileSystemObject[]; - } - interface Networked { - host: string; - } +class Item extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } +} +class Directory extends FileSystemObject { + children: FileSystemObject[]; +} +interface Networked { + host: string; +} - const obj: FileSystemObject = new Item("/foo", ""); - if (obj.isFile/*4*/()) { - obj.; - if (obj.isNetworked/*5*/()) { - obj.; - } - } - if (obj.isDirectory/*6*/()) { - obj.; - if (obj.isNetworked/*7*/()) { - obj.; - } - } - if (obj.isNetworked/*8*/()) { - obj.; - }` +const obj: FileSystemObject = new Item("/foo", ""); +if (obj.isFile/*4*/()) { + obj.; + if (obj.isNetworked/*5*/()) { + obj.; + } +} +if (obj.isDirectory/*6*/()) { + obj.; + if (obj.isNetworked/*7*/()) { + obj.; + } +} +if (obj.isNetworked/*8*/()) { + obj.; +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "(method) FileSystemObject.isFile(): this is Item", "") f.VerifyQuickInfoAt(t, "2", "(method) FileSystemObject.isDirectory(): this is Directory", "") diff --git a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go index 450bd21e9e..d4c10e785b 100644 --- a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go +++ b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go @@ -11,36 +11,36 @@ func TestThisPredicateFunctionQuickInfo02(t *testing.T) { t.Parallel() t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` interface Sundries { - broken: boolean; - } + const content = `interface Sundries { + broken: boolean; +} - interface Supplies { - spoiled: boolean; - } +interface Supplies { + spoiled: boolean; +} - interface Crate { - contents: T; - /*1*/isSundries(): this is Crate; - /*2*/isSupplies(): this is Crate; - /*3*/isPackedTight(): this is (this & {extraContents: T}); - } - const crate: Crate; - if (crate.isPackedTight/*4*/()) { - crate.; - } - if (crate.isSundries/*5*/()) { - crate.contents.; - if (crate.isPackedTight/*6*/()) { - crate.; - } - } - if (crate.isSupplies/*7*/()) { - crate.contents.; - if (crate.isPackedTight/*8*/()) { - crate.; - } - }` +interface Crate { + contents: T; + /*1*/isSundries(): this is Crate; + /*2*/isSupplies(): this is Crate; + /*3*/isPackedTight(): this is (this & {extraContents: T}); +} +const crate: Crate; +if (crate.isPackedTight/*4*/()) { + crate.; +} +if (crate.isSundries/*5*/()) { + crate.contents.; + if (crate.isPackedTight/*6*/()) { + crate.; + } +} +if (crate.isSupplies/*7*/()) { + crate.contents.; + if (crate.isPackedTight/*8*/()) { + crate.; + } +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "(method) Crate.isSundries(): this is Crate", "") f.VerifyQuickInfoAt(t, "2", "(method) Crate.isSupplies(): this is Crate", "") diff --git a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go index 1ca204a860..4c8c7d82d9 100644 --- a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go +++ b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go @@ -11,63 +11,63 @@ func TestThisPredicateFunctionQuickInfo(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = ` class RoyalGuard { - isLeader(): this is LeadGuard { - return this instanceof LeadGuard; - } - isFollower(): this is FollowerGuard { - return this instanceof FollowerGuard; - } - } + const content = `class RoyalGuard { + isLeader(): this is LeadGuard { + return this instanceof LeadGuard; + } + isFollower(): this is FollowerGuard { + return this instanceof FollowerGuard; + } +} - class LeadGuard extends RoyalGuard { - lead(): void {}; - } +class LeadGuard extends RoyalGuard { + lead(): void {}; +} - class FollowerGuard extends RoyalGuard { - follow(): void {}; - } +class FollowerGuard extends RoyalGuard { + follow(): void {}; +} - let a: RoyalGuard = new FollowerGuard(); - if (a.is/*1*/Leader()) { - a./*2*/; - } - else if (a.is/*3*/Follower()) { - a./*4*/; - } +let a: RoyalGuard = new FollowerGuard(); +if (a.is/*1*/Leader()) { + a./*2*/; +} +else if (a.is/*3*/Follower()) { + a./*4*/; +} - interface GuardInterface { - isLeader(): this is LeadGuard; - isFollower(): this is FollowerGuard; - } +interface GuardInterface { + isLeader(): this is LeadGuard; + isFollower(): this is FollowerGuard; +} - let b: GuardInterface; - if (b.is/*5*/Leader()) { - b./*6*/; - } - else if (b.is/*7*/Follower()) { - b./*8*/; - } +let b: GuardInterface; +if (b.is/*5*/Leader()) { + b./*6*/; +} +else if (b.is/*7*/Follower()) { + b./*8*/; +} - if (((a.isLeader)())) { - a./*9*/; - } - else if (((a).isFollower())) { - a./*10*/; - } +if (((a.isLeader)())) { + a./*9*/; +} +else if (((a).isFollower())) { + a./*10*/; +} - if (((a["isLeader"])())) { - a./*11*/; - } - else if (((a)["isFollower"]())) { - a./*12*/; - } +if (((a["isLeader"])())) { + a./*11*/; +} +else if (((a)["isFollower"]())) { + a./*12*/; +} - let leader/*13*/Status = a.isLeader(); - function isLeaderGuard(g: RoyalGuard) { - return g.isLeader(); - } - let checked/*14*/LeaderStatus = isLeader/*15*/Guard(a);` +let leader/*13*/Status = a.isLeader(); +function isLeaderGuard(g: RoyalGuard) { + return g.isLeader(); +} +let checked/*14*/LeaderStatus = isLeader/*15*/Guard(a);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "(method) RoyalGuard.isLeader(): this is LeadGuard", "") f.VerifyQuickInfoAt(t, "3", "(method) RoyalGuard.isFollower(): this is FollowerGuard", "") diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences3_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences3_test.go index 001241a3f8..2f3174d144 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences3_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences3_test.go @@ -12,20 +12,20 @@ func TestTsxFindAllReferences3(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props } - } - class MyClass { - props: { - /*1*/name?: string; - size?: number; - } +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } +} +class MyClass { + props: { + /*1*/name?: string; + size?: number; +} - var x = ;` +var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") } diff --git a/internal/fourslash/tests/gen/tsxFindAllReferences4_test.go b/internal/fourslash/tests/gen/tsxFindAllReferences4_test.go index 3221f7255d..66a41456c5 100644 --- a/internal/fourslash/tests/gen/tsxFindAllReferences4_test.go +++ b/internal/fourslash/tests/gen/tsxFindAllReferences4_test.go @@ -12,20 +12,20 @@ func TestTsxFindAllReferences4(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props } - } - /*1*/class /*2*/MyClass { - props: { - name?: string; - size?: number; - } +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } +} +/*1*/class /*2*/MyClass { + props: { + name?: string; + size?: number; +} - var x = /*3*/;` +var x = /*3*/;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5") } diff --git a/internal/fourslash/tests/gen/tsxRename3_test.go b/internal/fourslash/tests/gen/tsxRename3_test.go index eaf30dd492..e0dc51e1b6 100644 --- a/internal/fourslash/tests/gen/tsxRename3_test.go +++ b/internal/fourslash/tests/gen/tsxRename3_test.go @@ -12,20 +12,20 @@ func TestTsxRename3(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props } - } - class MyClass { - props: { - [|[|{| "contextRangeIndex": 0 |}name|]?: string;|] - size?: number; - } +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } +} +class MyClass { + props: { + [|[|{| "contextRangeIndex": 0 |}name|]?: string;|] + size?: number; +} - var x = ;` +var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "name") } diff --git a/internal/fourslash/tests/gen/tsxRename5_test.go b/internal/fourslash/tests/gen/tsxRename5_test.go index 10870eaa78..3d8ab6de7a 100644 --- a/internal/fourslash/tests/gen/tsxRename5_test.go +++ b/internal/fourslash/tests/gen/tsxRename5_test.go @@ -12,20 +12,20 @@ func TestTsxRename5(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx - declare module JSX { - interface Element { } - interface IntrinsicElements { - } - interface ElementAttributesProperty { props } - } - class MyClass { - props: { - name?: string; - size?: number; - } +declare module JSX { + interface Element { } + interface IntrinsicElements { + } + interface ElementAttributesProperty { props } +} +class MyClass { + props: { + name?: string; + size?: number; +} - [|var [|{| "contextRangeIndex": 0 |}nn|]: string;|] - var x = ;` +[|var [|{| "contextRangeIndex": 0 |}nn|]: string;|] +var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineRenameAtRangesWithText(t, "nn") } diff --git a/internal/fourslash/tests/gen/typeOperatorNodeBuilding_test.go b/internal/fourslash/tests/gen/typeOperatorNodeBuilding_test.go index 7b0e47d781..244b13c121 100644 --- a/internal/fourslash/tests/gen/typeOperatorNodeBuilding_test.go +++ b/internal/fourslash/tests/gen/typeOperatorNodeBuilding_test.go @@ -12,18 +12,18 @@ func TestTypeOperatorNodeBuilding(t *testing.T) { t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: keyof.ts - function doSomethingWithKeys(...keys: (keyof T)[]) { } +function doSomethingWithKeys(...keys: (keyof T)[]) { } - const /*1*/utilityFunctions = { - doSomethingWithKeys - }; +const /*1*/utilityFunctions = { + doSomethingWithKeys +}; // @Filename: typeof.ts - class Foo { static a: number; } - function doSomethingWithTypes(...statics: (typeof Foo)[]) {} +class Foo { static a: number; } +function doSomethingWithTypes(...statics: (typeof Foo)[]) {} - const /*2*/utilityFunctions = { - doSomethingWithTypes - };` +const /*2*/utilityFunctions = { + doSomethingWithTypes +};` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "const utilityFunctions: {\n doSomethingWithKeys: (...keys: (keyof T)[]) => void;\n}", "") f.VerifyQuickInfoAt(t, "2", "const utilityFunctions: {\n doSomethingWithTypes: (...statics: (typeof Foo)[]) => void;\n}", "") From 2ff410da321e5e835ff5445d604f660d467d5bb1 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Tue, 9 Sep 2025 20:08:53 -0700 Subject: [PATCH 12/18] accept baselines --- ...fContextSensitiveParameterNoCrash.baseline | 4 +- .../QuickInfo/jsDocTypedefQuickInfo1.baseline | 8 +- .../quickInfoCommentsCommentParsing.baseline | 78 +- .../QuickInfo/quickInfoInheritDoc.baseline | 10 +- .../quickInfoJsDocInheritage.baseline | 40 +- .../quickInfoOnParameterProperties.baseline | 12 +- ...ambientShorthandFindAllRefs.baseline.jsonc | 5 +- ...ortProvider_referencesCrash.baseline.jsonc | 5 +- ...nstructorFindAllReferences1.baseline.jsonc | 3 +- ...nstructorFindAllReferences2.baseline.jsonc | 3 +- ...nstructorFindAllReferences3.baseline.jsonc | 3 +- ...nstructorFindAllReferences4.baseline.jsonc | 3 +- ...uleInteropFindAllReferences.baseline.jsonc | 11 +- ...leInteropFindAllReferences2.baseline.jsonc | 11 +- ...sNodeNextWithTypesReference.baseline.jsonc | 3 +- ...essExpressionHeritageClause.baseline.jsonc | 7 +- ...AllReferencesDynamicImport2.baseline.jsonc | 5 +- ...AllReferencesDynamicImport3.baseline.jsonc | 5 +- ...FilteringMappedTypeProperty.baseline.jsonc | 7 +- ...rencesFromLinkTagReference1.baseline.jsonc | 3 +- ...rencesFromLinkTagReference2.baseline.jsonc | 3 +- ...rencesFromLinkTagReference3.baseline.jsonc | 5 +- ...rencesFromLinkTagReference4.baseline.jsonc | 3 +- ...rencesFromLinkTagReference5.baseline.jsonc | 3 +- ...findAllReferencesImportMeta.baseline.jsonc | 3 +- ...lReferencesJSDocFunctionNew.baseline.jsonc | 3 +- ...ReferencesJSDocFunctionThis.baseline.jsonc | 3 +- ...lReferencesJsDocTypeLiteral.baseline.jsonc | 5 +- ...OverloadedFunctionParameter.baseline.jsonc | 5 +- ...encesJsRequireDestructuring.baseline.jsonc | 3 +- ...ncesJsRequireDestructuring1.baseline.jsonc | 3 +- .../findAllReferencesLinkTag1.baseline.jsonc | 19 +- .../findAllReferencesLinkTag2.baseline.jsonc | 12 +- .../findAllReferencesLinkTag3.baseline.jsonc | 12 +- ...cesNonExistentExportBinding.baseline.jsonc | 3 +- ...dAllReferencesOfConstructor.baseline.jsonc | 25 +- ...esOfConstructor_badOverload.baseline.jsonc | 5 +- ...ndAllReferencesOfJsonModule.baseline.jsonc | 7 +- .../findAllReferencesUndefined.baseline.jsonc | 5 +- .../findAllRefsBadImport.baseline.jsonc | 5 +- .../findAllRefsCatchClause.baseline.jsonc | 5 +- ...findAllRefsClassExpression0.baseline.jsonc | 17 +- ...findAllRefsClassExpression1.baseline.jsonc | 7 +- ...findAllRefsClassExpression2.baseline.jsonc | 13 +- ...indAllRefsClassStaticBlocks.baseline.jsonc | 7 +- ...fsClassWithStaticThisAccess.baseline.jsonc | 7 +- ...AllRefsConstructorFunctions.baseline.jsonc | 11 +- .../findAllRefsDeclareClass.baseline.jsonc | 5 +- .../findAllRefsDefaultImport.baseline.jsonc | 9 +- .../findAllRefsDefinition.baseline.jsonc | 5 +- ...ndAllRefsDestructureGeneric.baseline.jsonc | 5 +- ...indAllRefsDestructureGetter.baseline.jsonc | 13 +- .../findAllRefsEnumAsNamespace.baseline.jsonc | 7 +- .../findAllRefsEnumMember.baseline.jsonc | 7 +- ...RefsExportConstEqualToClass.baseline.jsonc | 9 +- ...portDefaultClassConstructor.baseline.jsonc | 3 +- ...dAllRefsExportNotAtTopLevel.baseline.jsonc | 7 +- ...llRefsForComputedProperties.baseline.jsonc | 7 +- ...lRefsForComputedProperties2.baseline.jsonc | 7 +- ...findAllRefsForDefaultExport.baseline.jsonc | 7 +- ...ndAllRefsForDefaultExport01.baseline.jsonc | 9 +- ...ndAllRefsForDefaultExport02.baseline.jsonc | 15 +- ...ndAllRefsForDefaultExport04.baseline.jsonc | 15 +- ...ndAllRefsForDefaultExport09.baseline.jsonc | 17 +- ...sForDefaultExport_anonymous.baseline.jsonc | 3 +- ...fsForDefaultExport_reExport.baseline.jsonc | 9 +- ...indAllRefsForDefaultKeyword.baseline.jsonc | 11 +- ...RefsForFunctionExpression01.baseline.jsonc | 15 +- .../findAllRefsForImportCall.baseline.jsonc | 7 +- ...indAllRefsForImportCallType.baseline.jsonc | 5 +- .../findAllRefsForMappedType.baseline.jsonc | 3 +- ...sForObjectLiteralProperties.baseline.jsonc | 9 +- .../findAllRefsForObjectSpread.baseline.jsonc | 9 +- .../findAllRefsForRest.baseline.jsonc | 5 +- ...icInstanceMethodInheritance.baseline.jsonc | 11 +- ...InstancePropertyInheritance.baseline.jsonc | 23 +- ...findAllRefsForStringLiteral.baseline.jsonc | 3 +- ...llRefsForStringLiteralTypes.baseline.jsonc | 5 +- ...ndAllRefsForUMDModuleAlias1.baseline.jsonc | 11 +- ...orVariableInExtendsClause01.baseline.jsonc | 7 +- ...orVariableInExtendsClause02.baseline.jsonc | 7 +- ...ariableInImplementsClause01.baseline.jsonc | 3 +- ...fsGlobalThisKeywordInModule.baseline.jsonc | 3 +- .../findAllRefsImportEquals.baseline.jsonc | 3 +- .../findAllRefsImportType.baseline.jsonc | 9 +- ...indAllRefsInClassExpression.baseline.jsonc | 5 +- ...ndAllRefsIndexedAccessTypes.baseline.jsonc | 9 +- ...AllRefsInheritedProperties1.baseline.jsonc | 63 +- ...AllRefsInheritedProperties2.baseline.jsonc | 63 +- ...AllRefsInheritedProperties3.baseline.jsonc | 249 +++--- ...AllRefsInheritedProperties4.baseline.jsonc | 85 +- ...AllRefsInheritedProperties5.baseline.jsonc | 61 +- ...findAllRefsInsideTemplates1.baseline.jsonc | 9 +- ...findAllRefsInsideTemplates2.baseline.jsonc | 11 +- .../findAllRefsInsideWithBlock.baseline.jsonc | 9 +- .../findAllRefsIsDefinition.baseline.jsonc | 13 +- .../findAllRefsJsDocImportTag.baseline.jsonc | 3 +- .../findAllRefsJsDocImportTag2.baseline.jsonc | 7 +- .../findAllRefsJsDocImportTag3.baseline.jsonc | 7 +- .../findAllRefsJsDocImportTag4.baseline.jsonc | 3 +- .../findAllRefsJsDocImportTag5.baseline.jsonc | 5 +- ...lRefsJsDocTemplateTag_class.baseline.jsonc | 5 +- ...fsJsDocTemplateTag_function.baseline.jsonc | 5 +- .../findAllRefsJsDocTypeDef.baseline.jsonc | 3 +- ...efsJsThisPropertyAssignment.baseline.jsonc | 7 +- ...fsJsThisPropertyAssignment2.baseline.jsonc | 13 +- .../findAllRefsMappedType.baseline.jsonc | 7 +- ...fsMappedType_nonHomomorphic.baseline.jsonc | 5 +- ...odulesOverlappingSpecifiers.baseline.jsonc | 5 +- .../findAllRefsNoImportClause.baseline.jsonc | 5 +- ...tionTemplateLiteralNoCrash1.baseline.jsonc | 3 +- .../findAllRefsNonModule.baseline.jsonc | 7 +- ...NonexistentPropertyNoCrash1.baseline.jsonc | 3 +- ...indingElementPropertyName01.baseline.jsonc | 7 +- ...indingElementPropertyName02.baseline.jsonc | 7 +- ...indingElementPropertyName03.baseline.jsonc | 5 +- ...indingElementPropertyName04.baseline.jsonc | 9 +- ...indingElementPropertyName05.baseline.jsonc | 3 +- ...indingElementPropertyName06.baseline.jsonc | 11 +- ...indingElementPropertyName07.baseline.jsonc | 3 +- ...indingElementPropertyName10.baseline.jsonc | 9 +- ...sOfConstructor_withModifier.baseline.jsonc | 3 +- .../findAllRefsOnDecorators.baseline.jsonc | 23 +- .../findAllRefsOnDefinition.baseline.jsonc | 11 +- .../findAllRefsOnDefinition2.baseline.jsonc | 11 +- .../findAllRefsOnImportAliases.baseline.jsonc | 13 +- ...findAllRefsOnImportAliases2.baseline.jsonc | 25 +- ...OnPrivateParameterProperty1.baseline.jsonc | 7 +- ...rameterPropertyDeclaration1.baseline.jsonc | 3 +- ...rameterPropertyDeclaration2.baseline.jsonc | 7 +- ...rameterPropertyDeclaration3.baseline.jsonc | 7 +- ...ertyDeclaration_inheritance.baseline.jsonc | 9 +- .../findAllRefsPrimitiveJsDoc.baseline.jsonc | 9 +- ...AllRefsPrivateNameAccessors.baseline.jsonc | 21 +- ...ndAllRefsPrivateNameMethods.baseline.jsonc | 9 +- ...llRefsPrivateNameProperties.baseline.jsonc | 11 +- ...textuallyTypedByTypeParam01.baseline.jsonc | 3 +- ...findAllRefsReExport_broken2.baseline.jsonc | 5 +- ...dPropertyInDerivedInterface.baseline.jsonc | 9 +- .../findAllRefsRootSymbols.baseline.jsonc | 9 +- .../findAllRefsThisKeyword.baseline.jsonc | 23 +- ...efsThisKeywordMultipleFiles.baseline.jsonc | 17 +- ...eParameterInMergedInterface.baseline.jsonc | 9 +- .../findAllRefsTypedef.baseline.jsonc | 7 +- ...ndAllRefsTypedef_importType.baseline.jsonc | 7 +- .../findAllRefsTypeofImport.baseline.jsonc | 7 +- .../findAllRefsUnionProperty.baseline.jsonc | 19 +- ...ndAllRefsUnresolvedSymbols1.baseline.jsonc | 21 +- ...ndAllRefsUnresolvedSymbols2.baseline.jsonc | 23 +- ...ndAllRefsUnresolvedSymbols3.baseline.jsonc | 23 +- ...WithLeadingUnderscoreNames1.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames2.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames3.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames4.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames5.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames6.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames7.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames8.baseline.jsonc | 7 +- ...WithLeadingUnderscoreNames9.baseline.jsonc | 7 +- ...ShorthandPropertyAssignment.baseline.jsonc | 49 +- ...horthandPropertyAssignment2.baseline.jsonc | 55 +- .../findAllRefsWriteAccess.baseline.jsonc | 3 +- .../findAllRefs_importType_js4.baseline.jsonc | 3 +- ...mportType_meaningAtLocation.baseline.jsonc | 21 +- ...indAllRefs_importType_named.baseline.jsonc | 21 +- .../findAllRefs_jsEnum.baseline.jsonc | 11 +- ...encesAcrossMultipleProjects.baseline.jsonc | 21 +- ...encesDefinitionDisplayParts.baseline.jsonc | 9 +- .../findReferencesJSXTagName.baseline.jsonc | 9 +- .../findReferencesJSXTagName2.baseline.jsonc | 7 +- .../findReferencesSeeTagInTs.baseline.jsonc | 3 +- ...AllReferencesDynamicImport2.baseline.jsonc | 20 + ...IsDefinitionOfArrowFunction.baseline.jsonc | 7 +- ...sDefinitionOfBindingPattern.baseline.jsonc | 7 +- ...urrencesIsDefinitionOfClass.baseline.jsonc | 7 +- ...efinitionOfComputedProperty.baseline.jsonc | 9 +- ...currencesIsDefinitionOfEnum.baseline.jsonc | 7 +- ...rrencesIsDefinitionOfExport.baseline.jsonc | 9 +- ...encesIsDefinitionOfFunction.baseline.jsonc | 7 +- ...ncesIsDefinitionOfInterface.baseline.jsonc | 7 +- ...nitionOfInterfaceClassMerge.baseline.jsonc | 17 +- ...ncesIsDefinitionOfNamespace.baseline.jsonc | 7 +- ...nitionOfNumberNamedProperty.baseline.jsonc | 5 +- ...ncesIsDefinitionOfParameter.baseline.jsonc | 5 +- ...nitionOfStringNamedProperty.baseline.jsonc | 7 +- ...ncesIsDefinitionOfTypeAlias.baseline.jsonc | 7 +- ...encesIsDefinitionOfVariable.baseline.jsonc | 33 +- .../indirectJsRequireRename.baseline.jsonc | 5 +- ...initionAcrossGlobalProjects.baseline.jsonc | 19 +- ...initionAcrossModuleProjects.baseline.jsonc | 31 +- ...tionInterfaceImplementation.baseline.jsonc | 5 +- .../isDefinitionOverloads.baseline.jsonc | 7 +- ...DefinitionShorthandProperty.baseline.jsonc | 7 +- .../isDefinitionSingleImport.baseline.jsonc | 9 +- ...isDefinitionSingleReference.baseline.jsonc | 5 +- ...tisfiesTagFindAllReferences.baseline.jsonc | 3 +- ...ThrowsTag_findAllReferences.baseline.jsonc | 3 +- ...cTypedefTagSemanticMeaning0.baseline.jsonc | 13 +- ...cTypedefTagSemanticMeaning1.baseline.jsonc | 9 +- ...arameterPropertyDeclaration.baseline.jsonc | 69 +- .../referenceToClass.baseline.jsonc | 25 +- .../referenceToEmptyObject.baseline.jsonc | 3 +- .../references01.baseline.jsonc | 5 +- .../referencesBloomFilters.baseline.jsonc | 9 +- .../referencesBloomFilters2.baseline.jsonc | 9 +- .../referencesBloomFilters3.baseline.jsonc | 13 +- .../referencesForAmbients.baseline.jsonc | 29 +- .../referencesForClassLocal.baseline.jsonc | 9 +- .../referencesForClassMembers.baseline.jsonc | 13 +- ...mbersExtendingAbstractClass.baseline.jsonc | 13 +- ...embersExtendingGenericClass.baseline.jsonc | 13 +- ...referencesForClassParameter.baseline.jsonc | 9 +- ...ypedObjectLiteralProperties.baseline.jsonc | 3 +- ...xtuallyTypedUnionProperties.baseline.jsonc | 21 +- ...tuallyTypedUnionProperties2.baseline.jsonc | 3 +- ...encesForDeclarationKeywords.baseline.jsonc | 35 +- .../referencesForEnums.baseline.jsonc | 19 +- ...rencesForExpressionKeywords.baseline.jsonc | 19 +- ...encesForExternalModuleNames.baseline.jsonc | 13 +- ...erencesForFunctionOverloads.baseline.jsonc | 11 +- ...erencesForFunctionParameter.baseline.jsonc | 7 +- .../referencesForGlobals.baseline.jsonc | 19 +- .../referencesForGlobals2.baseline.jsonc | 11 +- .../referencesForGlobals3.baseline.jsonc | 11 +- .../referencesForGlobals4.baseline.jsonc | 11 +- .../referencesForGlobals5.baseline.jsonc | 11 +- ...sForGlobalsInExternalModule.baseline.jsonc | 25 +- ...erencesForIllegalAssignment.baseline.jsonc | 7 +- .../referencesForImports.baseline.jsonc | 11 +- .../referencesForIndexProperty.baseline.jsonc | 9 +- ...referencesForIndexProperty2.baseline.jsonc | 3 +- ...referencesForIndexProperty3.baseline.jsonc | 7 +- ...encesForInheritedProperties.baseline.jsonc | 9 +- ...ncesForInheritedProperties2.baseline.jsonc | 3 +- ...ncesForInheritedProperties3.baseline.jsonc | 63 +- ...ncesForInheritedProperties4.baseline.jsonc | 63 +- ...ncesForInheritedProperties5.baseline.jsonc | 47 +- ...ncesForInheritedProperties6.baseline.jsonc | 3 +- ...ncesForInheritedProperties7.baseline.jsonc | 185 ++--- ...ncesForInheritedProperties8.baseline.jsonc | 5 +- ...ncesForInheritedProperties9.baseline.jsonc | 45 +- .../referencesForLabel.baseline.jsonc | 13 +- .../referencesForLabel2.baseline.jsonc | 3 +- .../referencesForLabel3.baseline.jsonc | 3 +- .../referencesForLabel4.baseline.jsonc | 7 +- .../referencesForLabel5.baseline.jsonc | 17 +- .../referencesForLabel6.baseline.jsonc | 9 +- ...rencesForMergedDeclarations.baseline.jsonc | 21 +- ...encesForMergedDeclarations2.baseline.jsonc | 9 +- ...encesForMergedDeclarations3.baseline.jsonc | 6 +- ...encesForMergedDeclarations4.baseline.jsonc | 23 +- ...encesForMergedDeclarations5.baseline.jsonc | 9 +- ...encesForMergedDeclarations6.baseline.jsonc | 7 +- ...encesForMergedDeclarations7.baseline.jsonc | 9 +- ...encesForMergedDeclarations8.baseline.jsonc | 7 +- .../referencesForModifiers.baseline.jsonc | 23 +- .../referencesForNoContext.baseline.jsonc | 9 +- ...NumericLiteralPropertyNames.baseline.jsonc | 3 +- ...sForObjectLiteralProperties.baseline.jsonc | 9 +- .../referencesForOverrides.baseline.jsonc | 17 +- ...sForPropertiesOfGenericType.baseline.jsonc | 7 +- .../referencesForStatic.baseline.jsonc | 35 +- ...ticsAndMembersWithSameNames.baseline.jsonc | 29 +- ...rStringLiteralPropertyNames.baseline.jsonc | 3 +- ...StringLiteralPropertyNames2.baseline.jsonc | 7 +- ...StringLiteralPropertyNames3.baseline.jsonc | 11 +- ...StringLiteralPropertyNames4.baseline.jsonc | 5 +- ...StringLiteralPropertyNames5.baseline.jsonc | 5 +- ...StringLiteralPropertyNames6.baseline.jsonc | 5 +- ...StringLiteralPropertyNames7.baseline.jsonc | 5 +- .../referencesForTypeKeywords.baseline.jsonc | 13 +- ...eferencesForUnionProperties.baseline.jsonc | 8 +- ...ferencesInConfiguredProject.baseline.jsonc | 5 +- ...ptyFileWithMultipleProjects.baseline.jsonc | 5 +- ...alValueWithMultipleProjects.baseline.jsonc | 5 +- ...onPropertyNameStringLiteral.baseline.jsonc | 3 +- ...erencesToStringLiteralValue.baseline.jsonc | 3 +- .../remoteGetReferences.baseline.jsonc | 186 +---- ...eImportAndExportInDiffFiles.baseline.jsonc | 13 +- .../renameImportOfExportEquals.baseline.jsonc | 10 +- .../renameJsExports01.baseline.jsonc | 5 +- .../renameJsExports02.baseline.jsonc | 5 +- .../renameJsExports03.baseline.jsonc | 9 +- .../tsxFindAllReferences1.baseline.jsonc | 57 +- .../tsxFindAllReferences10.baseline.jsonc | 17 +- .../tsxFindAllReferences11.baseline.jsonc | 9 +- .../tsxFindAllReferences2.baseline.jsonc | 19 +- .../tsxFindAllReferences3.baseline.jsonc | 15 +- .../tsxFindAllReferences4.baseline.jsonc | 81 +- .../tsxFindAllReferences5.baseline.jsonc | 209 +++-- .../tsxFindAllReferences6.baseline.jsonc | 9 +- .../tsxFindAllReferences7.baseline.jsonc | 17 +- .../tsxFindAllReferences8.baseline.jsonc | 371 ++++----- .../tsxFindAllReferences9.baseline.jsonc | 17 +- ...ReferencesUnionElementType1.baseline.jsonc | 45 +- ...ReferencesUnionElementType2.baseline.jsonc | 45 +- .../doubleUnderscoreRenames.baseline.jsonc | 30 - ...AllReferencesDynamicImport3.baseline.jsonc | 14 - ...fsClassWithStaticThisAccess.baseline.jsonc | 8 - .../jsdocTypedefTagRename01.baseline.jsonc | 32 - .../jsdocTypedefTagRename02.baseline.jsonc | 18 - .../jsdocTypedefTagRename03.baseline.jsonc | 21 - .../jsxSpreadReference.baseline.jsonc | 22 - ...enameAcrossMultipleProjects.baseline.jsonc | 34 - ...gElementInitializerExternal.baseline.jsonc | 80 -- .../renameCommentsAndStrings4.baseline.jsonc | 8 - ...ignmentNestedInArrayLiteral.baseline.jsonc | 44 - ...ingAssignmentNestedInForOf2.baseline.jsonc | 56 -- ...eDestructuringClassProperty.baseline.jsonc | 56 -- ...structuringDeclarationInFor.baseline.jsonc | 44 - ...ructuringDeclarationInForOf.baseline.jsonc | 44 - ...cturingNestedBindingElement.baseline.jsonc | 44 - ...eImportAndExportInDiffFiles.baseline.jsonc | 28 - .../renameInheritedProperties1.baseline.jsonc | 22 - .../renameInheritedProperties2.baseline.jsonc | 22 - .../renameInheritedProperties3.baseline.jsonc | 22 - .../renameInheritedProperties4.baseline.jsonc | 22 - .../renameInheritedProperties7.baseline.jsonc | 25 - .../renameInheritedProperties8.baseline.jsonc | 42 - .../renameStringLiteralTypes1.baseline.jsonc | 20 - .../renameStringLiteralTypes2.baseline.jsonc | 116 --- .../renameStringLiteralTypes3.baseline.jsonc | 32 - ...eLiteralsComputedProperties.baseline.jsonc | 231 ------ ...ateLiteralsDefinePropertyJs.baseline.jsonc | 73 -- .../tsxRename1.baseline.jsonc | 32 - .../tsxRename2.baseline.jsonc | 24 - .../tsxRename3.baseline.jsonc | 25 - .../tsxRename5.baseline.jsonc | 21 - .../tsxRename6.baseline.jsonc | 98 --- .../tsxRename7.baseline.jsonc | 39 - .../tsxRename9.baseline.jsonc | 274 ------- ...eclarationMapGoToDefinition.baseline.jsonc | 5 +- ...efinitionRelativeSourceRoot.baseline.jsonc | 5 +- ...nSameNameDifferentDirectory.baseline.jsonc | 13 +- ...arationMapsOutOfDateMapping.baseline.jsonc | 5 +- .../goToDefinition/definition.baseline.jsonc | 7 +- .../definition01.baseline.jsonc | 7 +- .../definitionNameOnEnumMember.baseline.jsonc | 3 +- ...findAllRefsForDefaultExport.baseline.jsonc | 5 +- ...itionAcrossMultipleProjects.baseline.jsonc | 11 +- .../goToDefinitionAlias.baseline.jsonc | 15 +- .../goToDefinitionAmbiants.baseline.jsonc | 19 +- ...itionApparentTypeProperties.baseline.jsonc | 7 +- .../goToDefinitionAwait1.baseline.jsonc | 9 +- .../goToDefinitionAwait2.baseline.jsonc | 3 +- .../goToDefinitionAwait3.baseline.jsonc | 9 +- .../goToDefinitionAwait4.baseline.jsonc | 5 +- .../goToDefinitionBuiltInTypes.baseline.jsonc | 15 +- ...goToDefinitionBuiltInValues.baseline.jsonc | 19 +- ...tionCSSPatternAmbientModule.baseline.jsonc | 5 +- ...DefinitionClassConstructors.baseline.jsonc | 21 +- ...DefinitionClassStaticBlocks.baseline.jsonc | 13 +- ...structorOfClassExpression01.baseline.jsonc | 28 +- ...lassIsPrecededByNamespace01.baseline.jsonc | 3 +- ...initionConstructorOverloads.baseline.jsonc | 19 +- .../goToDefinitionDecorator.baseline.jsonc | 13 +- ...efinitionDecoratorOverloads.baseline.jsonc | 9 +- ...initionDestructuredRequire1.baseline.jsonc | 5 +- ...initionDestructuredRequire2.baseline.jsonc | 5 +- ...goToDefinitionDifferentFile.baseline.jsonc | 29 +- ...tionDifferentFileIndirectly.baseline.jsonc | 29 +- ...oToDefinitionDynamicImport1.baseline.jsonc | 7 +- ...oToDefinitionDynamicImport2.baseline.jsonc | 5 +- ...oToDefinitionDynamicImport3.baseline.jsonc | 3 +- ...oToDefinitionDynamicImport4.baseline.jsonc | 3 +- ...goToDefinitionExpandoClass1.baseline.jsonc | 3 +- ...goToDefinitionExpandoClass2.baseline.jsonc | 3 +- ...initionExpandoElementAccess.baseline.jsonc | 3 +- ...efinitionExternalModuleName.baseline.jsonc | 7 +- ...finitionExternalModuleName2.baseline.jsonc | 7 +- ...finitionExternalModuleName3.baseline.jsonc | 7 +- ...finitionExternalModuleName4.baseline.jsonc | 3 +- ...finitionExternalModuleName5.baseline.jsonc | 5 +- ...finitionExternalModuleName6.baseline.jsonc | 5 +- ...finitionExternalModuleName7.baseline.jsonc | 5 +- ...finitionExternalModuleName8.baseline.jsonc | 5 +- ...finitionExternalModuleName9.baseline.jsonc | 5 +- ...DefinitionFunctionOverloads.baseline.jsonc | 17 +- ...ionFunctionOverloadsInClass.baseline.jsonc | 9 +- .../goToDefinitionFunctionType.baseline.jsonc | 13 +- ...finitionImplicitConstructor.baseline.jsonc | 3 +- .../goToDefinitionImport1.baseline.jsonc | 5 +- .../goToDefinitionImport2.baseline.jsonc | 3 +- .../goToDefinitionImport3.baseline.jsonc | 3 +- ...goToDefinitionImportedNames.baseline.jsonc | 5 +- ...ToDefinitionImportedNames10.baseline.jsonc | 5 +- ...ToDefinitionImportedNames11.baseline.jsonc | 5 +- ...oToDefinitionImportedNames2.baseline.jsonc | 5 +- ...oToDefinitionImportedNames3.baseline.jsonc | 13 +- ...oToDefinitionImportedNames4.baseline.jsonc | 5 +- ...oToDefinitionImportedNames5.baseline.jsonc | 5 +- ...oToDefinitionImportedNames6.baseline.jsonc | 5 +- ...oToDefinitionImportedNames7.baseline.jsonc | 5 +- ...oToDefinitionImportedNames8.baseline.jsonc | 5 +- ...oToDefinitionImportedNames9.baseline.jsonc | 5 +- .../goToDefinitionImports.baseline.jsonc | 21 +- ...finitionInMemberDeclaration.baseline.jsonc | 35 +- ...oToDefinitionInTypeArgument.baseline.jsonc | 7 +- ...oToDefinitionIndexSignature.baseline.jsonc | 19 +- ...ToDefinitionIndexSignature2.baseline.jsonc | 3 +- .../goToDefinitionInstanceof1.baseline.jsonc | 3 +- .../goToDefinitionInstanceof2.baseline.jsonc | 3 +- ...tionInterfaceAfterImplement.baseline.jsonc | 5 +- ...ToDefinitionJsDocImportTag1.baseline.jsonc | 5 +- ...ToDefinitionJsDocImportTag2.baseline.jsonc | 5 +- ...ToDefinitionJsDocImportTag3.baseline.jsonc | 5 +- ...ToDefinitionJsDocImportTag4.baseline.jsonc | 5 +- ...ToDefinitionJsDocImportTag5.baseline.jsonc | 7 +- ...ToDefinitionJsModuleExports.baseline.jsonc | 7 +- .../goToDefinitionJsModuleName.baseline.jsonc | 5 +- ...ionJsModuleNameAtImportName.baseline.jsonc | 23 +- .../goToDefinitionJsxCall.baseline.jsonc | 3 +- .../goToDefinitionJsxNotSet.baseline.jsonc | 5 +- .../goToDefinitionLabels.baseline.jsonc | 17 +- .../goToDefinitionMember.baseline.jsonc | 5 +- .../goToDefinitionMetaProperty.baseline.jsonc | 27 +- ...ToDefinitionMethodOverloads.baseline.jsonc | 25 +- .../goToDefinitionModifiers.baseline.jsonc | 207 ++--- ...finitionMultipleDefinitions.baseline.jsonc | 13 +- ...NewExpressionTargetNotClass.baseline.jsonc | 7 +- ...indingElementPropertyName01.baseline.jsonc | 3 +- ...tionObjectLiteralProperties.baseline.jsonc | 19 +- ...ionObjectLiteralProperties1.baseline.jsonc | 9 +- .../goToDefinitionObjectSpread.baseline.jsonc | 3 +- ...sInMultiplePropertyAccesses.baseline.jsonc | 3 +- ...DefinitionOverriddenMember1.baseline.jsonc | 5 +- ...efinitionOverriddenMember10.baseline.jsonc | 5 +- ...efinitionOverriddenMember11.baseline.jsonc | 21 +- ...efinitionOverriddenMember12.baseline.jsonc | 5 +- ...efinitionOverriddenMember13.baseline.jsonc | 5 +- ...efinitionOverriddenMember14.baseline.jsonc | 5 +- ...efinitionOverriddenMember15.baseline.jsonc | 5 +- ...efinitionOverriddenMember16.baseline.jsonc | 5 +- ...DefinitionOverriddenMember2.baseline.jsonc | 5 +- ...DefinitionOverriddenMember3.baseline.jsonc | 5 +- ...DefinitionOverriddenMember4.baseline.jsonc | 5 +- ...DefinitionOverriddenMember5.baseline.jsonc | 5 +- ...DefinitionOverriddenMember6.baseline.jsonc | 5 +- ...DefinitionOverriddenMember7.baseline.jsonc | 5 +- ...DefinitionOverriddenMember8.baseline.jsonc | 7 +- ...DefinitionOverriddenMember9.baseline.jsonc | 5 +- ...nitionPartialImplementation.baseline.jsonc | 7 +- .../goToDefinitionPrimitives.baseline.jsonc | 3 +- .../goToDefinitionPrivateName.baseline.jsonc | 13 +- ...efinitionPropertyAssignment.baseline.jsonc | 19 +- .../goToDefinitionRest.baseline.jsonc | 3 +- .../goToDefinitionReturn1.baseline.jsonc | 5 +- .../goToDefinitionReturn2.baseline.jsonc | 5 +- .../goToDefinitionReturn3.baseline.jsonc | 5 +- .../goToDefinitionReturn4.baseline.jsonc | 3 +- .../goToDefinitionReturn5.baseline.jsonc | 5 +- .../goToDefinitionReturn6.baseline.jsonc | 5 +- .../goToDefinitionReturn7.baseline.jsonc | 5 +- .../goToDefinitionSameFile.baseline.jsonc | 19 +- ...initionSatisfiesExpression1.baseline.jsonc | 7 +- .../goToDefinitionScriptImport.baseline.jsonc | 7 +- ...efinitionScriptImportServer.baseline.jsonc | 11 +- ...oToDefinitionShadowVariable.baseline.jsonc | 5 +- ...nShadowVariableInsideModule.baseline.jsonc | 5 +- ...finitionShorthandProperty01.baseline.jsonc | 15 +- ...finitionShorthandProperty02.baseline.jsonc | 5 +- ...finitionShorthandProperty03.baseline.jsonc | 9 +- ...finitionShorthandProperty04.baseline.jsonc | 5 +- ...finitionShorthandProperty05.baseline.jsonc | 5 +- ...finitionShorthandProperty06.baseline.jsonc | 5 +- ...itionSignatureAlias_require.baseline.jsonc | 11 +- .../goToDefinitionSimple.baseline.jsonc | 11 +- .../goToDefinitionSourceUnit.baseline.jsonc | 9 +- .../goToDefinitionSwitchCase1.baseline.jsonc | 5 +- .../goToDefinitionSwitchCase2.baseline.jsonc | 5 +- .../goToDefinitionSwitchCase3.baseline.jsonc | 9 +- .../goToDefinitionSwitchCase4.baseline.jsonc | 13 +- .../goToDefinitionSwitchCase5.baseline.jsonc | 3 +- .../goToDefinitionSwitchCase6.baseline.jsonc | 11 +- .../goToDefinitionSwitchCase7.baseline.jsonc | 3 +- ...tionTaggedTemplateOverloads.baseline.jsonc | 7 +- .../goToDefinitionThis.baseline.jsonc | 13 +- ...oToDefinitionTypeOnlyImport.baseline.jsonc | 5 +- ...goToDefinitionTypePredicate.baseline.jsonc | 9 +- ...itionTypeReferenceDirective.baseline.jsonc | 5 +- .../goToDefinitionTypeofThis.baseline.jsonc | 13 +- ...oDefinitionUndefinedSymbols.baseline.jsonc | 15 +- ...efinitionUnionTypeProperty1.baseline.jsonc | 5 +- ...efinitionUnionTypeProperty2.baseline.jsonc | 3 +- ...efinitionUnionTypeProperty3.baseline.jsonc | 3 +- ...efinitionUnionTypeProperty4.baseline.jsonc | 3 +- ...nTypeProperty_discriminated.baseline.jsonc | 17 +- ...efinitionVariableAssignment.baseline.jsonc | 3 +- ...finitionVariableAssignment1.baseline.jsonc | 3 +- ...finitionVariableAssignment2.baseline.jsonc | 3 +- ...finitionVariableAssignment3.baseline.jsonc | 3 +- .../goToDefinitionYield1.baseline.jsonc | 9 +- .../goToDefinitionYield2.baseline.jsonc | 5 +- .../goToDefinitionYield3.baseline.jsonc | 9 +- .../goToDefinitionYield4.baseline.jsonc | 5 +- ..._filteringGenericMappedType.baseline.jsonc | 4 +- ...inition_filteringMappedType.baseline.jsonc | 3 +- .../goToDefinition_mappedType.baseline.jsonc | 3 +- .../goToDefinition_super.baseline.jsonc | 13 +- ...oToDefinition_untypedModule.baseline.jsonc | 3 +- .../goToModuleAliasDefinition.baseline.jsonc | 3 +- ...finitionConstructorFunction.baseline.jsonc | 5 +- ...tionInObjectBindingPattern1.baseline.jsonc | 3 +- ...tionInObjectBindingPattern2.baseline.jsonc | 11 +- .../gotoDefinitionLinkTag1.baseline.jsonc | 29 +- .../gotoDefinitionLinkTag2.baseline.jsonc | 5 +- .../gotoDefinitionLinkTag3.baseline.jsonc | 5 +- .../gotoDefinitionLinkTag4.baseline.jsonc | 5 +- .../gotoDefinitionLinkTag5.baseline.jsonc | 5 +- .../gotoDefinitionLinkTag6.baseline.jsonc | 5 +- ...essExpressionHeritageClause.baseline.jsonc | 7 +- .../gotoDefinitionSatisfiesTag.baseline.jsonc | 5 +- .../gotoDefinitionThrowsTag.baseline.jsonc | 5 +- ...mportTypeNodeGoToDefinition.baseline.jsonc | 41 +- .../javaScriptClass3.baseline.jsonc | 7 +- .../goToDefinition/jsDocSee1.baseline.jsonc | 21 +- .../goToDefinition/jsDocSee2.baseline.jsonc | 29 +- .../goToDefinition/jsDocSee3.baseline.jsonc | 5 +- .../goToDefinition/jsDocSee4.baseline.jsonc | 13 +- ...docTypedefTagGoToDefinition.baseline.jsonc | 43 +- .../jsxSpreadReference.baseline.jsonc | 9 +- .../reallyLargeFile.baseline.jsonc | 5 +- .../tsxGoToDefinitionClasses.baseline.jsonc | 75 +- ...tsxGoToDefinitionIntrinsics.baseline.jsonc | 75 +- ...efinitionStatelessFunction1.baseline.jsonc | 119 ++- ...efinitionStatelessFunction2.baseline.jsonc | 153 ++-- ...DefinitionUnionElementType1.baseline.jsonc | 23 +- ...DefinitionUnionElementType2.baseline.jsonc | 11 +- .../quickInfoJsDocTextFormatting1.baseline | 22 +- ...gnatureHelpCommentsCommentParsing.baseline | 60 +- ...elpExpandedRestTuplesLocalLabels1.baseline | 266 +++--- .../signatureHelpIteratorNext.baseline | 72 +- .../doubleUnderscoreRenames.baseline.jsonc | 23 + ...AllReferencesDynamicImport2.baseline.jsonc | 9 +- ...AllReferencesDynamicImport3.baseline.jsonc | 11 + ...ferencesDynamicImport3.baseline.jsonc.diff | 17 + ...fsClassWithStaticThisAccess.baseline.jsonc | 9 + ...ssWithStaticThisAccess.baseline.jsonc.diff | 19 + ...findAllRefsOnImportAliases2.baseline.jsonc | 29 +- ...llRefsOnImportAliases2.baseline.jsonc.diff | 8 + ...sForExportFromUnfoundModule.baseline.jsonc | 3 +- ...xportFromUnfoundModule.baseline.jsonc.diff | 9 + .../javaScriptClass2.baseline.jsonc | 31 +- .../jsDocSee_rename1.baseline.jsonc | 21 +- .../jsDocSee_rename1.baseline.jsonc.diff | 52 ++ .../jsdocCallbackTagRename01.baseline.jsonc | 9 +- ...docCallbackTagRename01.baseline.jsonc.diff | 18 + .../jsdocSatisfiesTagRename.baseline.jsonc | 3 +- ...sdocSatisfiesTagRename.baseline.jsonc.diff | 11 + .../jsdocThrowsTag_rename.baseline.jsonc | 3 +- .../jsdocThrowsTag_rename.baseline.jsonc.diff | 10 + .../jsdocTypedefTagRename01.baseline.jsonc | 33 + ...sdocTypedefTagRename01.baseline.jsonc.diff | 53 ++ .../jsdocTypedefTagRename02.baseline.jsonc | 15 + ...sdocTypedefTagRename02.baseline.jsonc.diff | 28 + .../jsdocTypedefTagRename03.baseline.jsonc | 19 + ...sdocTypedefTagRename03.baseline.jsonc.diff | 35 + .../jsxSpreadReference.baseline.jsonc | 19 + .../jsxSpreadReference.baseline.jsonc.diff | 8 + .../processInvalidSyntax1.baseline.jsonc | 9 +- .../processInvalidSyntax1.baseline.jsonc.diff | 24 + .../rename01.baseline.jsonc | 7 +- .../rename01.baseline.jsonc.diff | 16 + ...enameAcrossMultipleProjects.baseline.jsonc | 39 + .../renameAlias.baseline.jsonc | 9 +- .../renameAlias2.baseline.jsonc | 9 +- .../renameAlias3.baseline.jsonc | 7 +- .../renameAlias3.baseline.jsonc.diff | 17 + .../renameAliasExternalModule.baseline.jsonc | 7 +- .../renameAliasExternalModule2.baseline.jsonc | 15 +- ...meAliasExternalModule2.baseline.jsonc.diff | 29 + .../renameAliasExternalModule3.baseline.jsonc | 7 +- ...meAliasExternalModule3.baseline.jsonc.diff | 20 + ...gElementInitializerExternal.baseline.jsonc | 115 +++ ...entInitializerExternal.baseline.jsonc.diff | 73 ++ ...gElementInitializerProperty.baseline.jsonc | 23 +- ...entInitializerProperty.baseline.jsonc.diff | 85 ++ .../renameCommentsAndStrings1.baseline.jsonc | 3 +- .../renameCommentsAndStrings2.baseline.jsonc | 7 +- ...ameCommentsAndStrings2.baseline.jsonc.diff | 14 + .../renameCommentsAndStrings3.baseline.jsonc | 7 +- ...ameCommentsAndStrings3.baseline.jsonc.diff | 14 + .../renameCommentsAndStrings4.baseline.jsonc | 9 + ...ameCommentsAndStrings4.baseline.jsonc.diff | 23 + ...ContextuallyTypedProperties.baseline.jsonc | 23 +- ...xtuallyTypedProperties.baseline.jsonc.diff | 430 ++++++++++ ...ontextuallyTypedProperties2.baseline.jsonc | 23 +- ...tuallyTypedProperties2.baseline.jsonc.diff | 430 ++++++++++ .../renameDeclarationKeywords.baseline.jsonc | 65 +- ...ameDeclarationKeywords.baseline.jsonc.diff | 216 +++++ .../renameDefaultLibDontWork.baseline.jsonc | 3 +- ...nameDefaultLibDontWork.baseline.jsonc.diff | 11 + ...nameDestructuringAssignment.baseline.jsonc | 5 +- ...ignmentNestedInArrayLiteral.baseline.jsonc | 43 + ...ntNestedInArrayLiteral.baseline.jsonc.diff | 47 ++ ...ingAssignmentNestedInForOf2.baseline.jsonc | 75 ++ ...signmentNestedInForOf2.baseline.jsonc.diff | 101 +++ ...eDestructuringClassProperty.baseline.jsonc | 72 ++ ...ructuringClassProperty.baseline.jsonc.diff | 79 ++ ...structuringDeclarationInFor.baseline.jsonc | 52 ++ ...turingDeclarationInFor.baseline.jsonc.diff | 79 ++ ...ructuringDeclarationInForOf.baseline.jsonc | 52 ++ ...ringDeclarationInForOf.baseline.jsonc.diff | 51 ++ ...tructuringFunctionParameter.baseline.jsonc | 17 +- ...uringFunctionParameter.baseline.jsonc.diff | 42 + ...cturingNestedBindingElement.baseline.jsonc | 55 ++ ...ngNestedBindingElement.baseline.jsonc.diff | 82 ++ .../renameExportCrash.baseline.jsonc | 3 +- .../renameExportSpecifier.baseline.jsonc | 3 +- .../renameExportSpecifier.baseline.jsonc.diff | 14 + .../renameExportSpecifier2.baseline.jsonc | 3 +- ...renameExportSpecifier2.baseline.jsonc.diff | 14 + .../renameForStringLiteral.baseline.jsonc | 3 +- ...renameForStringLiteral.baseline.jsonc.diff | 16 + .../renameFunctionParameter1.baseline.jsonc | 3 +- ...nameFunctionParameter1.baseline.jsonc.diff | 14 + .../renameFunctionParameter2.baseline.jsonc | 3 +- ...nameFunctionParameter2.baseline.jsonc.diff | 13 + .../renameImportAndExport.baseline.jsonc | 7 +- .../renameImportAndExport.baseline.jsonc.diff | 17 + ...eImportAndExportInDiffFiles.baseline.jsonc | 17 + ...rtAndExportInDiffFiles.baseline.jsonc.diff | 28 + .../renameImportAndShorthand.baseline.jsonc | 7 +- ...nameImportAndShorthand.baseline.jsonc.diff | 17 + ...ImportNamespaceAndShorthand.baseline.jsonc | 7 +- ...tNamespaceAndShorthand.baseline.jsonc.diff | 17 + .../renameImportOfExportEquals.baseline.jsonc | 78 +- ...meImportOfExportEquals.baseline.jsonc.diff | 161 ++++ .../renameImportRequire.baseline.jsonc | 31 +- .../renameImportRequire.baseline.jsonc.diff | 65 ++ ...ImportSpecifierPropertyName.baseline.jsonc | 3 +- ...tSpecifierPropertyName.baseline.jsonc.diff | 9 + .../renameInConfiguredProject.baseline.jsonc | 8 +- ...ameInConfiguredProject.baseline.jsonc.diff | 22 + .../renameInheritedProperties1.baseline.jsonc | 19 + .../renameInheritedProperties2.baseline.jsonc | 19 + .../renameInheritedProperties3.baseline.jsonc | 19 + .../renameInheritedProperties4.baseline.jsonc | 19 + .../renameInheritedProperties5.baseline.jsonc | 10 +- .../renameInheritedProperties6.baseline.jsonc | 10 +- .../renameInheritedProperties7.baseline.jsonc | 27 + .../renameInheritedProperties8.baseline.jsonc | 42 + .../renameJSDocNamepath.baseline.jsonc | 3 +- .../renameJsDocImportTag.baseline.jsonc | 3 +- .../renameJsDocImportTag.baseline.jsonc.diff | 15 + .../renameJsDocTypeLiteral.baseline.jsonc | 3 +- ...renameJsDocTypeLiteral.baseline.jsonc.diff | 14 + .../renameJsExports01.baseline.jsonc | 10 +- .../renameJsExports01.baseline.jsonc.diff | 19 + ...OverloadedFunctionParameter.baseline.jsonc | 5 +- ...oadedFunctionParameter.baseline.jsonc.diff | 19 + .../renameJsPropertyAssignment.baseline.jsonc | 9 +- ...renameJsPropertyAssignment2.baseline.jsonc | 9 +- ...renameJsPropertyAssignment3.baseline.jsonc | 9 +- ...renameJsPropertyAssignment4.baseline.jsonc | 5 +- ...renameJsPrototypeProperty01.baseline.jsonc | 5 +- ...eJsPrototypeProperty01.baseline.jsonc.diff | 23 + ...renameJsPrototypeProperty02.baseline.jsonc | 5 +- ...eJsPrototypeProperty02.baseline.jsonc.diff | 23 + .../renameJsThisProperty01.baseline.jsonc | 5 +- ...renameJsThisProperty01.baseline.jsonc.diff | 24 + .../renameJsThisProperty03.baseline.jsonc | 5 +- .../renameJsThisProperty05.baseline.jsonc | 5 +- ...renameJsThisProperty05.baseline.jsonc.diff | 27 + .../renameJsThisProperty06.baseline.jsonc | 5 +- ...renameJsThisProperty06.baseline.jsonc.diff | 27 + .../renameLabel1.baseline.jsonc | 3 +- .../renameLabel2.baseline.jsonc | 3 +- .../renameLabel3.baseline.jsonc | 3 +- .../renameLabel4.baseline.jsonc | 3 +- .../renameLabel5.baseline.jsonc | 3 +- .../renameLabel6.baseline.jsonc | 3 +- ...cationsForClassExpression01.baseline.jsonc | 35 +- ...nsForClassExpression01.baseline.jsonc.diff | 32 + ...ionsForFunctionExpression01.baseline.jsonc | 15 +- ...orFunctionExpression01.baseline.jsonc.diff | 9 + ...ionsForFunctionExpression02.baseline.jsonc | 25 +- ...orFunctionExpression02.baseline.jsonc.diff | 9 + .../renameModifiers.baseline.jsonc | 77 +- .../renameModifiers.baseline.jsonc.diff | 205 +++++ ...ameModuleExportsProperties1.baseline.jsonc | 7 +- ...duleExportsProperties1.baseline.jsonc.diff | 21 + ...ameModuleExportsProperties2.baseline.jsonc | 7 +- ...duleExportsProperties2.baseline.jsonc.diff | 11 + ...ameModuleExportsProperties3.baseline.jsonc | 7 +- ...duleExportsProperties3.baseline.jsonc.diff | 21 + .../renameNamedImport.baseline.jsonc | 3 +- .../renameNamedImport.baseline.jsonc.diff | 10 + .../renameNamespaceImport.baseline.jsonc | 3 +- .../renameNumericalIndex.baseline.jsonc | 9 +- .../renameNumericalIndex.baseline.jsonc.diff | 18 + ...eNumericalIndexSingleQuoted.baseline.jsonc | 9 +- ...ricalIndexSingleQuoted.baseline.jsonc.diff | 22 + ...indingElementPropertyName01.baseline.jsonc | 5 +- .../renameObjectSpread.baseline.jsonc | 21 +- ...enameObjectSpreadAssignment.baseline.jsonc | 27 +- ...ObjectSpreadAssignment.baseline.jsonc.diff | 24 + ...rameterPropertyDeclaration1.baseline.jsonc | 23 +- ...rameterPropertyDeclaration2.baseline.jsonc | 23 +- ...rameterPropertyDeclaration3.baseline.jsonc | 23 +- ...rameterPropertyDeclaration4.baseline.jsonc | 15 +- ...erPropertyDeclaration4.baseline.jsonc.diff | 22 + ...rameterPropertyDeclaration5.baseline.jsonc | 11 +- .../renamePrivateAccessor.baseline.jsonc | 11 +- .../renamePrivateAccessor.baseline.jsonc.diff | 64 ++ .../renamePrivateFields1.baseline.jsonc | 9 +- .../renamePrivateFields1.baseline.jsonc.diff | 27 + .../renamePrivateMethod.baseline.jsonc | 9 +- .../renamePrivateMethod.baseline.jsonc.diff | 25 + ...essExpressionHeritageClause.baseline.jsonc | 21 +- .../renameReExportDefault.baseline.jsonc | 25 +- .../renameReExportDefault.baseline.jsonc.diff | 104 +++ ...renameReferenceFromLinkTag1.baseline.jsonc | 3 +- ...renameReferenceFromLinkTag2.baseline.jsonc | 3 +- ...eReferenceFromLinkTag2.baseline.jsonc.diff | 14 + ...renameReferenceFromLinkTag3.baseline.jsonc | 5 +- ...eReferenceFromLinkTag3.baseline.jsonc.diff | 17 + ...renameReferenceFromLinkTag4.baseline.jsonc | 3 +- ...renameReferenceFromLinkTag5.baseline.jsonc | 3 +- .../renameRest.baseline.jsonc | 12 +- .../renameRestBindingElement.baseline.jsonc | 8 +- ...nameRestBindingElement.baseline.jsonc.diff | 17 + .../renameStringLiteralOk.baseline.jsonc | 27 +- .../renameStringLiteralOk.baseline.jsonc.diff | 64 ++ .../renameStringLiteralOk1.baseline.jsonc | 13 +- ...renameStringLiteralOk1.baseline.jsonc.diff | 28 + .../renameStringLiteralTypes1.baseline.jsonc | 21 + ...ameStringLiteralTypes1.baseline.jsonc.diff | 30 + .../renameStringLiteralTypes2.baseline.jsonc | 131 +++ ...ameStringLiteralTypes2.baseline.jsonc.diff | 357 ++++++++ .../renameStringLiteralTypes3.baseline.jsonc | 34 + ...ameStringLiteralTypes3.baseline.jsonc.diff | 80 ++ .../renameStringLiteralTypes4.baseline.jsonc | 3 +- ...ameStringLiteralTypes4.baseline.jsonc.diff | 14 + .../renameStringLiteralTypes5.baseline.jsonc | 3 +- ...ameStringLiteralTypes5.baseline.jsonc.diff | 14 + .../renameStringPropertyNames.baseline.jsonc | 36 +- ...ameStringPropertyNames.baseline.jsonc.diff | 83 ++ .../renameStringPropertyNames2.baseline.jsonc | 3 +- ...meStringPropertyNames2.baseline.jsonc.diff | 16 + ...eLiteralsComputedProperties.baseline.jsonc | 333 ++++++++ ...ralsComputedProperties.baseline.jsonc.diff | 774 ++++++++++++++++++ ...ateLiteralsDefinePropertyJs.baseline.jsonc | 70 ++ ...teralsDefinePropertyJs.baseline.jsonc.diff | 167 ++++ .../renameUMDModuleAlias1.baseline.jsonc | 14 +- .../tsxRename1.baseline.jsonc | 29 + .../tsxRename2.baseline.jsonc | 21 + .../tsxRename2.baseline.jsonc.diff | 26 + .../tsxRename3.baseline.jsonc | 22 + .../tsxRename3.baseline.jsonc.diff | 23 + .../tsxRename5.baseline.jsonc | 19 + .../tsxRename6.baseline.jsonc | 87 ++ .../tsxRename7.baseline.jsonc | 34 + .../tsxRename7.baseline.jsonc.diff | 52 ++ .../tsxRename9.baseline.jsonc | 245 ++++++ .../tsxRename9.baseline.jsonc.diff | 98 +++ 756 files changed, 9790 insertions(+), 7674 deletions(-) create mode 100644 testdata/baselines/reference/fourslash/findAllReferences/fourslash/findAllReferencesDynamicImport2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/tsxRename1.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/tsxRename2.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/tsxRename3.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/tsxRename5.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/tsxRename6.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/tsxRename7.baseline.jsonc delete mode 100644 testdata/baselines/reference/fourslash/findRenameLocations/tsxRename9.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc (75%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc (87%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc (81%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc (63%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc (50%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc (57%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc (86%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc (88%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc (88%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/rename01.baseline.jsonc (54%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameAlias.baseline.jsonc (65%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameAlias2.baseline.jsonc (65%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameAlias3.baseline.jsonc (73%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc (68%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc (67%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc (71%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc (65%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc (97%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc (58%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc (57%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc (99%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc (99%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc (82%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc (78%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc (89%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc (58%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc (76%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc (63%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc (71%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc (81%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc (97%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc (96%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc (77%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc (72%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc (73%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc (63%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc (62%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc (50%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc (60%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc (77%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc (77%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc (77%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc (88%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc (76%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc (54%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc (84%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc (68%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc (64%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc (66%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc (97%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc (91%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc (91%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc (90%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc (90%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc (92%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc (92%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLabel1.baseline.jsonc (95%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLabel2.baseline.jsonc (95%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLabel3.baseline.jsonc (97%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLabel4.baseline.jsonc (97%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLabel5.baseline.jsonc (97%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLabel6.baseline.jsonc (97%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc (52%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc (64%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc (55%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameModifiers.baseline.jsonc (63%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc (75%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc (74%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc (68%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc (81%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc (78%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc (62%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc (65%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc (88%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc (59%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc (63%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc (55%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc (56%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc (55%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc (51%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc (69%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc (90%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc (80%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc (81%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc (64%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc (72%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc (96%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc (96%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc (96%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc (96%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc (96%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameRest.baseline.jsonc (72%) rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc (59%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc (53%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc (56%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc (85%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc (85%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc (67%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc (98%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc.diff rename testdata/baselines/reference/{ => submodule}/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc (59%) create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff diff --git a/testdata/baselines/reference/fourslash/QuickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline b/testdata/baselines/reference/fourslash/QuickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline index 2ffe5f140f..b21d2aab66 100644 --- a/testdata/baselines/reference/fourslash/QuickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline +++ b/testdata/baselines/reference/fourslash/QuickInfo/completionDetailsOfContextSensitiveParameterNoCrash.baseline @@ -44,7 +44,7 @@ // } // // declare var curry: { -// (func: (t1: T1) => R, arity?: number): CurriedFunction1; +// (func: (t1: T1) => R, arity?: number): CurriedFunction1; // (func: (t1: T1, t2: T2) => R, arity?: number): CurriedFunction2; // (func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): CurriedFunction3; // (func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): CurriedFunction4; @@ -96,7 +96,7 @@ [ { "marker": { - "Position": 3101, + "Position": 3097, "LSPosition": { "line": 82, "character": 60 diff --git a/testdata/baselines/reference/fourslash/QuickInfo/jsDocTypedefQuickInfo1.baseline b/testdata/baselines/reference/fourslash/QuickInfo/jsDocTypedefQuickInfo1.baseline index 17be79caa3..a46c1cd2fe 100644 --- a/testdata/baselines/reference/fourslash/QuickInfo/jsDocTypedefQuickInfo1.baseline +++ b/testdata/baselines/reference/fourslash/QuickInfo/jsDocTypedefQuickInfo1.baseline @@ -6,7 +6,7 @@ // * @property {string=} y // * @property {string} [z] // * @property {string} [w="hi"] -// * +// * // * @param {Opts} opts // */ // function foo(opts) { @@ -26,7 +26,7 @@ // * @property {string=} y // * @property {string} [z] // * @property {string} [w="hi"] -// * +// * // * @param {Opts1} opts // */ // function foo1(opts1) { @@ -43,7 +43,7 @@ [ { "marker": { - "Position": 179, + "Position": 178, "LSPosition": { "line": 9, "character": 13 @@ -60,7 +60,7 @@ }, { "marker": { - "Position": 400, + "Position": 398, "LSPosition": { "line": 22, "character": 14 diff --git a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsCommentParsing.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsCommentParsing.baseline index 0e4164e80a..b1c17bf57f 100644 --- a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsCommentParsing.baseline +++ b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoCommentsCommentParsing.baseline @@ -229,7 +229,7 @@ // | // | ---------------------------------------------------------------------- // /** This is multiplication function -// * @param +// * @param // * @param a first number // * @param b // * @param c { @@ -988,7 +988,7 @@ }, { "marker": { - "Position": 2111, + "Position": 2110, "LSPosition": { "line": 106, "character": 18 @@ -1005,7 +1005,7 @@ }, { "marker": { - "Position": 2122, + "Position": 2121, "LSPosition": { "line": 106, "character": 29 @@ -1022,7 +1022,7 @@ }, { "marker": { - "Position": 2133, + "Position": 2132, "LSPosition": { "line": 106, "character": 40 @@ -1039,7 +1039,7 @@ }, { "marker": { - "Position": 2145, + "Position": 2144, "LSPosition": { "line": 106, "character": 52 @@ -1056,7 +1056,7 @@ }, { "marker": { - "Position": 2149, + "Position": 2148, "LSPosition": { "line": 106, "character": 56 @@ -1073,7 +1073,7 @@ }, { "marker": { - "Position": 2161, + "Position": 2160, "LSPosition": { "line": 108, "character": 4 @@ -1090,7 +1090,7 @@ }, { "marker": { - "Position": 2253, + "Position": 2252, "LSPosition": { "line": 112, "character": 12 @@ -1107,7 +1107,7 @@ }, { "marker": { - "Position": 2277, + "Position": 2276, "LSPosition": { "line": 113, "character": 12 @@ -1124,7 +1124,7 @@ }, { "marker": { - "Position": 2370, + "Position": 2369, "LSPosition": { "line": 118, "character": 1 @@ -1141,7 +1141,7 @@ }, { "marker": { - "Position": 2378, + "Position": 2377, "LSPosition": { "line": 119, "character": 1 @@ -1158,7 +1158,7 @@ }, { "marker": { - "Position": 2716, + "Position": 2715, "LSPosition": { "line": 129, "character": 18 @@ -1175,7 +1175,7 @@ }, { "marker": { - "Position": 2727, + "Position": 2726, "LSPosition": { "line": 129, "character": 29 @@ -1192,7 +1192,7 @@ }, { "marker": { - "Position": 2738, + "Position": 2737, "LSPosition": { "line": 129, "character": 40 @@ -1209,7 +1209,7 @@ }, { "marker": { - "Position": 2756, + "Position": 2755, "LSPosition": { "line": 129, "character": 58 @@ -1226,7 +1226,7 @@ }, { "marker": { - "Position": 2774, + "Position": 2773, "LSPosition": { "line": 129, "character": 76 @@ -1243,7 +1243,7 @@ }, { "marker": { - "Position": 2792, + "Position": 2791, "LSPosition": { "line": 129, "character": 94 @@ -1260,7 +1260,7 @@ }, { "marker": { - "Position": 2818, + "Position": 2817, "LSPosition": { "line": 131, "character": 4 @@ -1277,7 +1277,7 @@ }, { "marker": { - "Position": 3045, + "Position": 3044, "LSPosition": { "line": 137, "character": 16 @@ -1294,7 +1294,7 @@ }, { "marker": { - "Position": 3081, + "Position": 3080, "LSPosition": { "line": 140, "character": 3 @@ -1311,7 +1311,7 @@ }, { "marker": { - "Position": 3243, + "Position": 3242, "LSPosition": { "line": 146, "character": 16 @@ -1328,7 +1328,7 @@ }, { "marker": { - "Position": 3254, + "Position": 3253, "LSPosition": { "line": 146, "character": 27 @@ -1345,7 +1345,7 @@ }, { "marker": { - "Position": 3272, + "Position": 3271, "LSPosition": { "line": 148, "character": 3 @@ -1362,7 +1362,7 @@ }, { "marker": { - "Position": 3432, + "Position": 3431, "LSPosition": { "line": 154, "character": 16 @@ -1379,7 +1379,7 @@ }, { "marker": { - "Position": 3445, + "Position": 3444, "LSPosition": { "line": 154, "character": 29 @@ -1396,7 +1396,7 @@ }, { "marker": { - "Position": 3486, + "Position": 3485, "LSPosition": { "line": 157, "character": 2 @@ -1413,7 +1413,7 @@ }, { "marker": { - "Position": 3782, + "Position": 3781, "LSPosition": { "line": 168, "character": 59 @@ -1430,7 +1430,7 @@ }, { "marker": { - "Position": 3828, + "Position": 3827, "LSPosition": { "line": 168, "character": 105 @@ -1447,7 +1447,7 @@ }, { "marker": { - "Position": 3839, + "Position": 3838, "LSPosition": { "line": 168, "character": 116 @@ -1464,7 +1464,7 @@ }, { "marker": { - "Position": 3850, + "Position": 3849, "LSPosition": { "line": 168, "character": 127 @@ -1481,7 +1481,7 @@ }, { "marker": { - "Position": 3894, + "Position": 3893, "LSPosition": { "line": 171, "character": 3 @@ -1498,7 +1498,7 @@ }, { "marker": { - "Position": 4040, + "Position": 4039, "LSPosition": { "line": 177, "character": 8 @@ -1515,7 +1515,7 @@ }, { "marker": { - "Position": 4193, + "Position": 4192, "LSPosition": { "line": 183, "character": 10 @@ -1532,7 +1532,7 @@ }, { "marker": { - "Position": 4778, + "Position": 4777, "LSPosition": { "line": 195, "character": 36 @@ -1549,7 +1549,7 @@ }, { "marker": { - "Position": 4789, + "Position": 4788, "LSPosition": { "line": 195, "character": 47 @@ -1566,7 +1566,7 @@ }, { "marker": { - "Position": 4792, + "Position": 4791, "LSPosition": { "line": 195, "character": 50 @@ -1583,7 +1583,7 @@ }, { "marker": { - "Position": 4809, + "Position": 4808, "LSPosition": { "line": 197, "character": 10 @@ -1600,7 +1600,7 @@ }, { "marker": { - "Position": 4841, + "Position": 4840, "LSPosition": { "line": 198, "character": 0 @@ -1612,7 +1612,7 @@ }, { "marker": { - "Position": 4854, + "Position": 4853, "LSPosition": { "line": 199, "character": 12 diff --git a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc.baseline index 3e962e1430..4e6aa5f658 100644 --- a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc.baseline +++ b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoInheritDoc.baseline @@ -3,7 +3,7 @@ // abstract class BaseClass { // /** // * Useful description always applicable -// * +// * // * @returns {string} Useful description of return value always applicable. // */ // public static doSomethingUseful(stuff?: any): string { @@ -31,7 +31,7 @@ // // /** // * @inheritDoc -// * +// * // * @param {{ tiger: string; lion: string; }} [mySpecificStuff] Description of my specific parameter. // */ // public static doSomethingUseful(mySpecificStuff?: { tiger: string; lion: string; }): string { @@ -97,7 +97,7 @@ [ { "marker": { - "Position": 817, + "Position": 815, "LSPosition": { "line": 34, "character": 18 @@ -114,7 +114,7 @@ }, { "marker": { - "Position": 1143, + "Position": 1141, "LSPosition": { "line": 47, "character": 18 @@ -131,7 +131,7 @@ }, { "marker": { - "Position": 1282, + "Position": 1280, "LSPosition": { "line": 55, "character": 27 diff --git a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocInheritage.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocInheritage.baseline index cea936d462..c125ef2cce 100644 --- a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocInheritage.baseline +++ b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoJsDocInheritage.baseline @@ -99,12 +99,12 @@ // // class Base1 { // /** -// * @description Base1.foo1 +// * @description Base1.foo1 // */ // foo1: number = 1; // // /** -// * +// * // * @param q Base1.foo2 parameter // * @returns Base1.foo2 return // */ @@ -155,11 +155,11 @@ // // class Base2 { // /** -// * @description Base2.foo1 +// * @description Base2.foo1 // */ // foo1: number = 1; // /** -// * +// * // * @param q Base2.foo2 parameter // * @returns Base2.foo2 return // */ @@ -411,7 +411,7 @@ }, { "marker": { - "Position": 1069, + "Position": 1067, "LSPosition": { "line": 58, "character": 4 @@ -428,7 +428,7 @@ }, { "marker": { - "Position": 1091, + "Position": 1089, "LSPosition": { "line": 59, "character": 4 @@ -445,7 +445,7 @@ }, { "marker": { - "Position": 1263, + "Position": 1261, "LSPosition": { "line": 65, "character": 4 @@ -462,7 +462,7 @@ }, { "marker": { - "Position": 1285, + "Position": 1283, "LSPosition": { "line": 66, "character": 4 @@ -479,7 +479,7 @@ }, { "marker": { - "Position": 1681, + "Position": 1677, "LSPosition": { "line": 85, "character": 4 @@ -496,7 +496,7 @@ }, { "marker": { - "Position": 1703, + "Position": 1699, "LSPosition": { "line": 86, "character": 4 @@ -513,7 +513,7 @@ }, { "marker": { - "Position": 1875, + "Position": 1871, "LSPosition": { "line": 92, "character": 4 @@ -530,7 +530,7 @@ }, { "marker": { - "Position": 1897, + "Position": 1893, "LSPosition": { "line": 93, "character": 4 @@ -547,7 +547,7 @@ }, { "marker": { - "Position": 1955, + "Position": 1951, "LSPosition": { "line": 96, "character": 14 @@ -564,7 +564,7 @@ }, { "marker": { - "Position": 1975, + "Position": 1971, "LSPosition": { "line": 97, "character": 14 @@ -581,7 +581,7 @@ }, { "marker": { - "Position": 1995, + "Position": 1991, "LSPosition": { "line": 98, "character": 14 @@ -598,7 +598,7 @@ }, { "marker": { - "Position": 2015, + "Position": 2011, "LSPosition": { "line": 99, "character": 14 @@ -615,7 +615,7 @@ }, { "marker": { - "Position": 2035, + "Position": 2031, "LSPosition": { "line": 100, "character": 14 @@ -632,7 +632,7 @@ }, { "marker": { - "Position": 2055, + "Position": 2051, "LSPosition": { "line": 101, "character": 14 @@ -649,7 +649,7 @@ }, { "marker": { - "Position": 2075, + "Position": 2071, "LSPosition": { "line": 102, "character": 14 @@ -666,7 +666,7 @@ }, { "marker": { - "Position": 2095, + "Position": 2091, "LSPosition": { "line": 103, "character": 14 diff --git a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnParameterProperties.baseline b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnParameterProperties.baseline index 399006c05a..8c3b8ee838 100644 --- a/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnParameterProperties.baseline +++ b/testdata/baselines/reference/fourslash/QuickInfo/quickInfoOnParameterProperties.baseline @@ -1,8 +1,8 @@ // === QuickInfo === === /quickInfoOnParameterProperties.ts === // interface IFoo { -// /** this is the name of blabla -// * - use blabla +// /** this is the name of blabla +// * - use blabla // * @example blabla // */ // name?: string; @@ -12,7 +12,7 @@ // class Foo implements IFoo { // //public name: string = ''; // constructor( -// public name: string, // documentation should leech and work ! +// public name: string, // documentation should leech and work ! // ^ // | ---------------------------------------------------------------------- // | ```tsx @@ -26,7 +26,7 @@ // // // test2 work // class Foo2 implements IFoo { -// public name: string = ''; // documentation leeched and work ! +// public name: string = ''; // documentation leeched and work ! // ^ // | ---------------------------------------------------------------------- // | ```tsx @@ -42,7 +42,7 @@ [ { "marker": { - "Position": 226, + "Position": 224, "LSPosition": { "line": 12, "character": 13 @@ -59,7 +59,7 @@ }, { "marker": { - "Position": 347, + "Position": 344, "LSPosition": { "line": 19, "character": 11 diff --git a/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc index 188cdbb005..41dd664993 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/ambientShorthandFindAllRefs.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /user.ts === - // import {/*FIND ALL REFS*/[|x|]} from "jquery"; - // === findAllReferences === // === /user2.ts === - -// import {/*FIND ALL REFS*/[|x|]} from "jquery"; +// import {/*FIND ALL REFS*/[|x|]} from "jquery"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc index fa07b16bfd..1de92f14ab 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /home/src/workspaces/project/a/index.d.ts === - // declare class [|A|] { // } // //# sourceMappingURL=index.d.ts.map - // === /home/src/workspaces/project/b/b.ts === - // /// -// new A/*FIND ALL REFS*/[|A|](); +// new A/*FIND ALL REFS*/[|A|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc index 2d3fb77015..360000f99d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences1.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /constructorFindAllReferences1.ts === - // export class C { // /*FIND ALL REFS*/public constructor() { } // public foo() { } // } // -// new C().foo(); +// new C().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc index e670a87db0..ebe82fac1e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences2.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /constructorFindAllReferences2.ts === - // export class C { // /*FIND ALL REFS*/private constructor() { } // public foo() { } // } // -// new C().foo(); +// new C().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc index eafd38c140..9876967d32 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences3.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /constructorFindAllReferences3.ts === - // export class [|C|] { // /*FIND ALL REFS*/constructor() { } // public foo() { } // } // -// new [|C|]().foo(); +// new [|C|]().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc index 8116716578..a9c98eaea2 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/constructorFindAllReferences4.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /constructorFindAllReferences4.ts === - // export class C { // /*FIND ALL REFS*/protected constructor() { } // public foo() { } // } // -// new C().foo(); +// new C().foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc index 8496512cb3..4d5f38434d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences.baseline.jsonc @@ -1,38 +1,29 @@ // === findAllReferences === // === /abc.d.ts === - // declare module "a" { // /*FIND ALL REFS*/export const x: number; // } - // === findAllReferences === // === /abc.d.ts === - // declare module "a" { // export const /*FIND ALL REFS*/[|x|]: number; // } - // === /b.ts === - // import a from "a"; // a.[|x|]; - // === findAllReferences === // === /abc.d.ts === - // declare module "a" { // export const [|x|]: number; // } - // === /b.ts === - // import a from "a"; -// a./*FIND ALL REFS*/[|x|]; +// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc index dec538b1a0..59537e30fd 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/esModuleInteropFindAllReferences2.baseline.jsonc @@ -1,35 +1,26 @@ // === findAllReferences === // === /a.d.ts === - // export as namespace abc; // /*FIND ALL REFS*/export const x: number; - // === findAllReferences === // === /a.d.ts === - // export as namespace abc; // export const /*FIND ALL REFS*/[|x|]: number; - // === /b.ts === - // import a from "./a"; // a.[|x|]; - // === findAllReferences === // === /a.d.ts === - // export as namespace abc; // export const [|x|]: number; - // === /b.ts === - // import a from "./a"; -// a./*FIND ALL REFS*/[|x|]; +// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc index 86cc90f512..dbb948be89 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/explainFilesNodeNextWithTypesReference.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /node_modules/react-hook-form/dist/index.d.ts === - // /// // export type Foo = React.Whatever; -// export function useForm(): any; +// export function useForm(): any; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc index 888592014d..33a4389032 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferPropertyAccessExpressionHeritageClause.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllReferPropertyAccessExpressionHeritageClause.ts === - // class B {} // function foo() { // return {/*FIND ALL REFS*/[|B|]: B}; @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllReferPropertyAccessExpressionHeritageClause.ts === - // class B {} // function foo() { // return {[|B|]: B}; @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllReferPropertyAccessExpressionHeritageClause.ts === - // class B {} // function foo() { // return {[|B|]: B}; // } // class C extends (foo()).[|B|] {} -// class C1 extends foo()./*FIND ALL REFS*/[|B|] {} +// class C1 extends foo()./*FIND ALL REFS*/[|B|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc index 33d82f72a8..eeeb1aa1ac 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /foo.ts === - // export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } // var x = import("./foo"); // x.then(foo => { @@ -9,12 +8,10 @@ - // === findAllReferences === // === /foo.ts === - // export function [|bar|]() { return "bar"; } // var x = import("./foo"); // x.then(foo => { // foo./*FIND ALL REFS*/[|bar|](); -// }) +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc index cf1da00565..456169201b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesDynamicImport3.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /foo.ts === - // export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } // import('./foo').then(({ [|bar|] }) => undefined); - // === findAllReferences === // === /foo.ts === - // export function [|bar|]() { return "bar"; } -// import('./foo').then(({ /*FIND ALL REFS*/[|bar|] }) => undefined); +// import('./foo').then(({ /*FIND ALL REFS*/[|bar|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc index 53c7ba4ecf..43a226d585 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFilteringMappedTypeProperty.baseline.jsonc @@ -1,26 +1,21 @@ // === findAllReferences === // === /findAllReferencesFilteringMappedTypeProperty.ts === - // const obj = { /*FIND ALL REFS*/[|a|]: 1, b: 2 }; // const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; // filtered.[|a|]; - // === findAllReferences === // === /findAllReferencesFilteringMappedTypeProperty.ts === - // const obj = { [|a|]: 1, b: 2 }; // const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { /*FIND ALL REFS*/[|a|]: 0 }; // filtered.[|a|]; - // === findAllReferences === // === /findAllReferencesFilteringMappedTypeProperty.ts === - // const obj = { [|a|]: 1, b: 2 }; // const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { [|a|]: 0 }; -// filtered./*FIND ALL REFS*/[|a|]; +// filtered./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc index 50d5750dba..408f4e9f88 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference1.baseline.jsonc @@ -1,7 +1,6 @@ // === findAllReferences === // === /findAllReferencesFromLinkTagReference1.ts === - // enum E { // /** {@link /*FIND ALL REFS*/[|A|]} */ // [|A|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc index 695b9e0156..d13a60bfb3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference2.baseline.jsonc @@ -1,10 +1,9 @@ // === findAllReferences === // === /a.ts === - // enum E { // /** {@link /*FIND ALL REFS*/[|Foo|]} */ // [|Foo|] // } // interface Foo { // foo: E.[|Foo|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc index 6a32db2c98..a47fd93b30 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference3.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /a.ts === - // interface Foo { // foo: E.[|Foo|]; // } - // === /b.ts === - // enum E { // /** {@link /*FIND ALL REFS*/[|Foo|]} */ // [|Foo|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc index d23437b30e..910ac924e3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference4.baseline.jsonc @@ -1,8 +1,7 @@ // === findAllReferences === // === /findAllReferencesFromLinkTagReference4.ts === - // enum E { // /** {@link /*FIND ALL REFS*/[|B|]} */ // A, // [|B|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc index d403a9f723..03866a1e00 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesFromLinkTagReference5.baseline.jsonc @@ -1,7 +1,6 @@ // === findAllReferences === // === /findAllReferencesFromLinkTagReference5.ts === - // enum E { // /** {@link E./*FIND ALL REFS*/[|A|]} */ // [|A|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc index 42c49a22d3..1f4ceb99c8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllReferencesImportMeta.ts === - // // Haha that's so meta! // -// let x = import.meta/*FIND ALL REFS*/[|meta|]; +// let x = import.meta/*FIND ALL REFS*/[|meta|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc index 5db175d76c..31ac7af7f7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionNew.baseline.jsonc @@ -1,5 +1,4 @@ // === findAllReferences === // === /Foo.js === - // /** @type {function (/*FIND ALL REFS*/new: string, string): string} */ -// var f; +// var f; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc index fea3b8ffff..7746e07493 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJSDocFunctionThis.baseline.jsonc @@ -1,5 +1,4 @@ // === findAllReferences === // === /Foo.js === - // /** @type {function (this: string, string): string} */ -// var f = function (s) { return /*FIND ALL REFS*/[|this|] + s; } +// var f = function (s) { return /*FIND ALL REFS*/[|this|] + s; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc index 17b53da550..5d43200755 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsDocTypeLiteral.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /foo.js === - // /** // * @param {object} o - very important! // * @param {string} o.x - a thing, its ok @@ -13,12 +12,10 @@ - // === findAllReferences === // === /foo.js === - // --- (line: 5) skipped --- // * @param {boolean} o.nested.great - much greatness // * @param {number} o.nested.times - twice? probably!?? // */ -// function f(o) { return o.nested./*FIND ALL REFS*/[|great|]; } +// function f(o) { return o.nested./*FIND ALL REFS*/[|great|]; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc index 868da34a9c..a16111da60 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc @@ -1,10 +1,9 @@ // === findAllReferences === // === /foo.js === - // --- (line: 9) skipped --- // * @param {unknown} x -// * @returns {unknown} +// * @returns {unknown} // */ // function foo(x/*FIND ALL REFS*/[|x|]) { // return [|x|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc index da9b88ff2a..bf269035c5 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /bar.js === - -// const { /*FIND ALL REFS*/[|foo|]: bar } = require('./foo'); +// const { /*FIND ALL REFS*/[|foo|]: bar } = require('./foo'); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc index d2354a097c..cb07e32a56 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsRequireDestructuring1.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /Y.js === - -// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X"); +// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc index 8ea93a9256..cfc4792e1c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // class C { // m/*FIND ALL REFS*/[|m|]() { } // n = 1 @@ -20,10 +19,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // class C { // m() { } // n/*FIND ALL REFS*/[|n|] = 1 @@ -32,7 +29,6 @@ // * {@link m} // // --- (line: 7) skipped --- - // --- (line: 19) skipped --- // * @see {C.n} // * {@link C#n} @@ -45,10 +41,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // class C { // m() { } // n = 1 @@ -58,7 +52,6 @@ // * @see {m} // // --- (line: 8) skipped --- - // --- (line: 26) skipped --- // /** // * {@link s} @@ -71,10 +64,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // --- (line: 33) skipped --- // } // @@ -87,10 +78,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // --- (line: 34) skipped --- // // interface I { @@ -103,10 +92,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // --- (line: 54) skipped --- // } // @@ -120,10 +107,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // class C/*FIND ALL REFS*/[|C|] { // m() { } // n = 1 @@ -161,10 +146,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag1.ts === - // --- (line: 32) skipped --- // r() { } // } @@ -173,4 +156,4 @@ // a() // b: 1 // /** -// // --- (line: 40) skipped --- +// // --- (line: 40) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc index ea6869acf9..11bc47938d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllReferencesLinkTag2.ts === - // namespace NPR { // export class Consider { // This = class { @@ -14,10 +13,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag2.ts === - // namespace NPR { // export class Consider { // This = class { @@ -29,10 +26,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag2.ts === - // namespace NPR { // export class Consider { // This/*FIND ALL REFS*/[|This|] = class { @@ -43,10 +38,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag2.ts === - // namespace NPR { // export class Consider/*FIND ALL REFS*/[|Consider|] { // This = class { @@ -76,17 +69,14 @@ - // === findAllReferences === // === /findAllReferencesLinkTag2.ts === - // namespace NPR/*FIND ALL REFS*/[|NPR|] { // export class Consider { // This = class { // show() { } // // --- (line: 5) skipped --- - // --- (line: 10) skipped --- // * @see {Consider#This#show} // * {@link Consider.This.show} @@ -103,4 +93,4 @@ // * @see {NPR.Consider#This.show} # doesn't parse trailing . // * @see {NPR.Consider.This.show} // */ -// export function outerref() { } +// export function outerref() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc index 16b0623ff3..7d2e671b14 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllReferencesLinkTag3.ts === - // namespace NPR { // export class Consider { // This = class { @@ -17,10 +16,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag3.ts === - // namespace NPR { // export class Consider { // This = class { @@ -32,10 +29,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag3.ts === - // namespace NPR { // export class Consider { // This/*FIND ALL REFS*/[|This|] = class { @@ -46,10 +41,8 @@ - // === findAllReferences === // === /findAllReferencesLinkTag3.ts === - // namespace NPR { // export class Consider/*FIND ALL REFS*/[|Consider|] { // This = class { @@ -79,17 +72,14 @@ - // === findAllReferences === // === /findAllReferencesLinkTag3.ts === - // namespace NPR/*FIND ALL REFS*/[|NPR|] { // export class Consider { // This = class { // show() { } // // --- (line: 5) skipped --- - // --- (line: 9) skipped --- // * {@linkplain Consider#m} // * {@linkcode Consider#This#show} @@ -107,4 +97,4 @@ // * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing . // * {@linkcode [|NPR|].Consider.This.show} // */ -// export function outerref() { } +// export function outerref() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc index 6f44ed40d7..370303c237 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /bar.ts === - -// import { Foo/*FIND ALL REFS*/[|Foo|] } from "./foo"; +// import { Foo/*FIND ALL REFS*/[|Foo|] } from "./foo"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc index 8884a4f22f..8b8c2b5574 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.ts === - // export class [|C|] { // /*FIND ALL REFS*/constructor(n: number); // constructor(); @@ -14,15 +13,11 @@ // const D = [|C|]; // new D(); - // === /b.ts === - // import { [|C|] } from "./a"; // new [|C|](); - // === /c.ts === - // import { [|C|] } from "./a"; // class D extends [|C|] { // constructor() { @@ -35,19 +30,15 @@ // constructor() { super(); } // } - // === /d.ts === - // import * as a from "./a"; // new a.[|C|](); // class d extends a.[|C|] { constructor() { super(); } - // === findAllReferences === // === /a.ts === - // export class [|C|] { // constructor(n: number); // /*FIND ALL REFS*/constructor(); @@ -61,15 +52,11 @@ // const D = [|C|]; // new D(); - // === /b.ts === - // import { [|C|] } from "./a"; // new [|C|](); - // === /c.ts === - // import { [|C|] } from "./a"; // class D extends [|C|] { // constructor() { @@ -82,19 +69,15 @@ // constructor() { super(); } // } - // === /d.ts === - // import * as a from "./a"; // new a.[|C|](); // class d extends a.[|C|] { constructor() { super(); } - // === findAllReferences === // === /a.ts === - // export class [|C|] { // constructor(n: number); // constructor(); @@ -108,15 +91,11 @@ // const D = [|C|]; // new D(); - // === /b.ts === - // import { [|C|] } from "./a"; // new [|C|](); - // === /c.ts === - // import { [|C|] } from "./a"; // class D extends [|C|] { // constructor() { @@ -129,9 +108,7 @@ // constructor() { super(); } // } - // === /d.ts === - // import * as a from "./a"; // new a.[|C|](); -// class d extends a.[|C|] { constructor() { super(); } +// class d extends a.[|C|] { constructor() { super(); } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc index 8e7048cb20..4c9e2f0c7e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfConstructor_badOverload.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllReferencesOfConstructor_badOverload.ts === - // class [|C|] { // /*FIND ALL REFS*/constructor(n: number); // constructor(){} @@ -8,11 +7,9 @@ - // === findAllReferences === // === /findAllReferencesOfConstructor_badOverload.ts === - // class [|C|] { // constructor(n: number); // /*FIND ALL REFS*/constructor(){} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc index c9a228c16f..b573d0da76 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesOfJsonModule.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /foo.ts === - // /*FIND ALL REFS*/import settings from "./settings.json"; // settings; - // === findAllReferences === // === /foo.ts === - // import /*FIND ALL REFS*/[|settings|] from "./settings.json"; // [|settings|]; - // === findAllReferences === // === /foo.ts === - // import [|settings|] from "./settings.json"; -// /*FIND ALL REFS*/[|settings|]; +// /*FIND ALL REFS*/[|settings|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc index 741083d716..da1581a151 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesUndefined.baseline.jsonc @@ -1,11 +1,8 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/[|undefined|]; // // void [|undefined|]; - // === /b.ts === - -// [|undefined|]; +// [|undefined|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc index 8080894d68..4282a2d249 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsBadImport.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /findAllRefsBadImport.ts === - // import { /*FIND ALL REFS*/ab as cd } from "doesNotExist"; - // === findAllReferences === // === /findAllRefsBadImport.ts === - -// import { ab as /*FIND ALL REFS*/[|cd|] } from "doesNotExist"; +// import { ab as /*FIND ALL REFS*/[|cd|] } from "doesNotExist"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc index 3be0bbd0d6..c9c57b48c4 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsCatchClause.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsCatchClause.ts === - // try { } // catch (/*FIND ALL REFS*/[|err|]) { // [|err|]; @@ -8,11 +7,9 @@ - // === findAllReferences === // === /findAllRefsCatchClause.ts === - // try { } // catch ([|err|]) { // /*FIND ALL REFS*/[|err|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc index 2d6a77088a..29550fa58b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression0.baseline.jsonc @@ -1,60 +1,45 @@ // === findAllReferences === // === /a.ts === - // export = class /*FIND ALL REFS*/[|A|] { // m() { [|A|]; } // }; - // === /b.ts === - // import [|A|] = require("./a"); // [|A|]; - // === findAllReferences === // === /a.ts === - // export = class [|A|] { // m() { /*FIND ALL REFS*/[|A|]; } // }; - // === /b.ts === - // import [|A|] = require("./a"); // [|A|]; - // === findAllReferences === // === /a.ts === - // export = class [|A|] { // m() { [|A|]; } // }; - // === /b.ts === - // import /*FIND ALL REFS*/[|A|] = require("./a"); // [|A|]; - // === findAllReferences === // === /a.ts === - // export = class [|A|] { // m() { [|A|]; } // }; - // === /b.ts === - // import [|A|] = require("./a"); -// /*FIND ALL REFS*/[|A|]; +// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc index 6ce52f582b..28ff6fba96 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression1.baseline.jsonc @@ -1,22 +1,17 @@ // === findAllReferences === // === /a.js === - // module.exports = class /*FIND ALL REFS*/[|A|] {}; - // === findAllReferences === // === /b.js === - // import /*FIND ALL REFS*/[|A|] = require("./a"); // [|A|]; - // === findAllReferences === // === /b.js === - // import [|A|] = require("./a"); -// /*FIND ALL REFS*/[|A|]; +// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc index f96e62e6e4..f5cf4ae9a5 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassExpression2.baseline.jsonc @@ -1,38 +1,27 @@ // === findAllReferences === // === /a.js === - // exports./*FIND ALL REFS*/[|A|] = class {}; - // === /b.js === - // import { [|A|] } from "./a"; // [|A|]; - // === findAllReferences === // === /a.js === - // exports.[|A|] = class {}; - // === /b.js === - // import { /*FIND ALL REFS*/[|A|] } from "./a"; // [|A|]; - // === findAllReferences === // === /a.js === - // exports.[|A|] = class {}; - // === /b.js === - // import { [|A|] } from "./a"; -// /*FIND ALL REFS*/[|A|]; +// /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc index 2c3929d9fd..d2862f3610 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassStaticBlocks.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsClassStaticBlocks.ts === - // class ClassStaticBocks { // static x; // /*FIND ALL REFS*/[|static|] {} @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsClassStaticBlocks.ts === - // class ClassStaticBocks { // static x; // static {} @@ -27,13 +24,11 @@ - // === findAllReferences === // === /findAllRefsClassStaticBlocks.ts === - // --- (line: 3) skipped --- // static y; // static {} // static y; // /*FIND ALL REFS*/[|static|] {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc index acfe23a637..6a8b752253 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsClassWithStaticThisAccess.ts === - // class /*FIND ALL REFS*/[|C|] { // static s() { // this; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findAllRefsClassWithStaticThisAccess.ts === - // class C { // static s() { // /*FIND ALL REFS*/[|this|]; @@ -27,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsClassWithStaticThisAccess.ts === - // class C { // static s() { // [|this|]; @@ -41,4 +36,4 @@ // function inner() { this; } // class Inner { x = this; } // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc index 92b3f1ad6d..49d198d629 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsConstructorFunctions.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // function f() { // /*FIND ALL REFS*/[|this|].x = 0; // } @@ -11,10 +10,8 @@ - // === findAllReferences === // === /a.js === - // function f() { // this./*FIND ALL REFS*/x = 0; // } @@ -25,10 +22,8 @@ - // === findAllReferences === // === /a.js === - // function f() { // this.x = 0; // } @@ -39,10 +34,8 @@ - // === findAllReferences === // === /a.js === - // function f() { // this.x = 0; // } @@ -53,12 +46,10 @@ - // === findAllReferences === // === /a.js === - // --- (line: 3) skipped --- // f.prototype.setX = function() { // this.x = 1; // } -// f.prototype.useX = function() { this./*FIND ALL REFS*/x; } +// f.prototype.useX = function() { this./*FIND ALL REFS*/x; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc index e2e8f2d550..a0e7b903e9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDeclareClass.baseline.jsonc @@ -1,16 +1,13 @@ // === findAllReferences === // === /findAllRefsDeclareClass.ts === - // /*FIND ALL REFS*/declare class C { // static m(): void; // } - // === findAllReferences === // === /findAllRefsDeclareClass.ts === - // declare class /*FIND ALL REFS*/[|C|] { // static m(): void; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc index bb5c61b725..bbefa6332d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefaultImport.baseline.jsonc @@ -1,22 +1,15 @@ // === findAllReferences === // === /a.ts === - // export default function /*FIND ALL REFS*/[|a|]() {} - // === /b.ts === - // import [|a|], * as ns from "./a"; - // === findAllReferences === // === /a.ts === - // export default function [|a|]() {} - // === /b.ts === - -// import /*FIND ALL REFS*/[|a|], * as ns from "./a"; +// import /*FIND ALL REFS*/[|a|], * as ns from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc index 59afb275df..14c7bebeaf 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDefinition.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /findAllRefsDefinition.ts === - // const /*FIND ALL REFS*/[|x|] = 0; // [|x|]; - // === findAllReferences === // === /findAllRefsDefinition.ts === - // const [|x|] = 0; -// /*FIND ALL REFS*/[|x|]; +// /*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc index bc2d160244..271c0e841d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGeneric.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsDestructureGeneric.ts === - // interface I { // /*FIND ALL REFS*/[|x|]: boolean; // } @@ -9,12 +8,10 @@ - // === findAllReferences === // === /findAllRefsDestructureGeneric.ts === - // interface I { // [|x|]: boolean; // } // declare const i: I; -// const { /*FIND ALL REFS*/[|x|] } = i; +// const { /*FIND ALL REFS*/[|x|] } = i; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc index 17fdbff3f0..ba0f7fb3b3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsDestructureGetter.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsDestructureGetter.ts === - // class Test { // get /*FIND ALL REFS*/[|x|]() { return 0; } // @@ -11,10 +10,8 @@ - // === findAllReferences === // === /findAllRefsDestructureGetter.ts === - // class Test { // get [|x|]() { return 0; } // @@ -25,10 +22,8 @@ - // === findAllReferences === // === /findAllRefsDestructureGetter.ts === - // class Test { // get x() { return 0; } // @@ -39,10 +34,8 @@ - // === findAllReferences === // === /findAllRefsDestructureGetter.ts === - // class Test { // get x() { return 0; } // @@ -53,10 +46,8 @@ - // === findAllReferences === // === /findAllRefsDestructureGetter.ts === - // class Test { // get x() { return 0; } // @@ -67,14 +58,12 @@ - // === findAllReferences === // === /findAllRefsDestructureGetter.ts === - // class Test { // get x() { return 0; } // // set y(a: number) {} // } // const { x, [|y|] } = new Test(); -// x; /*FIND ALL REFS*/[|y|]; +// x; /*FIND ALL REFS*/[|y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc index 739032e8f8..459666328e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumAsNamespace.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /findAllRefsEnumAsNamespace.ts === - // /*FIND ALL REFS*/enum E { A } // let e: E.A; - // === findAllReferences === // === /findAllRefsEnumAsNamespace.ts === - // enum /*FIND ALL REFS*/[|E|] { A } // let e: [|E|].A; - // === findAllReferences === // === /findAllRefsEnumAsNamespace.ts === - // enum [|E|] { A } -// let e: /*FIND ALL REFS*/[|E|].A; +// let e: /*FIND ALL REFS*/[|E|].A; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc index fce503b58b..cbef0152f5 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /findAllRefsEnumMember.ts === - // enum E { /*FIND ALL REFS*/[|A|], B } // const e: E.[|A|] = E.[|A|]; - // === findAllReferences === // === /findAllRefsEnumMember.ts === - // enum E { [|A|], B } // const e: E./*FIND ALL REFS*/[|A|] = E.[|A|]; - // === findAllReferences === // === /findAllRefsEnumMember.ts === - // enum E { [|A|], B } -// const e: E.A = E./*FIND ALL REFS*/[|A|] = E.[|A|]; +// const e: E.A = E./*FIND ALL REFS*/[|A|] = E.[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc index 1906e220e3..e745202e15 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportConstEqualToClass.baseline.jsonc @@ -1,24 +1,17 @@ // === findAllReferences === // === /a.ts === - // class C {} // export const /*FIND ALL REFS*/[|D|] = C; - // === /b.ts === - // import { [|D|] } from "./a"; - // === findAllReferences === // === /a.ts === - // class C {} // export const [|D|] = C; - // === /b.ts === - -// import { /*FIND ALL REFS*/[|D|] } from "./a"; +// import { /*FIND ALL REFS*/[|D|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc index 1224d18ddc..af95e7e1a7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportDefaultClassConstructor.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsExportDefaultClassConstructor.ts === - // export default class { // /*FIND ALL REFS*/constructor() {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc index 07693d564c..3341d80afa 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsExportNotAtTopLevel.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsExportNotAtTopLevel.ts === - // { // /*FIND ALL REFS*/export const x = 0; // x; @@ -8,10 +7,8 @@ - // === findAllReferences === // === /findAllRefsExportNotAtTopLevel.ts === - // { // export const /*FIND ALL REFS*/[|x|] = 0; // [|x|]; @@ -19,11 +16,9 @@ - // === findAllReferences === // === /findAllRefsExportNotAtTopLevel.ts === - // { // export const [|x|] = 0; // /*FIND ALL REFS*/[|x|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc index 8781689e20..11fe2e4161 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForComputedProperties.ts === - // interface I { // ["/*FIND ALL REFS*/[|prop1|]"]: () => void; // } @@ -15,10 +14,8 @@ - // === findAllReferences === // === /findAllRefsForComputedProperties.ts === - // interface I { // ["[|prop1|]"]: () => void; // } @@ -33,10 +30,8 @@ - // === findAllReferences === // === /findAllRefsForComputedProperties.ts === - // interface I { // ["[|prop1|]"]: () => void; // } @@ -47,4 +42,4 @@ // // var x: I = { // ["/*FIND ALL REFS*/[|prop1|]"]: function () { }, -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc index fb96b320e0..4f276e9251 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForComputedProperties2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForComputedProperties2.ts === - // interface I { // [/*FIND ALL REFS*/[|42|]](): void; // } @@ -15,10 +14,8 @@ - // === findAllReferences === // === /findAllRefsForComputedProperties2.ts === - // interface I { // [[|42|]](): void; // } @@ -33,10 +30,8 @@ - // === findAllReferences === // === /findAllRefsForComputedProperties2.ts === - // interface I { // [[|42|]](): void; // } @@ -47,4 +42,4 @@ // // var x: I = { // ["/*FIND ALL REFS*/[|42|]"]: function () { } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc index ecd32ba103..0c7e30155f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport.baseline.jsonc @@ -1,19 +1,14 @@ // === findAllReferences === // === /a.ts === - // export default function /*FIND ALL REFS*/[|f|]() {} - // === /b.ts === - // import [|g|] from "./a"; // [|g|](); - // === findAllReferences === // === /b.ts === - // import /*FIND ALL REFS*/[|g|] from "./a"; -// [|g|](); +// [|g|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc index b274338afa..a7e3cdedf6 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport01.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForDefaultExport01.ts === - // /*FIND ALL REFS*/export default class DefaultExportedClass { // } // @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport01.ts === - // export default class /*FIND ALL REFS*/[|DefaultExportedClass|] { // } // @@ -23,10 +20,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport01.ts === - // export default class [|DefaultExportedClass|] { // } // @@ -36,13 +31,11 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport01.ts === - // export default class [|DefaultExportedClass|] { // } // // var x: [|DefaultExportedClass|]; // -// var y = new /*FIND ALL REFS*/[|DefaultExportedClass|]; +// var y = new /*FIND ALL REFS*/[|DefaultExportedClass|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc index ed7329e7d8..00007d570f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport02.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForDefaultExport02.ts === - // /*FIND ALL REFS*/export default function DefaultExportedFunction() { // return DefaultExportedFunction; // } @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport02.ts === - // export default function /*FIND ALL REFS*/[|DefaultExportedFunction|]() { // return [|DefaultExportedFunction|]; // } @@ -26,10 +23,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport02.ts === - // export default function [|DefaultExportedFunction|]() { // return /*FIND ALL REFS*/[|DefaultExportedFunction|]; // } @@ -43,10 +38,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport02.ts === - // export default function [|DefaultExportedFunction|]() { // return [|DefaultExportedFunction|]; // } @@ -60,10 +53,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport02.ts === - // export default function [|DefaultExportedFunction|]() { // return [|DefaultExportedFunction|]; // } @@ -77,10 +68,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport02.ts === - // --- (line: 5) skipped --- // // var y = DefaultExportedFunction(); @@ -90,13 +79,11 @@ - // === findAllReferences === // === /findAllRefsForDefaultExport02.ts === - // --- (line: 5) skipped --- // // var y = DefaultExportedFunction(); // // namespace /*FIND ALL REFS*/[|DefaultExportedFunction|] { -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc index 4d11cf46ab..a5fd072cef 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport04.baseline.jsonc @@ -1,53 +1,40 @@ // === findAllReferences === // === /a.ts === - // const /*FIND ALL REFS*/[|a|] = 0; // export default [|a|]; - // === /b.ts === - // import [|a|] from "./a"; // [|a|]; - // === findAllReferences === // === /a.ts === - // const [|a|] = 0; // export default /*FIND ALL REFS*/[|a|]; - // === /b.ts === - // import [|a|] from "./a"; // [|a|]; - // === findAllReferences === // === /a.ts === - // const a = 0; // export /*FIND ALL REFS*/default a; - // === findAllReferences === // === /b.ts === - // import /*FIND ALL REFS*/[|a|] from "./a"; // [|a|]; - // === findAllReferences === // === /b.ts === - // import [|a|] from "./a"; -// /*FIND ALL REFS*/[|a|]; +// /*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc index cf193dcabd..5a1931dc42 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport09.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /foo.ts === - // import * as /*FIND ALL REFS*/[|a|] from "./a.js" // import aDefault from "./a.js" // import * as b from "./b.js" @@ -9,10 +8,8 @@ - // === findAllReferences === // === /foo.ts === - // import * as a from "./a.js" // import /*FIND ALL REFS*/[|aDefault|] from "./a.js" // import * as b from "./b.js" @@ -22,10 +19,8 @@ - // === findAllReferences === // === /foo.ts === - // import * as a from "./a.js" // import aDefault from "./a.js" // import * as /*FIND ALL REFS*/[|b|] from "./b.js" @@ -36,10 +31,8 @@ - // === findAllReferences === // === /foo.ts === - // import * as a from "./a.js" // import aDefault from "./a.js" // import * as b from "./b.js" @@ -52,10 +45,8 @@ - // === findAllReferences === // === /foo.ts === - // import * as a from "./a.js" // import aDefault from "./a.js" // import * as b from "./b.js" @@ -68,10 +59,8 @@ - // === findAllReferences === // === /foo.ts === - // --- (line: 3) skipped --- // import bDefault from "./b.js" // @@ -82,10 +71,8 @@ - // === findAllReferences === // === /foo.ts === - // --- (line: 4) skipped --- // // import * as c from "./c" @@ -95,12 +82,10 @@ - // === findAllReferences === // === /foo.ts === - // --- (line: 5) skipped --- // import * as c from "./c" // import cDefault from "./c" // import * as d from "./d" -// import /*FIND ALL REFS*/[|dDefault|] from "./d" +// import /*FIND ALL REFS*/[|dDefault|] from "./d" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc index fd5bfc031a..5f0ee63378 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_anonymous.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /a.ts === - -// export /*FIND ALL REFS*/default 1; +// export /*FIND ALL REFS*/default 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc index 31a04e0e06..c6e337ef4b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultExport_reExport.baseline.jsonc @@ -1,30 +1,23 @@ // === findAllReferences === // === /export.ts === - // const /*FIND ALL REFS*/[|foo|] = 1; // export default [|foo|]; - // === findAllReferences === // === /export.ts === - // const [|foo|] = 1; // export default /*FIND ALL REFS*/[|foo|]; - // === findAllReferences === // === /re-export.ts === - // export { /*FIND ALL REFS*/default } from "./export"; - // === findAllReferences === // === /re-export-dep.ts === - -// import /*FIND ALL REFS*/[|fooDefault|] from "./re-export"; +// import /*FIND ALL REFS*/[|fooDefault|] from "./re-export"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc index 849fd109f3..c4f30551ac 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForDefaultKeyword.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForDefaultKeyword.ts === - // function f(value: string, /*FIND ALL REFS*/default: string) {} // // const default = 1; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultKeyword.ts === - // function f(value: string, default: string) {} // // const /*FIND ALL REFS*/default = 1; @@ -23,10 +20,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultKeyword.ts === - // function f(value: string, default: string) {} // // const default = 1; @@ -39,10 +34,8 @@ - // === findAllReferences === // === /findAllRefsForDefaultKeyword.ts === - // --- (line: 3) skipped --- // // function default() {} @@ -55,13 +48,11 @@ - // === findAllReferences === // === /findAllRefsForDefaultKeyword.ts === - // --- (line: 6) skipped --- // class default {} // // const foo = { // /*FIND ALL REFS*/[|default|]: 1 -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc index 5420705574..f4a1f032b8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc @@ -1,66 +1,53 @@ // === findAllReferences === // === /file1.ts === - // var foo = /*FIND ALL REFS*/function foo(a = foo(), b = () => foo) { // foo(foo, foo); // } - // === findAllReferences === // === /file1.ts === - // var foo = function /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { // [|foo|]([|foo|], [|foo|]); // } - // === findAllReferences === // === /file1.ts === - // var foo = function foo(a = /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { // [|foo|]([|foo|], [|foo|]); // } - // === findAllReferences === // === /file1.ts === - // var foo = function foo(a = foo(), b = () => /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { // [|foo|]([|foo|], [|foo|]); // } - // === findAllReferences === // === /file1.ts === - // var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { // /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); // } - // === findAllReferences === // === /file1.ts === - // var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { // foo(/*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); // } - // === findAllReferences === // === /file1.ts === - // var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { // foo(foo, /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc index 373d783fab..3ba49d29d0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc @@ -1,17 +1,12 @@ // === findAllReferences === // === /app.ts === - // export function he/*FIND ALL REFS*/[|hello|]() {}; - // === /direct-use.ts === - // async function main() { // const mod = await import("./app") // mod.[|hello|](); // } - // === /indirect-use.ts === - -// import("./re-export").then(mod => mod.services.app.[|hello|]()); +// import("./re-export").then(mod => mod.services.app.[|hello|]()); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc index 736676b75a..66215f9a87 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc @@ -1,11 +1,8 @@ // === findAllReferences === // === /app.ts === - // export function he/*FIND ALL REFS*/[|hello|]() {}; - // === /indirect-use.ts === - // import type { app } from "./re-export"; // declare const app: app -// app.[|hello|](); +// app.[|hello|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc index c4956c8440..3004bf50f2 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForMappedType.baseline.jsonc @@ -1,8 +1,7 @@ // === findAllReferences === // === /findAllRefsForMappedType.ts === - // interface T { /*FIND ALL REFS*/[|a|]: number }; // type U = { [K in keyof T]: string }; // type V = { [K in keyof U]: boolean }; // const u: U = { [|a|]: "" } -// const v: V = { [|a|]: true } +// const v: V = { [|a|]: true } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc index 19cd8bb48d..0ee98f9be7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectLiteralProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForObjectLiteralProperties.ts === - // var x = { // /*FIND ALL REFS*/[|property|]: {} // }; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /findAllRefsForObjectLiteralProperties.ts === - // var x = { // [|property|]: {} // }; @@ -25,10 +22,8 @@ - // === findAllReferences === // === /findAllRefsForObjectLiteralProperties.ts === - // --- (line: 3) skipped --- // // x.property; @@ -37,14 +32,12 @@ - // === findAllReferences === // === /findAllRefsForObjectLiteralProperties.ts === - // var x = { // [|property|]: {} // }; // // x.[|property|]; // -// let {/*FIND ALL REFS*/[|property|]: pVar} = x; +// let {/*FIND ALL REFS*/[|property|]: pVar} = x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc index 7ed09580c9..89ba3ee24a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForObjectSpread.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForObjectSpread.ts === - // interface A1 { readonly /*FIND ALL REFS*/[|a|]: string }; // interface A2 { a?: number }; // let a1: A1; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /findAllRefsForObjectSpread.ts === - // interface A1 { readonly a: string }; // interface A2 { /*FIND ALL REFS*/[|a|]?: number }; // let a1: A1; @@ -25,10 +22,8 @@ - // === findAllReferences === // === /findAllRefsForObjectSpread.ts === - // interface A1 { readonly [|a|]: string }; // interface A2 { [|a|]?: number }; // let a1: A1; @@ -39,14 +34,12 @@ - // === findAllReferences === // === /findAllRefsForObjectSpread.ts === - // interface A1 { readonly [|a|]: string }; // interface A2 { a?: number }; // let a1: A1; // let a2: A2; // let a12 = { ...a1, ...a2 }; // a12.[|a|]; -// a1./*FIND ALL REFS*/[|a|]; +// a1./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc index 7eaac036a6..fa428c7a86 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForRest.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForRest.ts === - // interface Gen { // x: number // /*FIND ALL REFS*/[|parent|]: Gen; @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsForRest.ts === - // interface Gen { // x: number // [|parent|]: Gen; @@ -23,4 +20,4 @@ // } // let t: Gen; // var { x, ...rest } = t; -// rest./*FIND ALL REFS*/[|parent|]; +// rest./*FIND ALL REFS*/[|parent|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc index fbdf8be2bb..872fa19d94 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForStaticInstanceMethodInheritance.ts === - // class X{ // /*FIND ALL REFS*/[|foo|](): void{} // } @@ -25,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstanceMethodInheritance.ts === - // class X{ // foo(): void{} // } @@ -40,7 +37,6 @@ // class Z extends Y{ // // --- (line: 10) skipped --- - // --- (line: 16) skipped --- // x.foo(); // y.foo(); @@ -50,10 +46,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstanceMethodInheritance.ts === - // --- (line: 6) skipped --- // } // @@ -64,7 +58,6 @@ // // // --- (line: 14) skipped --- - // --- (line: 17) skipped --- // y.foo(); // z.foo(); @@ -73,10 +66,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstanceMethodInheritance.ts === - // class X{ // [|foo|](): void{} // } @@ -97,4 +88,4 @@ // y.[|foo|](); // z.[|foo|](); // Y.foo(); -// Z.foo(); +// Z.foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc index 765d864857..ef28551cd5 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ // /*FIND ALL REFS*/[|foo|]:any // } @@ -25,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ // foo:any // } @@ -40,7 +37,6 @@ // class Z extends Y{ // // --- (line: 10) skipped --- - // --- (line: 16) skipped --- // x.foo; // y.foo; @@ -50,10 +46,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // --- (line: 6) skipped --- // } // @@ -64,7 +58,6 @@ // // // --- (line: 14) skipped --- - // --- (line: 17) skipped --- // y.foo; // z.foo; @@ -73,10 +66,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ // [|foo|]:any // } @@ -101,10 +92,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ // [|foo|]:any // } @@ -129,10 +118,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ // [|foo|]:any // } @@ -157,10 +144,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ // [|foo|]:any // } @@ -185,10 +170,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ // foo:any // } @@ -200,7 +183,6 @@ // class Z extends Y{ // // --- (line: 10) skipped --- - // --- (line: 16) skipped --- // x.foo; // y.foo; @@ -210,10 +192,8 @@ - // === findAllReferences === // === /findAllRefsForStaticInstancePropertyInheritance.ts === - // --- (line: 6) skipped --- // } // @@ -224,9 +204,8 @@ // // // --- (line: 14) skipped --- - // --- (line: 17) skipped --- // y.foo; // z.foo; // Y.foo; -// Z./*FIND ALL REFS*/[|foo|]; +// Z./*FIND ALL REFS*/[|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc index 7e9203009f..25e25f788a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteral.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /a.ts === - // interface Foo { // property: /*FIND ALL REFS*/"foo"; // } // /** // * @type {{ property: "foo"}} -// // --- (line: 6) skipped --- +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc index a6f57497f3..761c82bd75 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForStringLiteralTypes.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /findAllRefsForStringLiteralTypes.ts === - // type Options = "/*FIND ALL REFS*/option 1" | "option 2"; // let myOption: Options = "option 1"; - // === findAllReferences === // === /findAllRefsForStringLiteralTypes.ts === - // type Options = "option 1" | "option 2"; -// let myOption: Options = "/*FIND ALL REFS*/option 1"; +// let myOption: Options = "/*FIND ALL REFS*/option 1"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc index b9127b4a45..544b2dd589 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForUMDModuleAlias1.baseline.jsonc @@ -1,38 +1,29 @@ // === findAllReferences === // === /0.d.ts === - // export function doThing(): string; // export function doTheOtherThing(): void; // /*FIND ALL REFS*/export as namespace myLib; - // === findAllReferences === // === /0.d.ts === - // export function doThing(): string; // export function doTheOtherThing(): void; // export as namespace /*FIND ALL REFS*/[|myLib|]; - // === /1.ts === - // /// // [|myLib|].doThing(); - // === findAllReferences === // === /0.d.ts === - // export function doThing(): string; // export function doTheOtherThing(): void; // export as namespace [|myLib|]; - // === /1.ts === - // /// -// /*FIND ALL REFS*/[|myLib|].doThing(); +// /*FIND ALL REFS*/[|myLib|].doThing(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc index 2f1a4b5681..e63980b63d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause01.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /findAllRefsForVariableInExtendsClause01.ts === - // /*FIND ALL REFS*/var Base = class { }; // class C extends Base { } - // === findAllReferences === // === /findAllRefsForVariableInExtendsClause01.ts === - // var /*FIND ALL REFS*/[|Base|] = class { }; // class C extends [|Base|] { } - // === findAllReferences === // === /findAllRefsForVariableInExtendsClause01.ts === - // var [|Base|] = class { }; -// class C extends /*FIND ALL REFS*/[|Base|] { } +// class C extends /*FIND ALL REFS*/[|Base|] { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc index a7f6d381da..635f9d38cb 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInExtendsClause02.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsForVariableInExtendsClause02.ts === - // /*FIND ALL REFS*/interface Base { } // namespace n { // var Base = class { }; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findAllRefsForVariableInExtendsClause02.ts === - // interface /*FIND ALL REFS*/[|Base|] { } // namespace n { // var Base = class { }; @@ -21,12 +18,10 @@ - // === findAllReferences === // === /findAllRefsForVariableInExtendsClause02.ts === - // interface [|Base|] { } // namespace n { // var Base = class { }; // interface I extends /*FIND ALL REFS*/[|Base|] { } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc index 3662b40351..87c2ca3367 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForVariableInImplementsClause01.baseline.jsonc @@ -1,5 +1,4 @@ // === findAllReferences === // === /findAllRefsForVariableInImplementsClause01.ts === - // var Base = class { }; -// class C extends Base implements /*FIND ALL REFS*/Base { } +// class C extends Base implements /*FIND ALL REFS*/Base { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc index 2dcc039a4e..6cdbc9c1bc 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsGlobalThisKeywordInModule.baseline.jsonc @@ -1,5 +1,4 @@ // === findAllReferences === // === /findAllRefsGlobalThisKeywordInModule.ts === - // /*FIND ALL REFS*/this; -// export const c = 1; +// export const c = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc index 3de6dcb22e..d1ae3b9984 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportEquals.baseline.jsonc @@ -1,5 +1,4 @@ // === findAllReferences === // === /findAllRefsImportEquals.ts === - // import j = N./*FIND ALL REFS*/[|q|]; -// namespace N { export const q = 0; } +// namespace N { export const q = 0; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc index f497fcf9bd..d7491ce03c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsImportType.baseline.jsonc @@ -1,27 +1,20 @@ // === findAllReferences === // === /a.js === - // module.exports = 0; // /*FIND ALL REFS*/export type N = number; - // === findAllReferences === // === /a.js === - // module.exports = 0; // export type /*FIND ALL REFS*/[|N|] = number; - // === /b.js === - // type T = import("./a").[|N|]; - // === findAllReferences === // === /b.js === - -// type T = import("./a")./*FIND ALL REFS*/N; +// type T = import("./a")./*FIND ALL REFS*/N; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc index ac58d2b7a8..1b7957d5e9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInClassExpression.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsInClassExpression.ts === - // interface I { /*FIND ALL REFS*/[|boom|](): void; } // new class C implements I { // [|boom|](){} @@ -8,11 +7,9 @@ - // === findAllReferences === // === /findAllRefsInClassExpression.ts === - // interface I { [|boom|](): void; } // new class C implements I { // /*FIND ALL REFS*/[|boom|](){} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc index 2dad9f1fee..d725fe036e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIndexedAccessTypes.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsIndexedAccessTypes.ts === - // interface I { // /*FIND ALL REFS*/[|0|]: number; // s: string; @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsIndexedAccessTypes.ts === - // interface I { // 0: number; // /*FIND ALL REFS*/[|s|]: string; @@ -27,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsIndexedAccessTypes.ts === - // interface I { // [|0|]: number; // s: string; @@ -42,10 +37,8 @@ - // === findAllReferences === // === /findAllRefsIndexedAccessTypes.ts === - // interface I { // 0: number; // [|s|]: string; @@ -53,4 +46,4 @@ // interface J { // a: I[0], // b: I["/*FIND ALL REFS*/[|s|]"], -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc index 012aff5696..785fffc0b1 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties1.baseline.jsonc @@ -1,56 +1,49 @@ // === findAllReferences === // === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } // -// var v: class1; -// v.[|doStuff|](); -// v.propName; - +// var v: class1; +// v.[|doStuff|](); +// v.propName; // === findAllReferences === // === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } // -// var v: class1; -// v.doStuff(); -// v.[|propName|]; - +// var v: class1; +// v.doStuff(); +// v.[|propName|]; // === findAllReferences === // === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } // -// var v: class1; -// v./*FIND ALL REFS*/[|doStuff|](); -// v.propName; - +// var v: class1; +// v./*FIND ALL REFS*/[|doStuff|](); +// v.propName; // === findAllReferences === // === /findAllRefsInheritedProperties1.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } // -// var v: class1; -// v.doStuff(); -// v./*FIND ALL REFS*/[|propName|]; +// var v: class1; +// v.doStuff(); +// v./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc index 2d8796609a..e97abb0aa8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties2.baseline.jsonc @@ -1,56 +1,49 @@ // === findAllReferences === // === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; // r0 -// propName: string; // r1 -// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; // r0 +// propName: string; // r1 +// } // -// var v: interface1; -// v.[|doStuff|](); // r2 -// v.propName; // r3 - +// var v: interface1; +// v.[|doStuff|](); // r2 +// v.propName; // r3 // === findAllReferences === // === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; // r0 -// /*FIND ALL REFS*/[|propName|]: string; // r1 -// } +// interface interface1 extends interface1 { +// doStuff(): void; // r0 +// /*FIND ALL REFS*/[|propName|]: string; // r1 +// } // -// var v: interface1; -// v.doStuff(); // r2 -// v.[|propName|]; // r3 - +// var v: interface1; +// v.doStuff(); // r2 +// v.[|propName|]; // r3 // === findAllReferences === // === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// [|doStuff|](): void; // r0 -// propName: string; // r1 -// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; // r0 +// propName: string; // r1 +// } // -// var v: interface1; -// v./*FIND ALL REFS*/[|doStuff|](); // r2 -// v.propName; // r3 - +// var v: interface1; +// v./*FIND ALL REFS*/[|doStuff|](); // r2 +// v.propName; // r3 // === findAllReferences === // === /findAllRefsInheritedProperties2.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; // r0 -// [|propName|]: string; // r1 -// } +// interface interface1 extends interface1 { +// doStuff(): void; // r0 +// [|propName|]: string; // r1 +// } // -// var v: interface1; -// v.doStuff(); // r2 -// v./*FIND ALL REFS*/[|propName|]; // r3 +// var v: interface1; +// v.doStuff(); // r2 +// v./*FIND ALL REFS*/[|propName|]; // r3 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc index a95744a09a..5ea694ce25 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties3.baseline.jsonc @@ -1,178 +1,163 @@ // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } // -// var v: class2; -// v.[|doStuff|](); -// v.propName; - +// var v: class2; +// v.[|doStuff|](); +// v.propName; // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } // -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - +// var v: class2; +// v.doStuff(); +// v.[|propName|]; // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// doStuff() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } // -// var v: class2; -// v.[|doStuff|](); -// v.propName; - +// var v: class2; +// v.[|doStuff|](); +// v.propName; // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - // --- (line: 3) skipped --- -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } // -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - +// var v: class2; +// v.doStuff(); +// v.[|propName|]; // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } // -// var v: class2; -// v.[|doStuff|](); -// v.propName; - +// var v: class2; +// v.[|doStuff|](); +// v.propName; // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } // -// var v: class2; -// v./*FIND ALL REFS*/[|doStuff|](); -// v.propName; - +// var v: class2; +// v./*FIND ALL REFS*/[|doStuff|](); +// v.propName; // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } // -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - +// var v: class2; +// v.doStuff(); +// v.[|propName|]; // === findAllReferences === // === /findAllRefsInheritedProperties3.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } // -// var v: class2; -// v.doStuff(); -// v./*FIND ALL REFS*/[|propName|]; +// var v: class2; +// v.doStuff(); +// v./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc index f83b0363aa..7574b69cc6 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties4.baseline.jsonc @@ -1,79 +1,70 @@ // === findAllReferences === // === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// /*FIND ALL REFS*/[|prop0|]: string; -// prop1: number; -// } +// interface C extends D { +// /*FIND ALL REFS*/[|prop0|]: string; +// prop1: number; +// } // -// interface D extends C { -// [|prop0|]: string; -// } +// interface D extends C { +// [|prop0|]: string; +// } // -// var d: D; -// d.[|prop0|]; -// d.prop1; - +// var d: D; +// d.[|prop0|]; +// d.prop1; // === findAllReferences === // === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// [|prop0|]: string; -// prop1: number; -// } +// interface C extends D { +// [|prop0|]: string; +// prop1: number; +// } // -// interface D extends C { -// /*FIND ALL REFS*/[|prop0|]: string; -// } +// interface D extends C { +// /*FIND ALL REFS*/[|prop0|]: string; +// } // -// var d: D; -// d.[|prop0|]; -// d.prop1; - +// var d: D; +// d.[|prop0|]; +// d.prop1; // === findAllReferences === // === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// [|prop0|]: string; -// prop1: number; -// } +// interface C extends D { +// [|prop0|]: string; +// prop1: number; +// } // -// interface D extends C { -// [|prop0|]: string; -// } +// interface D extends C { +// [|prop0|]: string; +// } // -// var d: D; -// d./*FIND ALL REFS*/[|prop0|]; -// d.prop1; - +// var d: D; +// d./*FIND ALL REFS*/[|prop0|]; +// d.prop1; // === findAllReferences === // === /findAllRefsInheritedProperties4.ts === - -// interface C extends D { -// prop0: string; -// /*FIND ALL REFS*/[|prop1|]: number; -// } +// interface C extends D { +// prop0: string; +// /*FIND ALL REFS*/[|prop1|]: number; +// } // -// interface D extends C { +// interface D extends C { // // --- (line: 7) skipped --- - // === findAllReferences === // === /findAllRefsInheritedProperties4.ts === - // --- (line: 8) skipped --- // -// var d: D; -// d.prop0; -// d./*FIND ALL REFS*/prop1; +// var d: D; +// d.prop0; +// d./*FIND ALL REFS*/prop1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc index 4fe7fef95d..0e213dc93d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInheritedProperties5.baseline.jsonc @@ -1,69 +1,60 @@ // === findAllReferences === // === /findAllRefsInheritedProperties5.ts === - -// class C extends D { -// /*FIND ALL REFS*/[|prop0|]: string; -// prop1: number; -// } +// class C extends D { +// /*FIND ALL REFS*/[|prop0|]: string; +// prop1: number; +// } // // // --- (line: 6) skipped --- - // === findAllReferences === // === /findAllRefsInheritedProperties5.ts === - -// class C extends D { -// prop0: string; -// /*FIND ALL REFS*/[|prop1|]: number; -// } +// class C extends D { +// prop0: string; +// /*FIND ALL REFS*/[|prop1|]: number; +// } // -// class D extends C { +// class D extends C { // // --- (line: 7) skipped --- - // === findAllReferences === // === /findAllRefsInheritedProperties5.ts === - // --- (line: 3) skipped --- -// } +// } // -// class D extends C { -// /*FIND ALL REFS*/[|prop0|]: string; -// } +// class D extends C { +// /*FIND ALL REFS*/[|prop0|]: string; +// } // -// var d: D; -// d.[|prop0|]; -// d.prop1; - +// var d: D; +// d.[|prop0|]; +// d.prop1; // === findAllReferences === // === /findAllRefsInheritedProperties5.ts === - // --- (line: 3) skipped --- -// } +// } // -// class D extends C { -// [|prop0|]: string; -// } +// class D extends C { +// [|prop0|]: string; +// } // -// var d: D; -// d./*FIND ALL REFS*/[|prop0|]; -// d.prop1; - +// var d: D; +// d./*FIND ALL REFS*/[|prop0|]; +// d.prop1; // === findAllReferences === // === /findAllRefsInheritedProperties5.ts === - // --- (line: 8) skipped --- // -// var d: D; -// d.prop0; -// d./*FIND ALL REFS*/prop1; +// var d: D; +// d.prop0; +// d./*FIND ALL REFS*/prop1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc index 66422cec63..351879580f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc @@ -1,32 +1,25 @@ // === findAllReferences === // === /findAllRefsInsideTemplates1.ts === - // /*FIND ALL REFS*/var x = 10; // var y = `${ x } ${ x }` - // === findAllReferences === // === /findAllRefsInsideTemplates1.ts === - // var /*FIND ALL REFS*/[|x|] = 10; // var y = `${ [|x|] } ${ [|x|] }` - // === findAllReferences === // === /findAllRefsInsideTemplates1.ts === - // var [|x|] = 10; // var y = `${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` - // === findAllReferences === // === /findAllRefsInsideTemplates1.ts === - // var [|x|] = 10; -// var y = `${ x } ${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` +// var y = `${ x } ${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc index 2f308122c1..ff621fd632 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc @@ -1,41 +1,32 @@ // === findAllReferences === // === /findAllRefsInsideTemplates2.ts === - // /*FIND ALL REFS*/function f(...rest: any[]) { } // f `${ f } ${ f }` - // === findAllReferences === // === /findAllRefsInsideTemplates2.ts === - // function /*FIND ALL REFS*/[|f|](...rest: any[]) { } // [|f|] `${ [|f|] } ${ [|f|] }` - // === findAllReferences === // === /findAllRefsInsideTemplates2.ts === - // function [|f|](...rest: any[]) { } // /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` - // === findAllReferences === // === /findAllRefsInsideTemplates2.ts === - // function [|f|](...rest: any[]) { } // f `${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` - // === findAllReferences === // === /findAllRefsInsideTemplates2.ts === - // function [|f|](...rest: any[]) { } -// f `${ f } ${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` +// f `${ f } ${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc index d35e86b4d2..403ee7dd30 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsInsideWithBlock.ts === - // /*FIND ALL REFS*/var x = 0; // // with ({}) { @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findAllRefsInsideWithBlock.ts === - // var /*FIND ALL REFS*/[|x|] = 0; // // with ({}) { @@ -24,10 +21,8 @@ - // === findAllReferences === // === /findAllRefsInsideWithBlock.ts === - // var [|x|] = 0; // // with ({}) { @@ -39,10 +34,8 @@ - // === findAllReferences === // === /findAllRefsInsideWithBlock.ts === - // var [|x|] = 0; // // with ({}) { @@ -50,4 +43,4 @@ // y++; // also reference for y should be ignored // } // -// x = /*FIND ALL REFS*/[|x|] = [|x|] + 1; +// x = /*FIND ALL REFS*/[|x|] = [|x|] + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc index 640e9faa8d..9f29c973a2 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsIsDefinition.ts === - // declare function [|foo|](a: number): number; // declare function [|foo|](a: string): string; // declare function foo/*FIND ALL REFS*/[|foo|](a: string | number): string | number; @@ -19,10 +18,8 @@ - // === findAllReferences === // === /findAllRefsIsDefinition.ts === - // declare function foo(a: number): number; // declare function foo(a: string): string; // declare function foo(a: string | number): string | number; @@ -41,10 +38,8 @@ - // === findAllReferences === // === /findAllRefsIsDefinition.ts === - // --- (line: 9) skipped --- // // foo; foon; @@ -58,10 +53,8 @@ - // === findAllReferences === // === /findAllRefsIsDefinition.ts === - // --- (line: 13) skipped --- // console.log({ bar }); // @@ -78,10 +71,8 @@ - // === findAllReferences === // === /findAllRefsIsDefinition.ts === - // --- (line: 15) skipped --- // interface IFoo { // foo(): void; @@ -96,10 +87,8 @@ - // === findAllReferences === // === /findAllRefsIsDefinition.ts === - // --- (line: 13) skipped --- // console.log({ bar }); // @@ -112,4 +101,4 @@ // constructor(n: number?) { } // foo/*FIND ALL REFS*/[|foo|](): void { } // static init() { return new this() } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc index 194115ed98..e10a8c56cd 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // /** // * @import { A } from "./b"; // */ @@ -8,4 +7,4 @@ // /** // * @param { A/*FIND ALL REFS*/[|A|] } a // */ -// function f(a) {} +// function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc index a2ec533fb8..6368e68f5d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc @@ -1,15 +1,12 @@ // === findAllReferences === // === /component.js === - // export default class [|Component|] { // constructor() { // this.id_ = Math.random(); // } // // --- (line: 5) skipped --- - // === /player.js === - // import [|Component|] from './component.js'; // // /** @@ -17,9 +14,7 @@ // */ // export class Player extends [|Component|] {} - // === /spatial-navigation.js === - // /** @import Component from './component.js' */ // // export class SpatialNavigation { @@ -27,4 +22,4 @@ // * @param {[|Component|]} component // */ // add(component) {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc index 7ad3975207..5fdddf1010 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc @@ -1,15 +1,12 @@ // === findAllReferences === // === /component.js === - // export class [|Component|] { // constructor() { // this.id_ = Math.random(); // } // // --- (line: 5) skipped --- - // === /player.js === - // import { [|Component|] } from './component.js'; // // /** @@ -17,9 +14,7 @@ // */ // export class Player extends [|Component|] {} - // === /spatial-navigation.js === - // /** @import { Component } from './component.js' */ // // export class SpatialNavigation { @@ -27,4 +22,4 @@ // * @param {[|Component|]} component // */ // add(component) {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc index b5667df472..800ef0d1ad 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /player.js === - // import * as [|C|] from './component.js'; // // /** // * @extends C/*FIND ALL REFS*/[|C|].Component // */ -// export class Player extends Component {} +// export class Player extends Component {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc index a0f27113d0..7b0e78c80a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag5.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /a.js === - // export default function /*FIND ALL REFS*/[|a|]() {} - // === findAllReferences === // === /b.js === - -// /** @import /*FIND ALL REFS*/a, * as ns from "./a" */ +// /** @import /*FIND ALL REFS*/a, * as ns from "./a" */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc index bd853462b7..587b5c0e14 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_class.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /findAllRefsJsDocTemplateTag_class.ts === - // /** @template /*FIND ALL REFS*/T */ // class C {} - // === findAllReferences === // === /findAllRefsJsDocTemplateTag_class.ts === - // /** @template T */ -// class C {} +// class C {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc index 6ce6028fed..132af93f79 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTemplateTag_function.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /findAllRefsJsDocTemplateTag_function.ts === - // /** @template /*FIND ALL REFS*/T */ // function f() {} - // === findAllReferences === // === /findAllRefsJsDocTemplateTag_function.ts === - // /** @template T */ -// function f() {} +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc index 293f64aee6..7abed0e240 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocTypeDef.baseline.jsonc @@ -1,5 +1,4 @@ // === findAllReferences === // === /findAllRefsJsDocTypeDef.ts === - // /** @typedef {Object} /*FIND ALL REFS*/T */ -// function foo() {} +// function foo() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc index 44c5225d74..10c5f56ae9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // import { infer } from "./infer"; // infer({ // m() { @@ -9,17 +8,13 @@ // }, // }); - // === /infer.d.ts === - // export declare function infer(o: { m(): void } & ThisType<{ [|x|]: number }>): void; - // === findAllReferences === // === /b.js === - // --- (line: 4) skipped --- // function infer(o) {} // infer({ @@ -27,4 +22,4 @@ // this.[|x|] = 2; // this./*FIND ALL REFS*/[|x|]; // }, -// }); +// }); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc index 91781f1b5b..031de898a8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsThisPropertyAssignment2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // import { infer } from "./infer"; // infer({ // m: { @@ -11,9 +10,7 @@ // } // }); - // === /b.ts === - // import { infer } from "./infer"; // infer({ // m: { @@ -24,17 +21,13 @@ // } // }); - // === /infer.d.ts === - // export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; - // === findAllReferences === // === /a.js === - // import { infer } from "./infer"; // infer({ // m: { @@ -45,9 +38,7 @@ // } // }); - // === /b.ts === - // import { infer } from "./infer"; // infer({ // m: { @@ -58,7 +49,5 @@ // } // }); - // === /infer.d.ts === - -// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; +// export declare function infer(o: { m: Record } & ThisType<{ [|x|]: number }>): void; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc index 595ca19d09..87daf167b0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsMappedType.ts === - // interface T { /*FIND ALL REFS*/[|a|]: number; } // type U = { readonly [K in keyof T]?: string }; // declare const t: T; @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsMappedType.ts === - // interface T { [|a|]: number; } // type U = { readonly [K in keyof T]?: string }; // declare const t: T; @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllRefsMappedType.ts === - // interface T { [|a|]: number; } // type U = { readonly [K in keyof T]?: string }; // declare const t: T; // t.[|a|]; // declare const u: U; -// u./*FIND ALL REFS*/[|a|]; +// u./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc index a424fcaed1..fbc0d6c2b1 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMappedType_nonHomomorphic.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsMappedType_nonHomomorphic.ts === - // function f(x: { [K in "m"]: number; }) { // x./*FIND ALL REFS*/[|m|]; // x.[|m|] @@ -8,11 +7,9 @@ - // === findAllReferences === // === /findAllRefsMappedType_nonHomomorphic.ts === - // function f(x: { [K in "m"]: number; }) { // x.[|m|]; // x./*FIND ALL REFS*/[|m|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc index 3084b91d0c..cbfbbebc38 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc @@ -1,16 +1,13 @@ // === findAllReferences === // === /findAllRefsMissingModulesOverlappingSpecifiers.ts === - // // https://github.com/microsoft/TypeScript/issues/5551 // import { resolve/*FIND ALL REFS*/ as resolveUrl } from "idontcare"; // import { resolve } from "whatever"; - // === findAllReferences === // === /findAllRefsMissingModulesOverlappingSpecifiers.ts === - // // https://github.com/microsoft/TypeScript/issues/5551 // import { resolve as resolveUrl } from "idontcare"; -// import { resolve/*FIND ALL REFS*/[|resolve|] } from "whatever"; +// import { resolve/*FIND ALL REFS*/[|resolve|] } from "whatever"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc index aca1027ca4..7538271b44 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoImportClause.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/export const x = 0; - // === findAllReferences === // === /a.ts === - -// export const /*FIND ALL REFS*/[|x|] = 0; +// export const /*FIND ALL REFS*/[|x|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc index 68196163ac..f475c56be3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNoSubstitutionTemplateLiteralNoCrash1.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /findAllRefsNoSubstitutionTemplateLiteralNoCrash1.ts === - -// type Test = `T/*FIND ALL REFS*/`; +// type Test = `T/*FIND ALL REFS*/`; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc index d0673c78f8..851c5ebc14 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonModule.baseline.jsonc @@ -1,22 +1,17 @@ // === findAllReferences === // === /import.ts === - // import "./script/*FIND ALL REFS*/"; - // === findAllReferences === // === /require.js === - // require("./script/*FIND ALL REFS*/"); // console.log("./script"); - // === findAllReferences === // === /require.js === - // require("./script"); -// console.log("./script/*FIND ALL REFS*/"); +// console.log("./script/*FIND ALL REFS*/"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc index 6557f2d5a6..effe8abd26 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsNonexistentPropertyNoCrash1.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /src/parser.js === - // --- (line: 10) skipped --- // variable: function () { // let name; @@ -9,4 +8,4 @@ // return name[1]; // } // }, -// // --- (line: 18) skipped --- +// // --- (line: 18) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc index 1b331d7fc8..88473b4793 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName01.ts === - // interface I { // /*FIND ALL REFS*/[|property1|]: number; // property2: string; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName01.ts === - // --- (line: 3) skipped --- // } // @@ -23,14 +20,12 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName01.ts === - // interface I { // [|property1|]: number; // property2: string; // } // // var foo: I; -// var { /*FIND ALL REFS*/[|property1|]: prop1 } = foo; +// var { /*FIND ALL REFS*/[|property1|]: prop1 } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc index 6407c6031f..a20ffda8ca 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName02.ts === - // interface I { // /*FIND ALL REFS*/[|property1|]: number; // property2: string; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName02.ts === - // --- (line: 3) skipped --- // } // @@ -23,14 +20,12 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName02.ts === - // interface I { // [|property1|]: number; // property2: string; // } // // var foo: I; -// var { /*FIND ALL REFS*/[|property1|]: {} } = foo; +// var { /*FIND ALL REFS*/[|property1|]: {} } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc index 693b834f7f..62a83c34a5 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName03.ts === - // interface I { // /*FIND ALL REFS*/[|property1|]: number; // property2: string; @@ -11,14 +10,12 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName03.ts === - // interface I { // [|property1|]: number; // property2: string; // } // // var foo: I; -// var [ { property1: prop1 }, { /*FIND ALL REFS*/[|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; +// var [ { property1: prop1 }, { /*FIND ALL REFS*/[|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc index 915b803c98..8a01daa2da 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName04.ts === - // interface I { // /*FIND ALL REFS*/[|property1|]: number; // property2: string; @@ -15,10 +14,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName04.ts === - // interface I { // [|property1|]: number; // property2: string; @@ -33,10 +30,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName04.ts === - // interface I { // [|property1|]: number; // property2: string; @@ -51,10 +46,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName04.ts === - // --- (line: 3) skipped --- // } // @@ -63,4 +56,4 @@ // { property1: p2 }) { // // return /*FIND ALL REFS*/[|property1|] + 1; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc index 3978cfa9f9..fc60af735d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName05.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName05.ts === - // interface I { // property1: number; // property2: string; @@ -8,4 +7,4 @@ // // function f({ /*FIND ALL REFS*/property1: p }, { property1 }) { // let x = property1; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc index 8e498e58b7..bb0311f6e4 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName06.ts === - // interface I { // /*FIND ALL REFS*/[|property1|]: number; // property2: string; @@ -19,10 +18,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName06.ts === - // interface I { // [|property1|]: number; // property2: string; @@ -41,10 +38,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName06.ts === - // interface I { // [|property1|]: number; // property2: string; @@ -63,10 +58,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName06.ts === - // interface I { // [|property1|]: number; // property2: string; @@ -85,10 +78,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName06.ts === - // interface I { // [|property1|]: number; // property2: string; @@ -103,4 +94,4 @@ // } // var p2; // for ({ [|property1|] : p2 } of elems) { -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc index 1a23173a81..46279d6946 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName07.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName07.ts === - // let p, b; // -// p, [{ /*FIND ALL REFS*/[|a|]: p, b }] = [{ [|a|]: 10, b: true }]; +// p, [{ /*FIND ALL REFS*/[|a|]: p, b }] = [{ [|a|]: 10, b: true }]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc index 8e72d7afce..560df119a7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName10.ts === - // interface Recursive { // /*FIND ALL REFS*/[|next|]?: Recursive; // value: any; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName10.ts === - // interface Recursive { // next?: Recursive; // value: any; @@ -25,10 +22,8 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName10.ts === - // interface Recursive { // [|next|]?: Recursive; // value: any; @@ -39,14 +34,12 @@ - // === findAllReferences === // === /findAllRefsObjectBindingElementPropertyName10.ts === - // interface Recursive { // [|next|]?: Recursive; // value: any; // } // // function f ({ next: { /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc index 79cc67c300..109ee85c9a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOfConstructor_withModifier.baseline.jsonc @@ -1,7 +1,6 @@ // === findAllReferences === // === /findAllRefsOfConstructor_withModifier.ts === - // class [|X|] { // public /*FIND ALL REFS*/constructor() {} // } -// var x = new [|X|](); +// var x = new [|X|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc index 0ed9171424..2d5c4457c8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/function decorator(target) { // return target; // } @@ -8,18 +7,14 @@ - // === findAllReferences === // === /a.ts === - // function /*FIND ALL REFS*/[|decorator|](target) { // return target; // } // [|decorator|](); - // === /b.ts === - // @[|decorator|] @[|decorator|]("again") // class C { // @[|decorator|] @@ -28,18 +23,14 @@ - // === findAllReferences === // === /a.ts === - // function [|decorator|](target) { // return target; // } // /*FIND ALL REFS*/[|decorator|](); - // === /b.ts === - // @[|decorator|] @[|decorator|]("again") // class C { // @[|decorator|] @@ -48,18 +39,14 @@ - // === findAllReferences === // === /a.ts === - // function [|decorator|](target) { // return target; // } // [|decorator|](); - // === /b.ts === - // @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") // class C { // @[|decorator|] @@ -68,18 +55,14 @@ - // === findAllReferences === // === /a.ts === - // function [|decorator|](target) { // return target; // } // [|decorator|](); - // === /b.ts === - // @decorator @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") // class C { // @[|decorator|] @@ -88,20 +71,16 @@ - // === findAllReferences === // === /a.ts === - // function [|decorator|](target) { // return target; // } // [|decorator|](); - // === /b.ts === - // @[|decorator|] @[|decorator|]("again") // class C { // @/*FIND ALL REFS*/[|decorator|] // method() {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc index 483317456a..c27ee5460e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsOnDefinition-import.ts === - // --- (line: 3) skipped --- // // } @@ -13,10 +12,8 @@ - // === findAllReferences === // === /findAllRefsOnDefinition-import.ts === - // --- (line: 3) skipped --- // // } @@ -27,9 +24,7 @@ // // // --- (line: 11) skipped --- - // === /findAllRefsOnDefinition.ts === - // import Second = require("./findAllRefsOnDefinition-import"); // // var second = new Second.Test() @@ -38,10 +33,8 @@ - // === findAllReferences === // === /findAllRefsOnDefinition-import.ts === - // --- (line: 3) skipped --- // // } @@ -52,11 +45,9 @@ // // // --- (line: 11) skipped --- - // === /findAllRefsOnDefinition.ts === - // import Second = require("./findAllRefsOnDefinition-import"); // // var second = new Second.Test() // second./*FIND ALL REFS*/[|start|](); -// second.stop(); +// second.stop(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc index b8e8d6fe68..97030d14d0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDefinition2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsOnDefinition2-import.ts === - // export module Test{ // // /*FIND ALL REFS*/export interface start { } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsOnDefinition2-import.ts === - // export module Test{ // // export interface /*FIND ALL REFS*/[|start|] { } @@ -21,9 +18,7 @@ // export interface stop { } // } - // === /findAllRefsOnDefinition2.ts === - // import Second = require("./findAllRefsOnDefinition2-import"); // // var start: Second.Test.[|start|]; @@ -31,10 +26,8 @@ - // === findAllReferences === // === /findAllRefsOnDefinition2-import.ts === - // export module Test{ // // export interface [|start|] { } @@ -42,10 +35,8 @@ // export interface stop { } // } - // === /findAllRefsOnDefinition2.ts === - // import Second = require("./findAllRefsOnDefinition2-import"); // // var start: Second.Test./*FIND ALL REFS*/[|start|]; -// var stop: Second.Test.stop; +// var stop: Second.Test.stop; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc index d775aa9da9..0074e398ae 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases.baseline.jsonc @@ -1,44 +1,33 @@ // === findAllReferences === // === /a.ts === - // export class /*FIND ALL REFS*/[|Class|] { // } - // === /b.ts === - // import { [|Class|] } from "./a"; // // var c = new [|Class|](); - // === findAllReferences === // === /a.ts === - // export class [|Class|] { // } - // === /b.ts === - // import { /*FIND ALL REFS*/[|Class|] } from "./a"; // // var c = new [|Class|](); - // === findAllReferences === // === /a.ts === - // export class [|Class|] { // } - // === /b.ts === - // import { [|Class|] } from "./a"; // -// var c = new /*FIND ALL REFS*/[|Class|](); +// var c = new /*FIND ALL REFS*/[|Class|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc index 66c937b02d..78284dcace 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnImportAliases2.baseline.jsonc @@ -1,79 +1,56 @@ // === findAllReferences === // === /a.ts === - // export class /*FIND ALL REFS*/[|Class|] {} - // === /b.ts === - // import { [|Class|] as [|C2|] } from "./a"; // var c = new [|C2|](); - // === /c.ts === - // export { [|Class|] as C3 } from "./a"; - // === findAllReferences === // === /a.ts === - // export class [|Class|] {} - // === /b.ts === - // import { /*FIND ALL REFS*/[|Class|] as [|C2|] } from "./a"; // var c = new [|C2|](); - // === /c.ts === - // export { [|Class|] as C3 } from "./a"; - // === findAllReferences === // === /a.ts === - // export class [|Class|] {} - // === /b.ts === - // import { [|Class|] as [|C2|] } from "./a"; // var c = new [|C2|](); - // === /c.ts === - // export { /*FIND ALL REFS*/[|Class|] as C3 } from "./a"; - // === findAllReferences === // === /b.ts === - // import { Class as /*FIND ALL REFS*/[|C2|] } from "./a"; // var c = new [|C2|](); - // === findAllReferences === // === /b.ts === - // import { Class as [|C2|] } from "./a"; // var c = new /*FIND ALL REFS*/[|C2|](); - // === findAllReferences === // === /c.ts === - -// export { Class as /*FIND ALL REFS*/C3 } from "./a"; +// export { Class as /*FIND ALL REFS*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc index 407551ecf5..a353dee861 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnPrivateParameterProperty1.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsOnPrivateParameterProperty1.ts === - // class ABCD { // constructor(private x: number, public y: number, /*FIND ALL REFS*/private z: number) { // } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsOnPrivateParameterProperty1.ts === - // class ABCD { // constructor(private x: number, public y: number, private /*FIND ALL REFS*/[|z|]: number) { // } @@ -25,10 +22,8 @@ - // === findAllReferences === // === /findAllRefsOnPrivateParameterProperty1.ts === - // class ABCD { // constructor(private x: number, public y: number, private [|z|]: number) { // } @@ -36,4 +31,4 @@ // func() { // return this./*FIND ALL REFS*/[|z|]; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc index 1051fef3e0..86c9802651 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration1.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration1.ts === - // class Foo { // constructor(private /*FIND ALL REFS*/[|privateParam|]: number) { // let localPrivate = [|privateParam|]; // this.[|privateParam|] += 10; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc index 7ad1bdc9fd..9a12ebdbb9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration2.ts === - // class Foo { // constructor(public /*FIND ALL REFS*/[|publicParam|]: number) { // let localPublic = [|publicParam|]; @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration2.ts === - // class Foo { // constructor(public [|publicParam|]: number) { // let localPublic = /*FIND ALL REFS*/[|publicParam|]; @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration2.ts === - // class Foo { // constructor(public [|publicParam|]: number) { // let localPublic = [|publicParam|]; // this./*FIND ALL REFS*/[|publicParam|] += 10; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc index a0cdacdd22..3c60be1d26 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration3.ts === - // class Foo { // constructor(protected /*FIND ALL REFS*/[|protectedParam|]: number) { // let localProtected = [|protectedParam|]; @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration3.ts === - // class Foo { // constructor(protected [|protectedParam|]: number) { // let localProtected = /*FIND ALL REFS*/[|protectedParam|]; @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration3.ts === - // class Foo { // constructor(protected [|protectedParam|]: number) { // let localProtected = [|protectedParam|]; // this./*FIND ALL REFS*/[|protectedParam|] += 10; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc index 2a68d0dcfe..035894ef83 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - // class C { // constructor(public /*FIND ALL REFS*/[|x|]: string) { // [|x|]; @@ -14,10 +13,8 @@ - // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - // class C { // constructor(public [|x|]: string) { // /*FIND ALL REFS*/[|x|]; @@ -28,10 +25,8 @@ - // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - // class C { // constructor(public [|x|]: string) { // [|x|]; @@ -45,10 +40,8 @@ - // === findAllReferences === // === /findAllRefsParameterPropertyDeclaration_inheritance.ts === - // class C { // constructor(public [|x|]: string) { // [|x|]; @@ -58,4 +51,4 @@ // constructor(public [|x|]: string) { // super(/*FIND ALL REFS*/[|x|]); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc index a4a258ac83..5a5197b8ff 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsPrimitiveJsDoc.ts === - // /** // * @param {/*FIND ALL REFS*/[|number|]} n // * @returns {[|number|]} @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findAllRefsPrimitiveJsDoc.ts === - // /** // * @param {[|number|]} n // * @returns {/*FIND ALL REFS*/[|number|]} @@ -21,10 +18,8 @@ - // === findAllReferences === // === /findAllRefsPrimitiveJsDoc.ts === - // /** // * @param {[|number|]} n // * @returns {[|number|]} @@ -33,12 +28,10 @@ - // === findAllReferences === // === /findAllRefsPrimitiveJsDoc.ts === - // /** // * @param {[|number|]} n // * @returns {[|number|]} // */ -// function f(n: number): /*FIND ALL REFS*/[|number|]): [|number|] {} +// function f(n: number): /*FIND ALL REFS*/[|number|]): [|number|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc index b60326f81a..450a19bbe9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameAccessors.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // class C { // /*FIND ALL REFS*/get #foo(){ return 1; } // set #foo(value: number){ } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // class C { // get /*FIND ALL REFS*/[|#foo|](){ return 1; } // set [|#foo|](value: number){ } @@ -26,10 +23,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // class C { // get #foo(){ return 1; } // /*FIND ALL REFS*/set #foo(value: number){ } @@ -40,10 +35,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // class C { // get [|#foo|](){ return 1; } // set /*FIND ALL REFS*/[|#foo|](value: number){ } @@ -56,10 +49,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // class C { // get [|#foo|](){ return 1; } // set [|#foo|](value: number){ } @@ -72,10 +63,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // --- (line: 11) skipped --- // } // } @@ -89,10 +78,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // --- (line: 11) skipped --- // } // } @@ -106,10 +93,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // --- (line: 12) skipped --- // } // class E { @@ -122,10 +107,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // --- (line: 11) skipped --- // } // } @@ -139,10 +122,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameAccessors.ts === - // --- (line: 11) skipped --- // } // } @@ -152,4 +133,4 @@ // constructor() { // this./*FIND ALL REFS*/[|#foo|](); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc index f24a72a75c..b115a88835 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameMethods.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsPrivateNameMethods.ts === - // class C { // /*FIND ALL REFS*/[|#foo|](){ } // constructor() { @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameMethods.ts === - // class C { // [|#foo|](){ } // constructor() { @@ -27,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameMethods.ts === - // --- (line: 10) skipped --- // } // } @@ -43,10 +38,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameMethods.ts === - // --- (line: 10) skipped --- // } // } @@ -55,4 +48,4 @@ // constructor() { // this./*FIND ALL REFS*/[|#foo|](); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc index 9cca24a9f5..cbc205cc2d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrivateNameProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsPrivateNameProperties.ts === - // class C { // /*FIND ALL REFS*/[|#foo|] = 10; // constructor() { @@ -13,10 +12,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameProperties.ts === - // class C { // [|#foo|] = 10; // constructor() { @@ -29,10 +26,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameProperties.ts === - // class C { // [|#foo|] = 10; // constructor() { @@ -45,10 +40,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameProperties.ts === - // --- (line: 11) skipped --- // } // } @@ -61,10 +54,8 @@ - // === findAllReferences === // === /findAllRefsPrivateNameProperties.ts === - // --- (line: 11) skipped --- // } // } @@ -73,4 +64,4 @@ // constructor() { // this./*FIND ALL REFS*/[|#foo|] = 20; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc index 82414b2b25..8700a8fdc9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsPropertyContextuallyTypedByTypeParam01.ts === - // interface IFoo { // /*FIND ALL REFS*/[|a|]: string; // } @@ -16,4 +15,4 @@ // // var x: IFoo = { // [|a|]: "ss" -// }; +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc index 559cb63f09..6dc48c5a33 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsReExport_broken2.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/export { x } from "nonsense"; - // === findAllReferences === // === /a.ts === - -// export { /*FIND ALL REFS*/x } from "nonsense"; +// export { /*FIND ALL REFS*/x } from "nonsense"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc index 33f988fd9a..443196f6f9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRedeclaredPropertyInDerivedInterface.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - // interface A { // readonly /*FIND ALL REFS*/[|x|]: number | string; // } @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - // interface A { // readonly [|x|]: number | string; // } @@ -27,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - // interface A { // readonly [|x|]: number | string; // } @@ -42,10 +37,8 @@ - // === findAllReferences === // === /findAllRefsRedeclaredPropertyInDerivedInterface.ts === - // interface A { // readonly [|x|]: number | string; // } @@ -53,4 +46,4 @@ // readonly [|x|]: number; // } // const a: A = { [|x|]: 0 }; -// const b: B = { /*FIND ALL REFS*/[|x|]: 0 }; +// const b: B = { /*FIND ALL REFS*/[|x|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc index 7b17dcb086..68ecb662d8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsRootSymbols.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsRootSymbols.ts === - // interface I { /*FIND ALL REFS*/[|x|]: {}; } // interface J { x: {}; } // declare const o: (I | J) & { x: string }; @@ -8,10 +7,8 @@ - // === findAllReferences === // === /findAllRefsRootSymbols.ts === - // interface I { x: {}; } // interface J { /*FIND ALL REFS*/[|x|]: {}; } // declare const o: (I | J) & { x: string }; @@ -19,10 +16,8 @@ - // === findAllReferences === // === /findAllRefsRootSymbols.ts === - // interface I { x: {}; } // interface J { x: {}; } // declare const o: (I | J) & { /*FIND ALL REFS*/[|x|]: string }; @@ -30,11 +25,9 @@ - // === findAllReferences === // === /findAllRefsRootSymbols.ts === - // interface I { [|x|]: {}; } // interface J { [|x|]: {}; } // declare const o: (I | J) & { [|x|]: string }; -// o./*FIND ALL REFS*/[|x|]; +// o./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc index 85287fafda..9d209a3db3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // /*FIND ALL REFS*/[|this|]; // function f(this) { // return this; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // this; // function f(/*FIND ALL REFS*/[|this|]) { // return [|this|]; @@ -23,10 +20,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // this; // function f([|this|]) { // return /*FIND ALL REFS*/[|this|]; @@ -37,10 +32,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // this; // function f(this) { // return this; @@ -52,10 +45,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // this; // function f(this) { // return this; @@ -67,10 +58,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // --- (line: 4) skipped --- // } // class C { @@ -86,10 +75,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // --- (line: 4) skipped --- // } // class C { @@ -105,10 +92,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // --- (line: 10) skipped --- // () => this; // } @@ -125,10 +110,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // --- (line: 10) skipped --- // () => this; // } @@ -145,10 +128,8 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // --- (line: 17) skipped --- // } // } @@ -158,13 +139,11 @@ - // === findAllReferences === // === /findAllRefsThisKeyword.ts === - // --- (line: 17) skipped --- // } // } // // These are *not* real uses of the 'this' keyword, they are identifiers. // const x = { [|this|]: 0 } -// x./*FIND ALL REFS*/[|this|]; +// x./*FIND ALL REFS*/[|this|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc index 84f2d2a7eb..a64175652e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc @@ -1,70 +1,55 @@ // === findAllReferences === // === /file1.ts === - // /*FIND ALL REFS*/[|this|]; [|this|]; - // === findAllReferences === // === /file1.ts === - // this; /*FIND ALL REFS*/[|this|]; [|this|]; - // === findAllReferences === // === /file2.ts === - // /*FIND ALL REFS*/[|this|]; // [|this|]; - // === findAllReferences === // === /file2.ts === - // [|this|]; // /*FIND ALL REFS*/[|this|]; - // === findAllReferences === // === /file3.ts === - // ((x = /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); // // different 'this' // function f(this) { return this; } - // === findAllReferences === // === /file3.ts === - // ((x = this, y) => /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); // // different 'this' // function f(this) { return this; } - // === findAllReferences === // === /file3.ts === - // ((x = this, y) => this)(/*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); // // different 'this' // function f(this) { return this; } - // === findAllReferences === // === /file3.ts === - // ((x = this, y) => this)(this, /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); // // different 'this' -// function f(this) { return this; } +// function f(this) { return this; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc index db5de047a8..fee3c158a9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc @@ -1,32 +1,25 @@ // === findAllReferences === // === /findAllRefsTypeParameterInMergedInterface.ts === - // interface I { a: [|T|] } // interface I<[|T|]> { b: [|T|] } - // === findAllReferences === // === /findAllRefsTypeParameterInMergedInterface.ts === - // interface I { a: /*FIND ALL REFS*/[|T|]> { a: [|T|] } // interface I<[|T|]> { b: [|T|] } - // === findAllReferences === // === /findAllRefsTypeParameterInMergedInterface.ts === - // interface I<[|T|]> { a: [|T|] } // interface I { b: [|T|] } - // === findAllReferences === // === /findAllRefsTypeParameterInMergedInterface.ts === - // interface I<[|T|]> { a: [|T|] } -// interface I { b: /*FIND ALL REFS*/[|T|]> { b: [|T|] } +// interface I { b: /*FIND ALL REFS*/[|T|]> { b: [|T|] } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc index 003ada99ce..4a325fe2f3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // /** // * @typedef I {Object} // * /*FIND ALL REFS*/@prop p {number} @@ -12,10 +11,8 @@ - // === findAllReferences === // === /a.js === - // /** // * @typedef I {Object} // * @prop /*FIND ALL REFS*/p {number} @@ -27,12 +24,10 @@ - // === findAllReferences === // === /a.js === - // --- (line: 4) skipped --- // // /** @type {I} */ // let x; -// x./*FIND ALL REFS*/[|p|]; +// x./*FIND ALL REFS*/[|p|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc index 66ce333a8f..8055baadb2 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypedef_importType.baseline.jsonc @@ -1,25 +1,20 @@ // === findAllReferences === // === /a.js === - // module.exports = 0; // /** /*FIND ALL REFS*/@typedef {number} Foo */ // const dummy = 0; - // === findAllReferences === // === /a.js === - // module.exports = 0; // /** @typedef {number} /*FIND ALL REFS*/Foo */ // const dummy = 0; - // === findAllReferences === // === /b.js === - // /** @type {import('./a')./*FIND ALL REFS*/Foo} */ -// const x = 0; +// const x = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc index 78be51693f..96b25fccdf 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeofImport.baseline.jsonc @@ -1,26 +1,21 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/export const x = 0; // declare const a: typeof import("./a"); // a.x; - // === findAllReferences === // === /a.ts === - // export const /*FIND ALL REFS*/[|x|] = 0; // declare const a: typeof import("./a"); // a.[|x|]; - // === findAllReferences === // === /a.ts === - // export const [|x|] = 0; // declare const a: typeof import("./a"); -// a./*FIND ALL REFS*/[|x|]; +// a./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc index 7afaaa75e1..7eb77a494a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnionProperty.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { /*FIND ALL REFS*/[|type|]: "a", prop: number } // | { [|type|]: "b", prop: string }; @@ -17,10 +16,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { [|type|]: "a", prop: number } // | { /*FIND ALL REFS*/[|type|]: "b", prop: string }; @@ -37,10 +34,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { [|type|]: "a", prop: number } // | { [|type|]: "b", prop: string }; @@ -57,10 +52,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { [|type|]: "a", prop: number } // | { [|type|]: "b", prop: string }; @@ -77,10 +70,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { [|type|]: "a", prop: number } // | { [|type|]: "b", prop: string }; @@ -97,10 +88,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { [|type|]: "a", prop: number } // | { type: "b", prop: string }; @@ -117,10 +106,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { type: "a", /*FIND ALL REFS*/[|prop|]: number } // | { type: "b", [|prop|]: string }; @@ -134,10 +121,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { type: "a", [|prop|]: number } // | { type: "b", /*FIND ALL REFS*/[|prop|]: string }; @@ -151,10 +136,8 @@ - // === findAllReferences === // === /findAllRefsUnionProperty.ts === - // type T = // | { type: "a", [|prop|]: number } // | { type: "b", prop: string }; @@ -164,4 +147,4 @@ // }; // declare const t: T; // if (t.type === "a") { -// // --- (line: 10) skipped --- +// // --- (line: 10) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc index af8ae38dbe..c65b6a9fb7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols1.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: /*FIND ALL REFS*/[|Bar|]; // let b: [|Bar|]; // let c: [|Bar|]; @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: [|Bar|]; // let b: /*FIND ALL REFS*/[|Bar|]; // let c: [|Bar|]; @@ -23,10 +20,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: [|Bar|]; // let b: [|Bar|]; // let c: /*FIND ALL REFS*/[|Bar|]; @@ -36,10 +31,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: Bar; // let b: Bar; // let c: Bar; @@ -49,10 +42,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: Bar; // let b: Bar; // let c: Bar; @@ -62,10 +53,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: Bar; // let b: Bar; // let c: Bar; @@ -75,10 +64,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: Bar; // let b: Bar; // let c: Bar; @@ -88,10 +75,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: Bar; // let b: Bar; // let c: Bar; @@ -101,10 +86,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: Bar; // let b: Bar; // let c: Bar; @@ -114,13 +97,11 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols1.ts === - // let a: Bar; // let b: Bar; // let c: Bar; // let d: Bar.X; // let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc index 4835af1a9a..d542f719cd 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { /*FIND ALL REFS*/[|Bar|] } from "does-not-exist"; // // let a: [|Bar|]; @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { [|Bar|] } from "does-not-exist"; // // let a: /*FIND ALL REFS*/[|Bar|]; @@ -27,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { [|Bar|] } from "does-not-exist"; // // let a: [|Bar|]; @@ -42,10 +37,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { [|Bar|] } from "does-not-exist"; // // let a: [|Bar|]; @@ -57,10 +50,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { [|Bar|] } from "does-not-exist"; // // let a: [|Bar|]; @@ -72,10 +63,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { [|Bar|] } from "does-not-exist"; // // let a: [|Bar|]; @@ -87,10 +76,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { [|Bar|] } from "does-not-exist"; // // let a: [|Bar|]; @@ -102,10 +89,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { Bar } from "does-not-exist"; // // let a: Bar; @@ -117,10 +102,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // import { Bar } from "does-not-exist"; // // let a: Bar; @@ -132,10 +115,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; @@ -144,12 +125,10 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols2.ts === - // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc index 68a4f7d54e..890fd6f9b0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsUnresolvedSymbols3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as /*FIND ALL REFS*/[|Bar|] from "does-not-exist"; // // let a: [|Bar|]; @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as [|Bar|] from "does-not-exist"; // // let a: /*FIND ALL REFS*/[|Bar|]; @@ -27,10 +24,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as [|Bar|] from "does-not-exist"; // // let a: [|Bar|]; @@ -42,10 +37,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as [|Bar|] from "does-not-exist"; // // let a: [|Bar|]; @@ -57,10 +50,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as [|Bar|] from "does-not-exist"; // // let a: [|Bar|]; @@ -72,10 +63,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as [|Bar|] from "does-not-exist"; // // let a: [|Bar|]; @@ -87,10 +76,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as [|Bar|] from "does-not-exist"; // // let a: [|Bar|]; @@ -102,10 +89,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as Bar from "does-not-exist"; // // let a: Bar; @@ -117,10 +102,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // import * as Bar from "does-not-exist"; // // let a: Bar; @@ -132,10 +115,8 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; @@ -144,12 +125,10 @@ - // === findAllReferences === // === /findAllRefsUnresolvedSymbols3.ts === - // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; -// let f: Bar.X./*FIND ALL REFS*/[|Y|]; +// let f: Bar.X./*FIND ALL REFS*/[|Y|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc index ba02337a95..275b2415e7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames1.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames1.ts === - // class Foo { // /*FIND ALL REFS*/public _bar() { return 0; } // } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames1.ts === - // class Foo { // public /*FIND ALL REFS*/[|_bar|]() { return 0; } // } @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames1.ts === - // class Foo { // public [|_bar|]() { return 0; } // } // // var x: Foo; -// x./*FIND ALL REFS*/[|_bar|]; +// x./*FIND ALL REFS*/[|_bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc index b31db41b2f..0627485bd8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames2.ts === - // class Foo { // /*FIND ALL REFS*/public __bar() { return 0; } // } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames2.ts === - // class Foo { // public /*FIND ALL REFS*/[|__bar|]() { return 0; } // } @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames2.ts === - // class Foo { // public [|__bar|]() { return 0; } // } // // var x: Foo; -// x./*FIND ALL REFS*/[|__bar|]; +// x./*FIND ALL REFS*/[|__bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc index 0562f71fd3..ba2b00295d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames3.ts === - // class Foo { // /*FIND ALL REFS*/public ___bar() { return 0; } // } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames3.ts === - // class Foo { // public /*FIND ALL REFS*/[|___bar|]() { return 0; } // } @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames3.ts === - // class Foo { // public [|___bar|]() { return 0; } // } // // var x: Foo; -// x./*FIND ALL REFS*/[|___bar|]; +// x./*FIND ALL REFS*/[|___bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc index 9c84a00083..4c995ceb99 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames4.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames4.ts === - // class Foo { // /*FIND ALL REFS*/public ____bar() { return 0; } // } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames4.ts === - // class Foo { // public /*FIND ALL REFS*/[|____bar|]() { return 0; } // } @@ -23,13 +20,11 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames4.ts === - // class Foo { // public [|____bar|]() { return 0; } // } // // var x: Foo; -// x./*FIND ALL REFS*/[|____bar|]; +// x./*FIND ALL REFS*/[|____bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc index cfa0dcde5e..68b9058871 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames5.ts === - // class Foo { // public _bar; // public __bar; @@ -12,10 +11,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames5.ts === - // class Foo { // public _bar; // public __bar; @@ -31,10 +28,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames5.ts === - // class Foo { // public _bar; // public __bar; @@ -46,4 +41,4 @@ // x._bar; // x.__bar; // x./*FIND ALL REFS*/[|___bar|]; -// x.____bar; +// x.____bar; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc index f74c6d36dc..5cea661dd5 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames6.ts === - // class Foo { // public _bar; // /*FIND ALL REFS*/public __bar; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames6.ts === - // class Foo { // public _bar; // public /*FIND ALL REFS*/[|__bar|]; @@ -30,10 +27,8 @@ - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames6.ts === - // class Foo { // public _bar; // public [|__bar|]; @@ -45,4 +40,4 @@ // x._bar; // x./*FIND ALL REFS*/[|__bar|]; // x.___bar; -// x.____bar; +// x.____bar; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc index cb0a555584..761a4899a3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames7.baseline.jsonc @@ -1,26 +1,21 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames7.ts === - // /*FIND ALL REFS*/function __foo() { // __foo(); // } - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames7.ts === - // function /*FIND ALL REFS*/[|__foo|]() { // [|__foo|](); // } - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames7.ts === - // function [|__foo|]() { // /*FIND ALL REFS*/[|__foo|](); -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc index 71af0eec08..16510e0f5b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames8.baseline.jsonc @@ -1,26 +1,21 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames8.ts === - // (/*FIND ALL REFS*/function __foo() { // __foo(); // }) - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames8.ts === - // (function /*FIND ALL REFS*/__foo() { // [|__foo|](); // }) - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames8.ts === - // (function __foo() { // /*FIND ALL REFS*/[|__foo|](); -// }) +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc index 91680e3b4f..099cdfee54 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithLeadingUnderscoreNames9.baseline.jsonc @@ -1,26 +1,21 @@ // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames9.ts === - // (/*FIND ALL REFS*/function ___foo() { // ___foo(); // }) - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames9.ts === - // (function /*FIND ALL REFS*/___foo() { // [|___foo|](); // }) - // === findAllReferences === // === /findAllRefsWithLeadingUnderscoreNames9.ts === - // (function ___foo() { // /*FIND ALL REFS*/[|___foo|](); -// }) +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc index 77400fcc7d..1666c1f148 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment.baseline.jsonc @@ -1,56 +1,47 @@ // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var /*FIND ALL REFS*/[|name|] = "Foo"; +// var /*FIND ALL REFS*/[|name|] = "Foo"; // -// var obj = { name }; -// var obj1 = { name: name }; -// obj.name; - +// var obj = { name }; +// var obj1 = { name: name }; +// obj.name; // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; +// var name = "Foo"; // -// var obj = { [|name|] }; -// var obj1 = { name: /*FIND ALL REFS*/[|name|] }; -// obj.name; - +// var obj = { [|name|] }; +// var obj1 = { name: /*FIND ALL REFS*/[|name|] }; +// obj.name; // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; +// var name = "Foo"; // -// var obj = { /*FIND ALL REFS*/[|name|] }; -// var obj1 = { name: [|name|] }; -// obj.[|name|]; - +// var obj = { /*FIND ALL REFS*/[|name|] }; +// var obj1 = { name: [|name|] }; +// obj.[|name|]; // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; +// var name = "Foo"; // -// var obj = { name }; -// var obj1 = { /*FIND ALL REFS*/[|name|]: name }; -// obj.name; - +// var obj = { name }; +// var obj1 = { /*FIND ALL REFS*/[|name|]: name }; +// obj.name; // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment.ts === - -// var name = "Foo"; +// var name = "Foo"; // -// var obj = { [|name|] }; -// var obj1 = { name: name }; -// obj./*FIND ALL REFS*/[|name|]; +// var obj = { [|name|] }; +// var obj1 = { name: name }; +// obj./*FIND ALL REFS*/[|name|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc index 4120f135f2..4aa27d262c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc @@ -1,53 +1,46 @@ // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var /*FIND ALL REFS*/[|dx|] = "Foo"; +// var /*FIND ALL REFS*/[|dx|] = "Foo"; // -// module M { export var dx; } -// module M { +// module M { export var dx; } +// module M { // // --- (line: 5) skipped --- - // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var dx = "Foo"; +// var dx = "Foo"; // -// module M { export var /*FIND ALL REFS*/[|dx|]; } -// module M { -// var z = 100; -// export var y = { [|dx|], z }; -// } -// M.y.dx; - +// module M { export var /*FIND ALL REFS*/[|dx|]; } +// module M { +// var z = 100; +// export var y = { [|dx|], z }; +// } +// M.y.dx; // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var dx = "Foo"; +// var dx = "Foo"; // -// module M { export var [|dx|]; } -// module M { -// var z = 100; -// export var y = { /*FIND ALL REFS*/[|dx|], z }; -// } -// M.y.[|dx|]; - +// module M { export var [|dx|]; } +// module M { +// var z = 100; +// export var y = { /*FIND ALL REFS*/[|dx|], z }; +// } +// M.y.[|dx|]; // === findAllReferences === // === /findAllRefsWithShorthandPropertyAssignment2.ts === - -// var dx = "Foo"; +// var dx = "Foo"; // -// module M { export var dx; } -// module M { -// var z = 100; -// export var y = { [|dx|], z }; -// } -// M.y./*FIND ALL REFS*/[|dx|]; +// module M { export var dx; } +// module M { +// var z = 100; +// export var y = { [|dx|], z }; +// } +// M.y./*FIND ALL REFS*/[|dx|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc index 300d3ee7c6..23ff101c44 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsWriteAccess.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findAllRefsWriteAccess.ts === - // interface Obj { // [`/*FIND ALL REFS*/[|num|]`]: number; // } @@ -17,4 +16,4 @@ // o[`[|num|]`] = 3; // // o['[|num|]']; -// o[`[|num|]`]; +// o[`[|num|]`]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc index e86a958a74..02974aba13 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_js4.baseline.jsonc @@ -1,9 +1,8 @@ // === findAllReferences === // === /a.js === - // /** // * @callback /*FIND ALL REFS*/A // * @param {unknown} response // */ // -// module.exports = {}; +// module.exports = {}; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc index f325d43d5b..41f5903eec 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_meaningAtLocation.baseline.jsonc @@ -1,74 +1,55 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/export type T = 0; // export const T = 0; - // === findAllReferences === // === /a.ts === - // export type /*FIND ALL REFS*/[|T|] = 0; // export const T = 0; - // === /b.ts === - // const x: import("./a").[|T|] = 0; // const x: typeof import("./a").T = 0; - // === findAllReferences === // === /a.ts === - // export type T = 0; // /*FIND ALL REFS*/export const T = 0; - // === findAllReferences === // === /a.ts === - // export type T = 0; // export const /*FIND ALL REFS*/[|T|] = 0; - // === /b.ts === - // const x: import("./a").T = 0; // const x: typeof import("./a").[|T|] = 0; - // === findAllReferences === // === /a.ts === - // export type [|T|] = 0; // export const T = 0; - // === /b.ts === - // const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; // const x: typeof import("./a").T = 0; - // === findAllReferences === // === /a.ts === - // export type T = 0; // export const [|T|] = 0; - // === /b.ts === - // const x: import("./a").T = 0; -// const x: typeof import("./a")./*FIND ALL REFS*/[|T|] = 0; +// const x: typeof import("./a")./*FIND ALL REFS*/[|T|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc index 7c6dd58ef0..55c3e1d76c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_importType_named.baseline.jsonc @@ -1,74 +1,55 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/export type T = number; // export type U = string; - // === findAllReferences === // === /a.ts === - // export type /*FIND ALL REFS*/[|T|] = number; // export type U = string; - // === /b.ts === - // const x: import("./a").[|T|] = 0; // const x: import("./a").U = 0; - // === findAllReferences === // === /a.ts === - // export type T = number; // /*FIND ALL REFS*/export type U = string; - // === findAllReferences === // === /a.ts === - // export type T = number; // export type /*FIND ALL REFS*/[|U|] = string; - // === /b.ts === - // const x: import("./a").T = 0; // const x: import("./a").[|U|] = 0; - // === findAllReferences === // === /a.ts === - // export type [|T|] = number; // export type U = string; - // === /b.ts === - // const x: import("./a")./*FIND ALL REFS*/[|T|] = 0; // const x: import("./a").U = 0; - // === findAllReferences === // === /a.ts === - // export type T = number; // export type [|U|] = string; - // === /b.ts === - // const x: import("./a").T = 0; -// const x: import("./a")./*FIND ALL REFS*/[|U|] = 0; +// const x: import("./a")./*FIND ALL REFS*/[|U|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc index cfa4b6cff1..14c23a2f5f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefs_jsEnum.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // /** @enum {string} */ // /*FIND ALL REFS*/const E = { A: "" }; // E["A"]; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /a.js === - // /** @enum {string} */ // const /*FIND ALL REFS*/[|E|] = { A: "" }; // [|E|]["A"]; @@ -21,10 +18,8 @@ - // === findAllReferences === // === /a.js === - // /** @enum {string} */ // const [|E|] = { A: "" }; // /*FIND ALL REFS*/[|E|]["A"]; @@ -33,10 +28,8 @@ - // === findAllReferences === // === /a.js === - // /** @enum {string} */ // const E = { A: "" }; // E["A"]; @@ -45,12 +38,10 @@ - // === findAllReferences === // === /a.js === - // /** @enum {string} */ // const [|E|] = { A: "" }; // [|E|]["A"]; // /** @type {E} */ -// const e = /*FIND ALL REFS*/[|E|].A; +// const e = /*FIND ALL REFS*/[|E|].A; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc index 9a4915ae42..ec494e6888 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesAcrossMultipleProjects.baseline.jsonc @@ -1,64 +1,45 @@ // === findAllReferences === // === /a.ts === - // /*FIND ALL REFS*/var x: number; - // === findAllReferences === // === /a.ts === - // var /*FIND ALL REFS*/[|x|]: number; - // === /b.ts === - // /// // [|x|]++; - // === /c.ts === - // /// // [|x|]++; - // === findAllReferences === // === /a.ts === - // var [|x|]: number; - // === /b.ts === - // /// // /*FIND ALL REFS*/[|x|]++; - // === /c.ts === - // /// // [|x|]++; - // === findAllReferences === // === /a.ts === - // var [|x|]: number; - // === /b.ts === - // /// // [|x|]++; - // === /c.ts === - // /// -// /*FIND ALL REFS*/[|x|]++; +// /*FIND ALL REFS*/[|x|]++; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc index 7f74b72a6d..f52b5cee29 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /findReferencesDefinitionDisplayParts.ts === - // class Gre/*FIND ALL REFS*/[|Greeter|] { // someFunction() { this; } // } @@ -9,10 +8,8 @@ - // === findAllReferences === // === /findReferencesDefinitionDisplayParts.ts === - // class Greeter { // someFunction() { th/*FIND ALL REFS*/[|this|]; } // } @@ -22,10 +19,8 @@ - // === findAllReferences === // === /findReferencesDefinitionDisplayParts.ts === - // class Greeter { // someFunction() { this; } // } @@ -38,13 +33,11 @@ - // === findAllReferences === // === /findReferencesDefinitionDisplayParts.ts === - // --- (line: 4) skipped --- // type Options = "option 1" | "option 2"; // let myOption: Options = "option 1"; // // some/*FIND ALL REFS*/[|someLabel|]: -// break [|someLabel|]; +// break [|someLabel|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc index 7f54fb06bd..b0d90630ef 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /RedditSubmission.ts === - // export const [|SubmissionComp|] = (submission: SubmissionProps) => //
; - // === /index.tsx === - // import { /*FIND ALL REFS*/[|SubmissionComp|] } from "./RedditSubmission" // function displaySubreddit(subreddit: string) { // let components = submissions @@ -15,18 +12,14 @@ - // === findAllReferences === // === /RedditSubmission.ts === - // export const /*FIND ALL REFS*/[|SubmissionComp|] = (submission: SubmissionProps) => //
; - // === /index.tsx === - // import { [|SubmissionComp|] } from "./RedditSubmission" // function displaySubreddit(subreddit: string) { // let components = submissions // .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />); -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc index 947ecdadfa..a3b65b722a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesJSXTagName2.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /index.tsx === - // /*FIND ALL REFS*/const obj = {Component: () =>
}; // const element = ; - // === findAllReferences === // === /index.tsx === - // const /*FIND ALL REFS*/[|obj|] = {Component: () =>
}; // const element = <[|obj|].Component/>; - // === findAllReferences === // === /index.tsx === - // const [|obj|] = {Component: () =>
}; -// const element = ; +// const element = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc index 6659580478..f012ee13c2 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc @@ -1,8 +1,7 @@ // === findAllReferences === // === /findReferencesSeeTagInTs.ts === - // function doStuffWithStuff/*FIND ALL REFS*/[|doStuffWithStuff|](stuff: { quantity: number }) {} // // declare const stuff: { quantity: number }; // /** @see {doStuffWithStuff} */ -// if (stuff.quantity) {} +// if (stuff.quantity) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/fourslash/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/fourslash/findAllReferencesDynamicImport2.baseline.jsonc new file mode 100644 index 0000000000..33d82f72a8 --- /dev/null +++ b/testdata/baselines/reference/fourslash/findAllReferences/fourslash/findAllReferencesDynamicImport2.baseline.jsonc @@ -0,0 +1,20 @@ +// === findAllReferences === +// === /foo.ts === + +// export function /*FIND ALL REFS*/[|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo.[|bar|](); +// }) + + + + +// === findAllReferences === +// === /foo.ts === + +// export function [|bar|]() { return "bar"; } +// var x = import("./foo"); +// x.then(foo => { +// foo./*FIND ALL REFS*/[|bar|](); +// }) diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc index c2196d70e8..d47a9cd615 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfArrowFunction.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfArrowFunction.ts === - // /*FIND ALL REFS*/var f = x => x + 1; // f(12); - // === findAllReferences === // === /getOccurrencesIsDefinitionOfArrowFunction.ts === - // var /*FIND ALL REFS*/[|f|] = x => x + 1; // [|f|](12); - // === findAllReferences === // === /getOccurrencesIsDefinitionOfArrowFunction.ts === - // var [|f|] = x => x + 1; -// /*FIND ALL REFS*/[|f|](12); +// /*FIND ALL REFS*/[|f|](12); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc index 25461975f6..9e06949ebc 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfBindingPattern.ts === - // const { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; // const z = [|x|]; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfBindingPattern.ts === - // const { x, y } = { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; // const z = x; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfBindingPattern.ts === - // const { [|x|], y } = { x: 1, y: 2 }; -// const z = /*FIND ALL REFS*/[|x|]; +// const z = /*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc index 83e511eeb7..66aa26aa9b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfClass.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfClass.ts === - // /*FIND ALL REFS*/class C { // n: number; // constructor() { @@ -9,10 +8,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfClass.ts === - // class /*FIND ALL REFS*/[|C|] { // n: number; // constructor() { @@ -23,14 +20,12 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfClass.ts === - // class [|C|] { // n: number; // constructor() { // this.n = 12; // } // } -// let c = new /*FIND ALL REFS*/[|C|](); +// let c = new /*FIND ALL REFS*/[|C|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc index 9d3da828f6..01ccd7b8dc 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfComputedProperty.baseline.jsonc @@ -1,36 +1,29 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfComputedProperty.ts === - // let o = { /*FIND ALL REFS*/["foo"]: 12 }; // let y = o.foo; // let z = o['foo']; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfComputedProperty.ts === - // let o = { ["/*FIND ALL REFS*/[|foo|]"]: 12 }; // let y = o.[|foo|]; // let z = o['[|foo|]']; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfComputedProperty.ts === - // let o = { ["[|foo|]"]: 12 }; // let y = o./*FIND ALL REFS*/[|foo|]; // let z = o['[|foo|]']; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfComputedProperty.ts === - // let o = { ["[|foo|]"]: 12 }; // let y = o.[|foo|]; -// let z = o['/*FIND ALL REFS*/[|foo|]']; +// let z = o['/*FIND ALL REFS*/[|foo|]']; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc index 5baafb9571..e0b28c98c1 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfEnum.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfEnum.ts === - // /*FIND ALL REFS*/enum E { // First, // Second @@ -9,10 +8,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfEnum.ts === - // enum /*FIND ALL REFS*/[|E|] { // First, // Second @@ -21,12 +18,10 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfEnum.ts === - // enum [|E|] { // First, // Second // } -// let first = /*FIND ALL REFS*/[|E|].First; +// let first = /*FIND ALL REFS*/[|E|].First; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc index cd5e4c32f9..75f7ea71d1 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfExport.baseline.jsonc @@ -1,24 +1,17 @@ // === findAllReferences === // === /m.ts === - // export var /*FIND ALL REFS*/[|x|] = 12; - // === /main.ts === - // import { [|x|] } from "./m"; // const y = [|x|]; - // === findAllReferences === // === /m.ts === - // export var [|x|] = 12; - // === /main.ts === - // import { /*FIND ALL REFS*/[|x|] } from "./m"; -// const y = [|x|]; +// const y = [|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc index ac9673eefd..93a9afb726 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfFunction.baseline.jsonc @@ -1,26 +1,21 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfFunction.ts === - // /*FIND ALL REFS*/function func(x: number) { // } // func(x) - // === findAllReferences === // === /getOccurrencesIsDefinitionOfFunction.ts === - // function /*FIND ALL REFS*/[|func|](x: number) { // } // [|func|](x) - // === findAllReferences === // === /getOccurrencesIsDefinitionOfFunction.ts === - // function [|func|](x: number) { // } -// /*FIND ALL REFS*/[|func|](x) +// /*FIND ALL REFS*/[|func|](x) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc index c16b6adc4a..1d3cb221db 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterface.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterface.ts === - // /*FIND ALL REFS*/interface I { // p: number; // } @@ -8,10 +7,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterface.ts === - // interface /*FIND ALL REFS*/[|I|] { // p: number; // } @@ -19,11 +16,9 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterface.ts === - // interface [|I|] { // p: number; // } -// let i: /*FIND ALL REFS*/[|I|] = { p: 12 }; +// let i: /*FIND ALL REFS*/[|I|] = { p: 12 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc index e28de949ad..bc660b6d6d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // /*FIND ALL REFS*/interface Numbers { // p: number; // } @@ -9,10 +8,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // interface /*FIND ALL REFS*/[|Numbers|] { // p: number; // } @@ -29,10 +26,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // interface Numbers { // p: number; // } @@ -44,10 +39,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // interface [|Numbers|] { // p: number; // } @@ -64,10 +57,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // --- (line: 3) skipped --- // interface Numbers { // m: number; @@ -80,10 +71,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // interface [|Numbers|] { // p: number; // } @@ -100,10 +89,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // interface [|Numbers|] { // p: number; // } @@ -120,10 +107,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfInterfaceClassMerge.ts === - // interface [|Numbers|] { // p: number; // } @@ -136,4 +121,4 @@ // } // } // let i: Numbers = new /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); -// let x = i.f(i.p + i.m); +// let x = i.f(i.p + i.m); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc index 57cd264bec..bba65c8c91 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNamespace.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfNamespace.ts === - // /*FIND ALL REFS*/namespace Numbers { // export var n = 12; // } @@ -8,10 +7,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfNamespace.ts === - // namespace /*FIND ALL REFS*/[|Numbers|] { // export var n = 12; // } @@ -19,11 +16,9 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfNamespace.ts === - // namespace [|Numbers|] { // export var n = 12; // } -// let x = /*FIND ALL REFS*/[|Numbers|].n + 1; +// let x = /*FIND ALL REFS*/[|Numbers|].n + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc index a0531f2db8..4c7d71532e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfNumberNamedProperty.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === - // let o = { /*FIND ALL REFS*/[|1|]: 12 }; // let y = o[[|1|]]; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfNumberNamedProperty.ts === - // let o = { [|1|]: 12 }; -// let y = o[/*FIND ALL REFS*/[|1|]]; +// let y = o[/*FIND ALL REFS*/[|1|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc index 151e123cc8..311de56bc8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfParameter.baseline.jsonc @@ -1,16 +1,13 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfParameter.ts === - // function f(/*FIND ALL REFS*/[|x|]: number) { // return [|x|] + 1 // } - // === findAllReferences === // === /getOccurrencesIsDefinitionOfParameter.ts === - // function f([|x|]: number) { // return /*FIND ALL REFS*/[|x|] + 1 -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc index 3cfbe8fd34..76d23e15de 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfStringNamedProperty.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === - // let o = { /*FIND ALL REFS*/"[|x|]": 12 }; // let y = o.[|x|]; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === - // let o = { "/*FIND ALL REFS*/[|x|]": 12 }; // let y = o.[|x|]; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfStringNamedProperty.ts === - // let o = { "[|x|]": 12 }; -// let y = o./*FIND ALL REFS*/[|x|]; +// let y = o./*FIND ALL REFS*/[|x|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc index de35e8d0ed..588c2d0769 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfTypeAlias.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfTypeAlias.ts === - // /*FIND ALL REFS*/type Alias= number; // let n: Alias = 12; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfTypeAlias.ts === - // type /*FIND ALL REFS*/[|Alias|]= number; // let n: [|Alias|] = 12; - // === findAllReferences === // === /getOccurrencesIsDefinitionOfTypeAlias.ts === - // type [|Alias|]= number; -// let n: /*FIND ALL REFS*/[|Alias|] = 12; +// let n: /*FIND ALL REFS*/[|Alias|] = 12; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc index 9d0216986b..3be2b9e0a6 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // /*FIND ALL REFS*/var x = 0; // var assignmentRightHandSide = x; // var assignmentRightHandSide2 = 1 + x; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var /*FIND ALL REFS*/[|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -33,10 +30,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = /*FIND ALL REFS*/[|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -57,10 +52,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + /*FIND ALL REFS*/[|x|]; @@ -81,10 +74,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -105,10 +96,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -129,10 +118,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -153,10 +140,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -177,10 +162,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -201,10 +184,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -225,10 +206,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -249,10 +228,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -273,10 +250,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -297,10 +272,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -321,10 +294,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -345,10 +316,8 @@ - // === findAllReferences === // === /getOccurrencesIsDefinitionOfVariable.ts === - // var [|x|] = 0; // var assignmentRightHandSide = [|x|]; // var assignmentRightHandSide2 = 1 + [|x|]; @@ -365,4 +334,4 @@ // var postDecrement = [|x|]--; // // [|x|] += 1; -// /*FIND ALL REFS*/[|x|] <<= 1; +// /*FIND ALL REFS*/[|x|] <<= 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc index 86fb5ab3c9..fc53c36f09 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/indirectJsRequireRename.baseline.jsonc @@ -1,9 +1,6 @@ // === findAllReferences === // === /lib/classes/Error.js === - // module.exports.[|logWarning|] = message => { }; - // === /bin/serverless.js === - -// require('../lib/classes/Error').log/*FIND ALL REFS*/Warning(`CLI triage crashed with: ${error.stack}`); +// require('../lib/classes/Error').log/*FIND ALL REFS*/Warning(`CLI triage crashed with: ${error.stack}`); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc index 932acf04e3..d97e39c38f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossGlobalProjects.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /home/src/workspaces/project/a/index.ts === - // namespace NS { // export function /*FIND ALL REFS*/[|FA|]() { // FB(); @@ -10,10 +9,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/a/index.ts === - // --- (line: 3) skipped --- // } // } @@ -30,10 +27,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/a/index.ts === - // --- (line: 4) skipped --- // } // @@ -49,10 +44,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/b/index.ts === - // namespace NS { // export function /*FIND ALL REFS*/[|FB|]() {} // } @@ -62,10 +55,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/b/index.ts === - // namespace NS { // export function FB() {} // } @@ -78,10 +69,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/b/index.ts === - // namespace NS { // export function FB() {} // } @@ -94,10 +83,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/c/index.ts === - // namespace NS { // export function /*FIND ALL REFS*/[|FC|]() {} // } @@ -107,10 +94,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/c/index.ts === - // namespace NS { // export function FC() {} // } @@ -123,10 +108,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/c/index.ts === - // namespace NS { // export function FC() {} // } @@ -135,4 +118,4 @@ // /*FIND ALL REFS*/[|FC|](); // } // -// const ic: I = { [|FC|]() {} }; +// const ic: I = { [|FC|]() {} }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc index 33e9870ae2..bab15b51fa 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionAcrossModuleProjects.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /home/src/workspaces/project/a/index.ts === - // import { NS } from "../b"; // import { I } from "../c"; // @@ -12,7 +11,6 @@ // // // --- (line: 10) skipped --- - // --- (line: 13) skipped --- // } // @@ -23,10 +21,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/a/index.ts === - // import { NS } from "../b"; // import { [|I|] } from "../c"; // @@ -47,9 +43,7 @@ // FC() { }, // }; - // === /home/src/workspaces/project/c/index.ts === - // export namespace NS { // export function FC() {} // } @@ -62,10 +56,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/a/index.ts === - // --- (line: 8) skipped --- // // declare module "../c" { @@ -81,10 +73,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/a2/index.ts === - // import { NS } from "../b"; // import { I } from "../c"; // @@ -96,7 +86,6 @@ // // // --- (line: 10) skipped --- - // --- (line: 13) skipped --- // } // @@ -107,10 +96,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/a2/index.ts === - // import { NS } from "../b"; // import { [|I|] } from "../c"; // @@ -131,9 +118,7 @@ // FC() { }, // }; - // === /home/src/workspaces/project/c/index.ts === - // export namespace NS { // export function FC() {} // } @@ -146,10 +131,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/a2/index.ts === - // --- (line: 8) skipped --- // // declare module "../c" { @@ -165,10 +148,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/b/index.ts === - // export namespace NS { // export function /*FIND ALL REFS*/[|FB|]() {} // } @@ -178,10 +159,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/b/index.ts === - // export namespace NS { // export function FB() {} // } @@ -194,10 +173,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/b/index.ts === - // export namespace NS { // export function FB() {} // } @@ -210,10 +187,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/c/index.ts === - // export namespace NS { // export function /*FIND ALL REFS*/[|FC|]() {} // } @@ -223,10 +198,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/c/index.ts === - // export namespace NS { // export function FC() {} // } @@ -239,10 +212,8 @@ - // === findAllReferences === // === /home/src/workspaces/project/c/index.ts === - // export namespace NS { // export function FC() {} // } @@ -251,4 +222,4 @@ // /*FIND ALL REFS*/[|FC|](); // } // -// const ic: I = { [|FC|]() {} }; +// const ic: I = { [|FC|]() {} }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc index 697d149847..e51b9e8cad 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionInterfaceImplementation.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /isDefinitionInterfaceImplementation.ts === - // interface I { // /*FIND ALL REFS*/[|M|](): void; // } @@ -14,10 +13,8 @@ - // === findAllReferences === // === /isDefinitionInterfaceImplementation.ts === - // interface I { // [|M|](): void; // } @@ -27,4 +24,4 @@ // } // // ({} as I).[|M|](); -// ({} as C).[|M|](); +// ({} as C).[|M|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc index b603465539..29eeb6d11a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionOverloads.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /isDefinitionOverloads.ts === - // function /*FIND ALL REFS*/[|f|](x: number): void; // function [|f|](x: string): void; // function [|f|](x: number | string) { } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /isDefinitionOverloads.ts === - // function [|f|](x: number): void; // function /*FIND ALL REFS*/[|f|](x: string): void; // function [|f|](x: number | string) { } @@ -23,13 +20,11 @@ - // === findAllReferences === // === /isDefinitionOverloads.ts === - // function [|f|](x: number): void; // function [|f|](x: string): void; // function /*FIND ALL REFS*/[|f|](x: number | string) { } // // [|f|](1); -// [|f|]("a"); +// [|f|]("a"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc index 3bbe7e857d..f2acb40f0c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc @@ -1,23 +1,18 @@ // === findAllReferences === // === /isDefinitionShorthandProperty.ts === - // const /*FIND ALL REFS*/[|x|] = 1; // const y: { x: number } = { [|x|] }; - // === findAllReferences === // === /isDefinitionShorthandProperty.ts === - // const x = 1; // const y: { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; - // === findAllReferences === // === /isDefinitionShorthandProperty.ts === - // const [|x|] = 1; -// const y: { x: number } = { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; +// const y: { x: number } = { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc index 878b9e0df8..52a7e63c1b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleImport.baseline.jsonc @@ -1,22 +1,15 @@ // === findAllReferences === // === /a.ts === - // export function /*FIND ALL REFS*/[|f|]() {} - // === /b.ts === - // import { [|f|] } from "./a"; - // === findAllReferences === // === /a.ts === - // export function [|f|]() {} - // === /b.ts === - -// import { /*FIND ALL REFS*/[|f|] } from "./a"; +// import { /*FIND ALL REFS*/[|f|] } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc index a455d9410f..9b9178931c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionSingleReference.baseline.jsonc @@ -1,14 +1,11 @@ // === findAllReferences === // === /isDefinitionSingleReference.ts === - // function /*FIND ALL REFS*/[|f|]() {} // [|f|](); - // === findAllReferences === // === /isDefinitionSingleReference.ts === - // function [|f|]() {} -// /*FIND ALL REFS*/[|f|](); +// /*FIND ALL REFS*/[|f|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc index 45bce806d2..91f13a41d4 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocSatisfiesTagFindAllReferences.baseline.jsonc @@ -1,10 +1,9 @@ // === findAllReferences === // === /a.js === - // /** // * @typedef {Object} T // * @property {number} a // */ // // /** @satisfies {/*FIND ALL REFS*/[|T|]} comment */ -// const foo = { a: 1 }; +// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc index c24f93ca06..d399b6dc09 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocThrowsTag_findAllReferences.baseline.jsonc @@ -1,8 +1,7 @@ // === findAllReferences === // === /jsdocThrowsTag_findAllReferences.ts === - // class /*FIND ALL REFS*/[|E|] extends Error {} // /** // * @throws {E} // */ -// function f() {} +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc index 70be03a5cd..806fcb273e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning0.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // /** /*FIND ALL REFS*/@typedef {number} T */ // const T = 1; // /** @type {T} */ @@ -8,10 +7,8 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} /*FIND ALL REFS*/T */ // const T = 1; // /** @type {T} */ @@ -19,10 +16,8 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} T */ // /*FIND ALL REFS*/const T = 1; // /** @type {T} */ @@ -30,10 +25,8 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} T */ // const /*FIND ALL REFS*/[|T|] = 1; // /** @type {T} */ @@ -41,10 +34,8 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} T */ // const T = 1; // /** @type {/*FIND ALL REFS*/[|T|]} */ @@ -52,11 +43,9 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} T */ // const [|T|] = 1; // /** @type {T} */ -// const n = /*FIND ALL REFS*/[|T|]; +// const n = /*FIND ALL REFS*/[|T|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc index 89a5c2918a..72f2f31da3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/jsdocTypedefTagSemanticMeaning1.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // /** @typedef {number} */ // /*FIND ALL REFS*/const T = 1; // /** @type {T} */ @@ -8,10 +7,8 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} */ // const /*FIND ALL REFS*/[|T|] = 1; // /** @type {T} */ @@ -19,10 +16,8 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} */ // const T = 1; // /** @type {/*FIND ALL REFS*/[|T|]} */ @@ -30,11 +25,9 @@ - // === findAllReferences === // === /a.js === - // /** @typedef {number} */ // const [|T|] = 1; // /** @type {T} */ -// const n = /*FIND ALL REFS*/[|T|]; +// const n = /*FIND ALL REFS*/[|T|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc index 8733deae92..4cc9699bb0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referenceInParameterPropertyDeclaration.baseline.jsonc @@ -1,58 +1,53 @@ // === findAllReferences === // === /file1.ts === - -// class Foo { -// constructor(private /*FIND ALL REFS*/[|privateParam|]: number, -// public publicParam: string, -// protected protectedParam: boolean) { +// class Foo { +// constructor(private /*FIND ALL REFS*/[|privateParam|]: number, +// public publicParam: string, +// protected protectedParam: boolean) { // -// let localPrivate = [|privateParam|]; -// this.[|privateParam|] += 10; +// let localPrivate = [|privateParam|]; +// this.[|privateParam|] += 10; // -// let localPublic = publicParam; -// this.publicParam += " Hello!"; +// let localPublic = publicParam; +// this.publicParam += " Hello!"; // // --- (line: 11) skipped --- - // === findAllReferences === // === /file1.ts === - -// class Foo { -// constructor(private privateParam: number, -// public /*FIND ALL REFS*/[|publicParam|]: string, -// protected protectedParam: boolean) { +// class Foo { +// constructor(private privateParam: number, +// public /*FIND ALL REFS*/[|publicParam|]: string, +// protected protectedParam: boolean) { // -// let localPrivate = privateParam; -// this.privateParam += 10; +// let localPrivate = privateParam; +// this.privateParam += 10; // -// let localPublic = [|publicParam|]; -// this.[|publicParam|] += " Hello!"; +// let localPublic = [|publicParam|]; +// this.[|publicParam|] += " Hello!"; // -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } - +// let localProtected = protectedParam; +// this.protectedParam = false; +// } +// } // === findAllReferences === // === /file1.ts === - -// class Foo { -// constructor(private privateParam: number, -// public publicParam: string, -// protected /*FIND ALL REFS*/[|protectedParam|]: boolean) { +// class Foo { +// constructor(private privateParam: number, +// public publicParam: string, +// protected /*FIND ALL REFS*/[|protectedParam|]: boolean) { // -// let localPrivate = privateParam; -// this.privateParam += 10; +// let localPrivate = privateParam; +// this.privateParam += 10; // -// let localPublic = publicParam; -// this.publicParam += " Hello!"; +// let localPublic = publicParam; +// this.publicParam += " Hello!"; // -// let localProtected = [|protectedParam|]; -// this.[|protectedParam|] = false; -// } -// } +// let localProtected = [|protectedParam|]; +// this.[|protectedParam|] = false; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc index f6bf983e78..039a517c5f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referenceToClass.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referenceToClass_1.ts === - // class /*FIND ALL REFS*/[|foo|] { // public n: [|foo|]; // public foo: number; @@ -15,17 +14,13 @@ // var k: [|foo|] = null; // } - // === /referenceToClass_2.ts === - // var k: [|foo|]; - // === findAllReferences === // === /referenceToClass_1.ts === - // class [|foo|] { // public n: /*FIND ALL REFS*/[|foo|]; // public foo: number; @@ -40,17 +35,13 @@ // var k: [|foo|] = null; // } - // === /referenceToClass_2.ts === - // var k: [|foo|]; - // === findAllReferences === // === /referenceToClass_1.ts === - // class [|foo|] { // public n: [|foo|]; // public foo: number; @@ -65,17 +56,13 @@ // var k: [|foo|] = null; // } - // === /referenceToClass_2.ts === - // var k: [|foo|]; - // === findAllReferences === // === /referenceToClass_1.ts === - // class [|foo|] { // public n: [|foo|]; // public foo: number; @@ -90,17 +77,13 @@ // var k: [|foo|] = null; // } - // === /referenceToClass_2.ts === - // var k: [|foo|]; - // === findAllReferences === // === /referenceToClass_1.ts === - // class [|foo|] { // public n: [|foo|]; // public foo: number; @@ -115,17 +98,13 @@ // var k: /*FIND ALL REFS*/[|foo|] = null; // } - // === /referenceToClass_2.ts === - // var k: [|foo|]; - // === findAllReferences === // === /referenceToClass_1.ts === - // class [|foo|] { // public n: [|foo|]; // public foo: number; @@ -140,7 +119,5 @@ // var k: [|foo|] = null; // } - // === /referenceToClass_2.ts === - -// var k: /*FIND ALL REFS*/[|foo|]; +// var k: /*FIND ALL REFS*/[|foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc index 11e1f74b3f..b25f19fd68 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referenceToEmptyObject.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /referenceToEmptyObject.ts === - -// const obj = {}/*FIND ALL REFS*/; +// const obj = {}/*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc index ce7a705518..95c1aa6286 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/references01.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /home/src/workspaces/project/referencesForGlobals_1.ts === - // class [|globalClass|] { // public f() { } // } - // === /home/src/workspaces/project/referencesForGlobals_2.ts === - // /// -// var c = /*FIND ALL REFS*/[|globalClass|](); +// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc index b373099f0a..2ca946624b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters.baseline.jsonc @@ -1,19 +1,12 @@ // === findAllReferences === // === /declaration.ts === - // var container = { /*FIND ALL REFS*/[|searchProp|] : 1 }; - // === /expression.ts === - // function blah() { return (1 + 2 + container.[|searchProp|]()) === 2; }; - // === /redeclaration.ts === - // container = { "[|searchProp|]" : 18 }; - // === /stringIndexer.ts === - -// function blah2() { container["[|searchProp|]"] }; +// function blah2() { container["[|searchProp|]"] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc index 294e4ea57c..e005ba98a0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters2.baseline.jsonc @@ -1,19 +1,12 @@ // === findAllReferences === // === /declaration.ts === - // var container = { /*FIND ALL REFS*/[|42|]: 1 }; - // === /expression.ts === - // function blah() { return (container[[|42|]]) === 2; }; - // === /redeclaration.ts === - // container = { "[|42|]" : 18 }; - // === /stringIndexer.ts === - -// function blah2() { container["[|42|]"] }; +// function blah2() { container["[|42|]"] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc index c92550b6fb..f1fe9c8f47 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesBloomFilters3.baseline.jsonc @@ -1,35 +1,24 @@ // === findAllReferences === // === /declaration.ts === - // enum Test { /*FIND ALL REFS*/"[|42|]" = 1 }; - // === /expression.ts === - // (Test[[|42|]]); - // === findAllReferences === // === /declaration.ts === - // enum Test { "/*FIND ALL REFS*/[|42|]" = 1 }; - // === /expression.ts === - // (Test[[|42|]]); - // === findAllReferences === // === /declaration.ts === - // enum Test { "[|42|]" = 1 }; - // === /expression.ts === - -// (Test[/*FIND ALL REFS*/[|42|]]); +// (Test[/*FIND ALL REFS*/[|42|]]); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc index 5753a79cb1..b70c6b36cd 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForAmbients.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForAmbients.ts === - // /*FIND ALL REFS*/declare module "foo" { // var f: number; // } @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "/*FIND ALL REFS*/[|foo|]" { // var f: number; // } @@ -26,10 +23,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // /*FIND ALL REFS*/var f: number; // } @@ -39,10 +34,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var /*FIND ALL REFS*/[|f|]: number; // } @@ -57,10 +50,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var f: number; // } @@ -73,10 +64,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var f: number; // } @@ -93,10 +82,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var f: number; // } @@ -110,10 +97,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var f: number; // } @@ -130,10 +115,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "[|foo|]" { // var f: number; // } @@ -147,10 +130,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var f: number; // } @@ -167,10 +148,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var [|f|]: number; // } @@ -185,10 +164,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // --- (line: 7) skipped --- // } // @@ -199,10 +176,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var f: number; // } @@ -219,10 +194,8 @@ - // === findAllReferences === // === /referencesForAmbients.ts === - // declare module "foo" { // var f: number; // } @@ -235,4 +208,4 @@ // declare module "baz" { // import bar = require("bar"); // var f2: typeof bar./*FIND ALL REFS*/[|foo|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc index 075c9aa995..6eba7c7b66 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassLocal.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForClassLocal.ts === - // var n = 14; // // class foo { @@ -12,10 +11,8 @@ - // === findAllReferences === // === /referencesForClassLocal.ts === - // var n = 14; // // class foo { @@ -34,10 +31,8 @@ - // === findAllReferences === // === /referencesForClassLocal.ts === - // var n = 14; // // class foo { @@ -56,10 +51,8 @@ - // === findAllReferences === // === /referencesForClassLocal.ts === - // var n = 14; // // class foo { @@ -74,4 +67,4 @@ // } // // public bar2() { -// // --- (line: 15) skipped --- +// // --- (line: 15) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc index f340314796..33b6e54679 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembers.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForClassMembers.ts === - // class Base { // /*FIND ALL REFS*/[|a|]: number; // method(): void { } @@ -16,10 +15,8 @@ - // === findAllReferences === // === /referencesForClassMembers.ts === - // class Base { // [|a|]: number; // method(): void { } @@ -35,10 +32,8 @@ - // === findAllReferences === // === /referencesForClassMembers.ts === - // class Base { // [|a|]: number; // method(): void { } @@ -54,10 +49,8 @@ - // === findAllReferences === // === /referencesForClassMembers.ts === - // class Base { // a: number; // /*FIND ALL REFS*/[|method|](): void { } @@ -73,10 +66,8 @@ - // === findAllReferences === // === /referencesForClassMembers.ts === - // class Base { // a: number; // [|method|](): void { } @@ -92,10 +83,8 @@ - // === findAllReferences === // === /referencesForClassMembers.ts === - // class Base { // a: number; // [|method|](): void { } @@ -107,4 +96,4 @@ // // var c: MyClass; // c.a; -// c./*FIND ALL REFS*/[|method|](); +// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc index 429d39ba03..f86f487c5f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingAbstractClass.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForClassMembersExtendingAbstractClass.ts === - // abstract class Base { // abstract /*FIND ALL REFS*/[|a|]: number; // abstract method(): void; @@ -16,10 +15,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingAbstractClass.ts === - // abstract class Base { // abstract [|a|]: number; // abstract method(): void; @@ -35,10 +32,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingAbstractClass.ts === - // abstract class Base { // abstract [|a|]: number; // abstract method(): void; @@ -54,10 +49,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingAbstractClass.ts === - // abstract class Base { // abstract a: number; // abstract /*FIND ALL REFS*/[|method|](): void; @@ -73,10 +66,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingAbstractClass.ts === - // abstract class Base { // abstract a: number; // abstract [|method|](): void; @@ -92,10 +83,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingAbstractClass.ts === - // abstract class Base { // abstract a: number; // abstract [|method|](): void; @@ -107,4 +96,4 @@ // // var c: MyClass; // c.a; -// c./*FIND ALL REFS*/[|method|](); +// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc index 79cdb2e1dc..c1fa532bb7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassMembersExtendingGenericClass.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForClassMembersExtendingGenericClass.ts === - // class Base { // /*FIND ALL REFS*/[|a|]: this; // method(a?:T, b?:U): this { } @@ -16,10 +15,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingGenericClass.ts === - // class Base { // [|a|]: this; // method(a?:T, b?:U): this { } @@ -35,10 +32,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingGenericClass.ts === - // class Base { // [|a|]: this; // method(a?:T, b?:U): this { } @@ -54,10 +49,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingGenericClass.ts === - // class Base { // a: this; // /*FIND ALL REFS*/[|method|](a?:T, b?:U): this { } @@ -73,10 +66,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingGenericClass.ts === - // class Base { // a: this; // [|method|](a?:T, b?:U): this { } @@ -92,10 +83,8 @@ - // === findAllReferences === // === /referencesForClassMembersExtendingGenericClass.ts === - // class Base { // a: this; // [|method|](a?:T, b?:U): this { } @@ -107,4 +96,4 @@ // // var c: MyClass; // c.a; -// c./*FIND ALL REFS*/[|method|](); +// c./*FIND ALL REFS*/[|method|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc index 87848b4dc2..e5b662d166 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForClassParameter.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForClassParameter.ts === - // var p = 2; // // class p { } @@ -14,10 +13,8 @@ - // === findAllReferences === // === /referencesForClassParameter.ts === - // var p = 2; // // class p { } @@ -37,10 +34,8 @@ - // === findAllReferences === // === /referencesForClassParameter.ts === - // var p = 2; // // class p { } @@ -60,10 +55,8 @@ - // === findAllReferences === // === /referencesForClassParameter.ts === - // var p = 2; // // class p { } @@ -79,4 +72,4 @@ // } // // var n = new foo(undefined); -// n./*FIND ALL REFS*/[|p|] = null; +// n./*FIND ALL REFS*/[|p|] = null; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc index e9ec25e6c9..4c491c78d4 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForContextuallyTypedObjectLiteralProperties.ts === - // interface IFoo { /*FIND ALL REFS*/[|xy|]: number; } // // // Assignment @@ -24,4 +23,4 @@ // var w: IFoo = { [|xy|]: undefined }; // // // Untped -- should not be included -// var u = { xy: 0 }; +// var u = { xy: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc index 65e37f9a5f..675fdc58e9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // /*FIND ALL REFS*/[|common|]: string; @@ -37,10 +36,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // --- (line: 4) skipped --- // // interface B { @@ -74,10 +71,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -114,10 +109,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -154,10 +147,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -194,10 +185,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -234,10 +223,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -274,10 +261,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -314,10 +299,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -354,10 +337,8 @@ - // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties.ts === - // interface A { // a: number; // [|common|]: string; @@ -390,4 +371,4 @@ // // // Untped -- should not be included // var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; +// var u2 = { b: 0, common: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties2.baseline.jsonc index fcf8502a8a..f3a40c040c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForContextuallyTypedUnionProperties2.ts === - // --- (line: 3) skipped --- // } // @@ -31,4 +30,4 @@ // // // Untped -- should not be included // var u1 = { a: 0, b: 0, common: "" }; -// var u2 = { b: 0, common: 0 }; +// var u2 = { b: 0, common: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc index 2db33149e6..1eaba5ce64 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForDeclarationKeywords.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // /*FIND ALL REFS*/class C1 extends Base implements Implemented1 { @@ -11,10 +10,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // class C1 /*FIND ALL REFS*/extends Base implements Implemented1 { @@ -25,10 +22,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // class C1 extends Base /*FIND ALL REFS*/implements Implemented1 { @@ -39,10 +34,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 14) skipped --- // const z = 1; // interface Implemented2 {} @@ -52,10 +45,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // class C1 extends Base implements Implemented1 { @@ -67,10 +58,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // class C1 extends Base implements Implemented1 { @@ -83,10 +72,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 3) skipped --- // get e() { return 1; } // set e(v) {} @@ -99,10 +86,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 3) skipped --- // get e() { return 1; } // set e(v) {} @@ -115,10 +100,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 15) skipped --- // interface Implemented2 {} // interface Implemented3 {} @@ -127,10 +110,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 4) skipped --- // set e(v) {} // } @@ -143,10 +124,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 5) skipped --- // } // interface I1 extends Base { } @@ -159,10 +138,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 6) skipped --- // interface I1 extends Base { } // type T = { } @@ -175,10 +152,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 7) skipped --- // type T = { } // enum E { } @@ -191,10 +166,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 8) skipped --- // enum E { } // namespace N { } @@ -207,10 +180,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 9) skipped --- // namespace N { } // module M { } @@ -223,10 +194,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 10) skipped --- // module M { } // function fn() {} @@ -240,10 +209,8 @@ - // === findAllReferences === // === /referencesForDeclarationKeywords.ts === - // --- (line: 11) skipped --- // function fn() {} // var x; @@ -252,4 +219,4 @@ // interface Implemented2 {} // interface Implemented3 {} // class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// interface I2 extends Implemented2, Implemented3 {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc index 029ee16b94..1cc4283eff 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForEnums.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // /*FIND ALL REFS*/[|value1|] = 1, // "value2" = [|value1|], @@ -14,10 +13,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // value1 = 1, // /*FIND ALL REFS*/"[|value2|]" = value1, @@ -31,10 +28,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // value1 = 1, // "/*FIND ALL REFS*/[|value2|]" = value1, @@ -48,10 +43,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // [|value1|] = 1, // "value2" = /*FIND ALL REFS*/[|value1|], @@ -65,10 +58,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // value1 = 1, // "value2" = value1, @@ -82,10 +73,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // [|value1|] = 1, // "value2" = [|value1|], @@ -99,10 +88,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // value1 = 1, // "[|value2|]" = value1, @@ -116,10 +103,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // value1 = 1, // "[|value2|]" = value1, @@ -133,10 +118,8 @@ - // === findAllReferences === // === /referencesForEnums.ts === - // enum E { // value1 = 1, // "value2" = value1, @@ -146,4 +129,4 @@ // E.value1; // E["value2"]; // E.value2; -// E[/*FIND ALL REFS*/[|111|]]; +// E[/*FIND ALL REFS*/[|111|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc index ff7dbdb0e1..845f1c7ced 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExpressionKeywords.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // class C { // static x = 1; // } @@ -12,10 +11,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // class C { // static x = 1; // } @@ -28,10 +25,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // class C { // static x = 1; // } @@ -45,10 +40,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // --- (line: 5) skipped --- // typeof C; // delete C.x; @@ -62,10 +55,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // --- (line: 6) skipped --- // delete C.x; // async function* f() { @@ -78,10 +69,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // --- (line: 8) skipped --- // yield C; // await C; @@ -92,10 +81,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // class [|C|] { // static x = 1; // } @@ -113,10 +100,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // --- (line: 10) skipped --- // } // "x" in C; @@ -125,10 +110,8 @@ - // === findAllReferences === // === /referencesForExpressionKeywords.ts === - // --- (line: 3) skipped --- // new C(); // void C; @@ -137,4 +120,4 @@ // async function* f() { // yield C; // await C; -// // --- (line: 11) skipped --- +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc index 0a8b6fda57..6f1cb201fe 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForExternalModuleNames.baseline.jsonc @@ -1,44 +1,33 @@ // === findAllReferences === // === /referencesForGlobals_1.ts === - // /*FIND ALL REFS*/declare module "foo" { // var f: number; // } - // === findAllReferences === // === /referencesForGlobals_1.ts === - // declare module "/*FIND ALL REFS*/[|foo|]" { // var f: number; // } - // === /referencesForGlobals_2.ts === - // import f = require("[|foo|]"); - // === findAllReferences === // === /referencesForGlobals_2.ts === - // /*FIND ALL REFS*/import f = require("foo"); - // === findAllReferences === // === /referencesForGlobals_1.ts === - // declare module "[|foo|]" { // var f: number; // } - // === /referencesForGlobals_2.ts === - -// import f = require("/*FIND ALL REFS*/[|foo|]"); +// import f = require("/*FIND ALL REFS*/[|foo|]"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc index 22e9952724..86de4ff51c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionOverloads.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForFunctionOverloads.ts === - // /*FIND ALL REFS*/function foo(x: string); // function foo(x: string, y: number) { // foo('', 43); @@ -8,10 +7,8 @@ - // === findAllReferences === // === /referencesForFunctionOverloads.ts === - // function /*FIND ALL REFS*/[|foo|](x: string); // function [|foo|](x: string, y: number) { // [|foo|]('', 43); @@ -19,10 +16,8 @@ - // === findAllReferences === // === /referencesForFunctionOverloads.ts === - // function foo(x: string); // /*FIND ALL REFS*/function foo(x: string, y: number) { // foo('', 43); @@ -30,10 +25,8 @@ - // === findAllReferences === // === /referencesForFunctionOverloads.ts === - // function [|foo|](x: string); // function /*FIND ALL REFS*/[|foo|](x: string, y: number) { // [|foo|]('', 43); @@ -41,11 +34,9 @@ - // === findAllReferences === // === /referencesForFunctionOverloads.ts === - // function [|foo|](x: string); // function [|foo|](x: string, y: number) { // /*FIND ALL REFS*/[|foo|]('', 43); -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc index 2f6301cdb3..f6c122df92 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForFunctionParameter.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForFunctionParameter.ts === - // var x; // var n; // @@ -11,10 +10,8 @@ - // === findAllReferences === // === /referencesForFunctionParameter.ts === - // var x; // var n; // @@ -25,14 +22,12 @@ - // === findAllReferences === // === /referencesForFunctionParameter.ts === - // var x; // var n; // // function n(x: number, [|n|]: number) { // [|n|] = 32; // x = /*FIND ALL REFS*/[|n|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc index 06d99f49ea..54bec186f0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForGlobals_1.ts === - // /*FIND ALL REFS*/var global = 2; // // class foo { @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForGlobals_1.ts === - // var /*FIND ALL REFS*/[|global|] = 2; // // class foo { @@ -32,17 +29,13 @@ // // var k = [|global|]; - // === /referencesForGlobals_2.ts === - // var m = [|global|]; - // === findAllReferences === // === /referencesForGlobals_1.ts === - // var [|global|] = 2; // // class foo { @@ -62,17 +55,13 @@ // // var k = [|global|]; - // === /referencesForGlobals_2.ts === - // var m = [|global|]; - // === findAllReferences === // === /referencesForGlobals_1.ts === - // var [|global|] = 2; // // class foo { @@ -92,17 +81,13 @@ // // var k = /*FIND ALL REFS*/[|global|]; - // === /referencesForGlobals_2.ts === - // var m = [|global|]; - // === findAllReferences === // === /referencesForGlobals_1.ts === - // var [|global|] = 2; // // class foo { @@ -122,7 +107,5 @@ // // var k = [|global|]; - // === /referencesForGlobals_2.ts === - -// var m = /*FIND ALL REFS*/[|global|]; +// var m = /*FIND ALL REFS*/[|global|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc index 4a73d867a2..31467511fe 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals2.baseline.jsonc @@ -1,36 +1,27 @@ // === findAllReferences === // === /referencesForGlobals_1.ts === - // /*FIND ALL REFS*/class globalClass { // public f() { } // } - // === findAllReferences === // === /referencesForGlobals_1.ts === - // class /*FIND ALL REFS*/[|globalClass|] { // public f() { } // } - // === /referencesForGlobals_2.ts === - // var c = [|globalClass|](); - // === findAllReferences === // === /referencesForGlobals_1.ts === - // class [|globalClass|] { // public f() { } // } - // === /referencesForGlobals_2.ts === - -// var c = /*FIND ALL REFS*/[|globalClass|](); +// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc index 9947d0964d..79f09ba209 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals3.baseline.jsonc @@ -1,36 +1,27 @@ // === findAllReferences === // === /referencesForGlobals_1.ts === - // /*FIND ALL REFS*/interface globalInterface { // f(); // } - // === findAllReferences === // === /referencesForGlobals_1.ts === - // interface /*FIND ALL REFS*/[|globalInterface|] { // f(); // } - // === /referencesForGlobals_2.ts === - // var i: [|globalInterface|]; - // === findAllReferences === // === /referencesForGlobals_1.ts === - // interface [|globalInterface|] { // f(); // } - // === /referencesForGlobals_2.ts === - -// var i: /*FIND ALL REFS*/[|globalInterface|]; +// var i: /*FIND ALL REFS*/[|globalInterface|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc index 2a781957a8..92d11768c4 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals4.baseline.jsonc @@ -1,36 +1,27 @@ // === findAllReferences === // === /referencesForGlobals_1.ts === - // /*FIND ALL REFS*/module globalModule { // export f() { }; // } - // === findAllReferences === // === /referencesForGlobals_1.ts === - // module /*FIND ALL REFS*/[|globalModule|] { // export f() { }; // } - // === /referencesForGlobals_2.ts === - // var m = [|globalModule|]; - // === findAllReferences === // === /referencesForGlobals_1.ts === - // module [|globalModule|] { // export f() { }; // } - // === /referencesForGlobals_2.ts === - -// var m = /*FIND ALL REFS*/[|globalModule|]; +// var m = /*FIND ALL REFS*/[|globalModule|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc index b101632f3e..1345e76576 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobals5.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForGlobals_1.ts === - // module globalModule { // export var x; // } @@ -9,34 +8,26 @@ - // === findAllReferences === // === /referencesForGlobals_1.ts === - // module globalModule { // export var x; // } // // import /*FIND ALL REFS*/[|globalAlias|] = globalModule; - // === /referencesForGlobals_2.ts === - // var m = [|globalAlias|]; - // === findAllReferences === // === /referencesForGlobals_1.ts === - // module globalModule { // export var x; // } // // import [|globalAlias|] = globalModule; - // === /referencesForGlobals_2.ts === - -// var m = /*FIND ALL REFS*/[|globalAlias|]; +// var m = /*FIND ALL REFS*/[|globalAlias|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc index 4b4a084e07..73e1bc6410 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForGlobalsInExternalModule.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // /*FIND ALL REFS*/var topLevelVar = 2; // var topLevelVar2 = topLevelVar; // @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // var /*FIND ALL REFS*/[|topLevelVar|] = 2; // var topLevelVar2 = [|topLevelVar|]; // @@ -22,10 +19,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // var [|topLevelVar|] = 2; // var topLevelVar2 = /*FIND ALL REFS*/[|topLevelVar|]; // @@ -35,10 +30,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; // var topLevelVar2 = topLevelVar; // @@ -50,10 +43,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; // var topLevelVar2 = topLevelVar; // @@ -66,10 +57,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; // var topLevelVar2 = topLevelVar; // @@ -82,10 +71,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); @@ -98,10 +85,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); @@ -115,10 +100,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); @@ -132,10 +115,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; @@ -149,10 +130,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; @@ -166,10 +145,8 @@ - // === findAllReferences === // === /referencesForGlobalsInExternalModule.ts === - // --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; @@ -179,4 +156,4 @@ // } // var x = /*FIND ALL REFS*/[|topLevelModule|].x; // -// export = x; +// export = x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc index bc2eb98e5c..d93532f71d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIllegalAssignment.baseline.jsonc @@ -1,26 +1,21 @@ // === findAllReferences === // === /referencesForIllegalAssignment.ts === - // f/*FIND ALL REFS*/oo = foo; // var bar = function () { }; // bar = bar + 1; - // === findAllReferences === // === /referencesForIllegalAssignment.ts === - // foo = fo/*FIND ALL REFS*/o; // var bar = function () { }; // bar = bar + 1; - // === findAllReferences === // === /referencesForIllegalAssignment.ts === - // foo = foo; // var /*FIND ALL REFS*/[|bar|] = function () { }; -// [|bar|] = [|bar|] + 1; +// [|bar|] = [|bar|] + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc index 7733371e72..81aaedb024 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForImports.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForImports.ts === - // declare module "jquery" { // function $(s: string): any; // export = $; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /referencesForImports.ts === - // declare module "jquery" { // function $(s: string): any; // export = $; @@ -25,10 +22,8 @@ - // === findAllReferences === // === /referencesForImports.ts === - // declare module "jquery" { // function $(s: string): any; // export = $; @@ -39,10 +34,8 @@ - // === findAllReferences === // === /referencesForImports.ts === - // --- (line: 3) skipped --- // } // import $ = require("jquery"); @@ -51,12 +44,10 @@ - // === findAllReferences === // === /referencesForImports.ts === - // --- (line: 3) skipped --- // } // import $ = require("jquery"); // $("a"); -// import /*FIND ALL REFS*/[|$|] = require("jquery"); +// import /*FIND ALL REFS*/[|$|] = require("jquery"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc index 9e6d538aff..1ded639d70 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForIndexProperty.ts === - // class Foo { // /*FIND ALL REFS*/[|property|]: number; // method(): void { } @@ -12,10 +11,8 @@ - // === findAllReferences === // === /referencesForIndexProperty.ts === - // class Foo { // property: number; // /*FIND ALL REFS*/[|method|](): void { } @@ -27,10 +24,8 @@ - // === findAllReferences === // === /referencesForIndexProperty.ts === - // class Foo { // [|property|]: number; // method(): void { } @@ -42,10 +37,8 @@ - // === findAllReferences === // === /referencesForIndexProperty.ts === - // class Foo { // property: number; // [|method|](): void { } @@ -53,4 +46,4 @@ // // var f: Foo; // f["property"]; -// f["/*FIND ALL REFS*/[|method|]"]; +// f["/*FIND ALL REFS*/[|method|]"]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc index 0699715589..85224ee567 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty2.baseline.jsonc @@ -1,5 +1,4 @@ // === findAllReferences === // === /referencesForIndexProperty2.ts === - // var a; -// a["/*FIND ALL REFS*/blah"]; +// a["/*FIND ALL REFS*/blah"]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc index b7952955f1..682a16fa69 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForIndexProperty3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForIndexProperty3.ts === - // interface Object { // /*FIND ALL REFS*/[|toMyString|](); // } @@ -13,10 +12,8 @@ - // === findAllReferences === // === /referencesForIndexProperty3.ts === - // interface Object { // [|toMyString|](); // } @@ -29,10 +26,8 @@ - // === findAllReferences === // === /referencesForIndexProperty3.ts === - // interface Object { // [|toMyString|](); // } @@ -41,4 +36,4 @@ // y.[|toMyString|](); // // var x = {}; -// x["/*FIND ALL REFS*/[|toMyString|]"](); +// x["/*FIND ALL REFS*/[|toMyString|]"](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc index 8f54db59c2..293d6351e9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForInheritedProperties.ts === - // interface interface1 { // /*FIND ALL REFS*/[|doStuff|](): void; // } @@ -24,10 +23,8 @@ - // === findAllReferences === // === /referencesForInheritedProperties.ts === - // interface interface1 { // [|doStuff|](): void; // } @@ -51,10 +48,8 @@ - // === findAllReferences === // === /referencesForInheritedProperties.ts === - // interface interface1 { // [|doStuff|](): void; // } @@ -78,10 +73,8 @@ - // === findAllReferences === // === /referencesForInheritedProperties.ts === - // interface interface1 { // [|doStuff|](): void; // } @@ -101,4 +94,4 @@ // } // // var v: class2; -// v./*FIND ALL REFS*/[|doStuff|](); +// v./*FIND ALL REFS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc index 7a4f317ec3..e34fca6cd0 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForInheritedProperties2.ts === - // interface interface1 { // /*FIND ALL REFS*/[|doStuff|](): void; // } @@ -23,4 +22,4 @@ // } // // var v: class2; -// v.[|doStuff|](); +// v.[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc index a5eeb3faaf..19d90b93c7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties3.baseline.jsonc @@ -1,56 +1,49 @@ // === findAllReferences === // === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } // -// var v: interface1; -// v.propName; -// v.[|doStuff|](); - +// var v: interface1; +// v.propName; +// v.[|doStuff|](); // === findAllReferences === // === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } // -// var v: interface1; -// v.[|propName|]; -// v.doStuff(); - +// var v: interface1; +// v.[|propName|]; +// v.doStuff(); // === findAllReferences === // === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } // -// var v: interface1; -// v./*FIND ALL REFS*/[|propName|]; -// v.doStuff(); - +// var v: interface1; +// v./*FIND ALL REFS*/[|propName|]; +// v.doStuff(); // === findAllReferences === // === /referencesForInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } // -// var v: interface1; -// v.propName; -// v./*FIND ALL REFS*/[|doStuff|](); +// var v: interface1; +// v.propName; +// v./*FIND ALL REFS*/[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc index ad772764e1..3a6c2a0e04 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties4.baseline.jsonc @@ -1,56 +1,49 @@ // === findAllReferences === // === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } // -// var c: class1; -// c.[|doStuff|](); -// c.propName; - +// var c: class1; +// c.[|doStuff|](); +// c.propName; // === findAllReferences === // === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } // -// var c: class1; -// c.doStuff(); -// c.[|propName|]; - +// var c: class1; +// c.doStuff(); +// c.[|propName|]; // === findAllReferences === // === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } // -// var c: class1; -// c./*FIND ALL REFS*/[|doStuff|](); -// c.propName; - +// var c: class1; +// c./*FIND ALL REFS*/[|doStuff|](); +// c.propName; // === findAllReferences === // === /referencesForInheritedProperties4.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } // -// var c: class1; -// c.doStuff(); -// c./*FIND ALL REFS*/[|propName|]; +// var c: class1; +// c.doStuff(); +// c./*FIND ALL REFS*/[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc index 6b6dabb357..3c9123193e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties5.baseline.jsonc @@ -1,34 +1,31 @@ // === findAllReferences === // === /referencesForInheritedProperties5.ts === - -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// interface interface2 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// interface interface2 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } // -// var v: interface1; -// v.propName; -// v.[|doStuff|](); - +// var v: interface1; +// v.propName; +// v.[|doStuff|](); // === findAllReferences === // === /referencesForInheritedProperties5.ts === - -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface2 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface2 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } // -// var v: interface1; -// v.[|propName|]; -// v.doStuff(); +// var v: interface1; +// v.[|propName|]; +// v.doStuff(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc index 09108f9593..7234ace5af 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties6.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForInheritedProperties6.ts === - // class class1 extends class1 { // /*FIND ALL REFS*/[|doStuff|]() { } // } @@ -9,4 +8,4 @@ // } // // var v: class2; -// v.[|doStuff|](); +// v.[|doStuff|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc index c2b2b65e94..78bfa8e7bc 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties7.baseline.jsonc @@ -1,132 +1,121 @@ // === findAllReferences === // === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } // -// var v: class2; -// v.[|doStuff|](); -// v.propName; - +// var v: class2; +// v.[|doStuff|](); +// v.propName; // === findAllReferences === // === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } // -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - +// var v: class2; +// v.doStuff(); +// v.[|propName|]; // === findAllReferences === // === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// doStuff() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// /*FIND ALL REFS*/[|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// [|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// doStuff() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// /*FIND ALL REFS*/[|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// [|doStuff|]() { } +// propName: string; +// } // -// var v: class2; -// v.[|doStuff|](); -// v.propName; - +// var v: class2; +// v.[|doStuff|](); +// v.propName; // === findAllReferences === // === /referencesForInheritedProperties7.ts === - // --- (line: 3) skipped --- -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// /*FIND ALL REFS*/[|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// [|propName|]: string; -// } +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// /*FIND ALL REFS*/[|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// [|propName|]: string; +// } // -// var v: class2; -// v.doStuff(); -// v.[|propName|]; - +// var v: class2; +// v.doStuff(); +// v.[|propName|]; // === findAllReferences === // === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// [|doStuff|]() { } -// propName: string; -// } -// interface interface1 extends interface1 { -// [|doStuff|](): void; -// propName: string; -// } -// class class2 extends class1 implements interface1 { -// /*FIND ALL REFS*/[|doStuff|]() { } -// propName: string; -// } +// class class1 extends class1 { +// [|doStuff|]() { } +// propName: string; +// } +// interface interface1 extends interface1 { +// [|doStuff|](): void; +// propName: string; +// } +// class class2 extends class1 implements interface1 { +// /*FIND ALL REFS*/[|doStuff|]() { } +// propName: string; +// } // -// var v: class2; -// v.[|doStuff|](); -// v.propName; - +// var v: class2; +// v.[|doStuff|](); +// v.propName; // === findAllReferences === // === /referencesForInheritedProperties7.ts === - -// class class1 extends class1 { -// doStuff() { } -// [|propName|]: string; -// } -// interface interface1 extends interface1 { -// doStuff(): void; -// [|propName|]: string; -// } -// class class2 extends class1 implements interface1 { -// doStuff() { } -// /*FIND ALL REFS*/[|propName|]: string; -// } +// class class1 extends class1 { +// doStuff() { } +// [|propName|]: string; +// } +// interface interface1 extends interface1 { +// doStuff(): void; +// [|propName|]: string; +// } +// class class2 extends class1 implements interface1 { +// doStuff() { } +// /*FIND ALL REFS*/[|propName|]: string; +// } // -// var v: class2; -// v.doStuff(); -// v.[|propName|]; +// var v: class2; +// v.doStuff(); +// v.[|propName|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc index e3ed80d606..972d4a33d9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties8.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForInheritedProperties8.ts === - // interface C extends D { // /*FIND ALL REFS*/[|propD|]: number; // } @@ -14,10 +13,8 @@ - // === findAllReferences === // === /referencesForInheritedProperties8.ts === - // interface C extends D { // propD: number; // } @@ -27,4 +24,4 @@ // } // var d: D; // d.propD; -// d.[|propC|]; +// d.[|propC|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc index bf0a442911..fa5cd78b48 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForInheritedProperties9.baseline.jsonc @@ -1,43 +1,38 @@ // === findAllReferences === // === /referencesForInheritedProperties9.ts === - -// class D extends C { -// /*FIND ALL REFS*/[|prop1|]: string; -// } +// class D extends C { +// /*FIND ALL REFS*/[|prop1|]: string; +// } // -// class C extends D { +// class C extends D { // // --- (line: 6) skipped --- - // === findAllReferences === // === /referencesForInheritedProperties9.ts === - -// class D extends C { -// prop1: string; -// } +// class D extends C { +// prop1: string; +// } // -// class C extends D { -// /*FIND ALL REFS*/[|prop1|]: string; -// } +// class C extends D { +// /*FIND ALL REFS*/[|prop1|]: string; +// } // -// var c: C; -// c.[|prop1|]; - +// var c: C; +// c.[|prop1|]; // === findAllReferences === // === /referencesForInheritedProperties9.ts === - -// class D extends C { -// prop1: string; -// } +// class D extends C { +// prop1: string; +// } // -// class C extends D { -// [|prop1|]: string; -// } +// class C extends D { +// [|prop1|]: string; +// } // -// var c: C; -// c./*FIND ALL REFS*/[|prop1|]; +// var c: C; +// c./*FIND ALL REFS*/[|prop1|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc index 6ddd5eb65e..783462c95b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForLabel.ts === - // /*FIND ALL REFS*/[|label|]: while (true) { // if (false) break [|label|]; // if (true) continue [|label|]; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /referencesForLabel.ts === - // label: while (true) { // if (false) /*FIND ALL REFS*/break label; // if (true) continue label; @@ -25,10 +22,8 @@ - // === findAllReferences === // === /referencesForLabel.ts === - // [|label|]: while (true) { // if (false) break /*FIND ALL REFS*/[|label|]; // if (true) continue [|label|]; @@ -39,10 +34,8 @@ - // === findAllReferences === // === /referencesForLabel.ts === - // label: while (true) { // if (false) break label; // if (true) /*FIND ALL REFS*/continue label; @@ -53,10 +46,8 @@ - // === findAllReferences === // === /referencesForLabel.ts === - // [|label|]: while (true) { // if (false) break [|label|]; // if (true) continue /*FIND ALL REFS*/[|label|]; @@ -67,14 +58,12 @@ - // === findAllReferences === // === /referencesForLabel.ts === - // label: while (true) { // if (false) break label; // if (true) continue label; // } // // /*FIND ALL REFS*/[|label|]: while (false) { } -// var label = "label"; +// var label = "label"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc index f102fc70dc..c68d6f1c66 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel2.baseline.jsonc @@ -1,8 +1,7 @@ // === findAllReferences === // === /referencesForLabel2.ts === - // var label = "label"; // while (true) { // if (false) break /*FIND ALL REFS*/label; // if (true) continue label; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc index 6679b7164c..e86a78b6b3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForLabel3.ts === - // /*FIND ALL REFS*/[|label|]: while (true) { // var label = "label"; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc index b2622029e5..fc1db350cf 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel4.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForLabel4.ts === - // /*FIND ALL REFS*/[|label|]: function foo(label) { // while (true) { // break [|label|]; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForLabel4.ts === - // label: function foo(label) { // while (true) { // /*FIND ALL REFS*/break label; @@ -21,12 +18,10 @@ - // === findAllReferences === // === /referencesForLabel4.ts === - // [|label|]: function foo(label) { // while (true) { // break /*FIND ALL REFS*/[|label|]; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc index 1de7e3936e..4b0e54b03e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel5.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForLabel5.ts === - // /*FIND ALL REFS*/[|label|]: while (true) { // if (false) break [|label|]; // function blah() { @@ -13,10 +12,8 @@ - // === findAllReferences === // === /referencesForLabel5.ts === - // label: while (true) { // if (false) /*FIND ALL REFS*/break label; // function blah() { @@ -26,10 +23,8 @@ - // === findAllReferences === // === /referencesForLabel5.ts === - // [|label|]: while (true) { // if (false) break /*FIND ALL REFS*/[|label|]; // function blah() { @@ -42,10 +37,8 @@ - // === findAllReferences === // === /referencesForLabel5.ts === - // label: while (true) { // if (false) break label; // function blah() { @@ -58,10 +51,8 @@ - // === findAllReferences === // === /referencesForLabel5.ts === - // label: while (true) { // if (false) break label; // function blah() { @@ -74,10 +65,8 @@ - // === findAllReferences === // === /referencesForLabel5.ts === - // label: while (true) { // if (false) break label; // function blah() { @@ -90,10 +79,8 @@ - // === findAllReferences === // === /referencesForLabel5.ts === - // --- (line: 4) skipped --- // if (false) break label; // } @@ -103,10 +90,8 @@ - // === findAllReferences === // === /referencesForLabel5.ts === - // [|label|]: while (true) { // if (false) break [|label|]; // function blah() { @@ -115,4 +100,4 @@ // } // } // if (false) break /*FIND ALL REFS*/[|label|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc index c2cc04b2ae..49cf759d33 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForLabel6.ts === - // /*FIND ALL REFS*/[|labela|]: while (true) { // labelb: while (false) { break labelb; } // break labelc; @@ -8,10 +7,8 @@ - // === findAllReferences === // === /referencesForLabel6.ts === - // labela: while (true) { // /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } // break labelc; @@ -19,10 +16,8 @@ - // === findAllReferences === // === /referencesForLabel6.ts === - // labela: while (true) { // labelb: while (false) { /*FIND ALL REFS*/break labelb; } // break labelc; @@ -30,11 +25,9 @@ - // === findAllReferences === // === /referencesForLabel6.ts === - // labela: while (true) { // labelb: while (false) { break /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } // break labelc; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc index 0b741b7e9f..9a876c8f4b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // /*FIND ALL REFS*/interface Foo { // } // @@ -9,17 +8,14 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // interface /*FIND ALL REFS*/[|Foo|] { // } // // module Foo { // // --- (line: 5) skipped --- - // --- (line: 8) skipped --- // } // @@ -29,10 +25,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // interface Foo { // } // @@ -44,10 +38,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // interface Foo { // } // @@ -64,10 +56,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // --- (line: 4) skipped --- // export interface Bar { } // } @@ -81,10 +71,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // --- (line: 4) skipped --- // export interface Bar { } // } @@ -98,10 +86,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // interface Foo { // } // @@ -118,17 +104,14 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // interface [|Foo|] { // } // // module Foo { // // --- (line: 5) skipped --- - // --- (line: 8) skipped --- // } // @@ -138,10 +121,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations.ts === - // --- (line: 4) skipped --- // export interface Bar { } // } @@ -151,4 +132,4 @@ // // var f1: Foo.Bar; // var f2: Foo; -// /*FIND ALL REFS*/[|Foo|].bind(this); +// /*FIND ALL REFS*/[|Foo|].bind(this); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc index 2cf2e1cd97..377113b9d1 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations2.ts === - // --- (line: 3) skipped --- // // function ATest() { } @@ -12,10 +11,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations2.ts === - // --- (line: 3) skipped --- // // function ATest() { } @@ -27,10 +24,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations2.ts === - // --- (line: 3) skipped --- // // function ATest() { } @@ -42,10 +37,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations2.ts === - // --- (line: 3) skipped --- // // function ATest() { } @@ -53,4 +46,4 @@ // import [|alias|] = ATest; // definition // // var a: [|alias|].Bar; // namespace -// /*FIND ALL REFS*/[|alias|].call(this); // value +// /*FIND ALL REFS*/[|alias|].call(this); // value \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc index 34f1c62143..1fc1969780 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations3.ts === - // class testClass { // static staticMethod() { } // method() { } @@ -21,17 +20,14 @@ - // === findAllReferences === // === /referencesForMergedDeclarations3.ts === - // class /*FIND ALL REFS*/[|testClass|] { // static staticMethod() { } // method() { } // } // // --- (line: 5) skipped --- - // --- (line: 8) skipped --- // } // } @@ -41,4 +37,4 @@ // [|testClass|].staticMethod(); // [|testClass|].prototype.method(); // [|testClass|].bind(this); -// new [|testClass|](); +// new [|testClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc index 549b9b5a28..fc54de7f4b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations4.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // /*FIND ALL REFS*/class testClass { // static staticMethod() { } // method() { } @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class /*FIND ALL REFS*/[|testClass|] { // static staticMethod() { } // method() { } @@ -35,10 +32,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class testClass { // static staticMethod() { } // method() { } @@ -52,10 +47,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -78,10 +71,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -104,10 +95,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -130,10 +119,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -156,10 +143,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -182,10 +167,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -208,10 +191,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -234,10 +215,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations4.ts === - // class [|testClass|] { // static staticMethod() { } // method() { } @@ -256,4 +235,4 @@ // [|testClass|].prototype.method(); // [|testClass|].bind(this); // [|testClass|].s; -// new /*FIND ALL REFS*/[|testClass|](); +// new /*FIND ALL REFS*/[|testClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc index 0fe019045e..abf381b396 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations5.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations5.ts === - // interface /*FIND ALL REFS*/[|Foo|] { } // module Foo { export interface Bar { } } // function Foo() { } @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations5.ts === - // interface Foo { } // module /*FIND ALL REFS*/[|Foo|] { export interface Bar { } } // function Foo() { } @@ -21,10 +18,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations5.ts === - // interface Foo { } // module Foo { export interface Bar { } } // function /*FIND ALL REFS*/[|Foo|]() { } @@ -33,12 +28,10 @@ - // === findAllReferences === // === /referencesForMergedDeclarations5.ts === - // interface Foo { } // module Foo { export interface Bar { } } // function [|Foo|]() { } // -// export = /*FIND ALL REFS*/[|Foo|]; +// export = /*FIND ALL REFS*/[|Foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc index 39c098d007..f7f9fd6965 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations6.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations6.ts === - // interface Foo { } // /*FIND ALL REFS*/module Foo { // export interface Bar { } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations6.ts === - // interface Foo { } // module /*FIND ALL REFS*/[|Foo|] { // export interface Bar { } @@ -26,10 +23,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations6.ts === - // interface Foo { } // module [|Foo|] { // export interface Bar { } @@ -38,4 +33,4 @@ // } // // // module -// import a1 = /*FIND ALL REFS*/[|Foo|]; +// import a1 = /*FIND ALL REFS*/[|Foo|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc index 65002364fe..5f4172f80a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations7.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations7.ts === - // interface Foo { } // module Foo { // export interface /*FIND ALL REFS*/[|Bar|] { } @@ -11,10 +10,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations7.ts === - // interface Foo { } // module Foo { // export interface Bar { } @@ -27,10 +24,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations7.ts === - // interface Foo { } // module Foo { // export interface Bar { } @@ -43,10 +38,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations7.ts === - // interface Foo { } // module Foo { // export interface Bar { } @@ -55,4 +48,4 @@ // } // // // module, value and type -// import a2 = Foo./*FIND ALL REFS*/[|Bar|]; +// import a2 = Foo./*FIND ALL REFS*/[|Bar|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc index c8286a452c..ce8d974534 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForMergedDeclarations8.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForMergedDeclarations8.ts === - // interface Foo { } // module Foo { // export interface Bar { } @@ -13,10 +12,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations8.ts === - // interface Foo { } // module Foo { // export interface Bar { } @@ -29,10 +26,8 @@ - // === findAllReferences === // === /referencesForMergedDeclarations8.ts === - // interface Foo { } // module Foo { // export interface [|Bar|] { } @@ -41,4 +36,4 @@ // } // // // module -// import a3 = Foo./*FIND ALL REFS*/[|Bar|].Baz; +// import a3 = Foo./*FIND ALL REFS*/[|Bar|].Baz; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc index c522e1120e..b4505a6fce 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForModifiers.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForModifiers.ts === - // /*FIND ALL REFS*/declare abstract class C1 { // static a; // readonly b; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // declare /*FIND ALL REFS*/abstract class C1 { // static a; // readonly b; @@ -21,10 +18,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // declare abstract class C1 { // /*FIND ALL REFS*/static a; // readonly b; @@ -34,10 +29,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // declare abstract class C1 { // static a; // /*FIND ALL REFS*/readonly b; @@ -48,10 +41,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // declare abstract class C1 { // static a; // readonly b; @@ -63,10 +54,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // declare abstract class C1 { // static a; // readonly b; @@ -79,10 +68,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // declare abstract class C1 { // static a; // readonly b; @@ -97,10 +84,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // --- (line: 4) skipped --- // protected d; // private e; @@ -112,10 +97,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // --- (line: 6) skipped --- // } // const enum E { @@ -125,10 +108,8 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // --- (line: 7) skipped --- // const enum E { // } @@ -137,12 +118,10 @@ - // === findAllReferences === // === /referencesForModifiers.ts === - // --- (line: 7) skipped --- // const enum E { // } // async function fn() {} -// export /*FIND ALL REFS*/default class C2 {} +// export /*FIND ALL REFS*/default class C2 {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc index 34961ef11d..e164a992da 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNoContext.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForNoContext.ts === - // module modTest { // //Declare // export var modVar:number; @@ -12,10 +11,8 @@ - // === findAllReferences === // === /referencesForNoContext.ts === - // --- (line: 6) skipped --- // modVar++; // @@ -28,10 +25,8 @@ - // === findAllReferences === // === /referencesForNoContext.ts === - // --- (line: 12) skipped --- // function testFn(){ // //Increments @@ -44,10 +39,8 @@ - // === findAllReferences === // === /referencesForNoContext.ts === - // --- (line: 13) skipped --- // //Increments // modVar++; @@ -55,4 +48,4 @@ // /*FIND ALL REFS*/ // module testMod { // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc index 0ecddc1b94..a65dea2d3d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForNumericLiteralPropertyNames.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForNumericLiteralPropertyNames.ts === - // class Foo { // public /*FIND ALL REFS*/[|12|]: any; // } @@ -8,4 +7,4 @@ // var x: Foo; // x[[|12|]]; // x = { "[|12|]": 0 }; -// x = { [|12|]: 0 }; +// x = { [|12|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc index c4b651e95e..6a699f1bae 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForObjectLiteralProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForObjectLiteralProperties.ts === - // var x = { /*FIND ALL REFS*/[|add|]: 0, b: "string" }; // x["[|add|]"]; // x.[|add|]; @@ -9,10 +8,8 @@ - // === findAllReferences === // === /referencesForObjectLiteralProperties.ts === - // var x = { [|add|]: 0, b: "string" }; // x["/*FIND ALL REFS*/[|add|]"]; // x.[|add|]; @@ -21,10 +18,8 @@ - // === findAllReferences === // === /referencesForObjectLiteralProperties.ts === - // var x = { [|add|]: 0, b: "string" }; // x["[|add|]"]; // x./*FIND ALL REFS*/[|add|]; @@ -33,12 +28,10 @@ - // === findAllReferences === // === /referencesForObjectLiteralProperties.ts === - // var x = { [|add|]: 0, b: "string" }; // x["[|add|]"]; // x.[|add|]; // var y = x; -// y./*FIND ALL REFS*/[|add|]; +// y./*FIND ALL REFS*/[|add|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc index f23de46f3f..8925d5d0da 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForOverrides.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForOverrides.ts === - // module FindRef3 { // module SimpleClassTest { // export class Foo { @@ -14,7 +13,6 @@ // } // // --- (line: 12) skipped --- - // --- (line: 58) skipped --- // // function test() { @@ -27,10 +25,8 @@ - // === findAllReferences === // === /referencesForOverrides.ts === - // --- (line: 11) skipped --- // // module SimpleInterfaceTest { @@ -44,7 +40,6 @@ // // // --- (line: 22) skipped --- - // --- (line: 61) skipped --- // x.foo(); // @@ -57,10 +52,8 @@ - // === findAllReferences === // === /referencesForOverrides.ts === - // --- (line: 20) skipped --- // // module SimpleClassInterfaceTest { @@ -74,7 +67,6 @@ // } // // --- (line: 31) skipped --- - // --- (line: 64) skipped --- // y.ifoo(); // @@ -87,10 +79,8 @@ - // === findAllReferences === // === /referencesForOverrides.ts === - // --- (line: 30) skipped --- // // module Test { @@ -123,7 +113,6 @@ // // // --- (line: 60) skipped --- - // --- (line: 67) skipped --- // w.icfoo(); // @@ -135,10 +124,8 @@ - // === findAllReferences === // === /referencesForOverrides.ts === - // --- (line: 31) skipped --- // module Test { // export interface IBase { @@ -149,7 +136,6 @@ // export interface IBlah extends IBase { // // --- (line: 39) skipped --- - // --- (line: 43) skipped --- // } // @@ -165,11 +151,10 @@ // export class BarBlah extends Bar { // // --- (line: 56) skipped --- - // --- (line: 68) skipped --- // // var z = new Test.BarBlah(); // z.field = ""; // z.[|method|](); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc index f6074b0c5a..1d29d03a3f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForPropertiesOfGenericType.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForPropertiesOfGenericType.ts === - // interface IFoo { // /*FIND ALL REFS*/[|doSomething|](v: T): T; // } @@ -13,10 +12,8 @@ - // === findAllReferences === // === /referencesForPropertiesOfGenericType.ts === - // interface IFoo { // [|doSomething|](v: T): T; // } @@ -29,10 +26,8 @@ - // === findAllReferences === // === /referencesForPropertiesOfGenericType.ts === - // interface IFoo { // [|doSomething|](v: T): T; // } @@ -41,4 +36,4 @@ // x.[|doSomething|]("ss"); // // var y: IFoo; -// y./*FIND ALL REFS*/[|doSomething|](12); +// y./*FIND ALL REFS*/[|doSomething|](12); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc index 311ea18043..d51eb433e8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStatic.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -12,10 +11,8 @@ - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -40,17 +37,13 @@ // } // } - // === /referencesOnStatic_2.ts === - // var q = foo.[|n|]; - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -75,17 +68,13 @@ // } // } - // === /referencesOnStatic_2.ts === - // var q = foo.[|n|]; - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -110,17 +99,13 @@ // } // } - // === /referencesOnStatic_2.ts === - // var q = foo.[|n|]; - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -145,17 +130,13 @@ // } // } - // === /referencesOnStatic_2.ts === - // var q = foo.[|n|]; - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -180,17 +161,13 @@ // } // } - // === /referencesOnStatic_2.ts === - // var q = foo.[|n|]; - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -215,17 +192,13 @@ // } // } - // === /referencesOnStatic_2.ts === - // var q = foo.[|n|]; - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -250,17 +223,13 @@ // } // } - // === /referencesOnStatic_2.ts === - // var q = foo.[|n|]; - // === findAllReferences === // === /referencesOnStatic_1.ts === - // var n = 43; // // class foo { @@ -285,7 +254,5 @@ // } // } - // === /referencesOnStatic_2.ts === - -// var q = foo./*FIND ALL REFS*/[|n|]; +// var q = foo./*FIND ALL REFS*/[|n|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc index b4cdf5a0e6..84334b385e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStaticsAndMembersWithSameNames.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { // module MixedStaticsClassTest { // export class Foo { @@ -10,7 +9,6 @@ // public foo(): void { // // --- (line: 8) skipped --- - // --- (line: 14) skipped --- // // instance function // var x = new MixedStaticsClassTest.Foo(); @@ -23,10 +21,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { // module MixedStaticsClassTest { // export class Foo { @@ -39,10 +35,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { // module MixedStaticsClassTest { // export class Foo { @@ -53,7 +47,6 @@ // } // // --- (line: 9) skipped --- - // --- (line: 18) skipped --- // // // static function @@ -64,10 +57,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; @@ -80,10 +71,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; @@ -106,10 +95,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // --- (line: 5) skipped --- // // public foo(): void { @@ -122,10 +109,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // --- (line: 5) skipped --- // // public foo(): void { @@ -136,7 +121,6 @@ // } // // --- (line: 13) skipped --- - // --- (line: 17) skipped --- // x.bar; // @@ -148,10 +132,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; @@ -174,10 +156,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { // module MixedStaticsClassTest { // export class Foo { @@ -187,7 +167,6 @@ // public foo(): void { // // --- (line: 8) skipped --- - // --- (line: 14) skipped --- // // instance function // var x = new MixedStaticsClassTest.Foo(); @@ -200,10 +179,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // --- (line: 5) skipped --- // // public foo(): void { @@ -214,7 +191,6 @@ // } // // --- (line: 13) skipped --- - // --- (line: 17) skipped --- // x.bar; // @@ -226,10 +202,8 @@ - // === findAllReferences === // === /referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { // module MixedStaticsClassTest { // export class Foo { @@ -240,11 +214,10 @@ // } // // --- (line: 9) skipped --- - // --- (line: 18) skipped --- // // // static function // MixedStaticsClassTest.Foo.foo(); // MixedStaticsClassTest.Foo./*FIND ALL REFS*/[|bar|]; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc index 20796674ce..b7bc9f6564 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForStringLiteralPropertyNames.ts === - // class Foo { // public "/*FIND ALL REFS*/[|ss|]": any; // } @@ -9,4 +8,4 @@ // x.[|ss|]; // x["[|ss|]"]; // x = { "[|ss|]": 0 }; -// x = { [|ss|]: 0 }; +// x = { [|ss|]: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc index 970e7d9bfc..0233885c6c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames2.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForStringLiteralPropertyNames2.ts === - // class Foo { // /*FIND ALL REFS*/"[|blah|]"() { return 0; } // } @@ -10,10 +9,8 @@ - // === findAllReferences === // === /referencesForStringLiteralPropertyNames2.ts === - // class Foo { // "/*FIND ALL REFS*/[|blah|]"() { return 0; } // } @@ -23,13 +20,11 @@ - // === findAllReferences === // === /referencesForStringLiteralPropertyNames2.ts === - // class Foo { // "[|blah|]"() { return 0; } // } // // var x: Foo; -// x./*FIND ALL REFS*/[|blah|]; +// x./*FIND ALL REFS*/[|blah|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc index b6926bd12f..3a61f5954d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames3.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForStringLiteralPropertyNames3.ts === - // class Foo2 { // /*FIND ALL REFS*/get "42"() { return 0; } // set 42(n) { } @@ -11,10 +10,8 @@ - // === findAllReferences === // === /referencesForStringLiteralPropertyNames3.ts === - // class Foo2 { // get "/*FIND ALL REFS*/[|42|]"() { return 0; } // set [|42|](n) { } @@ -25,10 +22,8 @@ - // === findAllReferences === // === /referencesForStringLiteralPropertyNames3.ts === - // class Foo2 { // get "42"() { return 0; } // /*FIND ALL REFS*/set 42(n) { } @@ -39,10 +34,8 @@ - // === findAllReferences === // === /referencesForStringLiteralPropertyNames3.ts === - // class Foo2 { // get "[|42|]"() { return 0; } // set /*FIND ALL REFS*/[|42|](n) { } @@ -53,14 +46,12 @@ - // === findAllReferences === // === /referencesForStringLiteralPropertyNames3.ts === - // class Foo2 { // get "[|42|]"() { return 0; } // set [|42|](n) { } // } // // var y: Foo2; -// y[/*FIND ALL REFS*/[|42|]]; +// y[/*FIND ALL REFS*/[|42|]]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc index 8cb9891027..15b6266345 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames4.baseline.jsonc @@ -1,16 +1,13 @@ // === findAllReferences === // === /referencesForStringLiteralPropertyNames4.ts === - // var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } // x["[|someProperty|]"] = 3; // x.[|someProperty|] = 5; - // === findAllReferences === // === /referencesForStringLiteralPropertyNames4.ts === - // var x = { "[|someProperty|]": 0 } // x[/*FIND ALL REFS*/"[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; +// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc index cb3b350388..42967647fb 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames5.baseline.jsonc @@ -1,16 +1,13 @@ // === findAllReferences === // === /referencesForStringLiteralPropertyNames5.ts === - // var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } // x["[|someProperty|]"] = 3; // x.[|someProperty|] = 5; - // === findAllReferences === // === /referencesForStringLiteralPropertyNames5.ts === - // var x = { "[|someProperty|]": 0 } // x["/*FIND ALL REFS*/[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; +// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc index 2a63bb7088..ab4c5ebaf1 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames6.baseline.jsonc @@ -1,16 +1,13 @@ // === findAllReferences === // === /referencesForStringLiteralPropertyNames6.ts === - // const x = function () { return 111111; } // x./*FIND ALL REFS*/[|someProperty|] = 5; // x["[|someProperty|]"] = 3; - // === findAllReferences === // === /referencesForStringLiteralPropertyNames6.ts === - // const x = function () { return 111111; } // x.[|someProperty|] = 5; -// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; +// x["/*FIND ALL REFS*/[|someProperty|]"] = 3; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc index 5ec03d47fc..497a859d97 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForStringLiteralPropertyNames7.baseline.jsonc @@ -1,16 +1,13 @@ // === findAllReferences === // === /foo.js === - // var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 } // x["[|someProperty|]"] = 3; // x.[|someProperty|] = 5; - // === findAllReferences === // === /foo.js === - // var x = { "[|someProperty|]": 0 } // x["/*FIND ALL REFS*/[|someProperty|]"] = 3; -// x.[|someProperty|] = 5; +// x.[|someProperty|] = 5; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc index 92d4825460..e458b9c5e7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForTypeKeywords.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForTypeKeywords.ts === - // interface I {} // function f() {} // type A1 = T extends U ? 1 : 0; @@ -11,10 +10,8 @@ - // === findAllReferences === // === /referencesForTypeKeywords.ts === - // interface I {} // function f() {} // type A1 = T /*FIND ALL REFS*/extends U ? 1 : 0; @@ -25,10 +22,8 @@ - // === findAllReferences === // === /referencesForTypeKeywords.ts === - // interface I {} // function f() {} // type A1 = T extends U ? 1 : 0; @@ -39,10 +34,8 @@ - // === findAllReferences === // === /referencesForTypeKeywords.ts === - // interface I {} // function f() {} // type A1 = T extends U ? 1 : 0; @@ -53,10 +46,8 @@ - // === findAllReferences === // === /referencesForTypeKeywords.ts === - // interface I {} // function f() {} // type A1 = T extends U ? 1 : 0; @@ -67,12 +58,10 @@ - // === findAllReferences === // === /referencesForTypeKeywords.ts === - // --- (line: 3) skipped --- // type A2 = T extends infer U ? 1 : 0; // type A3 = { [P in keyof T]: 1 }; // type A4 = keyof T; -// type A5 = /*FIND ALL REFS*/[|readonly|] T[]; +// type A5 = /*FIND ALL REFS*/[|readonly|] T[]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc index 4db0a2d74d..5a0d495a21 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForUnionProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /referencesForUnionProperties.ts === - // interface One { // common: { /*FIND ALL REFS*/[|a|]: number; }; // } @@ -8,7 +7,6 @@ // interface Base { // // --- (line: 6) skipped --- - // --- (line: 17) skipped --- // // var x : One | Two; @@ -17,10 +15,8 @@ - // === findAllReferences === // === /referencesForUnionProperties.ts === - // interface One { // common: { a: number; }; // } @@ -45,10 +41,8 @@ - // === findAllReferences === // === /referencesForUnionProperties.ts === - // interface One { // common: { [|a|]: number; }; // } @@ -69,4 +63,4 @@ // // var x : One | Two; // -// x.common./*FIND ALL REFS*/[|a|]; +// x.common./*FIND ALL REFS*/[|a|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc index 677e1bd466..a2b4cd66ce 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesInConfiguredProject.baseline.jsonc @@ -1,11 +1,8 @@ // === findAllReferences === // === /home/src/workspaces/project/referencesForGlobals_1.ts === - // class [|globalClass|] { // public f() { } // } - // === /home/src/workspaces/project/referencesForGlobals_2.ts === - -// var c = /*FIND ALL REFS*/[|globalClass|](); +// var c = /*FIND ALL REFS*/[|globalClass|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc index 4ed101013b..e328e284d6 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesInEmptyFileWithMultipleProjects.baseline.jsonc @@ -1,13 +1,10 @@ // === findAllReferences === // === /home/src/workspaces/project/a/a.ts === - // /// // /*FIND ALL REFS*/; - // === findAllReferences === // === /home/src/workspaces/project/b/b.ts === - -// /*FIND ALL REFS*/; +// /*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc index a531446c31..32fab59a1b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesInStringLiteralValueWithMultipleProjects.baseline.jsonc @@ -1,13 +1,10 @@ // === findAllReferences === // === /home/src/workspaces/project/a/a.ts === - // /// // const str: string = "hello/*FIND ALL REFS*/"; - // === findAllReferences === // === /home/src/workspaces/project/b/b.ts === - -// const str2: string = "hello/*FIND ALL REFS*/"; +// const str2: string = "hello/*FIND ALL REFS*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc index b108a83ef1..ebffcdf9e8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesToNonPropertyNameStringLiteral.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /referencesToNonPropertyNameStringLiteral.ts === - -// const str: string = "hello/*FIND ALL REFS*/"; +// const str: string = "hello/*FIND ALL REFS*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc index 71842e32eb..f9b30892ca 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesToStringLiteralValue.baseline.jsonc @@ -1,4 +1,3 @@ // === findAllReferences === // === /referencesToStringLiteralValue.ts === - -// const s: string = "some /*FIND ALL REFS*/ string"; +// const s: string = "some /*FIND ALL REFS*/ string"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc index a9c778558f..f6840464c8 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -18,9 +17,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class [|remotefooCls|] { @@ -38,7 +35,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -49,7 +45,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -60,7 +55,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -73,10 +67,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -94,9 +86,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class [|remotefooCls|] { @@ -114,7 +104,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -125,7 +114,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -136,7 +124,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -149,10 +136,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -172,9 +157,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -190,7 +173,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -201,7 +183,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -212,7 +193,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -225,10 +205,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -248,9 +226,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -266,7 +242,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -277,7 +252,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -288,7 +262,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -301,10 +274,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -322,9 +293,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class [|remotefooCls|] { @@ -342,7 +311,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -353,7 +321,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -364,7 +331,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -377,10 +343,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // @@ -391,9 +355,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -411,7 +373,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -422,7 +383,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -433,7 +393,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -446,10 +405,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -469,9 +426,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -487,7 +442,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -498,7 +452,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -509,7 +462,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -522,10 +474,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -545,9 +495,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -563,7 +511,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -574,7 +521,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -585,7 +531,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -598,10 +543,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -621,9 +564,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -639,7 +580,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -650,7 +590,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -661,7 +600,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -674,10 +612,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -697,9 +633,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -715,7 +649,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -726,7 +659,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -737,7 +669,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -750,10 +681,8 @@ - // === findAllReferences === // === /remoteGetReferences_2.ts === - // /*FIND ALL REFS*/var remoteglobalVar: number = 2; // // class remotefooCls { @@ -762,10 +691,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -785,9 +712,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var /*FIND ALL REFS*/[|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -803,7 +728,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -814,7 +738,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -825,7 +748,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -838,10 +760,8 @@ - // === findAllReferences === // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // /*FIND ALL REFS*/class remotefooCls { @@ -852,10 +772,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -873,9 +791,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class /*FIND ALL REFS*/[|remotefooCls|] { @@ -893,7 +809,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -904,7 +819,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -915,7 +829,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -928,10 +841,8 @@ - // === findAllReferences === // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -950,10 +861,8 @@ - // === findAllReferences === // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -967,10 +876,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // @@ -981,9 +888,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -1001,7 +906,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1012,7 +916,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1023,7 +926,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1036,10 +938,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -1059,9 +959,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -1077,7 +975,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -1088,7 +985,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -1099,7 +995,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -1112,10 +1007,8 @@ - // === findAllReferences === // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -1134,10 +1027,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -1155,9 +1046,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class [|remotefooCls|] { @@ -1175,7 +1064,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1186,7 +1074,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1197,7 +1084,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1210,10 +1096,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // @@ -1224,9 +1108,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -1244,7 +1126,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1255,7 +1136,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1266,7 +1146,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1279,10 +1158,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -1300,9 +1177,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class [|remotefooCls|] { @@ -1320,7 +1195,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1331,7 +1205,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1342,7 +1215,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1355,10 +1227,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // @@ -1369,9 +1239,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -1389,7 +1257,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1400,7 +1267,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1411,7 +1277,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1424,10 +1289,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -1447,9 +1310,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -1465,7 +1326,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -1476,7 +1336,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -1487,7 +1346,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -1500,10 +1358,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -1523,9 +1379,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -1541,7 +1395,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -1552,7 +1405,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -1563,7 +1415,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -1576,10 +1427,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -1597,9 +1446,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class [|remotefooCls|] { @@ -1617,7 +1464,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1628,7 +1474,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1639,7 +1484,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1652,10 +1496,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // @@ -1666,9 +1508,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -1686,7 +1526,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1697,7 +1536,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1708,7 +1546,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1721,10 +1558,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // @@ -1744,9 +1579,7 @@ // var // // --- (line: 102) skipped --- - // === /remoteGetReferences_2.ts === - // var [|remoteglobalVar|]: number = 2; // // class remotefooCls { @@ -1762,7 +1595,6 @@ // this.remoteclsParam++; // // --- (line: 14) skipped --- - // --- (line: 20) skipped --- // // //Increments @@ -1773,7 +1605,6 @@ // // // --- (line: 28) skipped --- - // --- (line: 33) skipped --- // export var remotemodVar: number; // @@ -1784,7 +1615,6 @@ // // // --- (line: 41) skipped --- - // --- (line: 45) skipped --- // static remoteboo = remotefoo; // @@ -1797,10 +1627,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 82) skipped --- // // //Remotes @@ -1818,9 +1646,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class [|remotefooCls|] { @@ -1838,7 +1664,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1849,7 +1674,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1860,7 +1684,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1873,10 +1696,8 @@ - // === findAllReferences === // === /remoteGetReferences_1.ts === - // --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // @@ -1887,9 +1708,7 @@ // // // --- (line: 97) skipped --- - // === /remoteGetReferences_2.ts === - // var remoteglobalVar: number = 2; // // class remotefooCls { @@ -1907,7 +1726,6 @@ // } // // --- (line: 16) skipped --- - // --- (line: 19) skipped --- // var remotefnVar = 1; // @@ -1918,7 +1736,6 @@ // remotefnVar++; // // --- (line: 27) skipped --- - // --- (line: 34) skipped --- // // //Increments @@ -1929,7 +1746,6 @@ // class remotetestCls { // // --- (line: 42) skipped --- - // --- (line: 46) skipped --- // // //Increments @@ -1938,4 +1754,4 @@ // remotemodVar++; // } // -// // --- (line: 54) skipped --- +// // --- (line: 54) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc index 0c28d589e7..8601eca2ac 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameImportAndExportInDiffFiles.baseline.jsonc @@ -1,38 +1,27 @@ // === findAllReferences === // === /a.ts === - // export var /*FIND ALL REFS*/[|a|]; - // === /b.ts === - // import { [|a|] } from './a'; // export { a }; - // === findAllReferences === // === /a.ts === - // export var [|a|]; - // === /b.ts === - // import { /*FIND ALL REFS*/[|a|] } from './a'; // export { a }; - // === findAllReferences === // === /a.ts === - // export var [|a|]; - // === /b.ts === - // import { [|a|] } from './a'; -// export { /*FIND ALL REFS*/a }; +// export { /*FIND ALL REFS*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc index 8eae3bf171..28ba24f606 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameImportOfExportEquals.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /renameImportOfExportEquals.ts === - // declare namespace /*FIND ALL REFS*/[|N|] { // export var x: number; // } @@ -16,10 +15,8 @@ - // === findAllReferences === // === /renameImportOfExportEquals.ts === - // declare namespace [|N|] { // export var x: number; // } @@ -35,10 +32,8 @@ - // === findAllReferences === // === /renameImportOfExportEquals.ts === - // declare namespace [|N|] { // export var x: number; // } @@ -56,10 +51,8 @@ - // === findAllReferences === // === /renameImportOfExportEquals.ts === - // declare namespace N { // export var /*FIND ALL REFS*/[|x|]: number; // } @@ -67,10 +60,9 @@ // export = N; // // --- (line: 6) skipped --- - // --- (line: 9) skipped --- // } // declare module "b" { // import { N } from "a"; // export const y: typeof N.[|x|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports01.baseline.jsonc index 440acb8c06..2687093425 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports01.baseline.jsonc @@ -1,10 +1,7 @@ // === findAllReferences === // === /a.js === - // exports.[|area|] = function (r) { return r * r; } - // === /b.js === - // var mod = require('./a'); -// var t = mod./*FIND ALL REFS*/area(10); +// var t = mod./*FIND ALL REFS*/area(10); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports02.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports02.baseline.jsonc index acdb42aec6..eab27fdda9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports02.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports02.baseline.jsonc @@ -1,12 +1,9 @@ // === findAllReferences === // === /a.js === - // module.exports = class /*FIND ALL REFS*/[|A|] {} - // === findAllReferences === // === /b.js === - -// const /*FIND ALL REFS*/[|A|] = require("./a"); +// const /*FIND ALL REFS*/[|A|] = require("./a"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports03.baseline.jsonc index e0fd047e6b..e7589d64b6 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports03.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/renameJsExports03.baseline.jsonc @@ -1,6 +1,5 @@ // === findAllReferences === // === /a.js === - // class /*FIND ALL REFS*/[|A|] { // constructor() { } // } @@ -8,10 +7,8 @@ - // === findAllReferences === // === /a.js === - // class [|A|] { // /*FIND ALL REFS*/constructor() { } // } @@ -19,18 +16,14 @@ - // === findAllReferences === // === /b.js === - // const /*FIND ALL REFS*/[|A|] = require("./a"); // new [|A|]; - // === findAllReferences === // === /b.js === - // const [|A|] = require("./a"); -// new /*FIND ALL REFS*/[|A|]; +// new /*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc index 01c418bc1b..d43435b087 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences1.baseline.jsonc @@ -1,44 +1,39 @@ // === findAllReferences === // === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// /*FIND ALL REFS*/[|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = <[|div|] />; - +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// /*FIND ALL REFS*/[|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = <[|div|] />; // === findAllReferences === // === /file.tsx === - // --- (line: 7) skipped --- -// span: { n: string; }; -// } -// } -// var x = /*FIND ALL REFS*/
; - +// span: { n: string; }; +// } +// } +// var x = /*FIND ALL REFS*/
; // === findAllReferences === // === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc index 0b6ea0c89d..66169b1bef 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences10.baseline.jsonc @@ -1,12 +1,11 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// className?: string; -// } -// interface ButtonProps extends ClickableProps { -// /*FIND ALL REFS*/[|onClick|](event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// goTo: string; -// // --- (line: 16) skipped --- +// className?: string; +// } +// interface ButtonProps extends ClickableProps { +// /*FIND ALL REFS*/[|onClick|](event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// goTo: string; +// // --- (line: 16) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc index 8e1dfbe19f..92dc82ce73 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences11.baseline.jsonc @@ -1,8 +1,7 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 16) skipped --- -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc index 86ad70002b..fe81dcc1af 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences2.baseline.jsonc @@ -1,12 +1,11 @@ // === findAllReferences === // === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// /*FIND ALL REFS*/[|name|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// // --- (line: 9) skipped --- +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// /*FIND ALL REFS*/[|name|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// // --- (line: 9) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc index 57c04e416b..8cfb85cc27 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences3.baseline.jsonc @@ -1,13 +1,12 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 5) skipped --- -// } -// class MyClass { -// props: { -// /*FIND ALL REFS*/[|name|]?: string; -// size?: number; -// } +// } +// class MyClass { +// props: { +// /*FIND ALL REFS*/[|name|]?: string; +// size?: number; +// } // // -// var x = ; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc index 41588be2b5..451812b822 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc @@ -1,81 +1,72 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// /*FIND ALL REFS*/class MyClass { -// props: { -// name?: string; -// size?: number; +// } +// interface ElementAttributesProperty { props } +// } +// /*FIND ALL REFS*/class MyClass { +// props: { +// name?: string; +// size?: number; // // --- (line: 11) skipped --- - // === findAllReferences === // === /file.tsx === - // --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class /*FIND ALL REFS*/[|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } +// } +// interface ElementAttributesProperty { props } +// } +// class /*FIND ALL REFS*/[|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } // // -// var x = <[|MyClass|] name='hello'>; - +// var x = <[|MyClass|] name='hello'>; // === findAllReferences === // === /file.tsx === - // --- (line: 10) skipped --- -// } +// } // // -// var x = /*FIND ALL REFS*/; - +// var x = /*FIND ALL REFS*/; // === findAllReferences === // === /file.tsx === - // --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class [|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } +// } +// interface ElementAttributesProperty { props } +// } +// class [|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } // // -// var x = ; - +// var x = ; // === findAllReferences === // === /file.tsx === - // --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props } -// } -// class [|MyClass|] { -// props: { -// name?: string; -// size?: number; -// } +// } +// interface ElementAttributesProperty { props } +// } +// class [|MyClass|] { +// props: { +// name?: string; +// size?: number; +// } // // -// var x = ; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc index d528f1bf15..8c15f502a3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences5.baseline.jsonc @@ -1,185 +1,162 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// /*FIND ALL REFS*/declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - +// propString: string +// optional?: boolean +// } +// /*FIND ALL REFS*/declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function /*FIND ALL REFS*/[|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - +// propString: string +// optional?: boolean +// } +// declare function /*FIND ALL REFS*/[|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; // === findAllReferences === // === /file.tsx === - // --- (line: 9) skipped --- -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = /*FIND ALL REFS*/; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = /*FIND ALL REFS*/; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; // === findAllReferences === // === /file.tsx === - // --- (line: 10) skipped --- -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = /*FIND ALL REFS*/; -// let opt2 = ; -// let opt3 = ; -// let opt4 = ; - +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = /*FIND ALL REFS*/; +// let opt2 = ; +// let opt3 = ; +// let opt4 = ; // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = ; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = ; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; // === findAllReferences === // === /file.tsx === - // --- (line: 11) skipped --- -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = /*FIND ALL REFS*/; -// let opt3 = ; -// let opt4 = ; - +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = /*FIND ALL REFS*/; +// let opt3 = ; +// let opt4 = ; // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = ; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = ; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; // === findAllReferences === // === /file.tsx === - // --- (line: 12) skipped --- -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = /*FIND ALL REFS*/; -// let opt4 = ; - +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = /*FIND ALL REFS*/; +// let opt4 = ; // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = ; -// let opt4 = <[|Opt|] propx={100} propString="hi" />; - +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = ; +// let opt4 = <[|Opt|] propx={100} propString="hi" />; // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; -// let opt4 = /*FIND ALL REFS*/; - +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; +// let opt4 = /*FIND ALL REFS*/; // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|Opt|] />; -// let opt1 = <[|Opt|] propx={100} propString />; -// let opt2 = <[|Opt|] propx={100} optional/>; -// let opt3 = <[|Opt|] wrong />; -// let opt4 = ; +// propString: string +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|Opt|] />; +// let opt1 = <[|Opt|] propx={100} propString />; +// let opt2 = <[|Opt|] propx={100} optional/>; +// let opt3 = <[|Opt|] wrong />; +// let opt4 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc index 3e0b7e2016..1850219dfe 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences6.baseline.jsonc @@ -1,8 +1,7 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 9) skipped --- -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc index 99ce269af9..ec6919e839 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences7.baseline.jsonc @@ -1,12 +1,11 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// /*FIND ALL REFS*/[|propx|]: number -// propString: string -// optional?: boolean -// } -// // --- (line: 12) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// /*FIND ALL REFS*/[|propx|]: number +// propString: string +// optional?: boolean +// } +// // --- (line: 12) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc index 44906820c0..4cce5cf782 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences8.baseline.jsonc @@ -1,311 +1,276 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// /*FIND ALL REFS*/declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// /*FIND ALL REFS*/declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; // // --- (line: 21) skipped --- - // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function /*FIND ALL REFS*/[|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function /*FIND ALL REFS*/[|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 14) skipped --- -// goTo: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// /*FIND ALL REFS*/declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; +// goTo: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// /*FIND ALL REFS*/declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; // // --- (line: 22) skipped --- - // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function /*FIND ALL REFS*/[|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function /*FIND ALL REFS*/[|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 15) skipped --- -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// /*FIND ALL REFS*/declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// /*FIND ALL REFS*/declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; // // --- (line: 23) skipped --- - // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function /*FIND ALL REFS*/[|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function /*FIND ALL REFS*/[|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 16) skipped --- -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = /*FIND ALL REFS*/; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = /*FIND ALL REFS*/; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 17) skipped --- -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = /*FIND ALL REFS*/; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = /*FIND ALL REFS*/; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = ; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = ; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 18) skipped --- -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = /*FIND ALL REFS*/{}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = /*FIND ALL REFS*/{}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = {}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = {}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 19) skipped --- -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = /*FIND ALL REFS*/{}} ignore-prop />; -// let opt = ; -// let opt = ; - +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = /*FIND ALL REFS*/{}} ignore-prop />; +// let opt = ; +// let opt = ; // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = {}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = {}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 20) skipped --- -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = /*FIND ALL REFS*/; -// let opt = ; - +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = /*FIND ALL REFS*/; +// let opt = ; // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = ; -// let opt = <[|MainButton|] wrong />; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = ; +// let opt = <[|MainButton|] wrong />; // === findAllReferences === // === /file.tsx === - // --- (line: 21) skipped --- -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = /*FIND ALL REFS*/; - +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = /*FIND ALL REFS*/; // === findAllReferences === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButton|] />; -// let opt = <[|MainButton|] children="chidlren" />; -// let opt = <[|MainButton|] onClick={()=>{}} />; -// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButton|] goTo="goTo" />; -// let opt = ; +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButton|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButton|] />; +// let opt = <[|MainButton|] children="chidlren" />; +// let opt = <[|MainButton|] onClick={()=>{}} />; +// let opt = <[|MainButton|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButton|] goTo="goTo" />; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc index 8d8013277b..41f35bf02e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences9.baseline.jsonc @@ -1,12 +1,11 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 11) skipped --- -// onClick(event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// /*FIND ALL REFS*/[|goTo|]: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// // --- (line: 19) skipped --- +// onClick(event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// /*FIND ALL REFS*/[|goTo|]: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// // --- (line: 19) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc index 8fe7b18660..f93c9e0604 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType1.baseline.jsonc @@ -1,47 +1,40 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// /*FIND ALL REFS*/var SFCComp = SFC1 || SFC2; -// - +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// /*FIND ALL REFS*/var SFCComp = SFC1 || SFC2; +// // === findAllReferences === // === /file.tsx === - // --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var /*FIND ALL REFS*/[|SFCComp|] = SFC1 || SFC2; -// <[|SFCComp|] x={ "hi" } /> - +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var /*FIND ALL REFS*/[|SFCComp|] = SFC1 || SFC2; +// <[|SFCComp|] x={ "hi" } /> // === findAllReferences === // === /file.tsx === - // --- (line: 10) skipped --- -// return

World

; -// } -// var SFCComp = SFC1 || SFC2; -// /*FIND ALL REFS*/ - +// return

World

; +// } +// var SFCComp = SFC1 || SFC2; +// /*FIND ALL REFS*/ // === findAllReferences === // === /file.tsx === - // --- (line: 9) skipped --- -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var [|SFCComp|] = SFC1 || SFC2; -// +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var [|SFCComp|] = SFC1 || SFC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc index fc1df9cfc5..fa4cc25d78 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferencesUnionElementType2.baseline.jsonc @@ -1,47 +1,40 @@ // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// } -// private method() { } -// } -// /*FIND ALL REFS*/var RCComp = RC1 || RC2; -// - +// } +// private method() { } +// } +// /*FIND ALL REFS*/var RCComp = RC1 || RC2; +// // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// } -// private method() { } -// } -// var /*FIND ALL REFS*/[|RCComp|] = RC1 || RC2; -// <[|RCComp|] /> - +// } +// private method() { } +// } +// var /*FIND ALL REFS*/[|RCComp|] = RC1 || RC2; +// <[|RCComp|] /> // === findAllReferences === // === /file.tsx === - // --- (line: 9) skipped --- -// private method() { } -// } -// var RCComp = RC1 || RC2; -// /*FIND ALL REFS*/ - +// private method() { } +// } +// var RCComp = RC1 || RC2; +// /*FIND ALL REFS*/ // === findAllReferences === // === /file.tsx === - // --- (line: 8) skipped --- -// } -// private method() { } -// } -// var [|RCComp|] = RC1 || RC2; -// +// } +// private method() { } +// } +// var [|RCComp|] = RC1 || RC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc deleted file mode 100644 index 4eb3200eb5..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc +++ /dev/null @@ -1,30 +0,0 @@ -// === findRenameLocations === -// === /fileA.ts === - -// export function /*RENAME*/[|__fooRENAME|]() { -// } -// - - -// === /fileB.ts === - -// import { [|__fooRENAME|] as bar } from "./fileA"; -// -// bar(); - - - - -// === findRenameLocations === -// === /fileA.ts === - -// export function [|__fooRENAME|]() { -// } -// - - -// === /fileB.ts === - -// import { /*RENAME*/[|__fooRENAME|] as bar } from "./fileA"; -// -// bar(); diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc deleted file mode 100644 index f71be95c5c..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc +++ /dev/null @@ -1,14 +0,0 @@ -// === findRenameLocations === -// === /foo.ts === - -// export function /*RENAME*/[|barRENAME|]() { return "bar"; } -// import('./foo').then(({ [|barRENAME|] }) => undefined); - - - - -// === findRenameLocations === -// === /foo.ts === - -// export function bar() { return "bar"; } -// import('./foo').then(({ /*RENAME*/[|barRENAME|] }) => undefined); diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc deleted file mode 100644 index a212fad747..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /findAllRefsClassWithStaticThisAccess.ts === - -// /*RENAME*/class C { -// static s() { -// this; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc deleted file mode 100644 index 0f300f8817..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form1.js === - -// /*RENAME*/ /** @typedef {(string | number)} */ -// var NumberLike; -// -// NumberLike = 10; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /jsDocTypedef_form1.js === - -// /*RENAME*/ /** @typedef {(string | number)} */ -// var NumberLike; -// -// NumberLike = 10; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /jsDocTypedef_form1.js === - -// /*RENAME*/ /** @typedef {(string | number)} */ -// var NumberLike; -// -// NumberLike = 10; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc deleted file mode 100644 index e4be88e7bf..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc +++ /dev/null @@ -1,18 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form2.js === - -// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ -// -// /** @type {NumberLike} */ -// var numberLike; - - - - -// === findRenameLocations === -// === /jsDocTypedef_form2.js === - -// /*RENAME*/ /** @typedef {(string | number)} NumberLike */ -// -// /** @type {NumberLike} */ -// var numberLike; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc deleted file mode 100644 index 2c983f0fba..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /jsDocTypedef_form3.js === - -// /** -// * @typedef /*RENAME*/Person -// * @type {Object} -// * @property {number} age -// * @property {string} name -// // --- (line: 6) skipped --- - - - - -// === findRenameLocations === -// === /jsDocTypedef_form3.js === - -// /*RENAME*/ /** -// * @typedef Person -// * @type {Object} -// * @property {number} age -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc deleted file mode 100644 index 85c7443e3e..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// } -// -// var /*RENAME*/[|nnRENAME|]: {name?: string; size?: number}; -// var x = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// } -// -// var [|nnRENAME|]: {name?: string; size?: number}; -// var x = ; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc deleted file mode 100644 index 0159527d42..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc +++ /dev/null @@ -1,34 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// var /*RENAME*/[|xRENAME|]: number; - - -// === /b.ts === - -// /// -// [|xRENAME|]++; - - -// === /c.ts === - -// /// -// [|xRENAME|]++; - - - - -// === findRenameLocations === -// === /b.ts === - -// /*RENAME*//// -// x++; - - - - -// === findRenameLocations === -// === /c.ts === - -// /*RENAME*//// -// x++; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc deleted file mode 100644 index 1f55b894bb..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc +++ /dev/null @@ -1,80 +0,0 @@ -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// const /*RENAME*/[|externalRENAME|] = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameBindingElementInitializerExternal.ts === - -// /*RENAME*/const external = true; -// -// function f({ -// lvl1 = external, -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc deleted file mode 100644 index 35d778a150..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -// === findRenameLocations === -// === /renameCommentsAndStrings4.ts === - -// /*RENAME*//// -// function Bar() { -// // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc deleted file mode 100644 index 0e8448e012..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc deleted file mode 100644 index 77f28ace03..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringAssignmentNestedInForOf2.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc deleted file mode 100644 index 452c7c75e1..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc +++ /dev/null @@ -1,56 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringClassProperty.ts === - -// /*RENAME*/class A { -// foo: string; -// } -// class B { -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc deleted file mode 100644 index 1ac4ed6b4c..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInFor.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc deleted file mode 100644 index b4daf047b3..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringDeclarationInForOf.ts === - -// /*RENAME*/interface I { -// property1: number; -// property2: string; -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc deleted file mode 100644 index 987e2f3613..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc +++ /dev/null @@ -1,44 +0,0 @@ -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameDestructuringNestedBindingElement.ts === - -// /*RENAME*/interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc deleted file mode 100644 index ac138a8abb..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc +++ /dev/null @@ -1,28 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// export var /*RENAME*/[|aRENAME|]; - - -// === /b.ts === - -// import { [|aRENAME|] } from './a'; -// export { a }; - - - - -// === findRenameLocations === -// === /b.ts === - -// import { /*RENAME*/[|aRENAME|] } from './a'; -// export { a }; - - - - -// === findRenameLocations === -// === /b.ts === - -// import { [|aRENAME|] } from './a'; -// export { /*RENAME*/a }; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc deleted file mode 100644 index 3ff816acc3..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties1.ts === - -// class class1 extends class1 { -// /*RENAME*/[|propNameRENAME|]: string; -// } -// -// var v: class1; -// v.[|propNameRENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties1.ts === - -// /*RENAME*/ class class1 extends class1 { -// propName: string; -// } -// -// var v: class1; -// v.propName; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc deleted file mode 100644 index 08b679b79d..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties2.ts === - -// class class1 extends class1 { -// /*RENAME*/[|doStuffRENAME|]() { } -// } -// -// var v: class1; -// v.[|doStuffRENAME|](); - - - - -// === findRenameLocations === -// === /renameInheritedProperties2.ts === - -// /*RENAME*/ class class1 extends class1 { -// doStuff() { } -// } -// -// var v: class1; -// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc deleted file mode 100644 index 0b64ed73fa..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties3.ts === - -// interface interface1 extends interface1 { -// /*RENAME*/[|propNameRENAME|]: string; -// } -// -// var v: interface1; -// v.[|propNameRENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties3.ts === - -// /*RENAME*/ interface interface1 extends interface1 { -// propName: string; -// } -// -// var v: interface1; -// v.propName; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc deleted file mode 100644 index 692b84192b..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc +++ /dev/null @@ -1,22 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties4.ts === - -// interface interface1 extends interface1 { -// /*RENAME*/[|doStuffRENAME|](): string; -// } -// -// var v: interface1; -// v.[|doStuffRENAME|](); - - - - -// === findRenameLocations === -// === /renameInheritedProperties4.ts === - -// /*RENAME*/ interface interface1 extends interface1 { -// doStuff(): string; -// } -// -// var v: interface1; -// v.doStuff(); diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc deleted file mode 100644 index 2450b2c01d..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties7.ts === - -// class C extends D { -// /*RENAME*/[|prop1RENAME|]: string; -// } -// -// class D extends C { -// prop1: string; -// } -// -// var c: C; -// c.[|prop1RENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties7.ts === - -// /*RENAME*/ class C extends D { -// prop1: string; -// } -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc deleted file mode 100644 index 6f4a7034db..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc +++ /dev/null @@ -1,42 +0,0 @@ -// === findRenameLocations === -// === /renameInheritedProperties8.ts === - -// class C implements D { -// /*RENAME*/[|prop1RENAME|]: string; -// } -// -// interface D extends C { -// [|prop1RENAME|]: string; -// } -// -// var c: C; -// c.[|prop1RENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties8.ts === - -// class C implements D { -// [|prop1RENAME|]: string; -// } -// -// interface D extends C { -// /*RENAME*/[|prop1RENAME|]: string; -// } -// -// var c: C; -// c.[|prop1RENAME|]; - - - - -// === findRenameLocations === -// === /renameInheritedProperties8.ts === - -// /*RENAME*/ class C implements D { -// prop1: string; -// } -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc deleted file mode 100644 index bbcf860952..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes1.ts === - -// /*RENAME*/interface AnimationOptions { -// deltaX: number; -// deltaY: number; -// easing: "ease-in" | "ease-out" | "ease-in-out"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes1.ts === - -// /*RENAME*/interface AnimationOptions { -// deltaX: number; -// deltaY: number; -// easing: "ease-in" | "ease-out" | "ease-in-out"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc deleted file mode 100644 index e171de1553..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc +++ /dev/null @@ -1,116 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes2.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc deleted file mode 100644 index d7a7f4218e..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /renameStringLiteralTypes3.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes3.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /renameStringLiteralTypes3.ts === - -// /*RENAME*/type Foo = "a" | "b"; -// -// class C { -// p: Foo = "a"; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc deleted file mode 100644 index 4f507d328d..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc +++ /dev/null @@ -1,231 +0,0 @@ -// === findRenameLocations === -// === /a.ts === - -// interface Obj { -// [`/*RENAME*/num`]: number; -// ['bool']: boolean; -// } -// -// // --- (line: 6) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 3) skipped --- -// } -// -// let o: Obj = { -// [`/*RENAME*/num`]: 0, -// ['bool']: true, -// }; -// -// // --- (line: 11) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 8) skipped --- -// }; -// -// o = { -// ['/*RENAME*/num']: 1, -// [`bool`]: false, -// }; -// -// // --- (line: 16) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// interface Obj { -// [`num`]: number; -// ['/*RENAME*/bool']: boolean; -// } -// -// let o: Obj = { -// // --- (line: 7) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 4) skipped --- -// -// let o: Obj = { -// [`num`]: 0, -// ['/*RENAME*/bool']: true, -// }; -// -// o = { -// // --- (line: 12) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// --- (line: 9) skipped --- -// -// o = { -// ['num']: 1, -// [`/*RENAME*/bool`]: false, -// }; -// -// o.num; -// // --- (line: 17) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.ts === - -// /*RENAME*/interface Obj { -// [`num`]: number; -// ['bool']: boolean; -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /b.js === - -// /*RENAME*/import { o as obj } from './a'; -// -// obj.num; -// obj[`num`]; -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc deleted file mode 100644 index 738e7f4598..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc +++ /dev/null @@ -1,73 +0,0 @@ -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// obj = { -// [`/*RENAME*/prop`]: 1 -// }; -// -// obj.prop; -// // --- (line: 10) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /a.js === - -// /*RENAME*/let obj = {}; -// -// Object.defineProperty(obj, `prop`, { value: 0 }); -// -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename1.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename1.baseline.jsonc deleted file mode 100644 index c7d52d86ff..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename1.baseline.jsonc +++ /dev/null @@ -1,32 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// /*RENAME*/[|divRENAME|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = <[|divRENAME|] />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|divRENAME|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename2.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename2.baseline.jsonc deleted file mode 100644 index ff27b9a654..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename2.baseline.jsonc +++ /dev/null @@ -1,24 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// /*RENAME*/[|nameRENAME|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// // --- (line: 9) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 7) skipped --- -// span: { n: string; }; -// } -// } -// var x =
; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename3.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename3.baseline.jsonc deleted file mode 100644 index 706e37cefe..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename3.baseline.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 5) skipped --- -// } -// class MyClass { -// props: { -// /*RENAME*/[|nameRENAME|]?: string; -// size?: number; -// } -// -// -// var x = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// -// -// var x = ; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename5.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename5.baseline.jsonc deleted file mode 100644 index 64441c8ff3..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename5.baseline.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 9) skipped --- -// size?: number; -// } -// -// var /*RENAME*/[|nnRENAME|]: string; -// var x = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// /*RENAME*/ declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename6.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename6.baseline.jsonc deleted file mode 100644 index ccbeed823f..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename6.baseline.jsonc +++ /dev/null @@ -1,98 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function /*RENAME*/[|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = ; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = ; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = ; -// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// propString: string -// optional?: boolean -// } -// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; -// let opt = <[|OptRENAME|] />; -// let opt1 = <[|OptRENAME|] propx={100} propString />; -// let opt2 = <[|OptRENAME|] propx={100} optional/>; -// let opt3 = <[|OptRENAME|] wrong />; -// let opt4 = ; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename7.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename7.baseline.jsonc deleted file mode 100644 index 9f4bae05e1..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename7.baseline.jsonc +++ /dev/null @@ -1,39 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// /*RENAME*/[|propxRENAME|]: number -// propString: string -// optional?: boolean -// } -// // --- (line: 12) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 10) skipped --- -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 11) skipped --- -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename9.baseline.jsonc b/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename9.baseline.jsonc deleted file mode 100644 index 257d1b6d88..0000000000 --- a/testdata/baselines/reference/fourslash/findRenameLocations/tsxRename9.baseline.jsonc +++ /dev/null @@ -1,274 +0,0 @@ -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 8) skipped --- -// className?: string; -// } -// interface ButtonProps extends ClickableProps { -// /*RENAME*/[|onClickRENAME|](event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// goTo: string; -// // --- (line: 16) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 18) skipped --- -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 19) skipped --- -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 11) skipped --- -// onClick(event?: React.MouseEvent): void; -// } -// interface LinkProps extends ClickableProps { -// /*RENAME*/[|goToRENAME|]: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// // --- (line: 19) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 20) skipped --- -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function /*RENAME*/[|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function /*RENAME*/[|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function /*RENAME*/[|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = ; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = {}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = {}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = ; -// let opt = <[|MainButtonRENAME|] wrong />; - - - - -// === findRenameLocations === -// === /file.tsx === - -// --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; -// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; -// let opt = <[|MainButtonRENAME|] />; -// let opt = <[|MainButtonRENAME|] children="chidlren" />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; -// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; -// let opt = <[|MainButtonRENAME|] goTo="goTo" />; -// let opt = ; - - - - -// === findRenameLocations === -// === /file.tsx === - -// /*RENAME*/ declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// // --- (line: 5) skipped --- - - - - -// === findRenameLocations === -// === /file.tsx === - -// /*RENAME*/ declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// // --- (line: 5) skipped --- diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc index 2f6b197efc..a12955d6fa 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapGoToDefinition.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /indexdef.d.ts === - // export declare class Foo { // member: string; // [|methodName|](propName: SomeType): void; @@ -9,9 +8,7 @@ // y?: undefined; // // --- (line: 7) skipped --- - // === /mymodule.ts === - // import * as mod from "./indexdef"; // const instance = new mod.Foo(); -// instance./*GO TO DEFINITION*/methodName({member: 12}); +// instance./*GOTO DEF*/methodName({member: 12}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc index 222c09c7d5..5a4c9e8859 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /out/indexdef.d.ts === - // export declare class Foo { // member: string; // [|methodName|](propName: SomeType): void; @@ -9,9 +8,7 @@ // y?: undefined; // // --- (line: 7) skipped --- - // === /mymodule.ts === - // import * as mod from "./out/indexdef"; // const instance = new mod.Foo(); -// instance./*GO TO DEFINITION*/methodName({member: 12}); +// instance./*GOTO DEF*/methodName({member: 12}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc index 26e09ac286..bd7f38ec57 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /BaseClass/Source.d.ts === - // declare class [|Control|] { // constructor(); // /** this is a super var */ @@ -8,12 +7,10 @@ // } // //# sourceMappingURL=Source.d.ts.map - // === /buttonClass/Source.ts === - // // I cannot F12 navigate to Control // // vvvvvvv -// class Button extends /*GO TO DEFINITION*/Control { +// class Button extends /*GOTO DEF*/Control { // public myFunction() { // // I cannot F12 navigate to myVar // // vvvvv @@ -21,10 +18,8 @@ - // === goToDefinition === // === /BaseClass/Source.d.ts === - // declare class Control { // constructor(); // /** this is a super var */ @@ -32,15 +27,13 @@ // } // //# sourceMappingURL=Source.d.ts.map - // === /buttonClass/Source.ts === - // --- (line: 3) skipped --- // public myFunction() { // // I cannot F12 navigate to myVar // // vvvvv -// if (typeof this./*GO TO DEFINITION*/myVar === 'boolean') { +// if (typeof this./*GOTO DEF*/myVar === 'boolean') { // this.myVar; // } else { // this.myVar.toLocaleUpperCase(); -// // --- (line: 11) skipped --- +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc index 2d1cff1953..66e44c10de 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/declarationMapsOutOfDateMapping.baseline.jsonc @@ -1,12 +1,9 @@ // === goToDefinition === // === /home/src/workspaces/project/node_modules/a/dist/index.d.ts === - // export declare class [|Foo|] { // bar: any; // } // //# sourceMappingURL=index.d.ts.map - // === /home/src/workspaces/project/index.ts === - -// import { Foo/*GO TO DEFINITION*/ } from "a"; +// import { Foo/*GOTO DEF*/ } from "a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc index 9d628fc271..90392f6142 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/definition.baseline.jsonc @@ -1,10 +1,7 @@ // === goToDefinition === // === /a.ts === - // [|export class Foo {}|] - // === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc index 9d628fc271..90392f6142 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/definition01.baseline.jsonc @@ -1,10 +1,7 @@ // === goToDefinition === // === /a.ts === - // [|export class Foo {}|] - // === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc index 79486c0719..087c1a678f 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/definitionNameOnEnumMember.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /definitionNameOnEnumMember.ts === - // enum e { // firstMember, // secondMember, // [|thirdMember|] // } -// var enumMember = e./*GO TO DEFINITION*/thirdMember; +// var enumMember = e./*GOTO DEF*/thirdMember; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc index f22094d9de..4b94a0a31b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/findAllRefsForDefaultExport.baseline.jsonc @@ -1,10 +1,7 @@ // === goToDefinition === // === /a.ts === - // export default function [|f|]() {} - // === /b.ts === - // import g from "./a"; -// /*GO TO DEFINITION*/g(); +// /*GOTO DEF*/g(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc index 745522f41c..5759a9945b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAcrossMultipleProjects.baseline.jsonc @@ -1,28 +1,19 @@ // === goToDefinition === // === /a.ts === - // var [|x|]: number; - // === /b.ts === - // var [|x|]: number; - // === /c.ts === - // var [|x|]: number; - // === /d.ts === - // var [|x|]: number; - // === /e.ts === - // /// // /// // /// // /// -// /*GO TO DEFINITION*/x++; +// /*GOTO DEF*/x++; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc index 1a93a31da3..327d98ff29 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAlias.baseline.jsonc @@ -1,13 +1,12 @@ // === goToDefinition === // === /b.ts === - // import [|alias1|] = require("fileb"); // module Module { // export import alias2 = alias1; // } // // // Type position -// var t1: /*GO TO DEFINITION*/alias1.IFoo; +// var t1: /*GOTO DEF*/alias1.IFoo; // var t2: Module.alias2.IFoo; // // // Value posistion @@ -16,10 +15,8 @@ - // === goToDefinition === // === /b.ts === - // import [|alias1|] = require("fileb"); // module Module { // export import alias2 = alias1; @@ -30,15 +27,13 @@ // var t2: Module.alias2.IFoo; // // // Value posistion -// var v1 = new /*GO TO DEFINITION*/alias1.Foo(); +// var v1 = new /*GOTO DEF*/alias1.Foo(); // var v2 = new Module.alias2.Foo(); - // === goToDefinition === // === /b.ts === - // import alias1 = require("fileb"); // module Module { // export import [|alias2|] = alias1; @@ -46,7 +41,7 @@ // // // Type position // var t1: alias1.IFoo; -// var t2: Module./*GO TO DEFINITION*/alias2.IFoo; +// var t2: Module./*GOTO DEF*/alias2.IFoo; // // // Value posistion // var v1 = new alias1.Foo(); @@ -54,10 +49,8 @@ - // === goToDefinition === // === /b.ts === - // import alias1 = require("fileb"); // module Module { // export import [|alias2|] = alias1; @@ -69,4 +62,4 @@ // // // Value posistion // var v1 = new alias1.Foo(); -// var v2 = new Module./*GO TO DEFINITION*/alias2.Foo(); +// var v2 = new Module./*GOTO DEF*/alias2.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc index 9573cc52a4..c6ec5cc560 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAmbiants.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionAmbiants.ts === - // declare var [|ambientVar|]; // declare function ambientFunction(); // declare class ambientClass { @@ -9,7 +8,7 @@ // public method(); // } // -// /*GO TO DEFINITION*/ambientVar = 1; +// /*GOTO DEF*/ambientVar = 1; // ambientFunction(); // var ambientClassVariable = new ambientClass(); // ambientClass.method(); @@ -17,10 +16,8 @@ - // === goToDefinition === // === /goToDefinitionAmbiants.ts === - // declare var ambientVar; // declare function [|ambientFunction|](); // declare class ambientClass { @@ -30,17 +27,15 @@ // } // // ambientVar = 1; -// /*GO TO DEFINITION*/ambientFunction(); +// /*GOTO DEF*/ambientFunction(); // var ambientClassVariable = new ambientClass(); // ambientClass.method(); // ambientClassVariable.method(); - // === goToDefinition === // === /goToDefinitionAmbiants.ts === - // declare var ambientVar; // declare function ambientFunction(); // declare class [|ambientClass|] { @@ -51,16 +46,14 @@ // // ambientVar = 1; // ambientFunction(); -// var ambientClassVariable = new /*GO TO DEFINITION*/ambientClass(); +// var ambientClassVariable = new /*GOTO DEF*/ambientClass(); // ambientClass.method(); // ambientClassVariable.method(); - // === goToDefinition === // === /goToDefinitionAmbiants.ts === - // declare var ambientVar; // declare function ambientFunction(); // declare class ambientClass { @@ -72,15 +65,13 @@ // ambientVar = 1; // ambientFunction(); // var ambientClassVariable = new ambientClass(); -// ambientClass./*GO TO DEFINITION*/method(); +// ambientClass./*GOTO DEF*/method(); // ambientClassVariable.method(); - // === goToDefinition === // === /goToDefinitionAmbiants.ts === - // declare var ambientVar; // declare function ambientFunction(); // declare class ambientClass { @@ -93,4 +84,4 @@ // ambientFunction(); // var ambientClassVariable = new ambientClass(); // ambientClass.method(); -// ambientClassVariable./*GO TO DEFINITION*/method(); +// ambientClassVariable./*GOTO DEF*/method(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc index ab7da78e2d..5fc2e2ca45 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionApparentTypeProperties.baseline.jsonc @@ -1,24 +1,21 @@ // === goToDefinition === // === /goToDefinitionApparentTypeProperties.ts === - // interface Number { // [|myObjectMethod|](): number; // } // // var o = 0; -// o./*GO TO DEFINITION*/myObjectMethod(); +// o./*GOTO DEF*/myObjectMethod(); // o["myObjectMethod"](); - // === goToDefinition === // === /goToDefinitionApparentTypeProperties.ts === - // interface Number { // [|myObjectMethod|](): number; // } // // var o = 0; // o.myObjectMethod(); -// o["/*GO TO DEFINITION*/myObjectMethod"](); +// o["/*GOTO DEF*/myObjectMethod"](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc index 499c50ad50..85494107dd 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait1.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionAwait1.ts === - // async function [|foo|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); +// /*GOTO DEF*/await Promise.resolve(0); // } // function notAsync() { // await Promise.resolve(0); @@ -10,13 +9,11 @@ - // === goToDefinition === // === /goToDefinitionAwait1.ts === - // async function foo() { // await Promise.resolve(0); // } // function [|notAsync|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); -// } +// /*GOTO DEF*/await Promise.resolve(0); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc index 47a1ae6bbd..43b882974f 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait2.baseline.jsonc @@ -1,4 +1,3 @@ // === goToDefinition === // === /goToDefinitionAwait2.ts === - -// /*GO TO DEFINITION*/await Promise.resolve(0); +// /*GOTO DEF*/await Promise.resolve(0); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc index 5029797871..8367930473 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait3.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionAwait3.ts === - // class C { // [|notAsync|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); +// /*GOTO DEF*/await Promise.resolve(0); // } // // async foo() { @@ -11,16 +10,14 @@ - // === goToDefinition === // === /goToDefinitionAwait3.ts === - // class C { // notAsync() { // await Promise.resolve(0); // } // // async [|foo|]() { -// /*GO TO DEFINITION*/await Promise.resolve(0); +// /*GOTO DEF*/await Promise.resolve(0); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc index 0db32afffa..5976587ef6 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionAwait4.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionAwait4.ts === - // async function outerAsyncFun() { // let [|af|] = async () => { -// /*GO TO DEFINITION*/await Promise.resolve(0); +// /*GOTO DEF*/await Promise.resolve(0); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc index 0372c7fc8c..20ae582e13 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInTypes.baseline.jsonc @@ -1,40 +1,33 @@ // === goToDefinition === // === /goToDefinitionBuiltInTypes.ts === - -// var n: /*GO TO DEFINITION*/number; +// var n: /*GOTO DEF*/number; // var s: string; // var b: boolean; // var v: void; - // === goToDefinition === // === /goToDefinitionBuiltInTypes.ts === - // var n: number; -// var s: /*GO TO DEFINITION*/string; +// var s: /*GOTO DEF*/string; // var b: boolean; // var v: void; - // === goToDefinition === // === /goToDefinitionBuiltInTypes.ts === - // var n: number; // var s: string; -// var b: /*GO TO DEFINITION*/boolean; +// var b: /*GOTO DEF*/boolean; // var v: void; - // === goToDefinition === // === /goToDefinitionBuiltInTypes.ts === - // var n: number; // var s: string; // var b: boolean; -// var v: /*GO TO DEFINITION*/void; +// var v: /*GOTO DEF*/void; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc index a0f5c84325..ff62e8f2e0 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionBuiltInValues.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /goToDefinitionBuiltInValues.ts === - -// var u = /*GO TO DEFINITION*/undefined; +// var u = /*GOTO DEF*/undefined; // var n = null; // var a = function() { return arguments; }; // var t = true; @@ -9,48 +8,40 @@ - // === goToDefinition === // === /goToDefinitionBuiltInValues.ts === - // var u = undefined; -// var n = /*GO TO DEFINITION*/null; +// var n = /*GOTO DEF*/null; // var a = function() { return arguments; }; // var t = true; // var f = false; - // === goToDefinition === // === /goToDefinitionBuiltInValues.ts === - // var u = undefined; // var n = null; -// var a = function() { return /*GO TO DEFINITION*/arguments; }; +// var a = function() { return /*GOTO DEF*/arguments; }; // var t = true; // var f = false; - // === goToDefinition === // === /goToDefinitionBuiltInValues.ts === - // var u = undefined; // var n = null; // var a = function() { return arguments; }; -// var t = /*GO TO DEFINITION*/true; +// var t = /*GOTO DEF*/true; // var f = false; - // === goToDefinition === // === /goToDefinitionBuiltInValues.ts === - // var u = undefined; // var n = null; // var a = function() { return arguments; }; // var t = true; -// var f = /*GO TO DEFINITION*/false; +// var f = /*GOTO DEF*/false; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc index 038983e5b0..3a900298ab 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionCSSPatternAmbientModule.baseline.jsonc @@ -1,12 +1,9 @@ // === goToDefinition === // === /types.ts === - // declare module [|"*.css"|] { // const styles: any; // export = styles; // } - // === /index.ts === - -// import styles from /*GO TO DEFINITION*/"./index.css"; +// import styles from /*GOTO DEF*/"./index.css"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc index 35175ec694..9d9d23db29 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassConstructors.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /definitions.ts === - // export class Base { // [|constructor(protected readonly cArg: string) {}|] // } @@ -10,28 +9,22 @@ // readonly password = this.cArg.getByLabel('Password') // } - // === /main.ts === - // import { Derived } from './definitions' -// const derived = new /*GO TO DEFINITION*/Derived(cArg) - +// const derived = new /*GOTO DEF*/Derived(cArg) // === goToDefinition === // === /defInSameFile.ts === - // import { Base } from './definitions' // class [|SameFile|] extends Base { // readonly name: string = 'SameFile' // } -// const SameFile = new /*GO TO DEFINITION*/SameFile(cArg) +// const SameFile = new /*GOTO DEF*/SameFile(cArg) // const wrapper = new Base(cArg) - // === /definitions.ts === - // export class Base { // [|constructor(protected readonly cArg: string) {}|] // } @@ -41,23 +34,19 @@ - // === goToDefinition === // === /hasConstructor.ts === - // import { Base } from './definitions' // class [|HasConstructor|] extends Base { // [|constructor() {}|] // readonly name: string = ''; // } -// const hasConstructor = new /*GO TO DEFINITION*/HasConstructor(cArg) - +// const hasConstructor = new /*GOTO DEF*/HasConstructor(cArg) // === goToDefinition === // === /definitions.ts === - // export class [|Base|] { // [|constructor(protected readonly cArg: string) {}|] // } @@ -65,12 +54,10 @@ // export class Derived extends Base { // // --- (line: 6) skipped --- - // === /defInSameFile.ts === - // import { Base } from './definitions' // class SameFile extends Base { // readonly name: string = 'SameFile' // } // const SameFile = new SameFile(cArg) -// const wrapper = new /*GO TO DEFINITION*/Base(cArg) +// const wrapper = new /*GOTO DEF*/Base(cArg) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc index 330e892f1d..2658fa5840 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionClassStaticBlocks.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionClassStaticBlocks.ts === - // class ClassStaticBocks { // static x; -// /*GO TO DEFINITION*/static {} +// /*GOTO DEF*/static {} // static y; // static {} // static y; @@ -12,28 +11,24 @@ - // === goToDefinition === // === /goToDefinitionClassStaticBlocks.ts === - // class ClassStaticBocks { // static x; // static {} // static y; -// /*GO TO DEFINITION*/static {} +// /*GOTO DEF*/static {} // static y; // static {} // } - // === goToDefinition === // === /goToDefinitionClassStaticBlocks.ts === - // --- (line: 3) skipped --- // static y; // static {} // static y; -// /*GO TO DEFINITION*/static {} -// } +// /*GOTO DEF*/static {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc index 190d74c6c4..4acbe4f97b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassExpression01.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionConstructorOfClassExpression01.ts === - // var x = class [|C|] { // [|constructor() { -// var other = new /*GO TO DEFINITION*/C; +// var other = new /*GOTO DEF*/C; // }|] // } // @@ -12,10 +11,8 @@ - // === goToDefinition === // === /goToDefinitionConstructorOfClassExpression01.ts === - // --- (line: 3) skipped --- // } // } @@ -23,7 +20,7 @@ // var y = class [|C|] extends x { // [|constructor() { // super(); -// var other = new /*GO TO DEFINITION*/C; +// var other = new /*GOTO DEF*/C; // }|] // } // var z = class C extends x { @@ -32,10 +29,8 @@ - // === goToDefinition === // === /goToDefinitionConstructorOfClassExpression01.ts === - // var x = class C { // [|constructor() { // var other = new C; @@ -50,7 +45,7 @@ // } // var z = class [|C|] extends x { // m() { -// return new /*GO TO DEFINITION*/C; +// return new /*GOTO DEF*/C; // } // } // @@ -58,25 +53,21 @@ - // === goToDefinition === // === /goToDefinitionConstructorOfClassExpression01.ts === - // --- (line: 15) skipped --- // } // } // -// var x1 = new /*GO TO DEFINITION*/C(); +// var x1 = new /*GOTO DEF*/C(); // var x2 = new x(); // var y1 = new y(); // var z1 = new z(); - // === goToDefinition === // === /goToDefinitionConstructorOfClassExpression01.ts === - // var [|x|] = class C { // [|constructor() { // var other = new C; @@ -86,21 +77,18 @@ // var y = class C extends x { // // --- (line: 8) skipped --- - // --- (line: 16) skipped --- // } // // var x1 = new C(); -// var x2 = new /*GO TO DEFINITION*/x(); +// var x2 = new /*GOTO DEF*/x(); // var y1 = new y(); // var z1 = new z(); - // === goToDefinition === // === /goToDefinitionConstructorOfClassExpression01.ts === - // --- (line: 3) skipped --- // } // } @@ -119,15 +107,13 @@ // // var x1 = new C(); // var x2 = new x(); -// var y1 = new /*GO TO DEFINITION*/y(); +// var y1 = new /*GOTO DEF*/y(); // var z1 = new z(); - // === goToDefinition === // === /goToDefinitionConstructorOfClassExpression01.ts === - // var x = class C { // [|constructor() { // var other = new C; @@ -149,4 +135,4 @@ // var x1 = new C(); // var x2 = new x(); // var y1 = new y(); -// var z1 = new /*GO TO DEFINITION*/z(); +// var z1 = new /*GOTO DEF*/z(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc index 28bc8eeaff..a8830b8eaa 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01.ts === - // namespace [|Foo|] { // export var x; // } @@ -10,4 +9,4 @@ // }|] // } // -// var x = new /*GO TO DEFINITION*/Foo(); +// var x = new /*GOTO DEF*/Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc index 81d96484f9..ff9c7c772a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionConstructorOverloads.baseline.jsonc @@ -1,13 +1,12 @@ // === goToDefinition === // === /goToDefinitionConstructorOverloads.ts === - // class [|ConstructorOverload|] { // [|constructor();|] // constructor(foo: string); // constructor(foo: any) { } // } // -// var constructorOverload = new /*GO TO DEFINITION*/ConstructorOverload(); +// var constructorOverload = new /*GOTO DEF*/ConstructorOverload(); // var constructorOverload = new ConstructorOverload("foo"); // // class Extended extends ConstructorOverload { @@ -15,10 +14,8 @@ - // === goToDefinition === // === /goToDefinitionConstructorOverloads.ts === - // class [|ConstructorOverload|] { // constructor(); // [|constructor(foo: string);|] @@ -26,7 +23,7 @@ // } // // var constructorOverload = new ConstructorOverload(); -// var constructorOverload = new /*GO TO DEFINITION*/ConstructorOverload("foo"); +// var constructorOverload = new /*GOTO DEF*/ConstructorOverload("foo"); // // class Extended extends ConstructorOverload { // readonly name = "extended"; @@ -34,12 +31,10 @@ - // === goToDefinition === // === /goToDefinitionConstructorOverloads.ts === - // class ConstructorOverload { -// /*GO TO DEFINITION*/[|constructor();|] +// /*GOTO DEF*/[|constructor();|] // [|constructor(foo: string);|] // [|constructor(foo: any) { }|] // } @@ -49,10 +44,8 @@ - // === goToDefinition === // === /goToDefinitionConstructorOverloads.ts === - // class ConstructorOverload { // [|constructor();|] // constructor(foo: string); @@ -65,15 +58,13 @@ // class [|Extended|] extends ConstructorOverload { // readonly name = "extended"; // } -// var extended1 = new /*GO TO DEFINITION*/Extended(); +// var extended1 = new /*GOTO DEF*/Extended(); // var extended2 = new Extended("foo"); - // === goToDefinition === // === /goToDefinitionConstructorOverloads.ts === - // class ConstructorOverload { // constructor(); // [|constructor(foo: string);|] @@ -87,4 +78,4 @@ // readonly name = "extended"; // } // var extended1 = new Extended(); -// var extended2 = new /*GO TO DEFINITION*/Extended("foo"); +// var extended2 = new /*GOTO DEF*/Extended("foo"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc index 093a02279b..0ebd8c5a1e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecorator.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // function [|decorator|](target) { // return target; // } @@ -8,10 +7,8 @@ // return target => target; // } - // === /b.ts === - -// @/*GO TO DEFINITION*/decorator +// @/*GOTO DEF*/decorator // class C { // @decoratorFactory(a, "22", true) // method() {} @@ -19,10 +16,8 @@ - // === goToDefinition === // === /a.ts === - // function decorator(target) { // return target; // } @@ -30,11 +25,9 @@ // return target => target; // } - // === /b.ts === - // @decorator // class C { -// @decora/*GO TO DEFINITION*/torFactory(a, "22", true) +// @decora/*GOTO DEF*/torFactory(a, "22", true) // method() {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc index 230ffee836..f3f2413078 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDecoratorOverloads.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionDecoratorOverloads.ts === - // async function f() {} // // function [|dec|](target: any, propertyKey: string): void; @@ -9,16 +8,14 @@ // // declare const s: symbol; // class C { -// @/*GO TO DEFINITION*/dec f() {} +// @/*GOTO DEF*/dec f() {} // @dec [s]() {} // } - // === goToDefinition === // === /goToDefinitionDecoratorOverloads.ts === - // async function f() {} // // function dec(target: any, propertyKey: string): void; @@ -28,5 +25,5 @@ // declare const s: symbol; // class C { // @dec f() {} -// @/*GO TO DEFINITION*/dec [s]() {} -// } +// @/*GOTO DEF*/dec [s]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc index 8b68ee5b2a..5b50609eda 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire1.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /util.js === - // class Util {} // module.exports = { [|Util|] }; - // === /index.js === - // const { Util } = require('./util'); -// new Util/*GO TO DEFINITION*/() +// new Util/*GOTO DEF*/() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc index f9cf078539..d6658fec1e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDestructuredRequire2.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /reexport.js === - // const { Util } = require('./util'); // module.exports = { [|Util|] }; - // === /index.js === - // const { Util } = require('./reexport'); -// new Util/*GO TO DEFINITION*/() +// new Util/*GOTO DEF*/() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc index 73e3c72356..8bb9b0bdb2 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFile.baseline.jsonc @@ -1,16 +1,13 @@ // === goToDefinition === // === /goToDefinitionDifferentFile_Definition.ts === - // var [|remoteVariable|]; // function remoteFunction() { } // class remoteClass { } // interface remoteInterface{ } // module remoteModule{ export var foo = 1;} - // === /goToDefinitionDifferentFile_Consumption.ts === - -// /*GO TO DEFINITION*/remoteVariable = 1; +// /*GOTO DEF*/remoteVariable = 1; // remoteFunction(); // var foo = new remoteClass(); // class fooCls implements remoteInterface { } @@ -18,84 +15,68 @@ - // === goToDefinition === // === /goToDefinitionDifferentFile_Definition.ts === - // var remoteVariable; // function [|remoteFunction|]() { } // class remoteClass { } // interface remoteInterface{ } // module remoteModule{ export var foo = 1;} - // === /goToDefinitionDifferentFile_Consumption.ts === - // remoteVariable = 1; -// /*GO TO DEFINITION*/remoteFunction(); +// /*GOTO DEF*/remoteFunction(); // var foo = new remoteClass(); // class fooCls implements remoteInterface { } // var fooVar = remoteModule.foo; - // === goToDefinition === // === /goToDefinitionDifferentFile_Definition.ts === - // var remoteVariable; // function remoteFunction() { } // class [|remoteClass|] { } // interface remoteInterface{ } // module remoteModule{ export var foo = 1;} - // === /goToDefinitionDifferentFile_Consumption.ts === - // remoteVariable = 1; // remoteFunction(); -// var foo = new /*GO TO DEFINITION*/remoteClass(); +// var foo = new /*GOTO DEF*/remoteClass(); // class fooCls implements remoteInterface { } // var fooVar = remoteModule.foo; - // === goToDefinition === // === /goToDefinitionDifferentFile_Definition.ts === - // var remoteVariable; // function remoteFunction() { } // class remoteClass { } // interface [|remoteInterface|]{ } // module remoteModule{ export var foo = 1;} - // === /goToDefinitionDifferentFile_Consumption.ts === - // remoteVariable = 1; // remoteFunction(); // var foo = new remoteClass(); -// class fooCls implements /*GO TO DEFINITION*/remoteInterface { } +// class fooCls implements /*GOTO DEF*/remoteInterface { } // var fooVar = remoteModule.foo; - // === goToDefinition === // === /goToDefinitionDifferentFile_Definition.ts === - // var remoteVariable; // function remoteFunction() { } // class remoteClass { } // interface remoteInterface{ } // module [|remoteModule|]{ export var foo = 1;} - // === /goToDefinitionDifferentFile_Consumption.ts === - // remoteVariable = 1; // remoteFunction(); // var foo = new remoteClass(); // class fooCls implements remoteInterface { } -// var fooVar = /*GO TO DEFINITION*/remoteModule.foo; +// var fooVar = /*GOTO DEF*/remoteModule.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc index ca60f48be5..4a1334801b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDifferentFileIndirectly.baseline.jsonc @@ -1,16 +1,13 @@ // === goToDefinition === // === /Remote2.ts === - // var [|rem2Var|]; // function rem2Fn() { } // class rem2Cls { } // interface rem2Int{} // module rem2Mod { export var foo; } - // === /Definition.ts === - -// /*GO TO DEFINITION*/rem2Var = 1; +// /*GOTO DEF*/rem2Var = 1; // rem2Fn(); // var rem2foo = new rem2Cls(); // class rem2fooCls implements rem2Int { } @@ -18,84 +15,68 @@ - // === goToDefinition === // === /Remote2.ts === - // var rem2Var; // function [|rem2Fn|]() { } // class rem2Cls { } // interface rem2Int{} // module rem2Mod { export var foo; } - // === /Definition.ts === - // rem2Var = 1; -// /*GO TO DEFINITION*/rem2Fn(); +// /*GOTO DEF*/rem2Fn(); // var rem2foo = new rem2Cls(); // class rem2fooCls implements rem2Int { } // var rem2fooVar = rem2Mod.foo; - // === goToDefinition === // === /Remote2.ts === - // var rem2Var; // function rem2Fn() { } // class [|rem2Cls|] { } // interface rem2Int{} // module rem2Mod { export var foo; } - // === /Definition.ts === - // rem2Var = 1; // rem2Fn(); -// var rem2foo = new /*GO TO DEFINITION*/rem2Cls(); +// var rem2foo = new /*GOTO DEF*/rem2Cls(); // class rem2fooCls implements rem2Int { } // var rem2fooVar = rem2Mod.foo; - // === goToDefinition === // === /Remote2.ts === - // var rem2Var; // function rem2Fn() { } // class rem2Cls { } // interface [|rem2Int|]{} // module rem2Mod { export var foo; } - // === /Definition.ts === - // rem2Var = 1; // rem2Fn(); // var rem2foo = new rem2Cls(); -// class rem2fooCls implements /*GO TO DEFINITION*/rem2Int { } +// class rem2fooCls implements /*GOTO DEF*/rem2Int { } // var rem2fooVar = rem2Mod.foo; - // === goToDefinition === // === /Remote2.ts === - // var rem2Var; // function rem2Fn() { } // class rem2Cls { } // interface rem2Int{} // module [|rem2Mod|] { export var foo; } - // === /Definition.ts === - // rem2Var = 1; // rem2Fn(); // var rem2foo = new rem2Cls(); // class rem2fooCls implements rem2Int { } -// var rem2fooVar = /*GO TO DEFINITION*/rem2Mod.foo; +// var rem2fooVar = /*GOTO DEF*/rem2Mod.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc index 785b36a333..5398cf1c12 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport1.baseline.jsonc @@ -1,16 +1,13 @@ // === goToDefinition === // === /foo.ts === - // [|export function foo() { return "foo"; } -// import("./f/*GO TO DEFINITION*/oo") +// import("./f/*GOTO DEF*/oo") // var x = import("./foo")|] - // === goToDefinition === // === /foo.ts === - // [|export function foo() { return "foo"; } // import("./foo") -// var x = import("./fo/*GO TO DEFINITION*/o")|] +// var x = import("./fo/*GOTO DEF*/o")|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc index a05e56f6f2..d6519e3300 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport2.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /foo.ts === - // export function [|bar|]() { return "bar"; } // var x = import("./foo"); // x.then(foo => { -// foo.b/*GO TO DEFINITION*/ar(); -// }) +// foo.b/*GOTO DEF*/ar(); +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc index 1c3067b56d..1bfaf3adda 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc @@ -1,5 +1,4 @@ // === goToDefinition === // === /foo.ts === - // export function bar() { return "bar"; } -// import('./foo').then(({ ba/*GO TO DEFINITION*/[|bar|] }) => undefined); +// import('./foo').then(({ ba/*GOTO DEF*/[|bar|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc index 1c3067b56d..1bfaf3adda 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc @@ -1,5 +1,4 @@ // === goToDefinition === // === /foo.ts === - // export function bar() { return "bar"; } -// import('./foo').then(({ ba/*GO TO DEFINITION*/[|bar|] }) => undefined); +// import('./foo').then(({ ba/*GOTO DEF*/[|bar|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc index a5ff13bab4..4932b11ced 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass1.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /index.js === - // const Core = {} // // Core.[|Test|] = class { } // // Core.Test.prototype.foo = 10 // -// new Core.Tes/*GO TO DEFINITION*/t() +// new Core.Tes/*GOTO DEF*/t() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc index 0f782f9eab..aea5b85d31 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoClass2.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /index.js === - // const Core = {} // // Core.[|Test|] = class { @@ -9,4 +8,4 @@ // // Core.Test.prototype.foo = 10 // -// new Core.Tes/*GO TO DEFINITION*/t() +// new Core.Tes/*GOTO DEF*/t() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc index ba7dcf8388..d4ecb56a09 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExpandoElementAccess.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionExpandoElementAccess.ts === - // function f() {} // f[[|"x"|]] = 0; -// f[/*GO TO DEFINITION*/[|"x"|]] = 1; +// f[/*GOTO DEF*/[|"x"|]] = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc index 9d628fc271..90392f6142 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName.baseline.jsonc @@ -1,10 +1,7 @@ // === goToDefinition === // === /a.ts === - // [|export class Foo {}|] - // === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc index 23babaf566..4453ae5b73 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName2.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /a.ts === - // [|class Foo {} // export var x = 0;|] - // === /b.ts === - -// import n = require('./a/*GO TO DEFINITION*/'); -// var x = new n.Foo(); +// import n = require('./a/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc index 2906c9ba26..28f4ba1fd3 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName3.baseline.jsonc @@ -1,12 +1,9 @@ // === goToDefinition === // === /a.ts === - // declare module [|"e"|] { // class Foo { } // } - // === /b.ts === - -// import n = require('e/*GO TO DEFINITION*/'); -// var x = new n.Foo(); +// import n = require('e/*GOTO DEF*/'); +// var x = new n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc index a3ad6ce3a9..5b7bf8a1c6 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName4.baseline.jsonc @@ -1,4 +1,3 @@ // === goToDefinition === // === /b.ts === - -// import n = require('unknown/*GO TO DEFINITION*/'); +// import n = require('unknown/*GOTO DEF*/'); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc index d8b35efe1a..d95735c1a0 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - -// declare module "external/*GO TO DEFINITION*/[|"external"|] { +// declare module "external/*GOTO DEF*/[|"external"|] { // class Foo { } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc index 3d06c80981..236ff22c0f 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName6.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /a.ts === - // declare module [|"e"|] { // class Foo { } // } - // === /b.ts === - -// import * from 'e/*GO TO DEFINITION*/'; +// import * from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc index 9d348f7d5f..ebcad5e2ab 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName7.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /a.ts === - // declare module [|"e"|] { // class Foo { } // } - // === /b.ts === - -// import {Foo, Bar} from 'e/*GO TO DEFINITION*/'; +// import {Foo, Bar} from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc index 040ee5d897..8d0abed4ba 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName8.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /a.ts === - // declare module [|"e"|] { // class Foo { } // } - // === /b.ts === - -// export {Foo, Bar} from 'e/*GO TO DEFINITION*/'; +// export {Foo, Bar} from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc index ee436e817e..bc11061813 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName9.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /a.ts === - // declare module [|"e"|] { // class Foo { } // } - // === /b.ts === - -// export * from 'e/*GO TO DEFINITION*/'; +// export * from 'e/*GOTO DEF*/'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc index 4c8b8dd881..d7038b1f61 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloads.baseline.jsonc @@ -1,52 +1,45 @@ // === goToDefinition === // === /goToDefinitionFunctionOverloads.ts === - // function [|functionOverload|](value: number); // function functionOverload(value: string); // function functionOverload() {} // -// /*GO TO DEFINITION*/functionOverload(123); +// /*GOTO DEF*/functionOverload(123); // functionOverload("123"); // functionOverload({}); - // === goToDefinition === // === /goToDefinitionFunctionOverloads.ts === - // function functionOverload(value: number); // function [|functionOverload|](value: string); // function functionOverload() {} // // functionOverload(123); -// /*GO TO DEFINITION*/functionOverload("123"); +// /*GOTO DEF*/functionOverload("123"); // functionOverload({}); - // === goToDefinition === // === /goToDefinitionFunctionOverloads.ts === - // function [|functionOverload|](value: number); // function functionOverload(value: string); // function functionOverload() {} // // functionOverload(123); // functionOverload("123"); -// /*GO TO DEFINITION*/functionOverload({}); - +// /*GOTO DEF*/functionOverload({}); // === goToDefinition === // === /goToDefinitionFunctionOverloads.ts === - -// function /*GO TO DEFINITION*/[|functionOverload|](value: number); +// function /*GOTO DEF*/[|functionOverload|](value: number); // function [|functionOverload|](value: string); // function [|functionOverload|]() {} // // functionOverload(123); // functionOverload("123"); -// functionOverload({}); +// functionOverload({}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc index 4230a17f0c..1acfdd2dfc 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionOverloadsInClass.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionFunctionOverloadsInClass.ts === - // class clsInOverload { // static [|fnOverload|](); -// static /*GO TO DEFINITION*/[|fnOverload|](foo: string); +// static /*GOTO DEF*/[|fnOverload|](foo: string); // static [|fnOverload|](foo: any) { } // public fnOverload(): any; // public fnOverload(foo: string); @@ -12,17 +11,15 @@ - // === goToDefinition === // === /goToDefinitionFunctionOverloadsInClass.ts === - // class clsInOverload { // static fnOverload(); // static fnOverload(foo: string); // static fnOverload(foo: any) { } -// public /*GO TO DEFINITION*/[|fnOverload|](): any; +// public /*GOTO DEF*/[|fnOverload|](): any; // public [|fnOverload|](foo: string); // public [|fnOverload|](foo: any) { return "foo" } // // constructor() { } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc index 2560509821..cac8a22add 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionFunctionType.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionFunctionType.ts === - // const [|c|]: () => void; -// /*GO TO DEFINITION*/c(); +// /*GOTO DEF*/c(); // function test(cb: () => void) { // cb(); // } @@ -10,14 +9,12 @@ - // === goToDefinition === // === /goToDefinitionFunctionType.ts === - // const c: () => void; // c(); // function test([|cb|]: () => void) { -// /*GO TO DEFINITION*/cb(); +// /*GOTO DEF*/cb(); // } // class C { // prop: () => void; @@ -25,16 +22,14 @@ - // === goToDefinition === // === /goToDefinitionFunctionType.ts === - // --- (line: 3) skipped --- // cb(); // } // class C { // [|prop|]: () => void; // m() { -// this./*GO TO DEFINITION*/prop(); +// this./*GOTO DEF*/prop(); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc index 8072ce52e3..87e205beb0 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImplicitConstructor.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionImplicitConstructor.ts === - // class [|ImplicitConstructor|] { // } -// var implicitConstructor = new /*GO TO DEFINITION*/ImplicitConstructor(); +// var implicitConstructor = new /*GOTO DEF*/ImplicitConstructor(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc index 9dc3601368..b9281b2a4d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport1.baseline.jsonc @@ -1,9 +1,6 @@ // === goToDefinition === // === /b.ts === - // [|export const foo = 1;|] - // === /a.ts === - -// import { foo } from "./b/*GO TO DEFINITION*/"; +// import { foo } from "./b/*GOTO DEF*/"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc index c62a776d36..458dd91a4e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport2.baseline.jsonc @@ -1,4 +1,3 @@ // === goToDefinition === // === /a.ts === - -// import { foo } from/*GO TO DEFINITION*/ "./b"; +// import { foo } from/*GOTO DEF*/ "./b"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc index 2759540a10..c1b20b0557 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImport3.baseline.jsonc @@ -1,4 +1,3 @@ // === goToDefinition === // === /a.ts === - -// import { foo } from /*GO TO DEFINITION*/ "./b"; +// import { foo } from /*GOTO DEF*/ "./b"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc index 2282246b5d..5aa9446edb 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // export module Module { // } // export class [|Class|] { @@ -10,7 +9,5 @@ // x; // } - // === /b.ts === - -// export {/*GO TO DEFINITION*/Class} from "./a"; +// export {/*GOTO DEF*/Class} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc index 81d8e3cf17..91440f77d1 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames10.baseline.jsonc @@ -1,13 +1,10 @@ // === goToDefinition === // === /a.js === - // class Class { // f; // } // module.exports.[|Class|] = Class; - // === /b.js === - // const { Class } = require("./a"); -// /*GO TO DEFINITION*/Class; +// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc index 3aea74d06e..7c4739fa58 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames11.baseline.jsonc @@ -1,13 +1,10 @@ // === goToDefinition === // === /a.js === - // class Class { // f; // } // module.exports = { [|Class|] }; - // === /b.js === - // const { Class } = require("./a"); -// /*GO TO DEFINITION*/Class; +// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc index d7828b4ce8..e78479c07d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames2.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // export module Module { // } // export class [|Class|] { @@ -10,7 +9,5 @@ // x; // } - // === /b.ts === - -// import {/*GO TO DEFINITION*/Class} from "./a"; +// import {/*GOTO DEF*/Class} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc index 71deedc5f3..e203d7d28d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames3.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // export module Module { // } // export class [|Class|] { @@ -10,18 +9,14 @@ // x; // } - // === /e.ts === - // import {M, C, I} from "./d"; -// var c = new /*GO TO DEFINITION*/C(); - +// var c = new /*GOTO DEF*/C(); // === goToDefinition === // === /a.ts === - // export module Module { // } // export class [|Class|] { @@ -31,8 +26,6 @@ // x; // } - // === /e.ts === - -// import {M, /*GO TO DEFINITION*/C, I} from "./d"; -// var c = new C(); +// import {M, /*GOTO DEF*/C, I} from "./d"; +// var c = new C(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc index 7a0d40de79..55509a2511 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames4.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // export module Module { // } // export class [|Class|] { @@ -10,7 +9,5 @@ // x; // } - // === /b.ts === - -// import {Class as /*GO TO DEFINITION*/ClassAlias} from "./a"; +// import {Class as /*GOTO DEF*/ClassAlias} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc index cd091788ce..0c0a65ec64 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames5.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // export module Module { // } // export class [|Class|] { @@ -10,7 +9,5 @@ // x; // } - // === /b.ts === - -// export {Class as /*GO TO DEFINITION*/ClassAlias} from "./a"; +// export {Class as /*GOTO DEF*/ClassAlias} from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc index 8d32931ebc..af308bf7cf 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames6.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // [|export module Module { // } // export class Class { @@ -10,7 +9,5 @@ // x; // }|] - // === /b.ts === - -// import /*GO TO DEFINITION*/alias = require("./a"); +// import /*GOTO DEF*/alias = require("./a"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc index a14ce34c75..204b6ef767 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames7.baseline.jsonc @@ -1,12 +1,9 @@ // === goToDefinition === // === /a.ts === - // class [|Class|] { // private f; // } // export default Class; - // === /b.ts === - -// import /*GO TO DEFINITION*/defaultExport from "./a"; +// import /*GOTO DEF*/defaultExport from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc index 9d0450fdf1..438a28cd46 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames8.baseline.jsonc @@ -1,12 +1,9 @@ // === goToDefinition === // === /a.js === - // class [|Class|] { // private f; // } // export { Class }; - // === /b.js === - -// import { /*GO TO DEFINITION*/Class } from "./a"; +// import { /*GOTO DEF*/Class } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc index d50fd5d70e..54c06f70e2 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImportedNames9.baseline.jsonc @@ -1,13 +1,10 @@ // === goToDefinition === // === /a.js === - // class [|Class|] { // f; // } // export { Class }; - // === /b.js === - // const { Class } = require("./a"); -// /*GO TO DEFINITION*/Class; +// /*GOTO DEF*/Class; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc index b1618fc234..ca6cb45455 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionImports.baseline.jsonc @@ -1,70 +1,57 @@ // === goToDefinition === // === /a.ts === - // [|export default function f() {} // export const x = 0;|] - // === /b.ts === - // import f, { x } from "./a"; // import * as a from "./a"; // import b = require("./b"); // f; // x; -// /*GO TO DEFINITION*/a; +// /*GOTO DEF*/a; // b; - // === goToDefinition === // === /a.ts === - // export default function [|f|]() {} // export const x = 0; - // === /b.ts === - // import f, { x } from "./a"; // import * as a from "./a"; // import b = require("./b"); -// /*GO TO DEFINITION*/f; +// /*GOTO DEF*/f; // x; // a; // b; - // === goToDefinition === // === /a.ts === - // export default function f() {} // export const [|x|] = 0; - // === /b.ts === - // import f, { x } from "./a"; // import * as a from "./a"; // import b = require("./b"); // f; -// /*GO TO DEFINITION*/x; +// /*GOTO DEF*/x; // a; // b; - // === goToDefinition === // === /b.ts === - // [|import f, { x } from "./a"; // import * as a from "./a"; // import b = require("./b"); // f; // x; // a; -// /*GO TO DEFINITION*/b;|] +// /*GOTO DEF*/b;|] \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc index 2152a5ba0a..9b92030eb2 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInMemberDeclaration.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // interface [|IFoo|] { method1(): number; } // // class Foo implements IFoo { @@ -10,7 +9,7 @@ // enum Enum { value1, value2 }; // // class Bar { -// public _interface: IFo/*GO TO DEFINITION*/o = new Foo(); +// public _interface: IFo/*GOTO DEF*/o = new Foo(); // public _class: Foo = new Foo(); // public _list: IFoo[]=[]; // public _enum: Enum = Enum.value1; @@ -18,22 +17,19 @@ - // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // interface [|IFoo|] { method1(): number; } // // class Foo implements IFoo { // public method1(): number { return 0; } // // --- (line: 5) skipped --- - // --- (line: 8) skipped --- // class Bar { // public _interface: IFoo = new Foo(); // public _class: Foo = new Foo(); -// public _list: IF/*GO TO DEFINITION*/oo[]=[]; +// public _list: IF/*GOTO DEF*/oo[]=[]; // public _enum: Enum = Enum.value1; // public _self: Bar; // @@ -41,31 +37,26 @@ - // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // interface [|IFoo|] { method1(): number; } // // class Foo implements IFoo { // public method1(): number { return 0; } // // --- (line: 5) skipped --- - // --- (line: 12) skipped --- // public _enum: Enum = Enum.value1; // public _self: Bar; // -// constructor(public _inConstructor: IFo/*GO TO DEFINITION*/o) { +// constructor(public _inConstructor: IFo/*GOTO DEF*/o) { // } // } - // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // interface IFoo { method1(): number; } // // class [|Foo|] implements IFoo { @@ -76,7 +67,7 @@ // // class Bar { // public _interface: IFoo = new Foo(); -// public _class: Fo/*GO TO DEFINITION*/o = new Foo(); +// public _class: Fo/*GOTO DEF*/o = new Foo(); // public _list: IFoo[]=[]; // public _enum: Enum = Enum.value1; // public _self: Bar; @@ -84,10 +75,8 @@ - // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // interface IFoo { method1(): number; } // // class [|Foo|] implements IFoo { @@ -97,7 +86,7 @@ // enum Enum { value1, value2 }; // // class Bar { -// public _interface: IFoo = new Fo/*GO TO DEFINITION*/o(); +// public _interface: IFoo = new Fo/*GOTO DEF*/o(); // public _class: Foo = new Foo(); // public _list: IFoo[]=[]; // public _enum: Enum = Enum.value1; @@ -105,10 +94,8 @@ - // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // --- (line: 3) skipped --- // public method1(): number { return 0; } // } @@ -119,7 +106,7 @@ // public _interface: IFoo = new Foo(); // public _class: Foo = new Foo(); // public _list: IFoo[]=[]; -// public _enum: E/*GO TO DEFINITION*/num = Enum.value1; +// public _enum: E/*GOTO DEF*/num = Enum.value1; // public _self: Bar; // // constructor(public _inConstructor: IFoo) { @@ -128,10 +115,8 @@ - // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // --- (line: 3) skipped --- // public method1(): number { return 0; } // } @@ -142,7 +127,7 @@ // public _interface: IFoo = new Foo(); // public _class: Foo = new Foo(); // public _list: IFoo[]=[]; -// public _enum: Enum = En/*GO TO DEFINITION*/um.value1; +// public _enum: Enum = En/*GOTO DEF*/um.value1; // public _self: Bar; // // constructor(public _inConstructor: IFoo) { @@ -151,10 +136,8 @@ - // === goToDefinition === // === /goToDefinitionInMemberDeclaration.ts === - // --- (line: 5) skipped --- // // enum Enum { value1, value2 }; @@ -164,8 +147,8 @@ // public _class: Foo = new Foo(); // public _list: IFoo[]=[]; // public _enum: Enum = Enum.value1; -// public _self: Ba/*GO TO DEFINITION*/r; +// public _self: Ba/*GOTO DEF*/r; // // constructor(public _inConstructor: IFoo) { // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc index dabf7326e3..db5eff1b7a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInTypeArgument.baseline.jsonc @@ -1,20 +1,17 @@ // === goToDefinition === // === /goToDefinitionInTypeArgument.ts === - // class Foo { } // // class [|Bar|] { } // -// var x = new Foo(); - +// var x = new Foo(); // === goToDefinition === // === /goToDefinitionInTypeArgument.ts === - // class [|Foo|] { } // // class Bar { } // -// var x = new Fo/*GO TO DEFINITION*/o(); +// var x = new Fo/*GOTO DEF*/o(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc index f28879d050..6bd0439d00 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionIndexSignature.ts === - // interface I { // [|[x: string]: boolean;|] // } @@ -12,7 +11,7 @@ // [x: `${string}b`]: string; // } // declare const i: I; -// i./*GO TO DEFINITION*/foo; +// i./*GOTO DEF*/foo; // declare const ij: I | J; // ij.foo; // declare const k: K; @@ -20,10 +19,8 @@ - // === goToDefinition === // === /goToDefinitionIndexSignature.ts === - // interface I { // [|[x: string]: boolean;|] // } @@ -37,7 +34,7 @@ // declare const i: I; // i.foo; // declare const ij: I | J; -// ij./*GO TO DEFINITION*/foo; +// ij./*GOTO DEF*/foo; // declare const k: K; // k.a; // k.b; @@ -45,10 +42,8 @@ - // === goToDefinition === // === /goToDefinitionIndexSignature.ts === - // --- (line: 4) skipped --- // [x: string]: number; // } @@ -61,16 +56,14 @@ // declare const ij: I | J; // ij.foo; // declare const k: K; -// k./*GO TO DEFINITION*/a; +// k./*GOTO DEF*/a; // k.b; // k.ab; - // === goToDefinition === // === /goToDefinitionIndexSignature.ts === - // --- (line: 5) skipped --- // } // interface K { @@ -83,15 +76,13 @@ // ij.foo; // declare const k: K; // k.a; -// k./*GO TO DEFINITION*/b; +// k./*GOTO DEF*/b; // k.ab; - // === goToDefinition === // === /goToDefinitionIndexSignature.ts === - // --- (line: 4) skipped --- // [x: string]: number; // } @@ -106,4 +97,4 @@ // declare const k: K; // k.a; // k.b; -// k./*GO TO DEFINITION*/ab; +// k./*GOTO DEF*/ab; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc index 248a3b23e5..7abd22b554 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionIndexSignature2.baseline.jsonc @@ -1,5 +1,4 @@ // === goToDefinition === // === /a.js === - // const o = {}; -// o./*GO TO DEFINITION*/foo; +// o./*GOTO DEF*/foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc index e515f36374..1dfebe238c 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof1.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /goToDefinitionInstanceof1.ts === - // class [|C|] { // } // declare var obj: any; -// obj /*GO TO DEFINITION*/instanceof C; +// obj /*GOTO DEF*/instanceof C; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc index de16fac690..899d642468 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInstanceof2.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /main.ts === - // class C { // static [|[Symbol.hasInstance]|](value: unknown): boolean { return true; } // } // declare var obj: any; -// obj /*GO TO DEFINITION*/instanceof C; +// obj /*GOTO DEF*/instanceof C; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc index 8bdc0bf92f..9e4567449e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionInterfaceAfterImplement.baseline.jsonc @@ -1,13 +1,12 @@ // === goToDefinition === // === /goToDefinitionInterfaceAfterImplement.ts === - // interface [|sInt|] { // sVar: number; // sFn: () => void; // } // -// class iClass implements /*GO TO DEFINITION*/sInt { +// class iClass implements /*GOTO DEF*/sInt { // public sVar = 1; // public sFn() { // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc index 12cc4cdcea..6b0fb3966d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag1.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.js === - // /** -// * @import { A } from "./b/*GO TO DEFINITION*/" -// */ +// * @import { A } from "./b/*GOTO DEF*/" +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc index c1f8225a90..70db19f1b2 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag2.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.js === - // /** -// * @import { A } from/*GO TO DEFINITION*/ "./b" -// */ +// * @import { A } from/*GOTO DEF*/ "./b" +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc index b0594c7379..443b3ca3d9 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag3.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.js === - // /** -// * @import { A } from /*GO TO DEFINITION*/ "./b"; -// */ +// * @import { A } from /*GOTO DEF*/ "./b"; +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc index 7aedc0dc48..c49880320f 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag4.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.js === - // /** -// * @import { A/*GO TO DEFINITION*/ } from "./b"; -// */ +// * @import { A/*GOTO DEF*/ } from "./b"; +// */ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc index 1ead78f336..7e27cfb656 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsDocImportTag5.baseline.jsonc @@ -1,16 +1,13 @@ // === goToDefinition === // === /b.ts === - // export interface [|A|] { } - // === /a.js === - // /** // * @import { A } from "./b"; // */ // // /** -// * @param { A/*GO TO DEFINITION*/ } a +// * @param { A/*GOTO DEF*/ } a // */ -// function f(a) {} +// function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc index bf9b945576..5ba2bcd18c 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleExports.baseline.jsonc @@ -1,18 +1,15 @@ // === goToDefinition === // === /foo.js === - // x.test = () => { } -// x./*GO TO DEFINITION*/test(); +// x./*GOTO DEF*/test(); // x.test3 = function () { } // x.test3(); - // === goToDefinition === // === /foo.js === - // x.test = () => { } // x.test(); // x.test3 = function () { } -// x./*GO TO DEFINITION*/test3(); +// x./*GOTO DEF*/test3(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc index 36626d0ff8..b8416519af 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleName.baseline.jsonc @@ -1,9 +1,6 @@ // === goToDefinition === // === /foo.js === - // [|module.exports = {};|] - // === /bar.js === - -// var x = require(/*GO TO DEFINITION*/"./foo"); +// var x = require(/*GOTO DEF*/"./foo"); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc index 24f541fe17..7470cbd268 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc @@ -1,68 +1,53 @@ // === goToDefinition === // === /foo.js === - // [|function notExported() { } // class Blah { // abc = 123; // } // module.exports.Blah = Blah;|] - // === /bar.js === - -// const /*GO TO DEFINITION*/BlahModule = require("./foo.js"); +// const /*GOTO DEF*/BlahModule = require("./foo.js"); // new BlahModule.Blah() - // === goToDefinition === // === /foo.js === - // [|function notExported() { } // class Blah { // abc = 123; // } // module.exports.Blah = Blah;|] - // === /bar.js === - // const BlahModule = require("./foo.js"); -// new /*GO TO DEFINITION*/BlahModule.Blah() - +// new /*GOTO DEF*/BlahModule.Blah() // === goToDefinition === // === /foo.js === - // [|function notExported() { } // class Blah { // abc = 123; // } // module.exports.Blah = Blah;|] - // === /barTs.ts === - -// import /*GO TO DEFINITION*/BlahModule = require("./foo.js"); +// import /*GOTO DEF*/BlahModule = require("./foo.js"); // new BlahModule.Blah() - // === goToDefinition === // === /foo.js === - // [|function notExported() { } // class Blah { // abc = 123; // } // module.exports.Blah = Blah;|] - // === /barTs.ts === - // import BlahModule = require("./foo.js"); -// new /*GO TO DEFINITION*/BlahModule.Blah() +// new /*GOTO DEF*/BlahModule.Blah() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc index 494b9afbf4..620243c5d1 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxCall.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /test.tsx === - // interface FC

{ // [|(props: P, context?: any): string;|] // } // // const [|Thing|]: FC = (props) =>

; -// const HelloWorld = () => ; +// const HelloWorld = () => ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc index 16279522de..dd6576d397 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionJsxNotSet.baseline.jsonc @@ -1,13 +1,10 @@ // === goToDefinition === // === /foo.jsx === - // const [|Foo|] = () => ( //
foo
// ); // export default Foo; - // === /bar.jsx === - // import Foo from './foo'; -// const a = +// const a = \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc index 834e6a6021..22488162e2 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionLabels.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionLabels.ts === - // [|label1|]: while (true) { // label2: while (true) { -// break /*GO TO DEFINITION*/label1; +// break /*GOTO DEF*/label1; // continue label2; // () => { break label1; } // continue unknownLabel; @@ -12,14 +11,12 @@ - // === goToDefinition === // === /goToDefinitionLabels.ts === - // label1: while (true) { // [|label2|]: while (true) { // break label1; -// continue /*GO TO DEFINITION*/label2; +// continue /*GOTO DEF*/label2; // () => { break label1; } // continue unknownLabel; // } @@ -27,30 +24,26 @@ - // === goToDefinition === // === /goToDefinitionLabels.ts === - // [|label1|]: while (true) { // label2: while (true) { // break label1; // continue label2; -// () => { break /*GO TO DEFINITION*/label1; } +// () => { break /*GOTO DEF*/label1; } // continue unknownLabel; // } // } - // === goToDefinition === // === /goToDefinitionLabels.ts === - // label1: while (true) { // label2: while (true) { // break label1; // continue label2; // () => { break label1; } -// continue /*GO TO DEFINITION*/unknownLabel; +// continue /*GOTO DEF*/unknownLabel; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc index 2e1b2688af..8eace5c6d1 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /a.ts === - // class A { -// private z/*GO TO DEFINITION*/[|z|]: string; -// } +// private z/*GOTO DEF*/[|z|]: string; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc index 64438cdf2f..250ca86e5d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc @@ -1,59 +1,46 @@ // === goToDefinition === // === /a.ts === - -// im/*GO TO DEFINITION*/port.meta; +// im/*GOTO DEF*/port.meta; // function f() { new.target; } - // === goToDefinition === // === /a.ts === - -// import.met/*GO TO DEFINITION*/a; +// import.met/*GOTO DEF*/a; // function f() { new.target; } - // === goToDefinition === // === /a.ts === - // import.meta; -// function f() { n/*GO TO DEFINITION*/ew.target; } - +// function f() { n/*GOTO DEF*/ew.target; } // === goToDefinition === // === /a.ts === - // import.meta; -// function f() { new.t/*GO TO DEFINITION*/[|f|]() { new.target; } - +// function f() { new.t/*GOTO DEF*/[|f|]() { new.target; } // === goToDefinition === // === /b.ts === - -// im/*GO TO DEFINITION*/port.m; +// im/*GOTO DEF*/port.m; // class c { constructor() { new.target; } } - // === goToDefinition === // === /b.ts === - // import.m; -// class c { constructor() { n/*GO TO DEFINITION*/ew.target; } } - +// class c { constructor() { n/*GOTO DEF*/ew.target; } } // === goToDefinition === // === /b.ts === - // import.m; -// class c { constructor() { new.t/*GO TO DEFINITION*/[|c|] { constructor() { new.target; } } +// class c { constructor() { new.t/*GOTO DEF*/[|c|] { constructor() { new.target; } } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc index 6f294a944d..a7d816c66d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMethodOverloads.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionMethodOverloads.ts === - // class MethodOverload { // static [|method|](); // static method(foo: string); @@ -10,7 +9,7 @@ // public method(foo?: any) { return "foo" } // } // // static method -// MethodOverload./*GO TO DEFINITION*/method(); +// MethodOverload./*GOTO DEF*/method(); // MethodOverload.method("123"); // // instance method // var methodOverload = new MethodOverload(); @@ -19,10 +18,8 @@ - // === goToDefinition === // === /goToDefinitionMethodOverloads.ts === - // class MethodOverload { // static method(); // static [|method|](foo: string); @@ -33,7 +30,7 @@ // } // // static method // MethodOverload.method(); -// MethodOverload./*GO TO DEFINITION*/method("123"); +// MethodOverload./*GOTO DEF*/method("123"); // // instance method // var methodOverload = new MethodOverload(); // methodOverload.method(); @@ -41,10 +38,8 @@ - // === goToDefinition === // === /goToDefinitionMethodOverloads.ts === - // class MethodOverload { // static method(); // static method(foo: string); @@ -58,15 +53,13 @@ // MethodOverload.method("123"); // // instance method // var methodOverload = new MethodOverload(); -// methodOverload./*GO TO DEFINITION*/method(); +// methodOverload./*GOTO DEF*/method(); // methodOverload.method("456"); - // === goToDefinition === // === /goToDefinitionMethodOverloads.ts === - // class MethodOverload { // static method(); // static method(foo: string); @@ -81,16 +74,14 @@ // // instance method // var methodOverload = new MethodOverload(); // methodOverload.method(); -// methodOverload./*GO TO DEFINITION*/method("456"); - +// methodOverload./*GOTO DEF*/method("456"); // === goToDefinition === // === /goToDefinitionMethodOverloads.ts === - // class MethodOverload { -// static /*GO TO DEFINITION*/[|method|](); +// static /*GOTO DEF*/[|method|](); // static [|method|](foo: string); // static [|method|](foo?: any) { } // public method(): any; @@ -100,18 +91,16 @@ - // === goToDefinition === // === /goToDefinitionMethodOverloads.ts === - // class MethodOverload { // static method(); // static method(foo: string); // static method(foo?: any) { } -// public /*GO TO DEFINITION*/[|method|](): any; +// public /*GOTO DEF*/[|method|](): any; // public [|method|](foo: string); // public [|method|](foo?: any) { return "foo" } // } // // static method // MethodOverload.method(); -// // --- (line: 11) skipped --- +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc index 44c9df60f1..aa1c18bb80 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc @@ -1,230 +1,199 @@ // === goToDefinition === // === /a.ts === - -// /*GO TO DEFINITION*/export class [|A|] { -// -// private z: string; +// /*GOTO DEF*/export class [|A|] { +// +// private z: string; // // // --- (line: 5) skipped --- - // === goToDefinition === // === /a.ts === - -// export class A/*GO TO DEFINITION*/[|A|] { -// -// private z: string; +// export class A/*GOTO DEF*/[|A|] { +// +// private z: string; // // // --- (line: 5) skipped --- - // === goToDefinition === // === /a.ts === - -// export class A { -// -// /*GO TO DEFINITION*/private [|z|]: string; +// export class A { +// +// /*GOTO DEF*/private [|z|]: string; +// +// readonly x: string; // -// readonly x: string; -// // // --- (line: 7) skipped --- - // === goToDefinition === // === /a.ts === - -// export class A { -// -// private z/*GO TO DEFINITION*/[|z|]: string; +// export class A { +// +// private z/*GOTO DEF*/[|z|]: string; +// +// readonly x: string; // -// readonly x: string; -// // // --- (line: 7) skipped --- - // === goToDefinition === // === /a.ts === - -// export class A { -// -// private z: string; +// export class A { +// +// private z: string; +// +// /*GOTO DEF*/readonly [|x|]: string; +// +// async a() { } // -// /*GO TO DEFINITION*/readonly [|x|]: string; -// -// async a() { } -// // // --- (line: 9) skipped --- - // === goToDefinition === // === /a.ts === - -// export class A { -// -// private z: string; +// export class A { +// +// private z: string; +// +// readonly x/*GOTO DEF*/[|x|]: string; +// +// async a() { } // -// readonly x/*GO TO DEFINITION*/[|x|]: string; -// -// async a() { } -// // // --- (line: 9) skipped --- - // === goToDefinition === // === /a.ts === - // --- (line: 3) skipped --- // -// readonly x: string; -// -// /*GO TO DEFINITION*/async [|a|]() { } -// -// override b() {} -// +// readonly x: string; +// +// /*GOTO DEF*/async [|a|]() { } +// +// override b() {} +// // // --- (line: 11) skipped --- - // === goToDefinition === // === /a.ts === - // --- (line: 3) skipped --- // -// readonly x: string; -// -// async a/*GO TO DEFINITION*/[|a|]() { } -// -// override b() {} -// +// readonly x: string; +// +// async a/*GOTO DEF*/[|a|]() { } +// +// override b() {} +// // // --- (line: 11) skipped --- - // === goToDefinition === // === /a.ts === - // --- (line: 5) skipped --- -// -// async a() { } -// -// /*GO TO DEFINITION*/override [|b|]() {} -// -// public async c() { } -// } // -// export function foo() { } - +// async a() { } +// +// /*GOTO DEF*/override [|b|]() {} +// +// public async c() { } +// } +// +// export function foo() { } // === goToDefinition === // === /a.ts === - // --- (line: 5) skipped --- -// -// async a() { } -// -// override b/*GO TO DEFINITION*/[|b|]() {} -// -// public async c() { } -// } // -// export function foo() { } - +// async a() { } +// +// override b/*GOTO DEF*/[|b|]() {} +// +// public async c() { } +// } +// +// export function foo() { } // === goToDefinition === // === /a.ts === - // --- (line: 7) skipped --- -// -// override b() {} -// -// /*GO TO DEFINITION*/public async [|c|]() { } -// } // -// export function foo() { } - +// override b() {} +// +// /*GOTO DEF*/public async [|c|]() { } +// } +// +// export function foo() { } // === goToDefinition === // === /a.ts === - // --- (line: 7) skipped --- -// -// override b() {} -// -// public/*GO TO DEFINITION*/ async [|c|]() { } -// } // -// export function foo() { } - +// override b() {} +// +// public/*GOTO DEF*/ async [|c|]() { } +// } +// +// export function foo() { } // === goToDefinition === // === /a.ts === - // --- (line: 7) skipped --- -// -// override b() {} -// -// public as/*GO TO DEFINITION*/ync [|c|]() { } -// } // -// export function foo() { } - +// override b() {} +// +// public as/*GOTO DEF*/ync [|c|]() { } +// } +// +// export function foo() { } // === goToDefinition === // === /a.ts === - // --- (line: 7) skipped --- -// -// override b() {} -// -// public async c/*GO TO DEFINITION*/[|c|]() { } -// } // -// export function foo() { } - +// override b() {} +// +// public async c/*GOTO DEF*/[|c|]() { } +// } +// +// export function foo() { } // === goToDefinition === // === /a.ts === - // --- (line: 10) skipped --- -// public async c() { } -// } +// public async c() { } +// } // -// exp/*GO TO DEFINITION*/ort function [|foo|]() { } - +// exp/*GOTO DEF*/ort function [|foo|]() { } // === goToDefinition === // === /a.ts === - // --- (line: 10) skipped --- -// public async c() { } -// } +// public async c() { } +// } // -// export function foo/*GO TO DEFINITION*/[|foo|]() { } +// export function foo/*GOTO DEF*/[|foo|]() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc index ed4abc4b5e..34a3582173 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMultipleDefinitions.baseline.jsonc @@ -1,13 +1,10 @@ // === goToDefinition === // === /a.ts === - // interface [|IFoo|] { // instance1: number; // } - // === /b.ts === - // interface [|IFoo|] { // instance2: number; // } @@ -16,26 +13,20 @@ // instance3: number; // } // -// var ifoo: IFo/*GO TO DEFINITION*/o; - +// var ifoo: IFo/*GOTO DEF*/o; // === goToDefinition === // === /c.ts === - // module [|Module|] { // export class c1 { } // } - // === /d.ts === - // module [|Module|] { // export class c2 { } // } - // === /e.ts === - -// Modul/*GO TO DEFINITION*/e; +// Modul/*GOTO DEF*/e; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc index 022497479b..c2fa7f79a0 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc @@ -1,26 +1,23 @@ // === goToDefinition === // === /goToDefinitionNewExpressionTargetNotClass.ts === - // class C2 { // } // let [|I|]: { // [|new(): C2;|] // }; -// new /*GO TO DEFINITION*/I(); +// new /*GOTO DEF*/I(); // let I2: { // }; // new I2(); - // === goToDefinition === // === /goToDefinitionNewExpressionTargetNotClass.ts === - // --- (line: 3) skipped --- // new(): C2; // }; // new I(); // let [|I2|]: { // }; -// new /*GO TO DEFINITION*/I2(); +// new /*GOTO DEF*/I2(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc index 4e1149597e..653276103b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectBindingElementPropertyName01.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionObjectBindingElementPropertyName01.ts === - // interface I { // [|property1|]: number; // property2: string; // } // // var foo: I; -// var { /*GO TO DEFINITION*/property1: prop1 } = foo; +// var { /*GOTO DEF*/property1: prop1 } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc index 2e93fea859..76242360fe 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionObjectLiteralProperties.ts === - // var o = { // [|value|]: 0, // get getter() {return 0 }, @@ -9,7 +8,7 @@ // es6StyleMethod() { } // }; // -// o./*GO TO DEFINITION*/value; +// o./*GOTO DEF*/value; // o.getter; // o.setter; // o.method; @@ -17,10 +16,8 @@ - // === goToDefinition === // === /goToDefinitionObjectLiteralProperties.ts === - // var o = { // value: 0, // get [|getter|]() {return 0 }, @@ -30,17 +27,15 @@ // }; // // o.value; -// o./*GO TO DEFINITION*/getter; +// o./*GOTO DEF*/getter; // o.setter; // o.method; // o.es6StyleMethod; - // === goToDefinition === // === /goToDefinitionObjectLiteralProperties.ts === - // var o = { // value: 0, // get getter() {return 0 }, @@ -51,16 +46,14 @@ // // o.value; // o.getter; -// o./*GO TO DEFINITION*/setter; +// o./*GOTO DEF*/setter; // o.method; // o.es6StyleMethod; - // === goToDefinition === // === /goToDefinitionObjectLiteralProperties.ts === - // var o = { // value: 0, // get getter() {return 0 }, @@ -72,15 +65,13 @@ // o.value; // o.getter; // o.setter; -// o./*GO TO DEFINITION*/method; +// o./*GOTO DEF*/method; // o.es6StyleMethod; - // === goToDefinition === // === /goToDefinitionObjectLiteralProperties.ts === - // var o = { // value: 0, // get getter() {return 0 }, @@ -93,4 +84,4 @@ // o.getter; // o.setter; // o.method; -// o./*GO TO DEFINITION*/es6StyleMethod; +// o./*GOTO DEF*/es6StyleMethod; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc index c4154c3905..8ba14dc705 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectLiteralProperties1.baseline.jsonc @@ -1,12 +1,11 @@ // === goToDefinition === // === /goToDefinitionObjectLiteralProperties1.ts === - // interface PropsBag { // [|propx|]: number // } // function foo(arg: PropsBag) {} // foo({ -// pr/*GO TO DEFINITION*/opx: 10 +// pr/*GOTO DEF*/opx: 10 // }) // function bar(firstarg: boolean, secondarg: PropsBag) {} // bar(true, { @@ -15,10 +14,8 @@ - // === goToDefinition === // === /goToDefinitionObjectLiteralProperties1.ts === - // interface PropsBag { // [|propx|]: number // } @@ -28,5 +25,5 @@ // }) // function bar(firstarg: boolean, secondarg: PropsBag) {} // bar(true, { -// pr/*GO TO DEFINITION*/opx: 10 -// }) +// pr/*GOTO DEF*/opx: 10 +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc index afad471272..857f644752 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionObjectSpread.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionObjectSpread.ts === - // interface A1 { [|a|]: number }; // interface A2 { [|a|]?: number }; // let a1: A1; // let a2: A2; // let a12 = { ...a1, ...a2 }; -// a12.a/*GO TO DEFINITION*/; +// a12.a/*GOTO DEF*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc index 761a85ba27..3dcc2ebc4c 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverloadsInMultiplePropertyAccesses.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionOverloadsInMultiplePropertyAccesses.ts === - // namespace A { // export namespace B { // export function f(value: number): void; @@ -8,4 +7,4 @@ // export function f(value: number | string) {} // } // } -// A.B./*GO TO DEFINITION*/f(""); +// A.B./*GOTO DEF*/f(""); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc index ac11d76c79..72647592ce 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember1.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember1.ts === - // class Foo { // [|p|] = ''; // } // class Bar extends Foo { -// /*GO TO DEFINITION*/override p = ''; -// } +// /*GOTO DEF*/override p = ''; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc index 42b1667ea0..8fec64e97d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember10.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /a.js === - // class Foo {} // class Bar extends Foo { -// /** @override/*GO TO DEFINITION*/ */ +// /** @override/*GOTO DEF*/ */ // m() {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc index 96e1fa6c0b..b16604f027 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember11.baseline.jsonc @@ -1,66 +1,57 @@ // === goToDefinition === // === /a.js === - // class Foo { // m() {} // } // class Bar extends Foo { -// /** @over/*GO TO DEFINITION*/ride see {@link https://test.com} description */ +// /** @over/*GOTO DEF*/ride see {@link https://test.com} description */ // m() {} // } - // === goToDefinition === // === /a.js === - // class Foo { // m() {} // } // class Bar extends Foo { -// /** @override se/*GO TO DEFINITION*/e {@link https://test.com} description */ +// /** @override se/*GOTO DEF*/e {@link https://test.com} description */ // m() {} // } - // === goToDefinition === // === /a.js === - // class Foo { // m() {} // } // class Bar extends Foo { -// /** @override see {@li/*GO TO DEFINITION*/nk https://test.com} description */ +// /** @override see {@li/*GOTO DEF*/nk https://test.com} description */ // m() {} // } - // === goToDefinition === // === /a.js === - // class Foo { // m() {} // } // class Bar extends Foo { -// /** @override see {@link https://test.c/*GO TO DEFINITION*/om} description */ +// /** @override see {@link https://test.c/*GOTO DEF*/om} description */ // m() {} // } - // === goToDefinition === // === /a.js === - // class Foo { // m() {} // } // class Bar extends Foo { -// /** @override see {@link https://test.com} /*GO TO DEFINITION*/description */ +// /** @override see {@link https://test.com} /*GOTO DEF*/description */ // m() {} -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc index 715a7cdf94..a806a546b8 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember12.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember12.ts === - // class Foo { // static [|p|] = ''; // } // class Bar extends Foo { -// static /*GO TO DEFINITION*/override p = ''; -// } +// static /*GOTO DEF*/override p = ''; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc index 7d6233d830..00b5080a20 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember13.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember13.ts === - // class Foo { // static [|m|]() {} // } // class Bar extends Foo { -// static /*GO TO DEFINITION*/override m() {} -// } +// static /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc index 3a62a94263..6da0128300 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember14.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember14.ts === - // class A { // [|m|]() {} // } // class B extends A {} // class C extends B { -// /*GO TO DEFINITION*/override m() {} -// } +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc index e14990deea..16cb84475b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember15.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember15.ts === - // class A { // static [|m|]() {} // } // class B extends A {} // class C extends B { -// static /*GO TO DEFINITION*/override m() {} -// } +// static /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc index cbbf2a9da3..fe6efb5625 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember16.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionOverrideJsdoc.ts === - // export class C extends CompletelyUndefined { // /** -// * @override/*GO TO DEFINITION*/ +// * @override/*GOTO DEF*/ // * @returns {{}} // */ // static foo() { -// // --- (line: 7) skipped --- +// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc index 07cc95ddef..a1a9669fcb 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember2.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember2.ts === - // class Foo { // [|m|]() {} // } // // class Bar extends Foo { -// /*GO TO DEFINITION*/override m() {} -// } +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc index 2ed1e9c304..9d266605f6 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember3.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember3.ts === - // abstract class Foo { // abstract [|m|]() {} // } // // export class Bar extends Foo { -// /*GO TO DEFINITION*/override m() {} -// } +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc index addd84eab3..ec6a0eb35d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember4.baseline.jsonc @@ -1,11 +1,10 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember4.ts === - // class Foo { // [|m|]() {} // } // function f () { // return class extends Foo { -// /*GO TO DEFINITION*/override m() {} +// /*GOTO DEF*/override m() {} // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc index 242dfd2a73..ef37f15681 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember5.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember5.ts === - // class Foo extends (class { // [|m|]() {} // }) { -// /*GO TO DEFINITION*/override m() {} -// } +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc index 65f53f831e..0d9e9f61de 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember6.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember6.ts === - // class Foo { // m() {} // } // class Bar extends Foo { -// /*GO TO DEFINITION*/override [|m1|]() {} -// } +// /*GOTO DEF*/override [|m1|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc index 0a02b0caf7..c3bd341438 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember7.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember7.ts === - // class Foo { -// /*GO TO DEFINITION*/override [|m|]() {} -// } +// /*GOTO DEF*/override [|m|]() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc index f7d0b7d83e..fc104d7433 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember8.baseline.jsonc @@ -1,14 +1,11 @@ // === goToDefinition === // === /a.ts === - // export class A { // [|m|]() {} // } - // === /b.ts === - // import { A } from "./a"; // class B extends A { -// /*GO TO DEFINITION*/override m() {} -// } +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc index 24f841e86f..e38d294a25 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionOverriddenMember9.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionOverriddenMember9.ts === - // interface I { // m(): void; // } @@ -8,5 +7,5 @@ // [|m|]() {}; // } // class B extends A implements I { -// /*GO TO DEFINITION*/override m() {} -// } +// /*GOTO DEF*/override m() {} +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc index bc9376f290..97d4a0e865 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPartialImplementation.baseline.jsonc @@ -1,19 +1,16 @@ // === goToDefinition === // === /goToDefinitionPartialImplementation_1.ts === - // module A { // export interface [|IA|] { // y: string; // } // } - // === /goToDefinitionPartialImplementation_2.ts === - // module A { // export interface [|IA|] { // x: number; // } // -// var x: /*GO TO DEFINITION*/IA; -// } +// var x: /*GOTO DEF*/IA; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc index 60a68757fa..c9e7205125 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrimitives.baseline.jsonc @@ -1,4 +1,3 @@ // === goToDefinition === // === /goToDefinitionPrimitives.ts === - -// var x: st/*GO TO DEFINITION*/ring; +// var x: st/*GOTO DEF*/ring; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc index 8fea9247a7..99b8ad102d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPrivateName.baseline.jsonc @@ -1,13 +1,12 @@ // === goToDefinition === // === /goToDefinitionPrivateName.ts === - // class A { // #method() { } // [|#foo|] = 3; // get #prop() { return ""; } // set #prop(value: string) { } // constructor() { -// this./*GO TO DEFINITION*/#foo +// this./*GOTO DEF*/#foo // this.#method // this.#prop // } @@ -15,10 +14,8 @@ - // === goToDefinition === // === /goToDefinitionPrivateName.ts === - // class A { // [|#method|]() { } // #foo = 3; @@ -26,17 +23,15 @@ // set #prop(value: string) { } // constructor() { // this.#foo -// this./*GO TO DEFINITION*/#method +// this./*GOTO DEF*/#method // this.#prop // } // } - // === goToDefinition === // === /goToDefinitionPrivateName.ts === - // class A { // #method() { } // #foo = 3; @@ -45,6 +40,6 @@ // constructor() { // this.#foo // this.#method -// this./*GO TO DEFINITION*/#prop +// this./*GOTO DEF*/#prop // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc index f5450b633f..0c8d5616e6 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionPropertyAssignment.baseline.jsonc @@ -1,22 +1,19 @@ // === goToDefinition === // === /goToDefinitionPropertyAssignment.ts === - -// export const [|Component|] = () => { return "OK"} -// Component.displayName = 'Component' +// export const [|Component|] = () => { return "OK"} +// Component.displayName = 'Component' // -// /*GO TO DEFINITION*/Component +// /*GOTO DEF*/Component // -// Component.displayName - +// Component.displayName // === goToDefinition === // === /goToDefinitionPropertyAssignment.ts === - -// export const Component = () => { return "OK"} -// Component.[|displayName|] = 'Component' +// export const Component = () => { return "OK"} +// Component.[|displayName|] = 'Component' // -// Component +// Component // -// Component./*GO TO DEFINITION*/displayName +// Component./*GOTO DEF*/displayName \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc index 3d68b15f4c..e8fa4c572d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionRest.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionRest.ts === - // interface Gen { // x: number; // [|parent|]: Gen; @@ -8,4 +7,4 @@ // } // let t: Gen; // var { x, ...rest } = t; -// rest./*GO TO DEFINITION*/parent; +// rest./*GOTO DEF*/parent; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc index 18f1b6b08f..de684a61f8 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn1.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionReturn1.ts === - // function [|foo|]() { -// /*GO TO DEFINITION*/return 10; -// } +// /*GOTO DEF*/return 10; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc index 1ebe526a40..59497ae398 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn2.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionReturn2.ts === - // function foo() { // return [|() => { -// /*GO TO DEFINITION*/return 10; +// /*GOTO DEF*/return 10; // }|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc index 5c10796953..f649b2d0f8 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn3.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionReturn3.ts === - // class C { // [|m|]() { -// /*GO TO DEFINITION*/return 1; +// /*GOTO DEF*/return 1; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc index d521835508..e5ee60d43a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn4.baseline.jsonc @@ -1,4 +1,3 @@ // === goToDefinition === // === /goToDefinitionReturn4.ts === - -// /*GO TO DEFINITION*/return; +// /*GOTO DEF*/return; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc index 0e064e17c1..e723352c1c 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn5.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionReturn5.ts === - // function [|foo|]() { // class Foo { -// static { /*GO TO DEFINITION*/return; } +// static { /*GOTO DEF*/return; } // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc index e0fe0441dd..720c4bfc46 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn6.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionReturn6.ts === - // function foo() { // return [|function () { -// /*GO TO DEFINITION*/return 10; +// /*GOTO DEF*/return 10; // }|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc index 243bfca4ea..b2f225744e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionReturn7.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionReturn7.ts === - // function foo(a: string, b: string): string; // function foo(a: number, b: number): number; // function [|foo|](a: any, b: any): any { -// /*GO TO DEFINITION*/return a + b; -// } +// /*GOTO DEF*/return a + b; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc index 690de32b27..24fdd9a524 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSameFile.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionSameFile.ts === - // var [|localVariable|]; // function localFunction() { } // class localClass { } @@ -8,7 +7,7 @@ // module localModule{ export var foo = 1;} // // -// /*GO TO DEFINITION*/localVariable = 1; +// /*GOTO DEF*/localVariable = 1; // localFunction(); // var foo = new localClass(); // class fooCls implements localInterface { } @@ -16,10 +15,8 @@ - // === goToDefinition === // === /goToDefinitionSameFile.ts === - // var localVariable; // function [|localFunction|]() { } // class localClass { } @@ -28,17 +25,15 @@ // // // localVariable = 1; -// /*GO TO DEFINITION*/localFunction(); +// /*GOTO DEF*/localFunction(); // var foo = new localClass(); // class fooCls implements localInterface { } // var fooVar = localModule.foo; - // === goToDefinition === // === /goToDefinitionSameFile.ts === - // var localVariable; // function localFunction() { } // class [|localClass|] { } @@ -48,16 +43,14 @@ // // localVariable = 1; // localFunction(); -// var foo = new /*GO TO DEFINITION*/localClass(); +// var foo = new /*GOTO DEF*/localClass(); // class fooCls implements localInterface { } // var fooVar = localModule.foo; - // === goToDefinition === // === /goToDefinitionSameFile.ts === - // var localVariable; // function localFunction() { } // class localClass { } @@ -68,15 +61,13 @@ // localVariable = 1; // localFunction(); // var foo = new localClass(); -// class fooCls implements /*GO TO DEFINITION*/localInterface { } +// class fooCls implements /*GOTO DEF*/localInterface { } // var fooVar = localModule.foo; - // === goToDefinition === // === /goToDefinitionSameFile.ts === - // var localVariable; // function localFunction() { } // class localClass { } @@ -88,4 +79,4 @@ // localFunction(); // var foo = new localClass(); // class fooCls implements localInterface { } -// var fooVar = /*GO TO DEFINITION*/localModule.foo; +// var fooVar = /*GOTO DEF*/localModule.foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc index 001af7fa9d..fbdd60c876 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSatisfiesExpression1.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionSatisfiesExpression1.ts === - // const STRINGS = { -// /*GO TO DEFINITION*/[|title|]: 'A Title', +// /*GOTO DEF*/[|title|]: 'A Title', // } satisfies Record; // // //somewhere in app @@ -10,13 +9,11 @@ - // === goToDefinition === // === /goToDefinitionSatisfiesExpression1.ts === - // const STRINGS = { // [|title|]: 'A Title', // } satisfies Record; // // //somewhere in app -// STRINGS./*GO TO DEFINITION*/title +// STRINGS./*GOTO DEF*/title \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc index 4b809d76d9..c6c62dfd70 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImport.baseline.jsonc @@ -1,14 +1,11 @@ // === goToDefinition === // === /moduleThing.ts === - -// import /*GO TO DEFINITION*/"./scriptThing"; +// import /*GOTO DEF*/"./scriptThing"; // import "./stylez.css"; - // === goToDefinition === // === /moduleThing.ts === - // import "./scriptThing"; -// import /*GO TO DEFINITION*/"./stylez.css"; +// import /*GOTO DEF*/"./stylez.css"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc index c502401d63..75f8f2bfe2 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionScriptImportServer.baseline.jsonc @@ -1,26 +1,21 @@ // === goToDefinition === // === /home/src/workspaces/project/moduleThing.ts === - -// import /*GO TO DEFINITION*/"./scriptThing"; +// import /*GOTO DEF*/"./scriptThing"; // import "./stylez.css"; // import "./foo.txt"; - // === goToDefinition === // === /home/src/workspaces/project/moduleThing.ts === - // import "./scriptThing"; -// import /*GO TO DEFINITION*/"./stylez.css"; +// import /*GOTO DEF*/"./stylez.css"; // import "./foo.txt"; - // === goToDefinition === // === /home/src/workspaces/project/moduleThing.ts === - // import "./scriptThing"; // import "./stylez.css"; -// import /*GO TO DEFINITION*/"./foo.txt"; +// import /*GOTO DEF*/"./foo.txt"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc index 62cc613c22..62aa457a72 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariable.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionShadowVariable.ts === - // var shadowVariable = "foo"; // function shadowVariableTestModule() { // var [|shadowVariable|]; -// /*GO TO DEFINITION*/shadowVariable = 1; -// } +// /*GOTO DEF*/shadowVariable = 1; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc index 6a9b66ac86..a933353fbd 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShadowVariableInsideModule.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /goToDefinitionShadowVariableInsideModule.ts === - // module shdModule { // var [|shdVar|]; -// /*GO TO DEFINITION*/shdVar = 1; -// } +// /*GOTO DEF*/shdVar = 1; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc index 998495b181..b447aab88a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty01.baseline.jsonc @@ -1,48 +1,41 @@ // === goToDefinition === // === /goToDefinitionShorthandProperty01.ts === - // var name = "hello"; // var id = 100000; // declare var id; -// var obj = {/*GO TO DEFINITION*/name, id}; +// var obj = {/*GOTO DEF*/name, id}; // obj.name; // obj.id; - // === goToDefinition === // === /goToDefinitionShorthandProperty01.ts === - // var name = "hello"; // var [|id|] = 100000; // declare var [|id|]; -// var obj = {name, /*GO TO DEFINITION*/id}; +// var obj = {name, /*GOTO DEF*/id}; // obj.name; // obj.id; - // === goToDefinition === // === /goToDefinitionShorthandProperty01.ts === - // var name = "hello"; // var id = 100000; // declare var id; // var obj = {[|name|], id}; -// obj./*GO TO DEFINITION*/name; +// obj./*GOTO DEF*/name; // obj.id; - // === goToDefinition === // === /goToDefinitionShorthandProperty01.ts === - // var name = "hello"; // var id = 100000; // declare var id; // var obj = {name, [|id|]}; // obj.name; -// obj./*GO TO DEFINITION*/id; +// obj./*GOTO DEF*/id; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc index 66e755d602..94d0466cf1 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty02.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionShorthandProperty02.ts === - // let x = { -// f/*GO TO DEFINITION*/oo -// } +// f/*GOTO DEF*/oo +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc index 93a377f606..f10cb67cde 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty03.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionShorthandProperty03.ts === - // var [|x|] = { -// /*GO TO DEFINITION*/x +// /*GOTO DEF*/x // } // let y = { // y @@ -10,13 +9,11 @@ - // === goToDefinition === // === /goToDefinitionShorthandProperty03.ts === - // var x = { // x // } // let [|y|] = { -// /*GO TO DEFINITION*/y -// } +// /*GOTO DEF*/y +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc index 0dbcc885e5..6e7f8d7b70 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty04.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionShorthandProperty04.ts === - // interface Foo { // foo(): void // } // // let x: Foo = { -// f/*GO TO DEFINITION*/oo -// } +// f/*GOTO DEF*/oo +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc index 32e9dbe162..414558d93d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty05.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionShorthandProperty05.ts === - // interface Foo { // foo(): void // } // const [|foo|] = 1; // let x: Foo = { -// f/*GO TO DEFINITION*/oo -// } +// f/*GOTO DEF*/oo +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc index 1b34e6d962..ce825635ce 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionShorthandProperty06.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionShorthandProperty06.ts === - // interface Foo { // [|foo|](): void // } // const foo = 1; // let x: Foo = { -// f/*GO TO DEFINITION*/oo() -// } +// f/*GOTO DEF*/oo() +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc index b25869586f..0990621212 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc @@ -1,24 +1,17 @@ // === goToDefinition === // === /a.js === - // [|module.exports = function f() {}|][|f|]() {} - // === /b.js === - // const f = require("./a"); -// /*GO TO DEFINITION*/f(); - +// /*GOTO DEF*/f(); // === goToDefinition === // === /a.js === - // [|module.exports = function f() {}|][|f|]() {} - // === /bar.ts === - // import f = require("./a"); -// /*GO TO DEFINITION*/f(); +// /*GOTO DEF*/f(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc index 035841e248..78b467b720 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSimple.baseline.jsonc @@ -1,24 +1,17 @@ // === goToDefinition === // === /Definition.ts === - // class [|c|] { } - // === /Consumption.ts === - -// var n = new /*GO TO DEFINITION*/c(); +// var n = new /*GOTO DEF*/c(); // var n = new c(); - // === goToDefinition === // === /Definition.ts === - // class [|c|] { } - // === /Consumption.ts === - // var n = new c(); -// var n = new c/*GO TO DEFINITION*/(); +// var n = new c/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc index 7b142582a5..1e47e146ff 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSourceUnit.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /a.ts === - // //MyFile Comments // //more comments -// /// +// /// // /// // // class clsInOverload { @@ -11,15 +10,13 @@ - // === goToDefinition === // === /a.ts === - // //MyFile Comments // //more comments // /// -// /// +// /// // // class clsInOverload { // static fnOverload(); -// // --- (line: 8) skipped --- +// // --- (line: 8) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc index fd566d3ed8..4630cbcf4b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase1.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionSwitchCase1.ts === - // [|switch|] (null ) { -// /*GO TO DEFINITION*/case null: break; -// } +// /*GOTO DEF*/case null: break; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc index 5b5853f1ec..1f3a81ed6d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase2.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionSwitchCase2.ts === - // [|switch|] (null) { -// /*GO TO DEFINITION*/default: break; -// } +// /*GOTO DEF*/default: break; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc index 746a4c61e0..ddce8aad17 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase3.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionSwitchCase3.ts === - // [|switch|] (null) { -// /*GO TO DEFINITION*/default: { +// /*GOTO DEF*/default: { // switch (null) { // default: break; // } @@ -11,14 +10,12 @@ - // === goToDefinition === // === /goToDefinitionSwitchCase3.ts === - // switch (null) { // default: { // [|switch|] (null) { -// /*GO TO DEFINITION*/default: break; +// /*GOTO DEF*/default: break; // } // }; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc index 38d9a577be..13d2189c7e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase4.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /goToDefinitionSwitchCase4.ts === - -// switch (null) { -// case null: break; -// } +// switch (null) { +// case null: break; +// } // -// [|switch|] (null) { -// /*GO TO DEFINITION*/case null: break; -// } +// [|switch|] (null) { +// /*GOTO DEF*/case null: break; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc index aaafe2addb..656f1d3f24 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase5.baseline.jsonc @@ -1,4 +1,3 @@ // === goToDefinition === // === /goToDefinitionSwitchCase5.ts === - -// export /*GO TO DEFINITION*/default {} +// export /*GOTO DEF*/default {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc index 7d19bcdcc4..16a732aeff 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase6.baseline.jsonc @@ -1,26 +1,21 @@ // === goToDefinition === // === /goToDefinitionSwitchCase6.ts === - -// export default { /*GO TO DEFINITION*/[|case|] }; +// export default { /*GOTO DEF*/[|case|] }; // default; // case 42; - // === goToDefinition === // === /goToDefinitionSwitchCase6.ts === - // export default { case }; -// /*GO TO DEFINITION*/default; +// /*GOTO DEF*/default; // case 42; - // === goToDefinition === // === /goToDefinitionSwitchCase6.ts === - // export default { case }; // default; -// /*GO TO DEFINITION*/case 42; +// /*GOTO DEF*/case 42; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc index e62291a379..14f21d4768 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSwitchCase7.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionSwitchCase7.ts === - // switch (null) { // case null: -// export /*GO TO DEFINITION*/default 123; +// export /*GOTO DEF*/default 123; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc index 0e0f59e55b..ef6f61eb8e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTaggedTemplateOverloads.baseline.jsonc @@ -1,22 +1,19 @@ // === goToDefinition === // === /goToDefinitionTaggedTemplateOverloads.ts === - // function [|f|](strs: TemplateStringsArray, x: number): void; // function f(strs: TemplateStringsArray, x: boolean): void; // function f(strs: TemplateStringsArray, x: number | boolean) {} // -// /*GO TO DEFINITION*/f`${0}`; +// /*GOTO DEF*/f`${0}`; // f`${false}`; - // === goToDefinition === // === /goToDefinitionTaggedTemplateOverloads.ts === - // function f(strs: TemplateStringsArray, x: number): void; // function [|f|](strs: TemplateStringsArray, x: boolean): void; // function f(strs: TemplateStringsArray, x: number | boolean) {} // // f`${0}`; -// /*GO TO DEFINITION*/f`${false}`; +// /*GOTO DEF*/f`${false}`; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc index 777b49ba3f..058596206c 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionThis.ts === - // function f([|this|]: number) { -// return /*GO TO DEFINITION*/this; +// return /*GOTO DEF*/this; // } // class C { // constructor() { return this; } @@ -11,28 +10,24 @@ - // === goToDefinition === // === /goToDefinitionThis.ts === - // function f(this: number) { // return this; // } // class [|C|] { -// constructor() { return /*GO TO DEFINITION*/this; } +// constructor() { return /*GOTO DEF*/this; } // get self(this: number) { return this; } // } - // === goToDefinition === // === /goToDefinitionThis.ts === - // function f(this: number) { // return this; // } // class C { // constructor() { return this; } -// get self(this: number) { return /*GO TO DEFINITION*/[|this|]: number) { return this; } -// } +// get self(this: number) { return /*GOTO DEF*/[|this|]: number) { return this; } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc index c8789a193a..f6994cecfe 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeOnlyImport.baseline.jsonc @@ -1,11 +1,8 @@ // === goToDefinition === // === /a.ts === - // enum [|SyntaxKind|] { SourceFile } // export type { SyntaxKind } - // === /c.ts === - // import type { SyntaxKind } from './b'; -// let kind: /*GO TO DEFINITION*/SyntaxKind; +// let kind: /*GOTO DEF*/SyntaxKind; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc index 435ad196c3..a013b92932 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc @@ -1,18 +1,15 @@ // === goToDefinition === // === /goToDefinitionTypePredicate.ts === - // class A {} -// function f(parameter: any): /*GO TO DEFINITION*/[|parameter|]: any): parameter is A { +// function f(parameter: any): /*GOTO DEF*/[|parameter|]: any): parameter is A { // return typeof parameter === "string"; // } - // === goToDefinition === // === /goToDefinitionTypePredicate.ts === - // class [|A|] {} -// function f(parameter: any): parameter is /*GO TO DEFINITION*/A { +// function f(parameter: any): parameter is /*GOTO DEF*/A { // return typeof parameter === "string"; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc index cebefaba91..92c108f58a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeReferenceDirective.baseline.jsonc @@ -1,5 +1,4 @@ // === goToDefinition === // === /src/app.ts === - -// /// -// $.x; +// /// +// $.x; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc index 727f6f5880..444f708813 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionTypeofThis.ts === - // function f([|this|]: number) { -// type X = typeof /*GO TO DEFINITION*/this; +// type X = typeof /*GOTO DEF*/this; // } // class C { // constructor() { type X = typeof this; } @@ -11,28 +10,24 @@ - // === goToDefinition === // === /goToDefinitionTypeofThis.ts === - // function f(this: number) { // type X = typeof this; // } // class [|C|] { -// constructor() { type X = typeof /*GO TO DEFINITION*/this; } +// constructor() { type X = typeof /*GOTO DEF*/this; } // get self(this: number) { type X = typeof this; } // } - // === goToDefinition === // === /goToDefinitionTypeofThis.ts === - // function f(this: number) { // type X = typeof this; // } // class C { // constructor() { type X = typeof this; } -// get self(this: number) { type X = typeof /*GO TO DEFINITION*/[|this|]: number) { type X = typeof this; } -// } +// get self(this: number) { type X = typeof /*GOTO DEF*/[|this|]: number) { type X = typeof this; } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc index ca9d8f39db..2a5b1bb336 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUndefinedSymbols.baseline.jsonc @@ -1,40 +1,33 @@ // === goToDefinition === // === /goToDefinitionUndefinedSymbols.ts === - -// some/*GO TO DEFINITION*/Variable; +// some/*GOTO DEF*/Variable; // var a: someType; // var x = {}; x.someProperty; // var a: any; a.someProperty; - // === goToDefinition === // === /goToDefinitionUndefinedSymbols.ts === - // someVariable; -// var a: some/*GO TO DEFINITION*/Type; +// var a: some/*GOTO DEF*/Type; // var x = {}; x.someProperty; // var a: any; a.someProperty; - // === goToDefinition === // === /goToDefinitionUndefinedSymbols.ts === - // someVariable; // var a: someType; -// var x = {}; x.some/*GO TO DEFINITION*/Property; +// var x = {}; x.some/*GOTO DEF*/Property; // var a: any; a.someProperty; - // === goToDefinition === // === /goToDefinitionUndefinedSymbols.ts === - // someVariable; // var a: someType; // var x = {}; x.someProperty; -// var a: any; a.some/*GO TO DEFINITION*/Property; +// var a: any; a.some/*GOTO DEF*/Property; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc index 29d630ae11..c1dcb0b04e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty1.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionUnionTypeProperty1.ts === - // interface One { // [|commonProperty|]: number; // commonFunction(): number; @@ -13,5 +12,5 @@ // // var x : One | Two; // -// x./*GO TO DEFINITION*/commonProperty; -// x.commonFunction; +// x./*GOTO DEF*/commonProperty; +// x.commonFunction; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc index 5e619d1172..6dae48030b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty2.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionUnionTypeProperty2.ts === - // interface HasAOrB { // [|a|]: string; // b: string; @@ -16,4 +15,4 @@ // // var x : One | Two; // -// x.common./*GO TO DEFINITION*/a; +// x.common./*GOTO DEF*/a; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc index 782208d88d..0788a8117d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty3.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionUnionTypeProperty3.ts === - // interface Array { // [|specialPop|](): T // } @@ -8,4 +7,4 @@ // var strings: string[]; // var numbers: number[]; // -// var x = (strings || numbers)./*GO TO DEFINITION*/specialPop() +// var x = (strings || numbers)./*GOTO DEF*/specialPop() \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc index 606d1d677b..0df12e9990 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty4.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionUnionTypeProperty4.ts === - // interface SnapCrackle { // [|pop|](): string; // } @@ -17,4 +16,4 @@ // var magnitude: Magnitude; // var snapcrackle: SnapCrackle; // -// var x = (snapcrackle || magnitude || art)./*GO TO DEFINITION*/pop; +// var x = (snapcrackle || magnitude || art)./*GOTO DEF*/pop; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc index 16520ef58b..b3498dbaa3 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionUnionTypeProperty_discriminated.ts === - // type U = A | B; // // interface A { @@ -14,7 +13,7 @@ // } // // const u: U = { -// /*GO TO DEFINITION*/kind: "a", +// /*GOTO DEF*/kind: "a", // prop: 0, // }; // const u2: U = { @@ -22,10 +21,8 @@ - // === goToDefinition === // === /goToDefinitionUnionTypeProperty_discriminated.ts === - // type U = A | B; // // interface A { @@ -40,7 +37,7 @@ // // const u: U = { // kind: "a", -// /*GO TO DEFINITION*/prop: 0, +// /*GOTO DEF*/prop: 0, // }; // const u2: U = { // kind: "bogus", @@ -49,10 +46,8 @@ - // === goToDefinition === // === /goToDefinitionUnionTypeProperty_discriminated.ts === - // type U = A | B; // // interface A { @@ -70,16 +65,14 @@ // prop: 0, // }; // const u2: U = { -// /*GO TO DEFINITION*/kind: "bogus", +// /*GOTO DEF*/kind: "bogus", // prop: 0, // }; - // === goToDefinition === // === /goToDefinitionUnionTypeProperty_discriminated.ts === - // type U = A | B; // // interface A { @@ -98,5 +91,5 @@ // }; // const u2: U = { // kind: "bogus", -// /*GO TO DEFINITION*/prop: 0, -// }; +// /*GOTO DEF*/prop: 0, +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc index 873fed0335..234342516d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /foo.js === - // const Bar; // const [|Foo|] = [|Bar|] = function () {} // Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc index 76b6e818f8..30aca9d564 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment1.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /foo.js === - // const [|Foo|] = module.[|exports|] = function () {} // Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc index 170e6358ac..8e94c0fc30 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment2.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /foo.ts === - // const Bar; // const [|Foo|] = [|Bar|] = function () {} // Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc index de3dc88da8..d826f639e3 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionVariableAssignment3.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /foo.ts === - // const [|Foo|] = module.[|exports|] = function () {} // Foo.prototype.bar = function() {} -// new Foo/*GO TO DEFINITION*/(); +// new Foo/*GOTO DEF*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc index 07180e5168..04d7ab9643 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield1.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /goToDefinitionYield1.ts === - // function* [|gen|]() { -// /*GO TO DEFINITION*/yield 0; +// /*GOTO DEF*/yield 0; // } // // const genFunction = function*() { @@ -11,14 +10,12 @@ - // === goToDefinition === // === /goToDefinitionYield1.ts === - // function* gen() { // yield 0; // } // // const [|genFunction|] = function*() { -// /*GO TO DEFINITION*/yield 0; -// } +// /*GOTO DEF*/yield 0; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc index eebbcc45cb..c9318f80db 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield2.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionYield2.ts === - // function* outerGen() { // function* [|gen|]() { -// /*GO TO DEFINITION*/yield 0; +// /*GOTO DEF*/yield 0; // } // return gen -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc index 9511a8d4bd..ddfd04564f 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield3.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /goToDefinitionYield3.ts === - // class C { // [|notAGenerator|]() { -// /*GO TO DEFINITION*/yield 0; +// /*GOTO DEF*/yield 0; // } // // foo*() { @@ -11,16 +10,14 @@ - // === goToDefinition === // === /goToDefinitionYield3.ts === - // class C { // notAGenerator() { // yield 0; // } // // foo*[||]() { -// /*GO TO DEFINITION*/yield 0; +// /*GOTO DEF*/yield 0; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc index 895b2cff68..2df91dd46d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinitionYield4.ts === - // function* gen() { -// class C { [/*GO TO DEFINITION*/[|[yield 10]|]() {} } -// } +// class C { [/*GOTO DEF*/[|[yield 10]|]() {} } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc index 35aab26fd3..6b8bf67ca8 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringGenericMappedType.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinition_filteringGenericMappedType.ts === - // const obj = { // get [|id|]() { // return 1; @@ -8,9 +7,8 @@ // name: "test", // // --- (line: 6) skipped --- - // --- (line: 17) skipped --- // name: true, // }); // -// obj2./*GO TO DEFINITION*/id; +// obj2./*GOTO DEF*/id; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc index 477bd810e2..fe4215ee81 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_filteringMappedType.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinition_filteringMappedType.ts === - // const obj = { [|a|]: 1, b: 2 }; // const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { a: 0 }; -// filtered./*GO TO DEFINITION*/a; +// filtered./*GOTO DEF*/a; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc index 0657c65923..b19fd8260d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_mappedType.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinition_mappedType.ts === - // interface I { [|m|](): void; }; // declare const i: { [K in "m"]: I[K] }; -// i./*GO TO DEFINITION*/m(); +// i./*GOTO DEF*/m(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc index 285f2e5a82..c79dc5bd9d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_super.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /goToDefinition_super.ts === - // class A { // [|constructor() {}|] // x() {} @@ -8,7 +7,7 @@ // class [|B|] extends A {} // class C extends B { // constructor() { -// /*GO TO DEFINITION*/super(); +// /*GOTO DEF*/super(); // } // method() { // super.x(); @@ -16,10 +15,8 @@ - // === goToDefinition === // === /goToDefinition_super.ts === - // class A { // constructor() {} // x() {} @@ -30,7 +27,7 @@ // super(); // } // method() { -// /*GO TO DEFINITION*/super.x(); +// /*GOTO DEF*/super.x(); // } // } // class D { @@ -38,14 +35,12 @@ - // === goToDefinition === // === /goToDefinition_super.ts === - // --- (line: 12) skipped --- // } // class D { // constructor() { -// /*GO TO DEFINITION*/super(); +// /*GOTO DEF*/super(); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc index 6ab5f34f4b..087f06c4d9 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinition_untypedModule.baseline.jsonc @@ -1,5 +1,4 @@ // === goToDefinition === // === /a.ts === - // import { [|f|] } from "foo"; -// /*GO TO DEFINITION*/f(); +// /*GOTO DEF*/f(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc index f9f31e6589..398dffba0c 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToModuleAliasDefinition.baseline.jsonc @@ -1,5 +1,4 @@ // === goToDefinition === // === /b.ts === - // import [|n|] = require('a'); -// var x = new /*GO TO DEFINITION*/n.Foo(); +// var x = new /*GOTO DEF*/n.Foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc index b355f41fa4..7460b0ef63 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionConstructorFunction.baseline.jsonc @@ -1,11 +1,10 @@ // === goToDefinition === // === /gotoDefinitionConstructorFunction.js === - // function [|StringStreamm|]() { // } // StringStreamm.prototype = { // }; // // function runMode () { -// new /*GO TO DEFINITION*/StringStreamm() -// }; +// new /*GOTO DEF*/StringStreamm() +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc index 7d088998b8..4c5e79361f 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /gotoDefinitionInObjectBindingPattern1.ts === - // --- (line: 3) skipped --- // interface Test { // prop2: number // } -// bar(({pr/*GO TO DEFINITION*/[|prop2|]})=>{}); +// bar(({pr/*GOTO DEF*/[|prop2|]})=>{}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc index 7eff2010c1..a32b50516b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc @@ -1,23 +1,18 @@ // === goToDefinition === // === /gotoDefinitionInObjectBindingPattern2.ts === - -// var p0 = ({a/*GO TO DEFINITION*/[|aa|]}) => {console.log(aa)}; +// var p0 = ({a/*GOTO DEF*/[|aa|]}) => {console.log(aa)}; // function f2({ a1, b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} - // === goToDefinition === // === /gotoDefinitionInObjectBindingPattern2.ts === - // var p0 = ({aa}) => {console.log(aa)}; -// function f2({ a/*GO TO DEFINITION*/[|a1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} - +// function f2({ a/*GOTO DEF*/[|a1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} // === goToDefinition === // === /gotoDefinitionInObjectBindingPattern2.ts === - // var p0 = ({aa}) => {console.log(aa)}; -// function f2({ a1, b/*GO TO DEFINITION*/[|b1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} +// function f2({ a1, b/*GOTO DEF*/[|b1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc index 3b16d7e996..5db577cc2d 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag1.baseline.jsonc @@ -1,11 +1,10 @@ // === goToDefinition === // === /foo.ts === - // --- (line: 5) skipped --- // baz: Foo // } // } -// /** {@link /*GO TO DEFINITION*/Foo} foooo*/ +// /** {@link /*GOTO DEF*/Foo} foooo*/ // const a = "" // /** {@link NS.Bar} ns.bar*/ // const b = "" @@ -13,15 +12,13 @@ - // === goToDefinition === // === /foo.ts === - // --- (line: 7) skipped --- // } // /** {@link Foo} foooo*/ // const a = "" -// /** {@link NS./*GO TO DEFINITION*/Bar} ns.bar*/ +// /** {@link NS./*GOTO DEF*/Bar} ns.bar*/ // const b = "" // /** {@link Foo f1}*/ // const c = "" @@ -29,15 +26,13 @@ - // === goToDefinition === // === /foo.ts === - // --- (line: 9) skipped --- // const a = "" // /** {@link NS.Bar} ns.bar*/ // const b = "" -// /** {@link /*GO TO DEFINITION*/Foo f1}*/ +// /** {@link /*GOTO DEF*/Foo f1}*/ // const c = "" // /** {@link NS.Bar ns.bar}*/ // const d = "" @@ -45,15 +40,13 @@ - // === goToDefinition === // === /foo.ts === - // --- (line: 11) skipped --- // const b = "" // /** {@link Foo f1}*/ // const c = "" -// /** {@link NS./*GO TO DEFINITION*/Bar ns.bar}*/ +// /** {@link NS./*GOTO DEF*/Bar ns.bar}*/ // const d = "" // /** {@link d }dd*/ // const e = "" @@ -62,38 +55,32 @@ - // === goToDefinition === // === /foo.ts === - // --- (line: 12) skipped --- // /** {@link Foo f1}*/ // const c = "" // /** {@link NS.Bar ns.bar}*/ // const [|d|] = "" -// /** {@link /*GO TO DEFINITION*/d }dd*/ +// /** {@link /*GOTO DEF*/d }dd*/ // const e = "" // /** @param x {@link Foo} */ // function foo(x) { } - // === goToDefinition === // === /foo.ts === - // --- (line: 15) skipped --- // const d = "" // /** {@link d }dd*/ // const e = "" -// /** @param x {@link /*GO TO DEFINITION*/Foo} */ +// /** @param x {@link /*GOTO DEF*/Foo} */ // function foo(x) { } - // === goToDefinition === // === /bar.ts === - -// /** {@link /*GO TO DEFINITION*/Foo }dd*/ -// const f = "" +// /** {@link /*GOTO DEF*/Foo }dd*/ +// const f = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc index 85a54a4873..8d2a27622c 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag2.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /gotoDefinitionLinkTag2.ts === - // enum E { -// /** {@link /*GO TO DEFINITION*/A} */ +// /** {@link /*GOTO DEF*/A} */ // [|A|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc index 7da06310b0..d1b6210c5a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag3.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /a.ts === - // enum E { -// /** {@link /*GO TO DEFINITION*/Foo} */ +// /** {@link /*GOTO DEF*/Foo} */ // [|Foo|] // } // interface Foo { // foo: E.Foo; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc index e2544a7456..958daa85d3 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag4.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /b.ts === - // enum E { -// /** {@link /*GO TO DEFINITION*/Foo} */ +// /** {@link /*GOTO DEF*/Foo} */ // [|Foo|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc index 92dcc5f1e4..709efe4fbf 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag5.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /gotoDefinitionLinkTag5.ts === - // enum E { -// /** {@link /*GO TO DEFINITION*/B} */ +// /** {@link /*GOTO DEF*/B} */ // A, // [|B|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc index d8119d134b..82e2ee17b5 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionLinkTag6.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /gotoDefinitionLinkTag6.ts === - // enum E { -// /** {@link E./*GO TO DEFINITION*/A} */ +// /** {@link E./*GOTO DEF*/A} */ // [|A|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc index 62ca3f6e95..6668a2f281 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionPropertyAccessExpressionHeritageClause.baseline.jsonc @@ -1,22 +1,19 @@ // === goToDefinition === // === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === - // class B {} // function foo() { // return {[|B|]: B}; // } -// class C extends (foo())./*GO TO DEFINITION*/B {} +// class C extends (foo())./*GOTO DEF*/B {} // class C1 extends foo().B {} - // === goToDefinition === // === /gotoDefinitionPropertyAccessExpressionHeritageClause.ts === - // class B {} // function foo() { // return {[|B|]: B}; // } // class C extends (foo()).B {} -// class C1 extends foo()./*GO TO DEFINITION*/B {} +// class C1 extends foo()./*GOTO DEF*/B {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc index 7f02562f3d..fe2c444c99 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionSatisfiesTag.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /a.js === - // /** // * @typedef {Object} [|T|] // * @property {number} a // */ // -// /** @satisfies {/*GO TO DEFINITION*/T} comment */ -// const foo = { a: 1 }; +// /** @satisfies {/*GOTO DEF*/T} comment */ +// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc index 2c0e4a15c2..6f6a711484 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionThrowsTag.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /gotoDefinitionThrowsTag.ts === - // class E extends Error {} // // /** -// * @throws {/*GO TO DEFINITION*/E} +// * @throws {/*GOTO DEF*/E} // */ -// function f() {} +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc index 0f9c93a1f4..f551165273 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/importTypeNodeGoToDefinition.baseline.jsonc @@ -1,122 +1,95 @@ // === goToDefinition === // === /ns.ts === - // [|export namespace Foo { // export namespace Bar { // export class Baz {} // } // }|] - // === /usage.ts === - -// type A = typeof import(/*GO TO DEFINITION*/"./ns").Foo.Bar; +// type A = typeof import(/*GOTO DEF*/"./ns").Foo.Bar; // type B = import("./ns").Foo.Bar.Baz; - // === goToDefinition === // === /ns.ts === - // export namespace [|Foo|] { // export namespace Bar { // export class Baz {} // } // } - // === /usage.ts === - -// type A = typeof import("./ns")./*GO TO DEFINITION*/Foo.Bar; +// type A = typeof import("./ns")./*GOTO DEF*/Foo.Bar; // type B = import("./ns").Foo.Bar.Baz; - // === goToDefinition === // === /ns.ts === - // export namespace Foo { // export namespace [|Bar|] { // export class Baz {} // } // } - // === /usage.ts === - -// type A = typeof import("./ns").Foo./*GO TO DEFINITION*/Bar; +// type A = typeof import("./ns").Foo./*GOTO DEF*/Bar; // type B = import("./ns").Foo.Bar.Baz; - // === goToDefinition === // === /ns.ts === - // [|export namespace Foo { // export namespace Bar { // export class Baz {} // } // }|] - // === /usage.ts === - // type A = typeof import("./ns").Foo.Bar; -// type B = import(/*GO TO DEFINITION*/"./ns").Foo.Bar.Baz; - +// type B = import(/*GOTO DEF*/"./ns").Foo.Bar.Baz; // === goToDefinition === // === /ns.ts === - // export namespace [|Foo|] { // export namespace Bar { // export class Baz {} // } // } - // === /usage.ts === - // type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns")./*GO TO DEFINITION*/Foo.Bar.Baz; - +// type B = import("./ns")./*GOTO DEF*/Foo.Bar.Baz; // === goToDefinition === // === /ns.ts === - // export namespace Foo { // export namespace [|Bar|] { // export class Baz {} // } // } - // === /usage.ts === - // type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns").Foo./*GO TO DEFINITION*/Bar.Baz; - +// type B = import("./ns").Foo./*GOTO DEF*/Bar.Baz; // === goToDefinition === // === /ns.ts === - // export namespace Foo { // export namespace Bar { // export class [|Baz|] {} // } // } - // === /usage.ts === - // type A = typeof import("./ns").Foo.Bar; -// type B = import("./ns").Foo.Bar./*GO TO DEFINITION*/Baz; +// type B = import("./ns").Foo.Bar./*GOTO DEF*/Baz; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc index a25b5dc7cc..f5b02f0b67 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/javaScriptClass3.baseline.jsonc @@ -1,6 +1,5 @@ // === goToDefinition === // === /Foo.js === - // class Foo { // constructor() { // this.[|alpha|] = 10; @@ -9,15 +8,13 @@ // method() { return this.alpha; } // } // var x = new Foo(); -// x.alpha/*GO TO DEFINITION*/; +// x.alpha/*GOTO DEF*/; // x.beta; - // === goToDefinition === // === /Foo.js === - // class Foo { // constructor() { // this.alpha = 10; @@ -27,4 +24,4 @@ // } // var x = new Foo(); // x.alpha; -// x.beta/*GO TO DEFINITION*/; +// x.beta/*GOTO DEF*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc index 8f9ba90722..ab348db986 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee1.baseline.jsonc @@ -1,11 +1,10 @@ // === goToDefinition === // === /jsDocSee1.ts === - // --- (line: 5) skipped --- // baz: Foo // } // } -// /** @see {/*GO TO DEFINITION*/Foo} foooo*/ +// /** @see {/*GOTO DEF*/Foo} foooo*/ // const a = "" // /** @see {NS.Bar} ns.bar*/ // const b = "" @@ -13,15 +12,13 @@ - // === goToDefinition === // === /jsDocSee1.ts === - // --- (line: 7) skipped --- // } // /** @see {Foo} foooo*/ // const a = "" -// /** @see {NS./*GO TO DEFINITION*/Bar} ns.bar*/ +// /** @see {NS./*GOTO DEF*/Bar} ns.bar*/ // const b = "" // /** @see Foo f1*/ // const c = "" @@ -29,15 +26,13 @@ - // === goToDefinition === // === /jsDocSee1.ts === - // --- (line: 9) skipped --- // const a = "" // /** @see {NS.Bar} ns.bar*/ // const b = "" -// /** @see /*GO TO DEFINITION*/Foo f1*/ +// /** @see /*GOTO DEF*/Foo f1*/ // const c = "" // /** @see NS.Bar ns.bar*/ // const d = "" @@ -46,28 +41,24 @@ - // === goToDefinition === // === /jsDocSee1.ts === - // --- (line: 11) skipped --- // const b = "" // /** @see Foo f1*/ // const c = "" -// /** @see NS./*GO TO DEFINITION*/Bar ns.bar*/ +// /** @see NS./*GOTO DEF*/Bar ns.bar*/ // const d = "" // /** @see d dd*/ // const e = "" - // === goToDefinition === // === /jsDocSee1.ts === - // --- (line: 13) skipped --- // const c = "" // /** @see NS.Bar ns.bar*/ // const d = "" -// /** @see /*GO TO DEFINITION*/d dd*/ -// const e = "" +// /** @see /*GOTO DEF*/d dd*/ +// const e = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc index 43e83241e0..8f14e29997 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee2.baseline.jsonc @@ -1,7 +1,6 @@ // === goToDefinition === // === /jsDocSee2.ts === - -// /** @see {/*GO TO DEFINITION*/foooo} unknown reference*/ +// /** @see {/*GOTO DEF*/foooo} unknown reference*/ // const a = "" // /** @see {@bar} invalid tag*/ // const b = "" @@ -9,13 +8,11 @@ - // === goToDefinition === // === /jsDocSee2.ts === - // /** @see {foooo} unknown reference*/ // const a = "" -// /** @see {/*GO TO DEFINITION*/@bar} invalid tag*/ +// /** @see {/*GOTO DEF*/@bar} invalid tag*/ // const b = "" // /** @see foooo unknown reference without brace*/ // const c = "" @@ -23,15 +20,13 @@ - // === goToDefinition === // === /jsDocSee2.ts === - // /** @see {foooo} unknown reference*/ // const a = "" // /** @see {@bar} invalid tag*/ // const b = "" -// /** @see /*GO TO DEFINITION*/foooo unknown reference without brace*/ +// /** @see /*GOTO DEF*/foooo unknown reference without brace*/ // const c = "" // /** @see @bar invalid tag without brace*/ // const d = "" @@ -39,15 +34,13 @@ - // === goToDefinition === // === /jsDocSee2.ts === - // --- (line: 3) skipped --- // const b = "" // /** @see foooo unknown reference without brace*/ // const c = "" -// /** @see /*GO TO DEFINITION*/@bar invalid tag without brace*/ +// /** @see /*GOTO DEF*/@bar invalid tag without brace*/ // const d = "" // /** @see {d@fff} partial reference */ // const e = "" @@ -55,15 +48,13 @@ - // === goToDefinition === // === /jsDocSee2.ts === - // --- (line: 5) skipped --- // const c = "" // /** @see @bar invalid tag without brace*/ // const d = "" -// /** @see {/*GO TO DEFINITION*/d@fff} partial reference */ +// /** @see {/*GOTO DEF*/d@fff} partial reference */ // const e = "" // /** @see @@@@@@ total invalid tag*/ // const f = "" @@ -72,28 +63,24 @@ - // === goToDefinition === // === /jsDocSee2.ts === - // --- (line: 7) skipped --- // const d = "" // /** @see {d@fff} partial reference */ // const e = "" -// /** @see /*GO TO DEFINITION*/@@@@@@ total invalid tag*/ +// /** @see /*GOTO DEF*/@@@@@@ total invalid tag*/ // const f = "" // /** @see d@{fff} partial reference */ // const g = "" - // === goToDefinition === // === /jsDocSee2.ts === - // --- (line: 9) skipped --- // const e = "" // /** @see @@@@@@ total invalid tag*/ // const f = "" -// /** @see d@{/*GO TO DEFINITION*/fff} partial reference */ -// const g = "" +// /** @see d@{/*GOTO DEF*/fff} partial reference */ +// const g = "" \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc index dc628f79be..90a4c0cc6a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee3.baseline.jsonc @@ -1,10 +1,9 @@ // === goToDefinition === // === /jsDocSee3.ts === - // function foo (a: string) { // /** -// * @see {/*GO TO DEFINITION*/a} +// * @see {/*GOTO DEF*/a} // */ // function bar (a: string) { // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc index 72a547ee1b..353bc584bf 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsDocSee4.baseline.jsonc @@ -1,12 +1,11 @@ // === goToDefinition === // === /jsDocSee4.ts === - // class A { // foo () { } // } // declare const a: A; // /** -// * @see {/*GO TO DEFINITION*/A#foo} +// * @see {/*GOTO DEF*/A#foo} // */ // const t1 = 1 // /** @@ -14,15 +13,13 @@ - // === goToDefinition === // === /jsDocSee4.ts === - // --- (line: 6) skipped --- // */ // const t1 = 1 // /** -// * @see {/*GO TO DEFINITION*/a.foo()} +// * @see {/*GOTO DEF*/a.foo()} // */ // const t2 = 1 // /** @@ -30,10 +27,8 @@ - // === goToDefinition === // === /jsDocSee4.ts === - // class A { // foo () { } // } @@ -47,6 +42,6 @@ // */ // const t2 = 1 // /** -// * @see {@link /*GO TO DEFINITION*/a.foo()} +// * @see {@link /*GOTO DEF*/a.foo()} // */ -// const t3 = 1 +// const t3 = 1 \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc index 3697dc9d8e..50c6a61b85 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsdocTypedefTagGoToDefinition.baseline.jsonc @@ -1,37 +1,34 @@ // === goToDefinition === // === /jsdocCompletion_typedef.js === - -// /** -// * @typedef {Object} Person -// * @property {string} [|personName|] -// * @property {number} personAge -// */ +// /** +// * @typedef {Object} Person +// * @property {string} [|personName|] +// * @property {number} personAge +// */ // -// /** -// * @typedef {{ animalName: string, animalAge: number }} Animal -// */ +// /** +// * @typedef {{ animalName: string, animalAge: number }} Animal +// */ // -// /** @type {Person} */ -// var person; person.personName/*GO TO DEFINITION*/ +// /** @type {Person} */ +// var person; person.personName/*GOTO DEF*/ // -// /** @type {Animal} */ -// var animal; animal.animalName - +// /** @type {Animal} */ +// var animal; animal.animalName // === goToDefinition === // === /jsdocCompletion_typedef.js === - // --- (line: 4) skipped --- -// */ +// */ // -// /** -// * @typedef {{ [|animalName|]: string, animalAge: number }} Animal -// */ +// /** +// * @typedef {{ [|animalName|]: string, animalAge: number }} Animal +// */ // -// /** @type {Person} */ -// var person; person.personName +// /** @type {Person} */ +// var person; person.personName // -// /** @type {Animal} */ -// var animal; animal.animalName/*GO TO DEFINITION*/ +// /** @type {Animal} */ +// var animal; animal.animalName/*GOTO DEF*/ \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc index 193ca46176..629dad64b0 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/jsxSpreadReference.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /file.tsx === - // --- (line: 10) skipped --- -// } -// } +// } +// } // -// var [|nn|]: {name?: string; size?: number}; -// var x = ; +// var [|nn|]: {name?: string; size?: number}; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc index 13ba87bdbc..711b5b0614 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/reallyLargeFile.baseline.jsonc @@ -1,8 +1,7 @@ // === goToDefinition === // === /file.d.ts === - -// namespace /*GO TO DEFINITION*/[|Foo|] { +// namespace /*GOTO DEF*/[|Foo|] { // // // -// // --- (line: 5) skipped --- +// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc index eb2a326717..019d208f03 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionClasses.baseline.jsonc @@ -1,53 +1,48 @@ // === goToDefinition === // === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { } -// interface ElementAttributesProperty { props; } -// } -// class [|MyClass|] { -// props: { -// foo: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; - +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { } +// interface ElementAttributesProperty { props; } +// } +// class [|MyClass|] { +// props: { +// foo: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; // === goToDefinition === // === /file.tsx === - // --- (line: 4) skipped --- -// } -// class MyClass { -// props: { -// [|foo|]: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; - +// } +// class MyClass { +// props: { +// [|foo|]: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; // === goToDefinition === // === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { } -// interface ElementAttributesProperty { props; } -// } -// class [|MyClass|] { -// props: { -// foo: string; -// } -// } -// var x = ; -// var y = ; -// var z = ; +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { } +// interface ElementAttributesProperty { props; } +// } +// class [|MyClass|] { +// props: { +// foo: string; +// } +// } +// var x = ; +// var y = ; +// var z = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc index 4d2fb8c68d..5d4c9efa4e 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionIntrinsics.baseline.jsonc @@ -1,53 +1,48 @@ // === goToDefinition === // === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// [|div|]: { -// name?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x = ; -// var y = ; -// var z =
; - +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|div|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; +// var y = ; +// var z =
; // === goToDefinition === // === /file.tsx === - // --- (line: 4) skipped --- -// name?: string; -// isOpen?: boolean; -// }; -// [|span|]: { n: string; }; -// } -// } -// var x =
; -// var y = ; -// var z =
; - +// name?: string; +// isOpen?: boolean; +// }; +// [|span|]: { n: string; }; +// } +// } +// var x =
; +// var y = ; +// var z =
; // === goToDefinition === // === /file.tsx === - -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// [|name|]?: string; -// isOpen?: boolean; -// }; -// span: { n: string; }; -// } -// } -// var x =
; -// var y = ; -// var z =
; +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// [|name|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x =
; +// var y = ; +// var z =
; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc index 9e4d44a42d..49f1432f83 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction1.baseline.jsonc @@ -1,98 +1,87 @@ // === goToDefinition === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; // === goToDefinition === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; // === goToDefinition === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; // === goToDefinition === // === /file.tsx === - // --- (line: 8) skipped --- -// propString: "hell" -// optional?: boolean -// } -// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - +// propString: "hell" +// optional?: boolean +// } +// declare function [|Opt|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; // === goToDefinition === // === /file.tsx === - // --- (line: 4) skipped --- -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// [|propx|]: number -// propString: "hell" -// optional?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; - +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// [|propx|]: number +// propString: "hell" +// optional?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; // === goToDefinition === // === /file.tsx === - // --- (line: 6) skipped --- -// interface OptionPropBag { -// propx: number -// propString: "hell" -// [|optional|]?: boolean -// } -// declare function Opt(attributes: OptionPropBag): JSX.Element; -// let opt = ; -// let opt1 = ; -// let opt2 = ; -// let opt3 = ; +// interface OptionPropBag { +// propx: number +// propString: "hell" +// [|optional|]?: boolean +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc index e32802af73..86067d8aaf 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionStatelessFunction2.baseline.jsonc @@ -1,115 +1,104 @@ // === goToDefinition === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt =
; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt =
; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; // === goToDefinition === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt =
; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt =
; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; // === goToDefinition === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt =
{}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt = ; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt =
{}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; // === goToDefinition === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt =
{}} ignore-prop />; -// let opt = ; -// let opt = ; - +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt =
{}} ignore-prop />; +// let opt = ; +// let opt = ; // === goToDefinition === // === /file.tsx === - // --- (line: 14) skipped --- -// goTo: string; -// } -// declare function MainButton(buttonProps: ButtonProps): JSX.Element; -// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt =
; -// let opt = ; - +// goTo: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButton|](linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt =
; +// let opt = ; // === goToDefinition === // === /file.tsx === - // --- (line: 13) skipped --- -// interface LinkProps extends ClickableProps { -// goTo: string; -// } -// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; -// declare function MainButton(linkProps: LinkProps): JSX.Element; -// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; -// let opt = ; -// let opt = ; -// let opt = {}} />; -// let opt = {}} ignore-prop />; -// let opt = ; -// let opt =
; +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButton|](buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt =
; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc index 365fd3d34e..4ed459649f 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType1.baseline.jsonc @@ -1,15 +1,14 @@ // === goToDefinition === // === /file.tsx === - // --- (line: 3) skipped --- -// } -// interface ElementAttributesProperty { props; } -// } -// function [|SFC1|](prop: { x: number }) { -// return
hello
; -// }; -// function SFC2(prop: { x: boolean }) { -// return

World

; -// } -// var [|SFCComp|] = SFC1 || SFC2; -// +// } +// interface ElementAttributesProperty { props; } +// } +// function [|SFC1|](prop: { x: number }) { +// return
hello
; +// }; +// function SFC2(prop: { x: boolean }) { +// return

World

; +// } +// var [|SFCComp|] = SFC1 || SFC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc index e0dde11950..aea57bc6f9 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/tsxGoToDefinitionUnionElementType2.baseline.jsonc @@ -1,9 +1,8 @@ // === goToDefinition === // === /file.tsx === - // --- (line: 8) skipped --- -// } -// private method() { } -// } -// var [|RCComp|] = RC1 || RC2; -// +// } +// private method() { } +// } +// var [|RCComp|] = RC1 || RC2; +// \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTextFormatting1.baseline b/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTextFormatting1.baseline index 0a70cac362..6357790f74 100644 --- a/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTextFormatting1.baseline +++ b/testdata/baselines/reference/fourslash/signatureHelp/quickInfoJsDocTextFormatting1.baseline @@ -13,25 +13,25 @@ // function f2(var1, var2) { } // // /** -// * @param {number} var1 +// * @param {number} var1 // * *Regular text with an asterisk -// * @param {string} var2 +// * @param {string} var2 // * Another *Regular text with an asterisk // */ // function f3(var1, var2) { } // // /** -// * @param {number} var1 +// * @param {number} var1 // * **Highlighted text** -// * @param {string} var2 +// * @param {string} var2 // * Another **Highlighted text** // */ // function f4(var1, var2) { } // // /** -// * @param {number} var1 +// * @param {number} var1 // **Highlighted text** -// * @param {string} var2 +// * @param {string} var2 // Another **Highlighted text** // */ // function f5(var1, var2) { } @@ -64,7 +64,7 @@ [ { "marker": { - "Position": 737, + "Position": 731, "LSPosition": { "line": 36, "character": 3 @@ -92,7 +92,7 @@ }, { "marker": { - "Position": 743, + "Position": 737, "LSPosition": { "line": 37, "character": 3 @@ -120,7 +120,7 @@ }, { "marker": { - "Position": 749, + "Position": 743, "LSPosition": { "line": 38, "character": 3 @@ -148,7 +148,7 @@ }, { "marker": { - "Position": 755, + "Position": 749, "LSPosition": { "line": 39, "character": 3 @@ -176,7 +176,7 @@ }, { "marker": { - "Position": 761, + "Position": 755, "LSPosition": { "line": 40, "character": 3 diff --git a/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsCommentParsing.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsCommentParsing.baseline index e347d6162a..8605101040 100644 --- a/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsCommentParsing.baseline +++ b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpCommentsCommentParsing.baseline @@ -164,7 +164,7 @@ // | sum(a: number, **b: number**): number // | ---------------------------------------------------------------------- // /** This is multiplication function -// * @param +// * @param // * @param a first number // * @param b // * @param c { @@ -734,7 +734,7 @@ }, { "marker": { - "Position": 2166, + "Position": 2165, "LSPosition": { "line": 108, "character": 9 @@ -771,7 +771,7 @@ }, { "marker": { - "Position": 2169, + "Position": 2168, "LSPosition": { "line": 108, "character": 12 @@ -808,7 +808,7 @@ }, { "marker": { - "Position": 2173, + "Position": 2172, "LSPosition": { "line": 108, "character": 16 @@ -845,7 +845,7 @@ }, { "marker": { - "Position": 2178, + "Position": 2177, "LSPosition": { "line": 108, "character": 21 @@ -882,7 +882,7 @@ }, { "marker": { - "Position": 2182, + "Position": 2181, "LSPosition": { "line": 108, "character": 25 @@ -919,7 +919,7 @@ }, { "marker": { - "Position": 2372, + "Position": 2371, "LSPosition": { "line": 118, "character": 3 @@ -952,7 +952,7 @@ }, { "marker": { - "Position": 2380, + "Position": 2379, "LSPosition": { "line": 119, "character": 3 @@ -985,7 +985,7 @@ }, { "marker": { - "Position": 2823, + "Position": 2822, "LSPosition": { "line": 131, "character": 9 @@ -1025,7 +1025,7 @@ }, { "marker": { - "Position": 2827, + "Position": 2826, "LSPosition": { "line": 131, "character": 13 @@ -1065,7 +1065,7 @@ }, { "marker": { - "Position": 2832, + "Position": 2831, "LSPosition": { "line": 131, "character": 18 @@ -1105,7 +1105,7 @@ }, { "marker": { - "Position": 2839, + "Position": 2838, "LSPosition": { "line": 131, "character": 25 @@ -1145,7 +1145,7 @@ }, { "marker": { - "Position": 2846, + "Position": 2845, "LSPosition": { "line": 131, "character": 32 @@ -1185,7 +1185,7 @@ }, { "marker": { - "Position": 2853, + "Position": 2852, "LSPosition": { "line": 131, "character": 39 @@ -1225,7 +1225,7 @@ }, { "marker": { - "Position": 3085, + "Position": 3084, "LSPosition": { "line": 140, "character": 7 @@ -1250,7 +1250,7 @@ }, { "marker": { - "Position": 3276, + "Position": 3275, "LSPosition": { "line": 148, "character": 7 @@ -1278,7 +1278,7 @@ }, { "marker": { - "Position": 3280, + "Position": 3279, "LSPosition": { "line": 148, "character": 11 @@ -1306,7 +1306,7 @@ }, { "marker": { - "Position": 3491, + "Position": 3490, "LSPosition": { "line": 157, "character": 7 @@ -1334,7 +1334,7 @@ }, { "marker": { - "Position": 3497, + "Position": 3496, "LSPosition": { "line": 157, "character": 13 @@ -1362,7 +1362,7 @@ }, { "marker": { - "Position": 3874, + "Position": 3873, "LSPosition": { "line": 169, "character": 11 @@ -1374,7 +1374,7 @@ }, { "marker": { - "Position": 3906, + "Position": 3905, "LSPosition": { "line": 171, "character": 15 @@ -1408,7 +1408,7 @@ }, { "marker": { - "Position": 3910, + "Position": 3909, "LSPosition": { "line": 171, "character": 19 @@ -1442,7 +1442,7 @@ }, { "marker": { - "Position": 3914, + "Position": 3913, "LSPosition": { "line": 171, "character": 23 @@ -1476,7 +1476,7 @@ }, { "marker": { - "Position": 3918, + "Position": 3917, "LSPosition": { "line": 171, "character": 27 @@ -1510,7 +1510,7 @@ }, { "marker": { - "Position": 4059, + "Position": 4058, "LSPosition": { "line": 177, "character": 27 @@ -1531,7 +1531,7 @@ }, { "marker": { - "Position": 4210, + "Position": 4209, "LSPosition": { "line": 183, "character": 27 @@ -1552,7 +1552,7 @@ }, { "marker": { - "Position": 4826, + "Position": 4825, "LSPosition": { "line": 197, "character": 27 @@ -1583,7 +1583,7 @@ }, { "marker": { - "Position": 4834, + "Position": 4833, "LSPosition": { "line": 197, "character": 35 @@ -1614,7 +1614,7 @@ }, { "marker": { - "Position": 4837, + "Position": 4836, "LSPosition": { "line": 197, "character": 38 @@ -1645,7 +1645,7 @@ }, { "marker": { - "Position": 4841, + "Position": 4840, "LSPosition": { "line": 198, "character": 0 diff --git a/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpExpandedRestTuplesLocalLabels1.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpExpandedRestTuplesLocalLabels1.baseline index 97fcdc0a24..5ed475ad94 100644 --- a/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpExpandedRestTuplesLocalLabels1.baseline +++ b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpExpandedRestTuplesLocalLabels1.baseline @@ -1,187 +1,187 @@ // === SignatureHelp === === /signatureHelpExpandedRestTuplesLocalLabels1.ts === -// interface AppleInfo { -// color: "green" | "red"; -// } +// interface AppleInfo { +// color: "green" | "red"; +// } // -// interface BananaInfo { -// curvature: number; -// } +// interface BananaInfo { +// curvature: number; +// } // -// type FruitAndInfo1 = ["apple", AppleInfo] | ["banana", BananaInfo]; +// type FruitAndInfo1 = ["apple", AppleInfo] | ["banana", BananaInfo]; // -// function logFruitTuple1(...[fruit, info]: FruitAndInfo1) {} -// logFruitTuple1(); -// ^ +// function logFruitTuple1(...[fruit, info]: FruitAndInfo1) {} +// logFruitTuple1(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple1(**fruit: "apple"**, info: AppleInfo): void // | ---------------------------------------------------------------------- // -// function logFruitTuple2(...[, info]: FruitAndInfo1) {} -// logFruitTuple2(); -// ^ +// function logFruitTuple2(...[, info]: FruitAndInfo1) {} +// logFruitTuple2(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple2(**arg_0: "apple"**, info: AppleInfo): void // | ---------------------------------------------------------------------- -// logFruitTuple2("apple", ); -// ^ +// logFruitTuple2("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple2(arg_0: "apple", **info: AppleInfo**): void // | ---------------------------------------------------------------------- // -// function logFruitTuple3(...[fruit, ...rest]: FruitAndInfo1) {} -// logFruitTuple3(); -// ^ +// function logFruitTuple3(...[fruit, ...rest]: FruitAndInfo1) {} +// logFruitTuple3(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple3(**fruit: "apple"**, rest_0: AppleInfo): void // | ---------------------------------------------------------------------- -// logFruitTuple3("apple", ); -// ^ +// logFruitTuple3("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple3(fruit: "apple", **rest_0: AppleInfo**): void // | ---------------------------------------------------------------------- -// function logFruitTuple4(...[fruit, ...[info]]: FruitAndInfo1) {} -// logFruitTuple4(); -// ^ +// function logFruitTuple4(...[fruit, ...[info]]: FruitAndInfo1) {} +// logFruitTuple4(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple4(**fruit: "apple"**, info: AppleInfo): void // | ---------------------------------------------------------------------- -// logFruitTuple4("apple", ); -// ^ +// logFruitTuple4("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple4(fruit: "apple", **info: AppleInfo**): void // | ---------------------------------------------------------------------- // -// type FruitAndInfo2 = ["apple", ...AppleInfo[]] | ["banana", ...BananaInfo[]]; +// type FruitAndInfo2 = ["apple", ...AppleInfo[]] | ["banana", ...BananaInfo[]]; // -// function logFruitTuple5(...[fruit, firstInfo]: FruitAndInfo2) {} -// logFruitTuple5(); -// ^ +// function logFruitTuple5(...[fruit, firstInfo]: FruitAndInfo2) {} +// logFruitTuple5(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple5(**fruit: "apple"**, ...firstInfo_n: AppleInfo[]): void // | ---------------------------------------------------------------------- -// logFruitTuple5("apple", ); -// ^ +// logFruitTuple5("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple5(fruit: "apple", **...firstInfo_n: AppleInfo[]**): void // | ---------------------------------------------------------------------- // -// function logFruitTuple6(...[fruit, ...fruitInfo]: FruitAndInfo2) {} -// logFruitTuple6(); -// ^ +// function logFruitTuple6(...[fruit, ...fruitInfo]: FruitAndInfo2) {} +// logFruitTuple6(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple6(**fruit: "apple"**, ...fruitInfo: AppleInfo[]): void // | ---------------------------------------------------------------------- -// logFruitTuple6("apple", ); -// ^ +// logFruitTuple6("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple6(fruit: "apple", **...fruitInfo: AppleInfo[]**): void // | ---------------------------------------------------------------------- // -// type FruitAndInfo3 = ["apple", ...AppleInfo[], number] | ["banana", ...BananaInfo[], number]; +// type FruitAndInfo3 = ["apple", ...AppleInfo[], number] | ["banana", ...BananaInfo[], number]; // -// function logFruitTuple7(...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]: FruitAndInfo3) {} -// logFruitTuple7(); -// ^ +// function logFruitTuple7(...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]: FruitAndInfo3) {} +// logFruitTuple7(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple7(**fruit: "apple"**, ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple7("apple", ); -// ^ +// logFruitTuple7("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple7(fruit: "apple", **...fruitInfoOrNumber_n: AppleInfo[]**, secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple7("apple", { color: "red" }, ); -// ^ +// logFruitTuple7("apple", { color: "red" }, ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple7(fruit: "apple", ...fruitInfoOrNumber_n: AppleInfo[], **secondFruitInfoOrNumber: number**): void // | ---------------------------------------------------------------------- // -// function logFruitTuple8(...[fruit, , secondFruitInfoOrNumber]: FruitAndInfo3) {} -// logFruitTuple8(); -// ^ +// function logFruitTuple8(...[fruit, , secondFruitInfoOrNumber]: FruitAndInfo3) {} +// logFruitTuple8(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple8(**fruit: "apple"**, ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple8("apple", ); -// ^ +// logFruitTuple8("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple8(fruit: "apple", **...arg_1: AppleInfo[]**, secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple8("apple", { color: "red" }, ); -// ^ +// logFruitTuple8("apple", { color: "red" }, ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple8(fruit: "apple", ...arg_1: AppleInfo[], **secondFruitInfoOrNumber: number**): void // | ---------------------------------------------------------------------- // -// function logFruitTuple9(...[...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]]: FruitAndInfo3) {} -// logFruitTuple9(); -// ^ +// function logFruitTuple9(...[...[fruit, fruitInfoOrNumber, secondFruitInfoOrNumber]]: FruitAndInfo3) {} +// logFruitTuple9(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple9(**fruit: "apple"**, ...fruitInfoOrNumber_n: AppleInfo[], secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple9("apple", ); -// ^ +// logFruitTuple9("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple9(fruit: "apple", **...fruitInfoOrNumber_n: AppleInfo[]**, secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple9("apple", { color: "red" }, ); -// ^ +// logFruitTuple9("apple", { color: "red" }, ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple9(fruit: "apple", ...fruitInfoOrNumber_n: AppleInfo[], **secondFruitInfoOrNumber: number**): void // | ---------------------------------------------------------------------- // -// function logFruitTuple10(...[fruit, {}, secondFruitInfoOrNumber]: FruitAndInfo3) {} -// logFruitTuple10(); -// ^ +// function logFruitTuple10(...[fruit, {}, secondFruitInfoOrNumber]: FruitAndInfo3) {} +// logFruitTuple10(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple10(**fruit: "apple"**, ...arg_1: AppleInfo[], secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple10("apple", ); -// ^ +// logFruitTuple10("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple10(fruit: "apple", **...arg_1: AppleInfo[]**, secondFruitInfoOrNumber: number): void // | ---------------------------------------------------------------------- -// logFruitTuple10("apple", { color: "red" }, ); -// ^ +// logFruitTuple10("apple", { color: "red" }, ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple10(fruit: "apple", ...arg_1: AppleInfo[], **secondFruitInfoOrNumber: number**): void // | ---------------------------------------------------------------------- // -// function logFruitTuple11(...{}: FruitAndInfo3) {} -// logFruitTuple11(); -// ^ +// function logFruitTuple11(...{}: FruitAndInfo3) {} +// logFruitTuple11(); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple11(**arg_0: "apple"**, ...arg_1: AppleInfo[], arg_2: number): void // | ---------------------------------------------------------------------- -// logFruitTuple11("apple", ); -// ^ +// logFruitTuple11("apple", ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple11(arg_0: "apple", **...arg_1: AppleInfo[]**, arg_2: number): void // | ---------------------------------------------------------------------- -// logFruitTuple11("apple", { color: "red" }, ); -// ^ +// logFruitTuple11("apple", { color: "red" }, ); +// ^ // | ---------------------------------------------------------------------- // | logFruitTuple11(arg_0: "apple", ...arg_1: AppleInfo[], **arg_2: number**): void // | ---------------------------------------------------------------------- -// function withPair(...[first, second]: [number, named: string]) {} -// withPair(); -// ^ +// function withPair(...[first, second]: [number, named: string]) {} +// withPair(); +// ^ // | ---------------------------------------------------------------------- // | withPair(**first: number**, named: string): void // | ---------------------------------------------------------------------- -// withPair(101, ); -// ^ +// withPair(101, ); +// ^ // | ---------------------------------------------------------------------- // | withPair(first: number, **named: string**): void // | ---------------------------------------------------------------------- [ { "marker": { - "Position": 251, + "Position": 242, "LSPosition": { "line": 11, - "character": 16 + "character": 15 }, "Name": "1", "Data": {} @@ -217,10 +217,10 @@ }, { "marker": { - "Position": 327, + "Position": 316, "LSPosition": { "line": 14, - "character": 16 + "character": 15 }, "Name": "2", "Data": {} @@ -256,10 +256,10 @@ }, { "marker": { - "Position": 355, + "Position": 343, "LSPosition": { "line": 15, - "character": 25 + "character": 24 }, "Name": "3", "Data": {} @@ -295,10 +295,10 @@ }, { "marker": { - "Position": 439, + "Position": 425, "LSPosition": { "line": 18, - "character": 16 + "character": 15 }, "Name": "4", "Data": {} @@ -334,10 +334,10 @@ }, { "marker": { - "Position": 467, + "Position": 452, "LSPosition": { "line": 19, - "character": 25 + "character": 24 }, "Name": "5", "Data": {} @@ -373,10 +373,10 @@ }, { "marker": { - "Position": 552, + "Position": 535, "LSPosition": { "line": 21, - "character": 16 + "character": 15 }, "Name": "6", "Data": {} @@ -412,10 +412,10 @@ }, { "marker": { - "Position": 580, + "Position": 562, "LSPosition": { "line": 22, - "character": 25 + "character": 24 }, "Name": "7", "Data": {} @@ -451,10 +451,10 @@ }, { "marker": { - "Position": 746, + "Position": 725, "LSPosition": { "line": 27, - "character": 16 + "character": 15 }, "Name": "8", "Data": {} @@ -490,10 +490,10 @@ }, { "marker": { - "Position": 774, + "Position": 752, "LSPosition": { "line": 28, - "character": 25 + "character": 24 }, "Name": "9", "Data": {} @@ -529,10 +529,10 @@ }, { "marker": { - "Position": 863, + "Position": 839, "LSPosition": { "line": 31, - "character": 16 + "character": 15 }, "Name": "10", "Data": {} @@ -568,10 +568,10 @@ }, { "marker": { - "Position": 891, + "Position": 866, "LSPosition": { "line": 32, - "character": 25 + "character": 24 }, "Name": "11", "Data": {} @@ -607,10 +607,10 @@ }, { "marker": { - "Position": 1106, + "Position": 1078, "LSPosition": { "line": 37, - "character": 16 + "character": 15 }, "Name": "12", "Data": {} @@ -652,10 +652,10 @@ }, { "marker": { - "Position": 1134, + "Position": 1105, "LSPosition": { "line": 38, - "character": 25 + "character": 24 }, "Name": "13", "Data": {} @@ -697,10 +697,10 @@ }, { "marker": { - "Position": 1180, + "Position": 1150, "LSPosition": { "line": 39, - "character": 43 + "character": 42 }, "Name": "14", "Data": {} @@ -742,10 +742,10 @@ }, { "marker": { - "Position": 1282, + "Position": 1250, "LSPosition": { "line": 42, - "character": 16 + "character": 15 }, "Name": "15", "Data": {} @@ -787,10 +787,10 @@ }, { "marker": { - "Position": 1310, + "Position": 1277, "LSPosition": { "line": 43, - "character": 25 + "character": 24 }, "Name": "16", "Data": {} @@ -832,10 +832,10 @@ }, { "marker": { - "Position": 1356, + "Position": 1322, "LSPosition": { "line": 44, - "character": 43 + "character": 42 }, "Name": "17", "Data": {} @@ -877,10 +877,10 @@ }, { "marker": { - "Position": 1480, + "Position": 1444, "LSPosition": { "line": 47, - "character": 16 + "character": 15 }, "Name": "18", "Data": {} @@ -922,10 +922,10 @@ }, { "marker": { - "Position": 1508, + "Position": 1471, "LSPosition": { "line": 48, - "character": 25 + "character": 24 }, "Name": "19", "Data": {} @@ -967,10 +967,10 @@ }, { "marker": { - "Position": 1554, + "Position": 1516, "LSPosition": { "line": 49, - "character": 43 + "character": 42 }, "Name": "20", "Data": {} @@ -1012,10 +1012,10 @@ }, { "marker": { - "Position": 1660, + "Position": 1620, "LSPosition": { "line": 52, - "character": 17 + "character": 16 }, "Name": "21", "Data": {} @@ -1057,10 +1057,10 @@ }, { "marker": { - "Position": 1689, + "Position": 1648, "LSPosition": { "line": 53, - "character": 26 + "character": 25 }, "Name": "22", "Data": {} @@ -1102,10 +1102,10 @@ }, { "marker": { - "Position": 1736, + "Position": 1694, "LSPosition": { "line": 54, - "character": 44 + "character": 43 }, "Name": "23", "Data": {} @@ -1147,10 +1147,10 @@ }, { "marker": { - "Position": 1808, + "Position": 1764, "LSPosition": { "line": 57, - "character": 17 + "character": 16 }, "Name": "24", "Data": {} @@ -1192,10 +1192,10 @@ }, { "marker": { - "Position": 1837, + "Position": 1792, "LSPosition": { "line": 58, - "character": 26 + "character": 25 }, "Name": "25", "Data": {} @@ -1237,10 +1237,10 @@ }, { "marker": { - "Position": 1884, + "Position": 1838, "LSPosition": { "line": 59, - "character": 44 + "character": 43 }, "Name": "26", "Data": {} @@ -1282,10 +1282,10 @@ }, { "marker": { - "Position": 1964, + "Position": 1916, "LSPosition": { "line": 61, - "character": 10 + "character": 9 }, "Name": "27", "Data": {} @@ -1310,10 +1310,10 @@ }, { "marker": { - "Position": 1982, + "Position": 1933, "LSPosition": { "line": 62, - "character": 15 + "character": 14 }, "Name": "28", "Data": {} diff --git a/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpIteratorNext.baseline b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpIteratorNext.baseline index eda29800b5..e20d663b33 100644 --- a/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpIteratorNext.baseline +++ b/testdata/baselines/reference/fourslash/signatureHelp/signatureHelpIteratorNext.baseline @@ -1,63 +1,63 @@ // === SignatureHelp === === /signatureHelpIteratorNext.ts === -// declare const iterator: Iterator; +// declare const iterator: Iterator; // -// iterator.next(); -// ^ +// iterator.next(); +// ^ // | ---------------------------------------------------------------------- // | next(): IteratorResult // | ---------------------------------------------------------------------- -// iterator.next( 0); -// ^ +// iterator.next( 0); +// ^ // | ---------------------------------------------------------------------- // | next(**value: number**): IteratorResult // | ---------------------------------------------------------------------- // -// declare const generator: Generator; +// declare const generator: Generator; // -// generator.next(); -// ^ +// generator.next(); +// ^ // | ---------------------------------------------------------------------- // | next(): IteratorResult // | ---------------------------------------------------------------------- -// generator.next( 0); -// ^ +// generator.next( 0); +// ^ // | ---------------------------------------------------------------------- // | next(**value: number**): IteratorResult // | ---------------------------------------------------------------------- // -// declare const asyncIterator: AsyncIterator; +// declare const asyncIterator: AsyncIterator; // -// asyncIterator.next(); -// ^ +// asyncIterator.next(); +// ^ // | ---------------------------------------------------------------------- // | next(): Promise> // | ---------------------------------------------------------------------- -// asyncIterator.next( 0); -// ^ +// asyncIterator.next( 0); +// ^ // | ---------------------------------------------------------------------- // | next(**value: number**): Promise> // | ---------------------------------------------------------------------- // -// declare const asyncGenerator: AsyncGenerator; +// declare const asyncGenerator: AsyncGenerator; // -// asyncGenerator.next(); -// ^ +// asyncGenerator.next(); +// ^ // | ---------------------------------------------------------------------- // | next(): Promise> // | ---------------------------------------------------------------------- -// asyncGenerator.next( 0); -// ^ +// asyncGenerator.next( 0); +// ^ // | ---------------------------------------------------------------------- // | next(**value: number**): Promise> // | ---------------------------------------------------------------------- [ { "marker": { - "Position": 73, + "Position": 71, "LSPosition": { "line": 2, - "character": 15 + "character": 14 }, "Name": "1", "Data": {} @@ -83,10 +83,10 @@ }, { "marker": { - "Position": 91, + "Position": 88, "LSPosition": { "line": 3, - "character": 15 + "character": 14 }, "Name": "2", "Data": {} @@ -112,10 +112,10 @@ }, { "marker": { - "Position": 173, + "Position": 168, "LSPosition": { "line": 7, - "character": 16 + "character": 15 }, "Name": "3", "Data": {} @@ -141,10 +141,10 @@ }, { "marker": { - "Position": 192, + "Position": 186, "LSPosition": { "line": 8, - "character": 16 + "character": 15 }, "Name": "4", "Data": {} @@ -170,10 +170,10 @@ }, { "marker": { - "Position": 286, + "Position": 278, "LSPosition": { "line": 12, - "character": 20 + "character": 19 }, "Name": "5", "Data": {} @@ -199,10 +199,10 @@ }, { "marker": { - "Position": 309, + "Position": 300, "LSPosition": { "line": 13, - "character": 20 + "character": 19 }, "Name": "6", "Data": {} @@ -228,10 +228,10 @@ }, { "marker": { - "Position": 406, + "Position": 395, "LSPosition": { "line": 17, - "character": 21 + "character": 20 }, "Name": "7", "Data": {} @@ -257,10 +257,10 @@ }, { "marker": { - "Position": 430, + "Position": 418, "LSPosition": { "line": 18, - "character": 21 + "character": 20 }, "Name": "8", "Data": {} diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc new file mode 100644 index 0000000000..56439ae8c3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/doubleUnderscoreRenames.baseline.jsonc @@ -0,0 +1,23 @@ +// === findRenameLocations === +// === /fileA.ts === +// export function /*RENAME*/[|__fooRENAME|]() { +// } +// + +// === /fileB.ts === +// import { [|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); + + + +// === findRenameLocations === +// === /fileA.ts === +// export function [|__fooRENAME|]() { +// } +// + +// === /fileB.ts === +// import { /*RENAME*/[|__fooRENAME|] as bar } from "./fileA"; +// +// bar(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc similarity index 75% rename from testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc index f8fc9d5a19..fa6c9c9cba 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport2.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /foo.ts === - // export function /*RENAME*/[|barRENAME|]() { return "bar"; } // var x = import("./foo"); // x.then(foo => { @@ -9,12 +8,10 @@ - // === findRenameLocations === // === /foo.ts === - -// /*RENAME*/export function bar() { return "bar"; } +// export function [|barRENAME|]() { return "bar"; } // var x = import("./foo"); // x.then(foo => { -// foo.bar(); -// }) +// foo./*RENAME*/[|barRENAME|](); +// }) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc new file mode 100644 index 0000000000..68ea3cc024 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc @@ -0,0 +1,11 @@ +// === findRenameLocations === +// === /foo.ts === +// /*RENAME*/export function bar() { return "bar"; } +// import('./foo').then(({ bar }) => undefined); + + + +// === findRenameLocations === +// === /foo.ts === +// export function bar() { return "bar"; } +// import('./foo').then((/*RENAME*/{ bar }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff new file mode 100644 index 0000000000..5e59ef1ae7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.findAllReferencesDynamicImport3.baseline.jsonc ++++ new.findAllReferencesDynamicImport3.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /foo.ts === +-// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +-// import('./foo').then(({ [|barRENAME|]: bar/*END SUFFIX*/ }) => undefined); ++// /*RENAME*/export function bar() { return "bar"; } ++// import('./foo').then(({ bar }) => undefined); + + + + // === findRenameLocations === + // === /foo.ts === + // export function bar() { return "bar"; } +-// import('./foo').then(({ /*START PREFIX*/bar: /*RENAME*/[|barRENAME|] }) => undefined); ++// import('./foo').then((/*RENAME*/{ bar }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc new file mode 100644 index 0000000000..ede29b4966 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /findAllRefsClassWithStaticThisAccess.ts === +// class C { +// static s() { +// /*RENAME*/this; +// } +// static get f() { +// return this; +// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff new file mode 100644 index 0000000000..b8090ed53b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff @@ -0,0 +1,19 @@ +--- old.findAllRefsClassWithStaticThisAccess.baseline.jsonc ++++ new.findAllRefsClassWithStaticThisAccess.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /findAllRefsClassWithStaticThisAccess.ts === +-// class /*RENAME*/[|CRENAME|] { ++// class C { + // static s() { +-// this; ++// /*RENAME*/this; + // } + // static get f() { + // return this; +-// +-// function inner() { this; } +-// class Inner { x = this; } +-// } +-// } ++// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc similarity index 87% rename from testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc index cbd9a27190..ef489e4c5e 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc @@ -1,79 +1,56 @@ // === findRenameLocations === // === /a.ts === - // export class /*RENAME*/[|ClassRENAME|] {} - // === /b.ts === - // import { [|ClassRENAME|] as C2 } from "./a"; // var c = new C2(); - // === /c.ts === - // export { [|ClassRENAME|] as C3 } from "./a"; - // === findRenameLocations === // === /a.ts === - // export class [|ClassRENAME|] {} - // === /b.ts === - // import { /*RENAME*/[|ClassRENAME|] as C2 } from "./a"; // var c = new C2(); - // === /c.ts === - // export { [|ClassRENAME|] as C3 } from "./a"; - // === findRenameLocations === // === /a.ts === - // export class [|ClassRENAME|] {} - // === /b.ts === - // import { [|ClassRENAME|] as C2 } from "./a"; // var c = new C2(); - // === /c.ts === - // export { /*RENAME*/[|ClassRENAME|] as C3 } from "./a"; - // === findRenameLocations === // === /b.ts === - // import { Class as /*RENAME*/[|C2RENAME|] } from "./a"; // var c = new [|C2RENAME|](); - // === findRenameLocations === // === /b.ts === - -// /*RENAME*/import { Class as C2 } from "./a"; -// var c = new C2(); - +// import { Class as [|C2RENAME|] } from "./a"; +// var c = new /*RENAME*/[|C2RENAME|](); // === findRenameLocations === // === /c.ts === - -// export { Class as /*RENAME*/C3 } from "./a"; +// export { Class as /*RENAME*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff new file mode 100644 index 0000000000..293d6126e0 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsOnImportAliases2.baseline.jsonc.diff @@ -0,0 +1,8 @@ +--- old.findAllRefsOnImportAliases2.baseline.jsonc ++++ new.findAllRefsOnImportAliases2.baseline.jsonc +@@= skipped -52, +52 lines =@@ + + // === findRenameLocations === + // === /c.ts === +-// export { Class as /*RENAME*/[|C3RENAME|] } from "./a"; ++// export { Class as /*RENAME*/C3 } from "./a"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc similarity index 81% rename from testdata/baselines/reference/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc index 7cc641abc3..327559c1b5 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /b.js === - // export { // /*RENAME*/foo -// } from './a'; +// } from './a'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff new file mode 100644 index 0000000000..585d82efd7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/highlightsForExportFromUnfoundModule.baseline.jsonc.diff @@ -0,0 +1,9 @@ +--- old.highlightsForExportFromUnfoundModule.baseline.jsonc ++++ new.highlightsForExportFromUnfoundModule.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /b.js === + // export { +-// /*START PREFIX*/foo as /*RENAME*/[|fooRENAME|] ++// /*RENAME*/foo + // } from './a'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc similarity index 63% rename from testdata/baselines/reference/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc index 5fbb88135f..1783f1b9dc 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/javaScriptClass2.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /Foo.js === - // class Foo { // constructor() { // this./*RENAME*/[|unionRENAME|] = 'foo'; @@ -13,10 +12,8 @@ - // === findRenameLocations === // === /Foo.js === - // class Foo { // constructor() { // this.[|unionRENAME|] = 'foo'; @@ -29,24 +26,28 @@ - // === findRenameLocations === // === /Foo.js === - -// /*RENAME*/class Foo { +// class Foo { // constructor() { -// this.union = 'foo'; -// this.union = 100; -// // --- (line: 5) skipped --- - +// this.[|unionRENAME|] = 'foo'; +// this.[|unionRENAME|] = 100; +// } +// method() { return this./*RENAME*/[|unionRENAME|]; } +// } +// var x = new Foo(); +// x.[|unionRENAME|]; // === findRenameLocations === // === /Foo.js === - -// /*RENAME*/class Foo { +// class Foo { // constructor() { -// this.union = 'foo'; -// this.union = 100; -// // --- (line: 5) skipped --- +// this.[|unionRENAME|] = 'foo'; +// this.[|unionRENAME|] = 100; +// } +// method() { return this.[|unionRENAME|]; } +// } +// var x = new Foo(); +// x./*RENAME*/[|unionRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc similarity index 50% rename from testdata/baselines/reference/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc index 8e0893f09d..427bca8d47 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc @@ -1,18 +1,5 @@ // === findRenameLocations === // === /jsDocSee_rename1.ts === - -// /*RENAME*/interface A {} -// /** -// * @see {A} -// */ -// declare const a: A - - - - -// === findRenameLocations === -// === /jsDocSee_rename1.ts === - // /*RENAME*/interface A {} // /** // * @see {A} @@ -21,12 +8,10 @@ - // === findRenameLocations === // === /jsDocSee_rename1.ts === - -// /*RENAME*/interface A {} +// interface A {} // /** -// * @see {A} +// * @see {/*RENAME*/A} // */ -// declare const a: A +// declare const a: A \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff new file mode 100644 index 0000000000..63d692e8b7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsDocSee_rename1.baseline.jsonc.diff @@ -0,0 +1,52 @@ +--- old.jsDocSee_rename1.baseline.jsonc ++++ new.jsDocSee_rename1.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInComments: true +- +-// === /jsDocSee_rename1.ts === +-// interface /*RENAME*/[|ARENAME|] {} +-// /** +-// * @see {[|ARENAME|]} +-// */ +-// declare const a: [|ARENAME|] +- +- +- +-// === findRenameLocations === +-// @findInComments: true +- +-// === /jsDocSee_rename1.ts === +-// interface [|ARENAME|] {} +-// /** +-// * @see {/*RENAME*/[|ARENAME|]} +-// */ +-// declare const a: [|ARENAME|] +- +- +- +-// === findRenameLocations === +-// @findInComments: true +- +-// === /jsDocSee_rename1.ts === +-// interface [|ARENAME|] {} +-// /** +-// * @see {[|ARENAME|]} +-// */ +-// declare const a: /*RENAME*/[|ARENAME|] ++// === /jsDocSee_rename1.ts === ++// /*RENAME*/interface A {} ++// /** ++// * @see {A} ++// */ ++// declare const a: A ++ ++ ++ ++// === findRenameLocations === ++// === /jsDocSee_rename1.ts === ++// interface A {} ++// /** ++// * @see {/*RENAME*/A} ++// */ ++// declare const a: A \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc similarity index 57% rename from testdata/baselines/reference/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc index 3ea25fe3e5..e505edfd94 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc @@ -1,8 +1,9 @@ // === findRenameLocations === // === /jsDocCallback.js === - -// /*RENAME*//** -// * @callback FooCallback +// /** +// * /*RENAME*/@callback FooCallback // * @param {string} eventName - Rename should work // */ -// // --- (line: 5) skipped --- +// +// /** @type {FooCallback} */ +// var t; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff new file mode 100644 index 0000000000..5539c6c094 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff @@ -0,0 +1,18 @@ +--- old.jsdocCallbackTagRename01.baseline.jsonc ++++ new.jsdocCallbackTagRename01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInStrings: false +-// @findInComments: true +- + // === /jsDocCallback.js === +-// + // /** +-// * @callback /*RENAME*/[|FooCallbackRENAME|] ++// * /*RENAME*/@callback FooCallback + // * @param {string} eventName - Rename should work + // */ + // +-// /** @type {[|FooCallbackRENAME|]} */ ++// /** @type {FooCallback} */ + // var t; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc similarity index 86% rename from testdata/baselines/reference/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc index 80905d9ea4..9fc09ed54b 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc @@ -1,10 +1,9 @@ // === findRenameLocations === // === /a.js === - // /** // * @typedef {Object} T // * @property {number} a // */ // // /** @satisfies {/*RENAME*/[|TRENAME|]} comment */ -// const foo = { a: 1 }; +// const foo = { a: 1 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc.diff new file mode 100644 index 0000000000..3e6d45d9e6 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocSatisfiesTagRename.baseline.jsonc.diff @@ -0,0 +1,11 @@ +--- old.jsdocSatisfiesTagRename.baseline.jsonc ++++ new.jsdocSatisfiesTagRename.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.js === + // /** +-// * @typedef {Object} [|TRENAME|] ++// * @typedef {Object} T + // * @property {number} a + // */ + // \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc similarity index 88% rename from testdata/baselines/reference/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc index 48c5f89b0b..c7fe097fcc 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /jsdocThrowsTag_rename.ts === - // class /*RENAME*/[|ERENAME|] extends Error {} // /** // * @throws {E} // */ -// function f() {} +// function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff new file mode 100644 index 0000000000..a579e74bae --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocThrowsTag_rename.baseline.jsonc.diff @@ -0,0 +1,10 @@ +--- old.jsdocThrowsTag_rename.baseline.jsonc ++++ new.jsdocThrowsTag_rename.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /jsdocThrowsTag_rename.ts === + // class /*RENAME*/[|ERENAME|] extends Error {} + // /** +-// * @throws {[|ERENAME|]} ++// * @throws {E} + // */ + // function f() {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc new file mode 100644 index 0000000000..ddd9444fe8 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc @@ -0,0 +1,33 @@ +// === findRenameLocations === +// === /jsDocTypedef_form1.js === +// /** @typedef {(string | number)} */ +// /*RENAME*/var NumberLike; +// +// NumberLike = 10; +// +// /** @type {NumberLike} */ +// var numberLike; + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === +// /** @typedef {(string | number)} */ +// var [|NumberLikeRENAME|]; +// +// /*RENAME*/[|NumberLikeRENAME|] = 10; +// +// /** @type {NumberLike} */ +// var numberLike; + + + +// === findRenameLocations === +// === /jsDocTypedef_form1.js === +// /** @typedef {(string | number)} */ +// var NumberLike; +// +// NumberLike = 10; +// +// /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ +// var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff new file mode 100644 index 0000000000..ae96080227 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff @@ -0,0 +1,53 @@ +--- old.jsdocTypedefTagRename01.baseline.jsonc ++++ new.jsdocTypedefTagRename01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInComments: true +- + // === /jsDocTypedef_form1.js === +-// + // /** @typedef {(string | number)} */ +-// var /*RENAME*/[|NumberLikeRENAME|]; +-// +-// [|NumberLikeRENAME|] = 10; +-// +-// /** @type {[|NumberLikeRENAME|]} */ ++// /*RENAME*/var NumberLike; ++// ++// NumberLike = 10; ++// ++// /** @type {NumberLike} */ + // var numberLike; + + + + // === findRenameLocations === +-// @findInComments: true +- + // === /jsDocTypedef_form1.js === +-// + // /** @typedef {(string | number)} */ + // var [|NumberLikeRENAME|]; + // + // /*RENAME*/[|NumberLikeRENAME|] = 10; + // +-// /** @type {[|NumberLikeRENAME|]} */ ++// /** @type {NumberLike} */ + // var numberLike; + + + + // === findRenameLocations === +-// @findInComments: true +- + // === /jsDocTypedef_form1.js === +-// + // /** @typedef {(string | number)} */ +-// var [|NumberLikeRENAME|]; ++// var NumberLike; + // +-// [|NumberLikeRENAME|] = 10; ++// NumberLike = 10; + // + // /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ + // var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc new file mode 100644 index 0000000000..2a2194b55e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc @@ -0,0 +1,15 @@ +// === findRenameLocations === +// === /jsDocTypedef_form2.js === +// /** /*RENAME*/@typedef {(string | number)} NumberLike */ +// +// /** @type {NumberLike} */ +// var numberLike; + + + +// === findRenameLocations === +// === /jsDocTypedef_form2.js === +// /** @typedef {(string | number)} NumberLike */ +// +// /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ +// var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff new file mode 100644 index 0000000000..69b63e7ffa --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff @@ -0,0 +1,28 @@ +--- old.jsdocTypedefTagRename02.baseline.jsonc ++++ new.jsdocTypedefTagRename02.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInComments: true +- + // === /jsDocTypedef_form2.js === +-// +-// /** @typedef {(string | number)} /*RENAME*/[|NumberLikeRENAME|] */ +-// +-// /** @type {[|NumberLikeRENAME|]} */ ++// /** /*RENAME*/@typedef {(string | number)} NumberLike */ ++// ++// /** @type {NumberLike} */ + // var numberLike; + + + + // === findRenameLocations === +-// @findInComments: true +- + // === /jsDocTypedef_form2.js === +-// +-// /** @typedef {(string | number)} [|NumberLikeRENAME|] */ ++// /** @typedef {(string | number)} NumberLike */ + // + // /** @type {/*RENAME*/[|NumberLikeRENAME|]} */ + // var numberLike; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc new file mode 100644 index 0000000000..c785d76713 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /jsDocTypedef_form3.js === +// /** +// * @typedef /*RENAME*/Person +// * @type {Object} +// * @property {number} age +// * @property {string} name +// // --- (line: 6) skipped --- + + + +// === findRenameLocations === +// === /jsDocTypedef_form3.js === +// --- (line: 4) skipped --- +// * @property {string} name +// */ +// +// /** @type {/*RENAME*/[|PersonRENAME|]} */ +// var person; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff new file mode 100644 index 0000000000..06b5ffcfb8 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff @@ -0,0 +1,35 @@ +--- old.jsdocTypedefTagRename03.baseline.jsonc ++++ new.jsdocTypedefTagRename03.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInComments: true +- + // === /jsDocTypedef_form3.js === +-// + // /** +-// * @typedef /*RENAME*/[|PersonRENAME|] ++// * @typedef /*RENAME*/Person + // * @type {Object} + // * @property {number} age + // * @property {string} name +-// */ +-// +-// /** @type {[|PersonRENAME|]} */ +-// var person; ++// // --- (line: 6) skipped --- + + + + // === findRenameLocations === +-// @findInComments: true +- + // === /jsDocTypedef_form3.js === +-// +-// /** +-// * @typedef [|PersonRENAME|] +-// * @type {Object} +-// * @property {number} age ++// --- (line: 4) skipped --- + // * @property {string} name + // */ + // \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc new file mode 100644 index 0000000000..c84c9923ac --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// } +// +// var /*RENAME*/[|nnRENAME|]: {name?: string; size?: number}; +// var x = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// } +// +// var [|nnRENAME|]: {name?: string; size?: number}; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff new file mode 100644 index 0000000000..d29a7198d1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsxSpreadReference.baseline.jsonc.diff @@ -0,0 +1,8 @@ +--- old.jsxSpreadReference.baseline.jsonc ++++ new.jsxSpreadReference.baseline.jsonc +@@= skipped -16, +16 lines =@@ + // + // var [|nnRENAME|]: {name?: string; size?: number}; + // var x = ; +- +- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc similarity index 88% rename from testdata/baselines/reference/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc index f95d303132..5b5186938f 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc @@ -1,21 +1,14 @@ // === findRenameLocations === // === /decl.js === - // var [|objRENAME|] = {}; - // === /forof.js === - // for (obj/*RENAME*/[|objRENAME|].prop of arr) { // // } - // === /unicode1.js === - // [|objRENAME|].𝒜 ; - // === /unicode2.js === - -// [|objRENAME|].¬ ; +// [|objRENAME|].¬ ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff new file mode 100644 index 0000000000..03ad6961e9 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff @@ -0,0 +1,24 @@ +--- old.processInvalidSyntax1.baseline.jsonc ++++ new.processInvalidSyntax1.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /decl.js === + // var [|objRENAME|] = {}; + ++// === /forof.js === ++// for (obj/*RENAME*/[|objRENAME|].prop of arr) { ++// ++// } ++ + // === /unicode1.js === + // [|objRENAME|].𝒜 ; + + // === /unicode2.js === + // [|objRENAME|].¬ ; +- +-// === /unicode3.js === +-// [|objRENAME|]¬ +- +-// === /forof.js === +-// for ([|objRENAME|]/*RENAME*/.prop of arr) { +-// +-// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/rename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc similarity index 54% rename from testdata/baselines/reference/fourslash/findRenameLocations/rename01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc index 95c9953d73..f9484e260b 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/rename01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /rename01.ts === - -// /*RENAME*//// +// /// // function Bar() { -// // This is a reference to Bar in a comment. +// // This is a reference to /*RENAME*/Bar in a comment. // "this is a reference to Bar in a string" -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff new file mode 100644 index 0000000000..71e4705d08 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff @@ -0,0 +1,16 @@ +--- old.rename01.baseline.jsonc ++++ new.rename01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInStrings: true +-// @findInComments: true +- + // === /rename01.ts === + // /// +-// function /*RENAME*/[|BarRENAME|]() { +-// // This is a reference to [|BarRENAME|] in a comment. +-// "this is a reference to [|BarRENAME|] in a string" ++// function Bar() { ++// // This is a reference to /*RENAME*/Bar in a comment. ++// "this is a reference to Bar in a string" + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc new file mode 100644 index 0000000000..48bb8773df --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAcrossMultipleProjects.baseline.jsonc @@ -0,0 +1,39 @@ +// === findRenameLocations === +// === /a.ts === +// var /*RENAME*/[|xRENAME|]: number; + +// === /b.ts === +// /// +// [|xRENAME|]++; + +// === /c.ts === +// /// +// [|xRENAME|]++; + + + +// === findRenameLocations === +// === /a.ts === +// var [|xRENAME|]: number; + +// === /b.ts === +// /// +// /*RENAME*/[|xRENAME|]++; + +// === /c.ts === +// /// +// [|xRENAME|]++; + + + +// === findRenameLocations === +// === /a.ts === +// var [|xRENAME|]: number; + +// === /b.ts === +// /// +// [|xRENAME|]++; + +// === /c.ts === +// /// +// /*RENAME*/[|xRENAME|]++; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc similarity index 65% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameAlias.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc index 6a90b4e50a..169ac2f6fa 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias.baseline.jsonc @@ -1,16 +1,13 @@ // === findRenameLocations === // === /renameAlias.ts === - // module SomeModule { export class SomeClass { } } // import /*RENAME*/[|MRENAME|] = SomeModule; // import C = [|MRENAME|].SomeClass; - // === findRenameLocations === // === /renameAlias.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// import M = SomeModule; -// import C = M.SomeClass; +// module SomeModule { export class SomeClass { } } +// import [|MRENAME|] = SomeModule; +// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc similarity index 65% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameAlias2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc index 3f204cb766..097898f626 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias2.baseline.jsonc @@ -1,16 +1,13 @@ // === findRenameLocations === // === /renameAlias2.ts === - // module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } // import M = [|SomeModuleRENAME|]; // import C = M.SomeClass; - // === findRenameLocations === // === /renameAlias2.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// import M = SomeModule; -// import C = M.SomeClass; +// module [|SomeModuleRENAME|] { export class SomeClass { } } +// import M = /*RENAME*/[|SomeModuleRENAME|]; +// import C = M.SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc similarity index 73% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameAlias3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc index 06968d0843..af74bffd51 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameAlias3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc @@ -1,16 +1,13 @@ // === findRenameLocations === // === /renameAlias3.ts === - // module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } // import M = SomeModule; // import C = M.SomeClass; - // === findRenameLocations === // === /renameAlias3.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } +// module SomeModule { export class SomeClass { } } // import M = SomeModule; -// import C = M.SomeClass; +// import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc.diff new file mode 100644 index 0000000000..24d0d63d58 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAlias3.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.renameAlias3.baseline.jsonc ++++ new.renameAlias3.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /renameAlias3.ts === + // module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } + // import M = SomeModule; +-// import C = M.[|SomeClassRENAME|]; ++// import C = M.SomeClass; + + + + // === findRenameLocations === + // === /renameAlias3.ts === +-// module SomeModule { export class [|SomeClassRENAME|] { } } ++// module SomeModule { export class SomeClass { } } + // import M = SomeModule; + // import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc similarity index 68% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc index 2a9bff9aad..5a52c526c3 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /b.ts === - // import /*RENAME*/[|MRENAME|] = require("./a"); // import C = [|MRENAME|].SomeClass; - // === findRenameLocations === // === /b.ts === - -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; +// import [|MRENAME|] = require("./a"); +// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc similarity index 67% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc index cdd53ab6ea..0dc571be95 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc @@ -1,32 +1,25 @@ // === findRenameLocations === // === /a.ts === - // /*RENAME*/module SomeModule { export class SomeClass { } } // export = SomeModule; - // === findRenameLocations === // === /a.ts === - -// /*RENAME*/module SomeModule { export class SomeClass { } } -// export = SomeModule; - +// module SomeModule { export class SomeClass { } } +// /*RENAME*/export = SomeModule; // === findRenameLocations === // === /b.ts === - // /*RENAME*/import M = require("./a"); // import C = M.SomeClass; - // === findRenameLocations === // === /b.ts === - -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; +// import [|MRENAME|] = require("./a"); +// import C = /*RENAME*/[|MRENAME|].SomeClass; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff new file mode 100644 index 0000000000..b4c26b842b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff @@ -0,0 +1,29 @@ +--- old.renameAliasExternalModule2.baseline.jsonc ++++ new.renameAliasExternalModule2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === +-// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } +-// export = [|SomeModuleRENAME|]; ++// /*RENAME*/module SomeModule { export class SomeClass { } } ++// export = SomeModule; + + + + // === findRenameLocations === + // === /a.ts === +-// module [|SomeModuleRENAME|] { export class SomeClass { } } +-// export = /*RENAME*/[|SomeModuleRENAME|]; ++// module SomeModule { export class SomeClass { } } ++// /*RENAME*/export = SomeModule; + + + + // === findRenameLocations === + // === /b.ts === +-// import /*RENAME*/[|MRENAME|] = require("./a"); +-// import C = [|MRENAME|].SomeClass; ++// /*RENAME*/import M = require("./a"); ++// import C = M.SomeClass; + + diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc similarity index 71% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc index 7e751429c2..c9f18c5c49 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /a.ts === - // module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } // export = SomeModule; - // === findRenameLocations === // === /b.ts === - -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; +// import M = require("./a"); +// import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc.diff new file mode 100644 index 0000000000..b3dc143222 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule3.baseline.jsonc.diff @@ -0,0 +1,20 @@ +--- old.renameAliasExternalModule3.baseline.jsonc ++++ new.renameAliasExternalModule3.baseline.jsonc +@@= skipped -2, +2 lines =@@ + // module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } } + // export = SomeModule; + +-// === /b.ts === +-// import M = require("./a"); +-// import C = M.[|SomeClassRENAME|]; +- + + + // === findRenameLocations === +-// === /a.ts === +-// module SomeModule { export class [|SomeClassRENAME|] { } } +-// export = SomeModule; +- + // === /b.ts === + // import M = require("./a"); + // import C = M./*RENAME*/[|SomeClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc new file mode 100644 index 0000000000..aae6d891cd --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc @@ -0,0 +1,115 @@ +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const /*RENAME*/[|externalRENAME|] = true; +// +// function f({ +// lvl1 = external, +// // --- (line: 5) skipped --- + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = /*RENAME*/[|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = /*RENAME*/[|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = /*RENAME*/[|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = /*RENAME*/[|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = /*RENAME*/[|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// } = obj; + + + +// === findRenameLocations === +// === /renameBindingElementInitializerExternal.ts === +// const external = true; +// +// function f({ +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = [|externalRENAME|] +// }) {} +// +// const { +// lvl1 = [|externalRENAME|], +// nested: { lvl2 = [|externalRENAME|]}, +// oldName: newName = /*RENAME*/[|externalRENAME|] +// } = obj; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff new file mode 100644 index 0000000000..f92508151d --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerExternal.baseline.jsonc.diff @@ -0,0 +1,73 @@ +--- old.renameBindingElementInitializerExternal.baseline.jsonc ++++ new.renameBindingElementInitializerExternal.baseline.jsonc +@@= skipped -2, +2 lines =@@ + // const /*RENAME*/[|externalRENAME|] = true; + // + // function f({ +-// lvl1 = [|externalRENAME|], +-// nested: { lvl2 = [|externalRENAME|]}, +-// oldName: newName = [|externalRENAME|] +-// }) {} +-// +-// const { +-// lvl1 = [|externalRENAME|], +-// nested: { lvl2 = [|externalRENAME|]}, +-// oldName: newName = [|externalRENAME|] +-// } = obj; ++// lvl1 = external, ++// // --- (line: 5) skipped --- + + + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = /*RENAME*/[|externalRENAME|], +@@= skipped -33, +25 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], +@@= skipped -18, +18 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerExternal.ts === +-// const [|externalRENAME|] = true; ++// const external = true; + // + // function f({ + // lvl1 = [|externalRENAME|], \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc similarity index 65% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc index cbba4347b8..93bd3cd741 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { -// console.log("required", required); +// function f({required, optional = /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +// console.log("required", [|requiredRENAME|]); // console.log("optional", optional); // } // @@ -10,10 +9,8 @@ - // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === - // function f({required, optional = required}: {/*RENAME*/[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { // console.log("required", required); // console.log("optional", optional); @@ -23,12 +20,10 @@ - // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { -// console.log("required", required); +// function f({[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +// console.log("required", /*RENAME*/[|requiredRENAME|]); // console.log("optional", optional); // } // @@ -36,11 +31,9 @@ - // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// function f(/*RENAME*/{required, optional = required}: {required: number, optional?: number}) { // console.log("required", required); // console.log("optional", optional); // } @@ -49,13 +42,11 @@ - // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === - -// /*RENAME*/function f({required, optional = required}: {required: number, optional?: number}) { +// function f({[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { // console.log("required", required); // console.log("optional", optional); // } // -// f({required: 10}); +// f({/*RENAME*/[|requiredRENAME|]: 10}); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff new file mode 100644 index 0000000000..87d1439efb --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff @@ -0,0 +1,85 @@ +--- old.renameBindingElementInitializerProperty.baseline.jsonc ++++ new.renameBindingElementInitializerProperty.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameBindingElementInitializerProperty.ts === +-// function f({/*START PREFIX*/required: /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +-// console.log("required", [|requiredRENAME|]); +-// console.log("optional", optional); +-// } +-// +-// f({required: 10}); +- +- +- +-// === findRenameLocations === +-// === /renameBindingElementInitializerProperty.ts === +-// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = /*RENAME*/[|requiredRENAME|]}: {required: number, optional?: number}) { +-// console.log("required", [|requiredRENAME|]); +-// console.log("optional", optional); +-// } +-// +-// f({required: 10}); +- +- +- +-// === findRenameLocations === +-// === /renameBindingElementInitializerProperty.ts === +-// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +-// console.log("required", /*RENAME*/[|requiredRENAME|]); +-// console.log("optional", optional); +-// } +-// +-// f({required: 10}); +- +- +- +-// === findRenameLocations === +-// === /renameBindingElementInitializerProperty.ts === +-// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {/*RENAME*/[|requiredRENAME|]: number, optional?: number}) { ++// function f({required, optional = /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { ++// console.log("required", [|requiredRENAME|]); ++// console.log("optional", optional); ++// } ++// ++// f({required: 10}); ++ ++ ++ ++// === findRenameLocations === ++// === /renameBindingElementInitializerProperty.ts === ++// function f({required, optional = required}: {/*RENAME*/[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { + // console.log("required", required); + // console.log("optional", optional); + // } +@@= skipped -43, +21 lines =@@ + + // === findRenameLocations === + // === /renameBindingElementInitializerProperty.ts === +-// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {[|requiredRENAME|]: number, optional?: number}) { ++// function f({[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { ++// console.log("required", /*RENAME*/[|requiredRENAME|]); ++// console.log("optional", optional); ++// } ++// ++// f({required: 10}); ++ ++ ++ ++// === findRenameLocations === ++// === /renameBindingElementInitializerProperty.ts === ++// function f(/*RENAME*/{required, optional = required}: {required: number, optional?: number}) { ++// console.log("required", required); ++// console.log("optional", optional); ++// } ++// ++// f({required: 10}); ++ ++ ++ ++// === findRenameLocations === ++// === /renameBindingElementInitializerProperty.ts === ++// function f({[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { + // console.log("required", required); + // console.log("optional", optional); + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc similarity index 97% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc index 096caa9e1d..b24b7dd8d0 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings1.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameCommentsAndStrings1.ts === - // /// // function /*RENAME*/[|BarRENAME|]() { // // This is a reference to Bar in a comment. // "this is a reference to Bar in a string" -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc similarity index 58% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc index 5fdc3f76ae..8de991e6c2 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameCommentsAndStrings2.ts === - -// /*RENAME*//// +// /// // function Bar() { // // This is a reference to Bar in a comment. -// "this is a reference to Bar in a string" -// } +// "this is a reference to /*RENAME*/Bar in a string" +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff new file mode 100644 index 0000000000..8b0321378a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameCommentsAndStrings2.baseline.jsonc ++++ new.renameCommentsAndStrings2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInStrings: true +- + // === /renameCommentsAndStrings2.ts === + // /// +-// function /*RENAME*/[|BarRENAME|]() { ++// function Bar() { + // // This is a reference to Bar in a comment. +-// "this is a reference to [|BarRENAME|] in a string" ++// "this is a reference to /*RENAME*/Bar in a string" + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc similarity index 57% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc index ace93735f1..22ba48a4f9 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameCommentsAndStrings3.ts === - -// /*RENAME*//// +// /// // function Bar() { -// // This is a reference to Bar in a comment. +// // This is a reference to /*RENAME*/Bar in a comment. // "this is a reference to Bar in a string" -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff new file mode 100644 index 0000000000..1c14edaca2 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameCommentsAndStrings3.baseline.jsonc ++++ new.renameCommentsAndStrings3.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInComments: true +- + // === /renameCommentsAndStrings3.ts === + // /// +-// function /*RENAME*/[|BarRENAME|]() { +-// // This is a reference to [|BarRENAME|] in a comment. ++// function Bar() { ++// // This is a reference to /*RENAME*/Bar in a comment. + // "this is a reference to Bar in a string" + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc new file mode 100644 index 0000000000..f4cc41aa68 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc @@ -0,0 +1,9 @@ +// === findRenameLocations === +// === /renameCommentsAndStrings4.ts === +// /// +// function Bar() { +// // This is a reference to /*RENAME*/Bar in a comment. +// "this is a reference to Bar in a string"; +// `Foo Bar Baz.`; +// { +// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff new file mode 100644 index 0000000000..ef2faf3303 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff @@ -0,0 +1,23 @@ +--- old.renameCommentsAndStrings4.baseline.jsonc ++++ new.renameCommentsAndStrings4.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInStrings: true +-// @findInComments: true +- + // === /renameCommentsAndStrings4.ts === + // /// +-// function /*RENAME*/[|BarRENAME|]() { +-// // This is a reference to [|BarRENAME|] in a comment. +-// "this is a reference to [|BarRENAME|] in a string"; +-// `Foo [|BarRENAME|] Baz.`; ++// function Bar() { ++// // This is a reference to /*RENAME*/Bar in a comment. ++// "this is a reference to Bar in a string"; ++// `Foo Bar Baz.`; + // { +-// const Bar = 0; +-// `[|BarRENAME|] ba ${Bar} bara [|BarRENAME|] berbobo ${Bar} araura [|BarRENAME|] ara!`; +-// } +-// } ++// // --- (line: 7) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc similarity index 99% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc index 8363ebb904..5e291fb2fb 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // interface I { // /*RENAME*/[|prop1RENAME|]: () => void; // prop2(): void; @@ -58,10 +57,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // interface I { // [|prop1RENAME|]: () => void; // prop2(): void; @@ -119,10 +116,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // interface I { // [|prop1RENAME|]: () => void; // prop2(): void; @@ -180,10 +175,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // interface I { // [|prop1RENAME|]: () => void; // prop2(): void; @@ -241,10 +234,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // interface I { // [|prop1RENAME|]: () => void; // prop2(): void; @@ -302,10 +293,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // --- (line: 23) skipped --- // }; // @@ -318,10 +307,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // --- (line: 28) skipped --- // }; // @@ -334,10 +321,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // --- (line: 33) skipped --- // }; // @@ -350,10 +335,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // --- (line: 38) skipped --- // }; // @@ -366,10 +349,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // --- (line: 43) skipped --- // }; // @@ -382,14 +363,12 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties.ts === - // --- (line: 48) skipped --- // }; // // var o10: I = { // set ["/*RENAME*/prop1"](v) { }, // set ["prop2"](v) { } -// }; +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff new file mode 100644 index 0000000000..8269b1954c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties.baseline.jsonc.diff @@ -0,0 +1,430 @@ +--- old.renameContextuallyTypedProperties.baseline.jsonc ++++ new.renameContextuallyTypedProperties.baseline.jsonc +@@= skipped -294, +294 lines =@@ + + // === findRenameLocations === + // === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "/*RENAME*/[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "/*RENAME*/[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["/*RENAME*/[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["/*RENAME*/[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["/*RENAME*/[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["[|prop1RENAME|]"](v) { }, +-// set ["prop2"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties.ts === +-// interface I { +-// [|prop1RENAME|]: () => void; +-// prop2(): void; +-// } +-// +-// var o1: I = { +-// [|prop1RENAME|]() { }, +-// prop2() { } +-// }; +-// +-// var o2: I = { +-// [|prop1RENAME|]: () => { }, +-// prop2: () => { } +-// }; +-// +-// var o3: I = { +-// get [|prop1RENAME|]() { return () => { }; }, +-// get prop2() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set [|prop1RENAME|](v) { }, +-// set prop2(v) { } +-// }; +-// +-// var o5: I = { +-// "[|prop1RENAME|]"() { }, +-// "prop2"() { } +-// }; +-// +-// var o6: I = { +-// "[|prop1RENAME|]": function () { }, +-// "prop2": function () { } +-// }; +-// +-// var o7: I = { +-// ["[|prop1RENAME|]"]: function () { }, +-// ["prop2"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["[|prop1RENAME|]"]() { }, +-// ["prop2"]() { } +-// }; +-// +-// var o9: I = { +-// get ["[|prop1RENAME|]"]() { return () => { }; }, +-// get ["prop2"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["/*RENAME*/[|prop1RENAME|]"](v) { }, ++// --- (line: 23) skipped --- ++// }; ++// ++// var o5: I = { ++// "/*RENAME*/prop1"() { }, ++// "prop2"() { } ++// }; ++// ++// // --- (line: 31) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 28) skipped --- ++// }; ++// ++// var o6: I = { ++// "/*RENAME*/prop1": function () { }, ++// "prop2": function () { } ++// }; ++// ++// // --- (line: 36) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 33) skipped --- ++// }; ++// ++// var o7: I = { ++// ["/*RENAME*/prop1"]: function () { }, ++// ["prop2"]: function () { } ++// }; ++// ++// // --- (line: 41) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 38) skipped --- ++// }; ++// ++// var o8: I = { ++// ["/*RENAME*/prop1"]() { }, ++// ["prop2"]() { } ++// }; ++// ++// // --- (line: 46) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 43) skipped --- ++// }; ++// ++// var o9: I = { ++// get ["/*RENAME*/prop1"]() { return () => { }; }, ++// get ["prop2"]() { return () => { }; } ++// }; ++// ++// // --- (line: 51) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties.ts === ++// --- (line: 48) skipped --- ++// }; ++// ++// var o10: I = { ++// set ["/*RENAME*/prop1"](v) { }, + // set ["prop2"](v) { } + // }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc similarity index 99% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc index e9c6610faf..2701f8b18c 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // interface I { // prop1: () => void; // /*RENAME*/[|prop2RENAME|](): void; @@ -58,10 +57,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // interface I { // prop1: () => void; // [|prop2RENAME|](): void; @@ -119,10 +116,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // interface I { // prop1: () => void; // [|prop2RENAME|](): void; @@ -180,10 +175,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // interface I { // prop1: () => void; // [|prop2RENAME|](): void; @@ -241,10 +234,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // interface I { // prop1: () => void; // [|prop2RENAME|](): void; @@ -302,10 +293,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // --- (line: 24) skipped --- // // var o5: I = { @@ -318,10 +307,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // --- (line: 29) skipped --- // // var o6: I = { @@ -334,10 +321,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // --- (line: 34) skipped --- // // var o7: I = { @@ -350,10 +335,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // --- (line: 39) skipped --- // // var o8: I = { @@ -366,10 +349,8 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // --- (line: 44) skipped --- // // var o9: I = { @@ -382,13 +363,11 @@ - // === findRenameLocations === // === /renameContextuallyTypedProperties2.ts === - // --- (line: 49) skipped --- // // var o10: I = { // set ["prop1"](v) { }, // set ["/*RENAME*/prop2"](v) { } -// }; +// }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff new file mode 100644 index 0000000000..9cb5b9653a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameContextuallyTypedProperties2.baseline.jsonc.diff @@ -0,0 +1,430 @@ +--- old.renameContextuallyTypedProperties2.baseline.jsonc ++++ new.renameContextuallyTypedProperties2.baseline.jsonc +@@= skipped -294, +294 lines =@@ + + // === findRenameLocations === + // === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "/*RENAME*/[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "/*RENAME*/[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["/*RENAME*/[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["/*RENAME*/[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["/*RENAME*/[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["[|prop2RENAME|]"](v) { } +-// }; +- +- +- +-// === findRenameLocations === +-// === /renameContextuallyTypedProperties2.ts === +-// interface I { +-// prop1: () => void; +-// [|prop2RENAME|](): void; +-// } +-// +-// var o1: I = { +-// prop1() { }, +-// [|prop2RENAME|]() { } +-// }; +-// +-// var o2: I = { +-// prop1: () => { }, +-// [|prop2RENAME|]: () => { } +-// }; +-// +-// var o3: I = { +-// get prop1() { return () => { }; }, +-// get [|prop2RENAME|]() { return () => { }; } +-// }; +-// +-// var o4: I = { +-// set prop1(v) { }, +-// set [|prop2RENAME|](v) { } +-// }; +-// +-// var o5: I = { +-// "prop1"() { }, +-// "[|prop2RENAME|]"() { } +-// }; +-// +-// var o6: I = { +-// "prop1": function () { }, +-// "[|prop2RENAME|]": function () { } +-// }; +-// +-// var o7: I = { +-// ["prop1"]: function () { }, +-// ["[|prop2RENAME|]"]: function () { } +-// }; +-// +-// var o8: I = { +-// ["prop1"]() { }, +-// ["[|prop2RENAME|]"]() { } +-// }; +-// +-// var o9: I = { +-// get ["prop1"]() { return () => { }; }, +-// get ["[|prop2RENAME|]"]() { return () => { }; } +-// }; +-// +-// var o10: I = { +-// set ["prop1"](v) { }, +-// set ["/*RENAME*/[|prop2RENAME|]"](v) { } ++// --- (line: 24) skipped --- ++// ++// var o5: I = { ++// "prop1"() { }, ++// "/*RENAME*/prop2"() { } ++// }; ++// ++// var o6: I = { ++// // --- (line: 32) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 29) skipped --- ++// ++// var o6: I = { ++// "prop1": function () { }, ++// "/*RENAME*/prop2": function () { } ++// }; ++// ++// var o7: I = { ++// // --- (line: 37) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 34) skipped --- ++// ++// var o7: I = { ++// ["prop1"]: function () { }, ++// ["/*RENAME*/prop2"]: function () { } ++// }; ++// ++// var o8: I = { ++// // --- (line: 42) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 39) skipped --- ++// ++// var o8: I = { ++// ["prop1"]() { }, ++// ["/*RENAME*/prop2"]() { } ++// }; ++// ++// var o9: I = { ++// // --- (line: 47) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 44) skipped --- ++// ++// var o9: I = { ++// get ["prop1"]() { return () => { }; }, ++// get ["/*RENAME*/prop2"]() { return () => { }; } ++// }; ++// ++// var o10: I = { ++// // --- (line: 52) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameContextuallyTypedProperties2.ts === ++// --- (line: 49) skipped --- ++// ++// var o10: I = { ++// set ["prop1"](v) { }, ++// set ["/*RENAME*/prop2"](v) { } + // }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc similarity index 82% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc index 19ba7ab61d..3d4ca0f2b1 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // class /*RENAME*/[|C1RENAME|] extends Base implements Implemented1 { @@ -11,34 +10,36 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - -// /*RENAME*/class Base {} +// class [|BaseRENAME|] {} // interface Implemented1 {} -// class C1 extends Base implements Implemented1 { +// class C1 extends /*RENAME*/[|BaseRENAME|] implements Implemented1 { // get e() { return 1; } -// // --- (line: 5) skipped --- - +// set e(v) {} +// } +// interface I1 extends [|BaseRENAME|] { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- // === findRenameLocations === // === /renameDeclarationKeywords.ts === - -// /*RENAME*/class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { +// class Base {} +// interface [|Implemented1RENAME|] {} +// class C1 extends Base implements /*RENAME*/[|Implemented1RENAME|] { // get e() { return 1; } -// // --- (line: 5) skipped --- - +// set e(v) {} +// } +// // --- (line: 7) skipped --- // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // class C1 extends Base implements Implemented1 { @@ -50,10 +51,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // class Base {} // interface Implemented1 {} // class C1 extends Base implements Implemented1 { @@ -66,10 +65,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 3) skipped --- // get e() { return 1; } // set e(v) {} @@ -82,22 +79,24 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - -// /*RENAME*/class Base {} +// class [|BaseRENAME|] {} // interface Implemented1 {} -// class C1 extends Base implements Implemented1 { +// class C1 extends [|BaseRENAME|] implements Implemented1 { // get e() { return 1; } -// // --- (line: 5) skipped --- - +// set e(v) {} +// } +// interface I1 extends /*RENAME*/[|BaseRENAME|] { } +// type T = { } +// enum E { } +// namespace N { } +// // --- (line: 11) skipped --- // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 4) skipped --- // set e(v) {} // } @@ -110,10 +109,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 5) skipped --- // } // interface I1 extends Base { } @@ -126,10 +123,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 6) skipped --- // interface I1 extends Base { } // type T = { } @@ -143,10 +138,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 7) skipped --- // type T = { } // enum E { } @@ -159,10 +152,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 8) skipped --- // enum E { } // namespace N { } @@ -174,10 +165,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 9) skipped --- // namespace N { } // module M { } @@ -188,10 +177,8 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 10) skipped --- // module M { } // function fn() {} @@ -201,12 +188,10 @@ - // === findRenameLocations === // === /renameDeclarationKeywords.ts === - // --- (line: 11) skipped --- // function fn() {} // var x; // let y; -// const /*RENAME*/[|zRENAME|] = 1; +// const /*RENAME*/[|zRENAME|] = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff new file mode 100644 index 0000000000..94ca1d35b4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff @@ -0,0 +1,216 @@ +--- old.renameDeclarationKeywords.baseline.jsonc ++++ new.renameDeclarationKeywords.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /renameDeclarationKeywords.ts === + // class Base {} + // interface Implemented1 {} +-// /*RENAME*/class [|C1RENAME|] extends Base implements Implemented1 { ++// class /*RENAME*/[|C1RENAME|] extends Base implements Implemented1 { + // get e() { return 1; } + // set e(v) {} + // } +-// interface I1 extends Base { } +-// type T = { } +-// enum E { } +-// --- (line: 10) skipped --- ++// // --- (line: 7) skipped --- + + + +@@= skipped -15, +12 lines =@@ + // === /renameDeclarationKeywords.ts === + // class [|BaseRENAME|] {} + // interface Implemented1 {} +-// class C1 /*RENAME*/extends [|BaseRENAME|] implements Implemented1 { ++// class C1 extends /*RENAME*/[|BaseRENAME|] implements Implemented1 { + // get e() { return 1; } + // set e(v) {} + // } +@@= skipped -8, +8 lines =@@ + // type T = { } + // enum E { } + // namespace N { } +-// --- (line: 11) skipped --- ++// // --- (line: 11) skipped --- + + + +@@= skipped -8, +8 lines =@@ + // === /renameDeclarationKeywords.ts === + // class Base {} + // interface [|Implemented1RENAME|] {} +-// class C1 extends Base /*RENAME*/implements [|Implemented1RENAME|] { +-// get e() { return 1; } +-// set e(v) {} +-// } +-// --- (line: 7) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class Base {} +-// interface Implemented1 {} +-// class C1 extends Base implements Implemented1 { +-// /*RENAME*/get [|eRENAME|]() { return 1; } +-// set [|eRENAME|](v) {} +-// } +-// interface I1 extends Base { } +-// type T = { } +-// --- (line: 9) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class Base {} +-// interface Implemented1 {} +-// class C1 extends Base implements Implemented1 { +-// get [|eRENAME|]() { return 1; } +-// /*RENAME*/set [|eRENAME|](v) {} +-// } +-// interface I1 extends Base { } +-// type T = { } +-// --- (line: 9) skipped --- ++// class C1 extends Base implements /*RENAME*/[|Implemented1RENAME|] { ++// get e() { return 1; } ++// set e(v) {} ++// } ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 extends Base implements Implemented1 { ++// /*RENAME*/get e() { return 1; } ++// set e(v) {} ++// } ++// interface I1 extends Base { } ++// // --- (line: 8) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 extends Base implements Implemented1 { ++// get e() { return 1; } ++// /*RENAME*/set e(v) {} ++// } ++// interface I1 extends Base { } ++// type T = { } ++// // --- (line: 9) skipped --- + + + +@@= skipped -42, +41 lines =@@ + // get e() { return 1; } + // set e(v) {} + // } +-// /*RENAME*/interface [|I1RENAME|] extends Base { } ++// interface /*RENAME*/[|I1RENAME|] extends Base { } + // type T = { } + // enum E { } + // namespace N { } +-// --- (line: 11) skipped --- ++// // --- (line: 11) skipped --- + + + +@@= skipped -16, +16 lines =@@ + // get e() { return 1; } + // set e(v) {} + // } +-// interface I1 /*RENAME*/extends [|BaseRENAME|] { } ++// interface I1 extends /*RENAME*/[|BaseRENAME|] { } + // type T = { } + // enum E { } + // namespace N { } +-// --- (line: 11) skipped --- ++// // --- (line: 11) skipped --- + + + +@@= skipped -14, +14 lines =@@ + // set e(v) {} + // } + // interface I1 extends Base { } +-// /*RENAME*/type [|TRENAME|] = { } ++// type /*RENAME*/[|TRENAME|] = { } + // enum E { } + // namespace N { } + // module M { } +-// --- (line: 12) skipped --- ++// // --- (line: 12) skipped --- + + + +@@= skipped -14, +14 lines =@@ + // } + // interface I1 extends Base { } + // type T = { } +-// /*RENAME*/enum [|ERENAME|] { } ++// enum /*RENAME*/[|ERENAME|] { } + // namespace N { } + // module M { } + // function fn() {} +-// --- (line: 13) skipped --- ++// // --- (line: 13) skipped --- + + + +@@= skipped -14, +14 lines =@@ + // interface I1 extends Base { } + // type T = { } + // enum E { } +-// /*RENAME*/namespace [|NRENAME|] { } ++// namespace /*RENAME*/[|NRENAME|] { } + // module M { } + // function fn() {} + // var x; +@@= skipped -15, +15 lines =@@ + // type T = { } + // enum E { } + // namespace N { } +-// /*RENAME*/module [|MRENAME|] { } ++// module /*RENAME*/[|MRENAME|] { } + // function fn() {} + // var x; + // let y; +@@= skipped -14, +14 lines =@@ + // enum E { } + // namespace N { } + // module M { } +-// /*RENAME*/function [|fnRENAME|]() {} ++// function /*RENAME*/[|fnRENAME|]() {} + // var x; + // let y; + // const z = 1; +@@= skipped -13, +13 lines =@@ + // namespace N { } + // module M { } + // function fn() {} +-// /*RENAME*/var [|xRENAME|]; ++// var /*RENAME*/[|xRENAME|]; + // let y; + // const z = 1; + +@@= skipped -12, +12 lines =@@ + // module M { } + // function fn() {} + // var x; +-// /*RENAME*/let [|yRENAME|]; ++// let /*RENAME*/[|yRENAME|]; + // const z = 1; + + +@@= skipped -11, +11 lines =@@ + // function fn() {} + // var x; + // let y; +-// /*RENAME*/const [|zRENAME|] = 1; ++// const /*RENAME*/[|zRENAME|] = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc similarity index 78% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc index 401eb0406f..86263038d3 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc @@ -1,5 +1,4 @@ // === findRenameLocations === // === /file1.ts === - // /*RENAME*/var test = "foo"; -// console.log(test); +// console.log(test); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff new file mode 100644 index 0000000000..5450f8878d --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff @@ -0,0 +1,11 @@ +--- old.renameDefaultLibDontWork.baseline.jsonc ++++ new.renameDefaultLibDontWork.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInComments: true +- + // === /file1.ts === +-// var /*RENAME*/[|testRENAME|] = "foo"; +-// console.log([|testRENAME|]); ++// /*RENAME*/var test = "foo"; ++// console.log(test); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc similarity index 89% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc index 44420f1298..1e5ed18275 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignment.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameDestructuringAssignment.ts === - // interface I { // /*RENAME*/[|xRENAME|]: number; // } @@ -10,13 +9,11 @@ - // === findRenameLocations === // === /renameDestructuringAssignment.ts === - // interface I { // [|xRENAME|]: number; // } // var a: I; // var x; -// ({ /*RENAME*/[|xRENAME|]: x } = a); +// ({ /*RENAME*/[|xRENAME|]: x } = a); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc new file mode 100644 index 0000000000..ec8ea7dca7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc @@ -0,0 +1,43 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[], p1: number, property1: number; +// [{ [|property1RENAME|]: p1 }] = elems; +// [{ [|property1RENAME|] }] = elems; + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// interface I { +// property1: number; +// property2: string; +// } +// var elems: I[], p1: number, property1: number; +// /*RENAME*/[{ property1: p1 }] = elems; +// [{ property1 }] = elems; + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// interface I { +// property1: number; +// property2: string; +// } +// var elems: I[], p1: number, /*RENAME*/[|property1RENAME|]: number; +// [{ property1: p1 }] = elems; +// [{ [|property1RENAME|] }] = elems; + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +// --- (line: 3) skipped --- +// } +// var elems: I[], p1: number, property1: number; +// [{ property1: p1 }] = elems; +// /*RENAME*/[{ property1 }] = elems; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff new file mode 100644 index 0000000000..b4177576ff --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff @@ -0,0 +1,47 @@ +--- old.renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc ++++ new.renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc +@@= skipped -5, +5 lines =@@ + // } + // var elems: I[], p1: number, property1: number; + // [{ [|property1RENAME|]: p1 }] = elems; +-// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; ++// [{ [|property1RENAME|] }] = elems; + + + + // === findRenameLocations === + // === /renameDestructuringAssignmentNestedInArrayLiteral.ts === + // interface I { +-// [|property1RENAME|]: number; ++// property1: number; + // property2: string; + // } + // var elems: I[], p1: number, property1: number; +-// [{ /*RENAME*/[|property1RENAME|]: p1 }] = elems; +-// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; ++// /*RENAME*/[{ property1: p1 }] = elems; ++// [{ property1 }] = elems; + + + +@@= skipped -24, +24 lines =@@ + // } + // var elems: I[], p1: number, /*RENAME*/[|property1RENAME|]: number; + // [{ property1: p1 }] = elems; +-// [{ /*START PREFIX*/property1: [|property1RENAME|] }] = elems; ++// [{ [|property1RENAME|] }] = elems; + + + + // === findRenameLocations === + // === /renameDestructuringAssignmentNestedInArrayLiteral.ts === +-// interface I { +-// property1: number; +-// property2: string; ++// --- (line: 3) skipped --- + // } +-// var elems: I[], p1: number, [|property1RENAME|]: number; ++// var elems: I[], p1: number, property1: number; + // [{ property1: p1 }] = elems; +-// [{ /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] }] = elems; ++// /*RENAME*/[{ property1 }] = elems; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc new file mode 100644 index 0000000000..9234fcc1fb --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc @@ -0,0 +1,75 @@ +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// interface MultiRobot { +// name: string; +// skills: { +// /*RENAME*/[|primaryRENAME|]: string; +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], primary: string; +// for ({ skills: { [|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// --- (line: 5) skipped --- +// }; +// } +// let multiRobots: MultiRobot[], primary: string; +// for (/*RENAME*/{ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { primary, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// --- (line: 4) skipped --- +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], /*RENAME*/[|primaryRENAME|]: string; +// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { +// console.log([|primaryRENAME|]); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// --- (line: 8) skipped --- +// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (/*RENAME*/{ skills: { primary, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringAssignmentNestedInForOf2.ts === +// --- (line: 4) skipped --- +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; +// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { +// console.log(/*RENAME*/[|primaryRENAME|]); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff new file mode 100644 index 0000000000..e1ba9d2266 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff @@ -0,0 +1,101 @@ +--- old.renameDestructuringAssignmentNestedInForOf2.baseline.jsonc ++++ new.renameDestructuringAssignmentNestedInForOf2.baseline.jsonc +@@= skipped -10, +10 lines =@@ + // for ({ skills: { [|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { + // console.log(primaryA); + // } +-// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { ++// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { + // console.log(primary); + // } + +@@= skipped -8, +8 lines =@@ + + // === findRenameLocations === + // === /renameDestructuringAssignmentNestedInForOf2.ts === +-// interface MultiRobot { +-// name: string; +-// skills: { +-// [|primaryRENAME|]: string; +-// secondary: string; ++// --- (line: 5) skipped --- + // }; + // } + // let multiRobots: MultiRobot[], primary: string; +-// for ({ skills: { /*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { ++// for (/*RENAME*/{ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { + // console.log(primaryA); + // } +-// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { ++// for ({ skills: { primary, secondary } } of multiRobots) { + // console.log(primary); + // } + +@@= skipped -27, +23 lines =@@ + // for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { + // console.log(primaryA); + // } +-// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { +-// console.log([|primaryRENAME|]); +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringAssignmentNestedInForOf2.ts === +-// --- (line: 4) skipped --- +-// secondary: string; +-// }; +-// } +-// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; +-// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +-// console.log(primaryA); +-// } +-// for ({ skills: { /*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { +-// console.log([|primaryRENAME|]); +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringAssignmentNestedInForOf2.ts === +-// --- (line: 4) skipped --- +-// secondary: string; +-// }; +-// } +-// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; +-// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +-// console.log(primaryA); +-// } +-// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { ++// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { ++// console.log([|primaryRENAME|]); ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringAssignmentNestedInForOf2.ts === ++// --- (line: 8) skipped --- ++// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { ++// console.log(primaryA); ++// } ++// for (/*RENAME*/{ skills: { primary, secondary } } of multiRobots) { ++// console.log(primary); ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringAssignmentNestedInForOf2.ts === ++// --- (line: 4) skipped --- ++// secondary: string; ++// }; ++// } ++// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; ++// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { ++// console.log(primaryA); ++// } ++// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { + // console.log(/*RENAME*/[|primaryRENAME|]); + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc new file mode 100644 index 0000000000..d959175de7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc @@ -0,0 +1,72 @@ +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// class A { +// /*RENAME*/[|fooRENAME|]: string; +// } +// class B { +// syntax1(a: A): void { +// let { [|fooRENAME|] } = a; +// } +// syntax2(a: A): void { +// let { [|fooRENAME|]: foo } = a; +// } +// syntax11(a: A): void { +// let { [|fooRENAME|] } = a; +// foo = "newString"; +// } +// } + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// --- (line: 5) skipped --- +// let { foo } = a; +// } +// syntax2(a: A): void { +// /*RENAME*/let { foo: foo } = a; +// } +// syntax11(a: A): void { +// let { foo } = a; +// // --- (line: 13) skipped --- + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// class A { +// foo: string; +// } +// class B { +// syntax1(a: A): void { +// /*RENAME*/let { foo } = a; +// } +// syntax2(a: A): void { +// let { foo: foo } = a; +// // --- (line: 10) skipped --- + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// --- (line: 8) skipped --- +// let { foo: foo } = a; +// } +// syntax11(a: A): void { +// /*RENAME*/let { foo } = a; +// foo = "newString"; +// } +// } + + + +// === findRenameLocations === +// === /renameDestructuringClassProperty.ts === +// --- (line: 8) skipped --- +// let { foo: foo } = a; +// } +// syntax11(a: A): void { +// let { [|fooRENAME|] } = a; +// /*RENAME*/[|fooRENAME|] = "newString"; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff new file mode 100644 index 0000000000..416c1dda31 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff @@ -0,0 +1,79 @@ +--- old.renameDestructuringClassProperty.baseline.jsonc ++++ new.renameDestructuringClassProperty.baseline.jsonc +@@= skipped -4, +4 lines =@@ + // } + // class B { + // syntax1(a: A): void { +-// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; ++// let { [|fooRENAME|] } = a; + // } + // syntax2(a: A): void { + // let { [|fooRENAME|]: foo } = a; + // } + // syntax11(a: A): void { +-// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; ++// let { [|fooRENAME|] } = a; + // foo = "newString"; + // } + // } +@@= skipped -15, +15 lines =@@ + + // === findRenameLocations === + // === /renameDestructuringClassProperty.ts === +-// class A { +-// [|fooRENAME|]: string; +-// } +-// class B { +-// syntax1(a: A): void { +-// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; ++// --- (line: 5) skipped --- ++// let { foo } = a; + // } + // syntax2(a: A): void { +-// let { /*RENAME*/[|fooRENAME|]: foo } = a; ++// /*RENAME*/let { foo: foo } = a; + // } + // syntax11(a: A): void { +-// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; +-// foo = "newString"; +-// } +-// } ++// let { foo } = a; ++// // --- (line: 13) skipped --- + + + +@@= skipped -25, +19 lines =@@ + // } + // class B { + // syntax1(a: A): void { +-// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; ++// /*RENAME*/let { foo } = a; + // } + // syntax2(a: A): void { + // let { foo: foo } = a; +-// --- (line: 10) skipped --- ++// // --- (line: 10) skipped --- + + + +@@= skipped -14, +14 lines =@@ + // let { foo: foo } = a; + // } + // syntax11(a: A): void { +-// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; +-// [|fooRENAME|] = "newString"; ++// /*RENAME*/let { foo } = a; ++// foo = "newString"; + // } + // } + +@@= skipped -13, +13 lines =@@ + // let { foo: foo } = a; + // } + // syntax11(a: A): void { +-// let { /*START PREFIX*/foo: [|fooRENAME|] } = a; ++// let { [|fooRENAME|] } = a; + // /*RENAME*/[|fooRENAME|] = "newString"; + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc new file mode 100644 index 0000000000..d60835eb62 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc @@ -0,0 +1,52 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[]; +// +// var p2: number, property1: number; +// for (let { [|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +// property1 = p2; +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// --- (line: 4) skipped --- +// var elems: I[]; +// +// var p2: number, property1: number; +// for (/*RENAME*/let { property1: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (let { property1 } = elems[0]; p2 < 100; p2++) { +// property1 = p2; +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// --- (line: 6) skipped --- +// var p2: number, property1: number; +// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (/*RENAME*/let { property1 } = elems[0]; p2 < 100; p2++) { +// property1 = p2; +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInFor.ts === +// --- (line: 6) skipped --- +// var p2: number, property1: number; +// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { +// } +// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +// /*RENAME*/[|property1RENAME|] = p2; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff new file mode 100644 index 0000000000..a64d06f8d2 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff @@ -0,0 +1,79 @@ +--- old.renameDestructuringDeclarationInFor.baseline.jsonc ++++ new.renameDestructuringDeclarationInFor.baseline.jsonc +@@= skipped -8, +8 lines =@@ + // var p2: number, property1: number; + // for (let { [|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { + // } +-// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { ++// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { + // property1 = p2; + // } + +@@= skipped -8, +8 lines =@@ + + // === findRenameLocations === + // === /renameDestructuringDeclarationInFor.ts === +-// interface I { +-// [|property1RENAME|]: number; +-// property2: string; +-// } ++// --- (line: 4) skipped --- + // var elems: I[]; + // + // var p2: number, property1: number; +-// for (let { /*RENAME*/[|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { +-// } +-// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { +-// property1 = p2; +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringDeclarationInFor.ts === +-// --- (line: 6) skipped --- +-// var p2: number, property1: number; +-// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { +-// } +-// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +-// [|property1RENAME|] = p2; +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringDeclarationInFor.ts === +-// --- (line: 6) skipped --- +-// var p2: number, property1: number; +-// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { +-// } +-// for (let { /*START PREFIX*/property1: [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { ++// for (/*RENAME*/let { property1: p2 } = elems[0]; p2 < 100; p2++) { ++// } ++// for (let { property1 } = elems[0]; p2 < 100; p2++) { ++// property1 = p2; ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringDeclarationInFor.ts === ++// --- (line: 6) skipped --- ++// var p2: number, property1: number; ++// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { ++// } ++// for (/*RENAME*/let { property1 } = elems[0]; p2 < 100; p2++) { ++// property1 = p2; ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringDeclarationInFor.ts === ++// --- (line: 6) skipped --- ++// var p2: number, property1: number; ++// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { ++// } ++// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { + // /*RENAME*/[|property1RENAME|] = p2; + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc new file mode 100644 index 0000000000..4a67da2e55 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc @@ -0,0 +1,52 @@ +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// interface I { +// /*RENAME*/[|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[]; +// +// for (let { [|property1RENAME|] } of elems) { +// property1++; +// } +// for (let { [|property1RENAME|]: p2 } of elems) { +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// --- (line: 6) skipped --- +// for (let { property1 } of elems) { +// property1++; +// } +// for (/*RENAME*/let { property1: p2 } of elems) { +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// --- (line: 3) skipped --- +// } +// var elems: I[]; +// +// for (/*RENAME*/let { property1 } of elems) { +// property1++; +// } +// for (let { property1: p2 } of elems) { +// } + + + +// === findRenameLocations === +// === /renameDestructuringDeclarationInForOf.ts === +// --- (line: 3) skipped --- +// } +// var elems: I[]; +// +// for (let { [|property1RENAME|] } of elems) { +// /*RENAME*/[|property1RENAME|]++; +// } +// for (let { property1: p2 } of elems) { +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff new file mode 100644 index 0000000000..1ecbdb1126 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff @@ -0,0 +1,51 @@ +--- old.renameDestructuringDeclarationInForOf.baseline.jsonc ++++ new.renameDestructuringDeclarationInForOf.baseline.jsonc +@@= skipped -5, +5 lines =@@ + // } + // var elems: I[]; + // +-// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { ++// for (let { [|property1RENAME|] } of elems) { + // property1++; + // } + // for (let { [|property1RENAME|]: p2 } of elems) { +@@= skipped -10, +10 lines =@@ + + // === findRenameLocations === + // === /renameDestructuringDeclarationInForOf.ts === +-// interface I { +-// [|property1RENAME|]: number; +-// property2: string; +-// } +-// var elems: I[]; +-// +-// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { ++// --- (line: 6) skipped --- ++// for (let { property1 } of elems) { + // property1++; + // } +-// for (let { /*RENAME*/[|property1RENAME|]: p2 } of elems) { ++// for (/*RENAME*/let { property1: p2 } of elems) { + // } + + +@@= skipped -20, +15 lines =@@ + // } + // var elems: I[]; + // +-// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } of elems) { +-// [|property1RENAME|]++; ++// for (/*RENAME*/let { property1 } of elems) { ++// property1++; + // } + // for (let { property1: p2 } of elems) { + // } +@@= skipped -14, +14 lines =@@ + // } + // var elems: I[]; + // +-// for (let { /*START PREFIX*/property1: [|property1RENAME|] } of elems) { ++// for (let { [|property1RENAME|] } of elems) { + // /*RENAME*/[|property1RENAME|]++; + // } + // for (let { property1: p2 } of elems) { \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc similarity index 58% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc index edd4f72fd9..f3ac053176 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc @@ -1,26 +1,21 @@ // === findRenameLocations === // === /renameDestructuringFunctionParameter.ts === - -// /*RENAME*/function f({a}: {a}) { -// f({a}); +// function f({a}: {/*RENAME*/[|aRENAME|]}: {[|aRENAME|]}) { +// f({[|aRENAME|]}); // } - // === findRenameLocations === // === /renameDestructuringFunctionParameter.ts === - -// /*RENAME*/function f({a}: {a}) { -// f({a}); +// function f({[|aRENAME|]}: {a}) { +// f({/*RENAME*/[|aRENAME|]}); // } - // === findRenameLocations === // === /renameDestructuringFunctionParameter.ts === - -// /*RENAME*/function f({a}: {a}) { +// function f(/*RENAME*/{a}: {a}) { // f({a}); -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff new file mode 100644 index 0000000000..f1852764fa --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff @@ -0,0 +1,42 @@ +--- old.renameDestructuringFunctionParameter.baseline.jsonc ++++ new.renameDestructuringFunctionParameter.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameDestructuringFunctionParameter.ts === +-// function f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}: {a}) { +-// f({/*START PREFIX*/a: [|aRENAME|]}); +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringFunctionParameter.ts === +-// function f({/*START PREFIX*/a: [|aRENAME|]}: {a}) { +-// f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}); +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringFunctionParameter.ts === +-// function f({[|aRENAME|]: a/*END SUFFIX*/}: {/*RENAME*/[|aRENAME|]}) { +-// f({[|aRENAME|]: a/*END SUFFIX*/}); ++// function f({a}: {/*RENAME*/[|aRENAME|]}: {[|aRENAME|]}) { ++// f({[|aRENAME|]}); ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringFunctionParameter.ts === ++// function f({[|aRENAME|]}: {a}) { ++// f({/*RENAME*/[|aRENAME|]}); ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringFunctionParameter.ts === ++// function f(/*RENAME*/{a}: {a}) { ++// f({a}); + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc new file mode 100644 index 0000000000..d6522092d0 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc @@ -0,0 +1,55 @@ +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// interface MultiRobot { +// name: string; +// skills: { +// /*RENAME*/[|primaryRENAME|]: string; +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[]; +// for (let { skills: {[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// --- (line: 5) skipped --- +// }; +// } +// let multiRobots: MultiRobot[]; +// for (/*RENAME*/let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (let { skills: {primary, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// --- (line: 8) skipped --- +// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (/*RENAME*/let { skills: {primary, secondary } } of multiRobots) { +// console.log(primary); +// } + + + +// === findRenameLocations === +// === /renameDestructuringNestedBindingElement.ts === +// --- (line: 8) skipped --- +// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +// console.log(primaryA); +// } +// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { +// console.log(/*RENAME*/[|primaryRENAME|]); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff new file mode 100644 index 0000000000..d3b08a72e7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff @@ -0,0 +1,82 @@ +--- old.renameDestructuringNestedBindingElement.baseline.jsonc ++++ new.renameDestructuringNestedBindingElement.baseline.jsonc +@@= skipped -10, +10 lines =@@ + // for (let { skills: {[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { + // console.log(primaryA); + // } +-// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { ++// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { + // console.log(primary); + // } + +@@= skipped -8, +8 lines =@@ + + // === findRenameLocations === + // === /renameDestructuringNestedBindingElement.ts === +-// interface MultiRobot { +-// name: string; +-// skills: { +-// [|primaryRENAME|]: string; +-// secondary: string; ++// --- (line: 5) skipped --- + // }; + // } + // let multiRobots: MultiRobot[]; +-// for (let { skills: {/*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { +-// console.log(primaryA); +-// } +-// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { +-// console.log(primary); +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringNestedBindingElement.ts === +-// --- (line: 8) skipped --- +-// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +-// console.log(primaryA); +-// } +-// for (let { skills: {/*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { +-// console.log([|primaryRENAME|]); +-// } +- +- +- +-// === findRenameLocations === +-// === /renameDestructuringNestedBindingElement.ts === +-// --- (line: 8) skipped --- +-// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +-// console.log(primaryA); +-// } +-// for (let { skills: {/*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { ++// for (/*RENAME*/let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { ++// console.log(primaryA); ++// } ++// for (let { skills: {primary, secondary } } of multiRobots) { ++// console.log(primary); ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringNestedBindingElement.ts === ++// --- (line: 8) skipped --- ++// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { ++// console.log(primaryA); ++// } ++// for (/*RENAME*/let { skills: {primary, secondary } } of multiRobots) { ++// console.log(primary); ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameDestructuringNestedBindingElement.ts === ++// --- (line: 8) skipped --- ++// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { ++// console.log(primaryA); ++// } ++// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { + // console.log(/*RENAME*/[|primaryRENAME|]); + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc similarity index 76% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc index 292ef092c5..da18660ebe 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportCrash.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /Foo.js === - // let [|aRENAME|]; // module.exports = /*RENAME*/[|aRENAME|]; -// exports["foo"] = [|aRENAME|]; +// exports["foo"] = [|aRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc similarity index 63% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc index 3a1676e6cb..8e304e7e53 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc @@ -1,5 +1,4 @@ // === findRenameLocations === // === /a.ts === - // const name = {}; -// export { name as name/*RENAME*/ }; +// export { name as name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff new file mode 100644 index 0000000000..39a04697e3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameExportSpecifier.baseline.jsonc ++++ new.renameExportSpecifier.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: false +- + // === /a.ts === + // const name = {}; +-// export { name as [|nameRENAME|]/*RENAME*/ }; +- +-// === /b.ts === +-// import { [|nameRENAME|] } from './a'; +-// const x = [|nameRENAME|].toString(); ++// export { name as name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc similarity index 71% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc index 49da7e7525..b2275861ad 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc @@ -1,5 +1,4 @@ // === findRenameLocations === // === /a.ts === - // const [|nameRENAME|] = {}; -// export { name/*RENAME*/ }; +// export { name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff new file mode 100644 index 0000000000..fa01117945 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameExportSpecifier2.baseline.jsonc ++++ new.renameExportSpecifier2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: false +- + // === /a.ts === + // const [|nameRENAME|] = {}; +-// export { [|nameRENAME|]/*RENAME*/ }; +- +-// === /b.ts === +-// import { [|nameRENAME|] } from './a'; +-// const x = [|nameRENAME|].toString(); ++// export { name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc similarity index 81% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc index 7b556fb8a6..ab37f50e22 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /a.ts === - // interface Foo { // property: /*RENAME*/"foo"; // } // /** // * @type {{ property: "foo"}} -// // --- (line: 6) skipped --- +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff new file mode 100644 index 0000000000..3200f0d3c8 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForStringLiteral.baseline.jsonc.diff @@ -0,0 +1,16 @@ +--- old.renameForStringLiteral.baseline.jsonc ++++ new.renameForStringLiteral.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === + // interface Foo { +-// property: /*RENAME*/"[|fooRENAME|]"; ++// property: /*RENAME*/"foo"; + // } + // /** + // * @type {{ property: "foo"}} +-// */ +-// const obj: Foo = { +-// property: "[|fooRENAME|]", +-// } ++// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc similarity index 97% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc index 21df074896..7ebfb20f42 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameFunctionParameter1.ts === - // function Foo() { // /** // * @param {number} p @@ -8,4 +7,4 @@ // this.foo = function foo(p/*RENAME*/[|pRENAME|]) { // return [|pRENAME|]; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff new file mode 100644 index 0000000000..d636e6e0c2 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameFunctionParameter1.baseline.jsonc ++++ new.renameFunctionParameter1.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /renameFunctionParameter1.ts === + // function Foo() { + // /** +-// * @param {number} [|pRENAME|] ++// * @param {number} p + // */ +-// this.foo = function foo([|pRENAME|]/*RENAME*/) { ++// this.foo = function foo(p/*RENAME*/[|pRENAME|]) { + // return [|pRENAME|]; + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc similarity index 96% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc index e21a2c619c..1ea4c434a9 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /renameFunctionParameter2.ts === - // /** // * @param {number} p // */ // const foo = function foo(p/*RENAME*/[|pRENAME|]) { // return [|pRENAME|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff new file mode 100644 index 0000000000..c30c6fadd5 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff @@ -0,0 +1,13 @@ +--- old.renameFunctionParameter2.baseline.jsonc ++++ new.renameFunctionParameter2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameFunctionParameter2.ts === + // /** +-// * @param {number} [|pRENAME|] ++// * @param {number} p + // */ +-// const foo = function foo([|pRENAME|]/*RENAME*/) { ++// const foo = function foo(p/*RENAME*/[|pRENAME|]) { + // return [|pRENAME|]; + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc similarity index 77% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc index 55c2ecc84f..cdf0daaef1 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /renameImportAndExport.ts === - // /*RENAME*/import a from "module"; // export { a }; - // === findRenameLocations === // === /renameImportAndExport.ts === - -// /*RENAME*/import a from "module"; -// export { a }; +// import a from "module"; +// /*RENAME*/export { a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff new file mode 100644 index 0000000000..c662701132 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.renameImportAndExport.baseline.jsonc ++++ new.renameImportAndExport.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameImportAndExport.ts === +-// import /*RENAME*/[|aRENAME|] from "module"; +-// export { [|aRENAME|] as a/*END SUFFIX*/ }; ++// /*RENAME*/import a from "module"; ++// export { a }; + + + + // === findRenameLocations === + // === /renameImportAndExport.ts === + // import a from "module"; +-// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; ++// /*RENAME*/export { a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc new file mode 100644 index 0000000000..7f3e3bdf1a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc @@ -0,0 +1,17 @@ +// === findRenameLocations === +// === /a.ts === +// /*RENAME*/export var a; + + + +// === findRenameLocations === +// === /b.ts === +// /*RENAME*/import { a } from './a'; +// export { a }; + + + +// === findRenameLocations === +// === /b.ts === +// import { a } from './a'; +// /*RENAME*/export { a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff new file mode 100644 index 0000000000..8a26e045bc --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff @@ -0,0 +1,28 @@ +--- old.renameImportAndExportInDiffFiles.baseline.jsonc ++++ new.renameImportAndExportInDiffFiles.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === +-// export var /*RENAME*/[|aRENAME|]; +- +-// === /b.ts === +-// import { [|aRENAME|] } from './a'; +-// export { [|aRENAME|] as a/*END SUFFIX*/ }; ++// /*RENAME*/export var a; + + + + // === findRenameLocations === + // === /b.ts === +-// import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; +-// export { [|aRENAME|] as a/*END SUFFIX*/ }; ++// /*RENAME*/import { a } from './a'; ++// export { a }; + + + + // === findRenameLocations === + // === /b.ts === + // import { a } from './a'; +-// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; ++// /*RENAME*/export { a }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc similarity index 72% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc index c5c9238f13..fd4cc5dcbb 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /renameImportAndShorthand.ts === - // /*RENAME*/import foo from 'bar'; // const bar = { foo }; - // === findRenameLocations === // === /renameImportAndShorthand.ts === - -// /*RENAME*/import foo from 'bar'; -// const bar = { foo }; +// import [|fooRENAME|] from 'bar'; +// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff new file mode 100644 index 0000000000..909eb7fdd7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.renameImportAndShorthand.baseline.jsonc ++++ new.renameImportAndShorthand.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameImportAndShorthand.ts === +-// import /*RENAME*/[|fooRENAME|] from 'bar'; +-// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; ++// /*RENAME*/import foo from 'bar'; ++// const bar = { foo }; + + + + // === findRenameLocations === + // === /renameImportAndShorthand.ts === + // import [|fooRENAME|] from 'bar'; +-// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; ++// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc similarity index 73% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc index 550de3d42f..78b7811d4c 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /renameImportNamespaceAndShorthand.ts === - // /*RENAME*/import * as foo from 'bar'; // const bar = { foo }; - // === findRenameLocations === // === /renameImportNamespaceAndShorthand.ts === - -// /*RENAME*/import * as foo from 'bar'; -// const bar = { foo }; +// import * as [|fooRENAME|] from 'bar'; +// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff new file mode 100644 index 0000000000..10d4fdba50 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.renameImportNamespaceAndShorthand.baseline.jsonc ++++ new.renameImportNamespaceAndShorthand.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameImportNamespaceAndShorthand.ts === +-// import * as /*RENAME*/[|fooRENAME|] from 'bar'; +-// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; ++// /*RENAME*/import * as foo from 'bar'; ++// const bar = { foo }; + + + + // === findRenameLocations === + // === /renameImportNamespaceAndShorthand.ts === + // import * as [|fooRENAME|] from 'bar'; +-// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; ++// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc similarity index 63% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc index d152e6593f..c3542271ec 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameImportOfExportEquals.ts === - // declare namespace N { // export var /*RENAME*/[|xRENAME|]: number; // } @@ -8,7 +7,6 @@ // export = N; // // --- (line: 6) skipped --- - // --- (line: 9) skipped --- // } // declare module "b" { @@ -18,27 +16,27 @@ - // === findRenameLocations === // === /renameImportOfExportEquals.ts === - -// /*RENAME*/declare namespace N { +// declare namespace N { // export var x: number; // } // declare module "mod" { -// // --- (line: 5) skipped --- - +// /*RENAME*/export = N; +// } +// declare module "a" { +// import * as N from "mod"; +// // --- (line: 9) skipped --- // === findRenameLocations === // === /renameImportOfExportEquals.ts === - // --- (line: 4) skipped --- // export = N; // } // declare module "a" { -// import * as /*RENAME*/[|NRENAME|] from "mod"; +// /*RENAME*/import * as N from "mod"; // export { N }; // Renaming N here would rename // } // declare module "b" { @@ -46,69 +44,67 @@ - // === findRenameLocations === // === /renameImportOfExportEquals.ts === - -// /*RENAME*/declare namespace N { -// export var x: number; +// --- (line: 5) skipped --- +// } +// declare module "a" { +// import * as N from "mod"; +// /*RENAME*/export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.x; // } -// declare module "mod" { -// // --- (line: 5) skipped --- - // === findRenameLocations === // === /renameImportOfExportEquals.ts === - // --- (line: 8) skipped --- // export { N }; // Renaming N here would rename // } // declare module "b" { -// import { /*RENAME*/[|NRENAME|] } from "a"; -// export const y: typeof [|NRENAME|].x; +// /*RENAME*/import { N } from "a"; +// export const y: typeof N.x; // } - // === findRenameLocations === // === /renameImportOfExportEquals.ts === - -// /*RENAME*/declare namespace N { -// export var x: number; +// --- (line: 8) skipped --- +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// import { [|NRENAME|] } from "a"; +// export const y: typeof /*RENAME*/[|NRENAME|].x; // } -// declare module "mod" { -// // --- (line: 5) skipped --- - // === findRenameLocations === // === /renameImportOfExportEquals.ts === - -// declare namespace /*RENAME*/[|NRENAME|] { +// /*RENAME*/declare namespace N { // export var x: number; // } // declare module "mod" { -// export = [|NRENAME|]; -// } -// declare module "a" { -// import * as [|NRENAME|] from "mod"; -// export { N }; // Renaming N here would rename -// } -// declare module "b" { -// // --- (line: 12) skipped --- - +// // --- (line: 5) skipped --- // === findRenameLocations === // === /renameImportOfExportEquals.ts === - -// /*RENAME*/declare namespace N { -// export var x: number; +// declare namespace N { +// export var [|xRENAME|]: number; // } // declare module "mod" { -// // --- (line: 5) skipped --- +// export = N; +// // --- (line: 6) skipped --- + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N./*RENAME*/[|xRENAME|]; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff new file mode 100644 index 0000000000..748847e13a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff @@ -0,0 +1,161 @@ +--- old.renameImportOfExportEquals.baseline.jsonc ++++ new.renameImportOfExportEquals.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameImportOfExportEquals.ts === +-// declare namespace /*RENAME*/[|NRENAME|] { +-// export var x: number; ++// declare namespace N { ++// export var /*RENAME*/[|xRENAME|]: number; + // } + // declare module "mod" { +-// export = [|NRENAME|]; +-// } +-// declare module "a" { +-// import * as [|NRENAME|] from "mod"; +-// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename ++// export = N; ++// // --- (line: 6) skipped --- ++ ++// --- (line: 9) skipped --- + // } + // declare module "b" { + // import { N } from "a"; +-// export const y: typeof N.x; ++// export const y: typeof N.[|xRENAME|]; + // } + + + + // === findRenameLocations === + // === /renameImportOfExportEquals.ts === +-// declare namespace [|NRENAME|] { ++// declare namespace N { + // export var x: number; + // } + // declare module "mod" { +-// export = /*RENAME*/[|NRENAME|]; ++// /*RENAME*/export = N; + // } + // declare module "a" { +-// import * as [|NRENAME|] from "mod"; +-// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename +-// } +-// declare module "b" { +-// import { N } from "a"; +-// export const y: typeof N.x; +-// } ++// import * as N from "mod"; ++// // --- (line: 9) skipped --- + + + +@@= skipped -41, +35 lines =@@ + // export = N; + // } + // declare module "a" { +-// import * as /*RENAME*/[|NRENAME|] from "mod"; +-// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename ++// /*RENAME*/import * as N from "mod"; ++// export { N }; // Renaming N here would rename + // } + // declare module "b" { +-// import { N } from "a"; +-// export const y: typeof N.x; +-// } ++// // --- (line: 12) skipped --- + + + +@@= skipped -16, +14 lines =@@ + // } + // declare module "a" { + // import * as N from "mod"; +-// export { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] }; // Renaming N here would rename ++// /*RENAME*/export { N }; // Renaming N here would rename ++// } ++// declare module "b" { ++// import { N } from "a"; ++// export const y: typeof N.x; ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameImportOfExportEquals.ts === ++// --- (line: 8) skipped --- ++// export { N }; // Renaming N here would rename ++// } ++// declare module "b" { ++// /*RENAME*/import { N } from "a"; ++// export const y: typeof N.x; ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameImportOfExportEquals.ts === ++// --- (line: 8) skipped --- ++// export { N }; // Renaming N here would rename + // } + // declare module "b" { + // import { [|NRENAME|] } from "a"; +-// export const y: typeof [|NRENAME|].x; +-// } +- +- +- +-// === findRenameLocations === +-// === /renameImportOfExportEquals.ts === +-// --- (line: 8) skipped --- +-// export { N }; // Renaming N here would rename +-// } +-// declare module "b" { +-// import { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] } from "a"; +-// export const y: typeof [|NRENAME|].x; +-// } +- +- +- +-// === findRenameLocations === +-// === /renameImportOfExportEquals.ts === +-// --- (line: 8) skipped --- +-// export { N }; // Renaming N here would rename +-// } +-// declare module "b" { +-// import { /*START PREFIX*/N as [|NRENAME|] } from "a"; + // export const y: typeof /*RENAME*/[|NRENAME|].x; + // } + +@@= skipped -35, +35 lines =@@ + + // === findRenameLocations === + // === /renameImportOfExportEquals.ts === +-// declare namespace N { +-// export var /*RENAME*/[|xRENAME|]: number; ++// /*RENAME*/declare namespace N { ++// export var x: number; + // } + // declare module "mod" { +-// export = N; +-// --- (line: 6) skipped --- +- +-// --- (line: 9) skipped --- +-// } +-// declare module "b" { +-// import { N } from "a"; +-// export const y: typeof N.[|xRENAME|]; +-// } ++// // --- (line: 5) skipped --- + + + +@@= skipped -23, +15 lines =@@ + // } + // declare module "mod" { + // export = N; +-// --- (line: 6) skipped --- ++// // --- (line: 6) skipped --- + + // --- (line: 9) skipped --- + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc similarity index 62% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc index df7e7c6868..f7ef54c164 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.ts === - // /*RENAME*/import e = require("mod4"); // e; // a = { e }; @@ -8,51 +7,41 @@ - // === findRenameLocations === // === /a.ts === - -// /*RENAME*/import e = require("mod4"); -// e; -// a = { e }; +// import [|eRENAME|] = require("mod4"); +// /*RENAME*/[|eRENAME|]; +// a = { [|eRENAME|] }; // export { e }; - // === findRenameLocations === // === /a.ts === - -// /*RENAME*/import e = require("mod4"); -// e; -// a = { e }; +// import [|eRENAME|] = require("mod4"); +// [|eRENAME|]; +// a = { /*RENAME*/[|eRENAME|] }; // export { e }; - // === findRenameLocations === // === /a.ts === - -// /*RENAME*/import e = require("mod4"); +// import e = require("mod4"); // e; // a = { e }; -// export { e }; - +// /*RENAME*/export { e }; // === findRenameLocations === // === /b.ts === - // /*RENAME*/import { e } from "./a"; // export { e }; - // === findRenameLocations === // === /b.ts === - -// /*RENAME*/import { e } from "./a"; -// export { e }; +// import { e } from "./a"; +// /*RENAME*/export { e }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff new file mode 100644 index 0000000000..a9aade0586 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff @@ -0,0 +1,65 @@ +--- old.renameImportRequire.baseline.jsonc ++++ new.renameImportRequire.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === +-// import /*RENAME*/[|eRENAME|] = require("mod4"); +-// [|eRENAME|]; +-// a = { /*START PREFIX*/e: [|eRENAME|] }; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// /*RENAME*/import e = require("mod4"); ++// e; ++// a = { e }; ++// export { e }; + + + +@@= skipped -10, +10 lines =@@ + // === /a.ts === + // import [|eRENAME|] = require("mod4"); + // /*RENAME*/[|eRENAME|]; +-// a = { /*START PREFIX*/e: [|eRENAME|] }; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// a = { [|eRENAME|] }; ++// export { e }; + + + +@@= skipped -9, +9 lines =@@ + // === /a.ts === + // import [|eRENAME|] = require("mod4"); + // [|eRENAME|]; +-// a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// a = { /*RENAME*/[|eRENAME|] }; ++// export { e }; + + + +@@= skipped -10, +10 lines =@@ + // import e = require("mod4"); + // e; + // a = { e }; +-// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; +- +-// === /b.ts === +-// import { [|eRENAME|] } from "./a"; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// /*RENAME*/export { e }; + + + + // === findRenameLocations === + // === /b.ts === +-// import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; +-// export { [|eRENAME|] as e/*END SUFFIX*/ }; ++// /*RENAME*/import { e } from "./a"; ++// export { e }; + + + + // === findRenameLocations === + // === /b.ts === + // import { e } from "./a"; +-// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; ++// /*RENAME*/export { e }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc similarity index 50% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc index b6d213a13f..0f25847ed6 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc @@ -1,4 +1,3 @@ // === findRenameLocations === // === /canada.ts === - -// export interface /*RENAME*/[|GingerRENAME|] {} +// export interface /*RENAME*/[|GingerRENAME|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc.diff new file mode 100644 index 0000000000..8cd0cedcf3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportSpecifierPropertyName.baseline.jsonc.diff @@ -0,0 +1,9 @@ +--- old.renameImportSpecifierPropertyName.baseline.jsonc ++++ new.renameImportSpecifierPropertyName.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /canada.ts === + // export interface /*RENAME*/[|GingerRENAME|] {} +- +-// === /dry.ts === +-// import { [|GingerRENAME|] as Ale } from './canada'; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc similarity index 60% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc index c28a20b58d..6caf06fe80 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc @@ -1,12 +1,12 @@ // === findRenameLocations === // === /referencesForGlobals_1.ts === - // /*RENAME*/var globalName = 0; - // === findRenameLocations === -// === /referencesForGlobals_2.ts === +// === /referencesForGlobals_1.ts === +// var [|globalNameRENAME|] = 0; -// /*RENAME*/var y = globalName; +// === /referencesForGlobals_2.ts === +// var y = /*RENAME*/[|globalNameRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff new file mode 100644 index 0000000000..87e1ccc79b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff @@ -0,0 +1,22 @@ +--- old.renameInConfiguredProject.baseline.jsonc ++++ new.renameInConfiguredProject.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInStrings: true +-// @findInComments: true +- + // === /referencesForGlobals_1.ts === +-// var /*RENAME*/[|globalNameRENAME|] = 0; +- +-// === /referencesForGlobals_2.ts === +-// var y = [|globalNameRENAME|]; ++// /*RENAME*/var globalName = 0; + + + + // === findRenameLocations === +-// @findInStrings: true +-// @findInComments: true +- + // === /referencesForGlobals_1.ts === + // var [|globalNameRENAME|] = 0; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc new file mode 100644 index 0000000000..5a3291ede7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties1.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /renameInheritedProperties1.ts === +// class class1 extends class1 { +// /*RENAME*/[|propNameRENAME|]: string; +// } +// +// var v: class1; +// v.[|propNameRENAME|]; + + + +// === findRenameLocations === +// === /renameInheritedProperties1.ts === +// class class1 extends class1 { +// [|propNameRENAME|]: string; +// } +// +// var v: class1; +// v./*RENAME*/[|propNameRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc new file mode 100644 index 0000000000..2fedcff7c5 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties2.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /renameInheritedProperties2.ts === +// class class1 extends class1 { +// /*RENAME*/[|doStuffRENAME|]() { } +// } +// +// var v: class1; +// v.[|doStuffRENAME|](); + + + +// === findRenameLocations === +// === /renameInheritedProperties2.ts === +// class class1 extends class1 { +// [|doStuffRENAME|]() { } +// } +// +// var v: class1; +// v./*RENAME*/[|doStuffRENAME|](); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc new file mode 100644 index 0000000000..ee9f8d9c40 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties3.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /renameInheritedProperties3.ts === +// interface interface1 extends interface1 { +// /*RENAME*/[|propNameRENAME|]: string; +// } +// +// var v: interface1; +// v.[|propNameRENAME|]; + + + +// === findRenameLocations === +// === /renameInheritedProperties3.ts === +// interface interface1 extends interface1 { +// [|propNameRENAME|]: string; +// } +// +// var v: interface1; +// v./*RENAME*/[|propNameRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc new file mode 100644 index 0000000000..9139098e98 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties4.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /renameInheritedProperties4.ts === +// interface interface1 extends interface1 { +// /*RENAME*/[|doStuffRENAME|](): string; +// } +// +// var v: interface1; +// v.[|doStuffRENAME|](); + + + +// === findRenameLocations === +// === /renameInheritedProperties4.ts === +// interface interface1 extends interface1 { +// [|doStuffRENAME|](): string; +// } +// +// var v: interface1; +// v./*RENAME*/[|doStuffRENAME|](); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc similarity index 77% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc index 5be0e9682c..1989617a59 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties5.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameInheritedProperties5.ts === - // interface C extends D { // propC: number; // } @@ -12,12 +11,13 @@ - // === findRenameLocations === // === /renameInheritedProperties5.ts === - -// /*RENAME*/interface C extends D { +// interface C extends D { // propC: number; // } // interface D extends C { -// // --- (line: 5) skipped --- +// [|propDRENAME|]: string; +// } +// var d: D; +// d./*RENAME*/[|propDRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc similarity index 77% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc index b396aa45a6..263f842451 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties6.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameInheritedProperties6.ts === - // interface C extends D { // propD: number; // } @@ -12,12 +11,13 @@ - // === findRenameLocations === // === /renameInheritedProperties6.ts === - -// /*RENAME*/interface C extends D { +// interface C extends D { // propD: number; // } // interface D extends C { -// // --- (line: 5) skipped --- +// [|propCRENAME|]: number; +// } +// var d: D; +// d./*RENAME*/[|propCRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc new file mode 100644 index 0000000000..550e2bc2df --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties7.baseline.jsonc @@ -0,0 +1,27 @@ +// === findRenameLocations === +// === /renameInheritedProperties7.ts === +// class C extends D { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// class D extends C { +// prop1: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + +// === findRenameLocations === +// === /renameInheritedProperties7.ts === +// class C extends D { +// [|prop1RENAME|]: string; +// } +// +// class D extends C { +// prop1: string; +// } +// +// var c: C; +// c./*RENAME*/[|prop1RENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc new file mode 100644 index 0000000000..bc9cc36b03 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInheritedProperties8.baseline.jsonc @@ -0,0 +1,42 @@ +// === findRenameLocations === +// === /renameInheritedProperties8.ts === +// class C implements D { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// interface D extends C { +// [|prop1RENAME|]: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + +// === findRenameLocations === +// === /renameInheritedProperties8.ts === +// class C implements D { +// [|prop1RENAME|]: string; +// } +// +// interface D extends C { +// /*RENAME*/[|prop1RENAME|]: string; +// } +// +// var c: C; +// c.[|prop1RENAME|]; + + + +// === findRenameLocations === +// === /renameInheritedProperties8.ts === +// class C implements D { +// [|prop1RENAME|]: string; +// } +// +// interface D extends C { +// [|prop1RENAME|]: string; +// } +// +// var c: C; +// c./*RENAME*/[|prop1RENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc similarity index 77% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc index 8f16494b3d..a07fe39451 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJSDocNamepath.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameJSDocNamepath.ts === - // /** // * @type {module:foo/A} x // */ // var x = 1 -// var /*RENAME*/[|ARENAME|] = 0; +// var /*RENAME*/[|ARENAME|] = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc similarity index 88% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc index 5cc0363b6d..3f44825889 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // /** // * @import { A } from "./b"; // */ @@ -8,4 +7,4 @@ // /** // * @param { A/*RENAME*/[|ARENAME|] } a // */ -// function f(a) {} +// function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff new file mode 100644 index 0000000000..fd90212541 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff @@ -0,0 +1,15 @@ +--- old.renameJsDocImportTag.baseline.jsonc ++++ new.renameJsDocImportTag.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.js === + // /** +-// * @import { /*START PREFIX*/A as [|ARENAME|] } from "./b"; ++// * @import { A } from "./b"; + // */ + // + // /** +-// * @param { [|ARENAME|]/*RENAME*/ } a ++// * @param { A/*RENAME*/[|ARENAME|] } a + // */ + // function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc similarity index 76% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc index e308039562..ff30dfa64b 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /a.js === - // /** // * @param {Object} options // * @param {string} options.foo // * @param {number} options.bar // */ -// function foo(/*RENAME*/[|optionsRENAME|]) {} +// function foo(/*RENAME*/[|optionsRENAME|]) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc.diff new file mode 100644 index 0000000000..ab738f3156 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocTypeLiteral.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameJsDocTypeLiteral.baseline.jsonc ++++ new.renameJsDocTypeLiteral.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.js === + // /** +-// * @param {Object} [|optionsRENAME|] +-// * @param {string} [|optionsRENAME|].foo +-// * @param {number} [|optionsRENAME|].bar ++// * @param {Object} options ++// * @param {string} options.foo ++// * @param {number} options.bar + // */ + // function foo(/*RENAME*/[|optionsRENAME|]) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc similarity index 54% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc index 9505881e0a..728d902299 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc @@ -1,13 +1,13 @@ // === findRenameLocations === // === /a.js === - // exports./*RENAME*/[|areaRENAME|] = function (r) { return r * r; } - // === findRenameLocations === -// === /b.js === +// === /a.js === +// exports.[|areaRENAME|] = function (r) { return r * r; } -// /*RENAME*/var mod = require('./a'); -// var t = mod.area(10); +// === /b.js === +// var mod = require('./a'); +// var t = mod./*RENAME*/area(10); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc.diff new file mode 100644 index 0000000000..5642a65463 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsExports01.baseline.jsonc.diff @@ -0,0 +1,19 @@ +--- old.renameJsExports01.baseline.jsonc ++++ new.renameJsExports01.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /a.js === + // exports./*RENAME*/[|areaRENAME|] = function (r) { return r * r; } + +-// === /b.js === +-// var mod = require('./a'); +-// var t = mod.[|areaRENAME|](10); +- + + + // === findRenameLocations === +@@= skipped -12, +8 lines =@@ + + // === /b.js === + // var mod = require('./a'); +-// var t = mod./*RENAME*/[|areaRENAME|](10); ++// var t = mod./*RENAME*/area(10); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc similarity index 84% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc index 310f80d7b9..02ba8df266 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc @@ -1,10 +1,9 @@ // === findRenameLocations === // === /foo.js === - // --- (line: 9) skipped --- // * @param {unknown} x -// * @returns {unknown} +// * @returns {unknown} // */ // function foo(x/*RENAME*/[|xRENAME|]) { // return [|xRENAME|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff new file mode 100644 index 0000000000..9936663670 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff @@ -0,0 +1,19 @@ +--- old.renameJsOverloadedFunctionParameter.baseline.jsonc ++++ new.renameJsOverloadedFunctionParameter.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /foo.js === +-// --- (line: 6) skipped --- +-// * @param {string} x +-// * @returns {string} +-// * +-// * @param {unknown} [|xRENAME|] +-// * @returns {unknown} ++// --- (line: 9) skipped --- ++// * @param {unknown} x ++// * @returns {unknown} + // */ +-// function foo([|xRENAME|]/*RENAME*/) { ++// function foo(x/*RENAME*/[|xRENAME|]) { + // return [|xRENAME|]; + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc similarity index 68% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc index cd3317c84f..c7598eb8bf 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // function bar() { // } // bar./*RENAME*/[|fooRENAME|] = "foo"; @@ -8,11 +7,9 @@ - // === findRenameLocations === // === /a.js === - -// /*RENAME*/function bar() { +// function bar() { // } -// bar.foo = "foo"; -// console.log(bar.foo); +// bar.[|fooRENAME|] = "foo"; +// console.log(bar./*RENAME*/[|fooRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc similarity index 64% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc index b52fc08b65..7c121f1b50 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment2.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // class Minimatch { // } // Minimatch./*RENAME*/[|staticPropertyRENAME|] = "string"; @@ -8,11 +7,9 @@ - // === findRenameLocations === // === /a.js === - -// /*RENAME*/class Minimatch { +// class Minimatch { // } -// Minimatch.staticProperty = "string"; -// console.log(Minimatch.staticProperty); +// Minimatch.[|staticPropertyRENAME|] = "string"; +// console.log(Minimatch./*RENAME*/[|staticPropertyRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc similarity index 66% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc index da6fe0055e..b16dbefb5b 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment3.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // var C = class { // } // C./*RENAME*/[|staticPropertyRENAME|] = "string"; @@ -8,11 +7,9 @@ - // === findRenameLocations === // === /a.js === - -// /*RENAME*/var C = class { +// var C = class { // } -// C.staticProperty = "string"; -// console.log(C.staticProperty); +// C.[|staticPropertyRENAME|] = "string"; +// console.log(C./*RENAME*/[|staticPropertyRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc similarity index 97% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc index 00aebe58bd..ccc36e45c5 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPropertyAssignment4.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // function f() { // var /*RENAME*/[|fooRENAME|] = this; // [|fooRENAME|].x = 1; @@ -8,11 +7,9 @@ - // === findRenameLocations === // === /a.js === - // function f() { // var [|fooRENAME|] = this; // /*RENAME*/[|fooRENAME|].x = 1; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc similarity index 91% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc index 0607885f53..b922a2a5c8 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // function bar() { // } // bar.prototype./*RENAME*/x = 10; @@ -9,12 +8,10 @@ - // === findRenameLocations === // === /a.js === - // function bar() { // } // bar.prototype.x = 10; // var t = new bar(); -// t./*RENAME*/x = 11; +// t./*RENAME*/x = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc.diff new file mode 100644 index 0000000000..76f94ed41c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty01.baseline.jsonc.diff @@ -0,0 +1,23 @@ +--- old.renameJsPrototypeProperty01.baseline.jsonc ++++ new.renameJsPrototypeProperty01.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /a.js === + // function bar() { + // } +-// bar.prototype./*RENAME*/[|xRENAME|] = 10; ++// bar.prototype./*RENAME*/x = 10; + // var t = new bar(); +-// t.[|xRENAME|] = 11; ++// t.x = 11; + + + +@@= skipped -10, +10 lines =@@ + // === /a.js === + // function bar() { + // } +-// bar.prototype.[|xRENAME|] = 10; ++// bar.prototype.x = 10; + // var t = new bar(); +-// t./*RENAME*/[|xRENAME|] = 11; ++// t./*RENAME*/x = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc similarity index 91% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc index 0607885f53..b922a2a5c8 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // function bar() { // } // bar.prototype./*RENAME*/x = 10; @@ -9,12 +8,10 @@ - // === findRenameLocations === // === /a.js === - // function bar() { // } // bar.prototype.x = 10; // var t = new bar(); -// t./*RENAME*/x = 11; +// t./*RENAME*/x = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc.diff new file mode 100644 index 0000000000..8aada728d8 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsPrototypeProperty02.baseline.jsonc.diff @@ -0,0 +1,23 @@ +--- old.renameJsPrototypeProperty02.baseline.jsonc ++++ new.renameJsPrototypeProperty02.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /a.js === + // function bar() { + // } +-// bar.prototype./*RENAME*/[|xRENAME|] = 10; ++// bar.prototype./*RENAME*/x = 10; + // var t = new bar(); +-// t.[|xRENAME|] = 11; ++// t.x = 11; + + + +@@= skipped -10, +10 lines =@@ + // === /a.js === + // function bar() { + // } +-// bar.prototype.[|xRENAME|] = 10; ++// bar.prototype.x = 10; + // var t = new bar(); +-// t./*RENAME*/[|xRENAME|] = 11; ++// t./*RENAME*/x = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc similarity index 90% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc index 5d46b7840b..a0549e437b 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // function bar() { // this./*RENAME*/x = 10; // } @@ -9,12 +8,10 @@ - // === findRenameLocations === // === /a.js === - // function bar() { // this.x = 10; // } // var t = new bar(); -// t./*RENAME*/x = 11; +// t./*RENAME*/x = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc.diff new file mode 100644 index 0000000000..fe28363d63 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty01.baseline.jsonc.diff @@ -0,0 +1,24 @@ +--- old.renameJsThisProperty01.baseline.jsonc ++++ new.renameJsThisProperty01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.js === + // function bar() { +-// this./*RENAME*/[|xRENAME|] = 10; ++// this./*RENAME*/x = 10; + // } + // var t = new bar(); +-// t.[|xRENAME|] = 11; ++// t.x = 11; + + + + // === findRenameLocations === + // === /a.js === + // function bar() { +-// this.[|xRENAME|] = 10; ++// this.x = 10; + // } + // var t = new bar(); +-// t./*RENAME*/[|xRENAME|] = 11; ++// t./*RENAME*/x = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc similarity index 90% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc index 61b25a2d6d..3b6a47c315 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty03.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // class C { // constructor(y) { // this./*RENAME*/[|xRENAME|] = y; @@ -11,14 +10,12 @@ - // === findRenameLocations === // === /a.js === - // class C { // constructor(y) { // this.[|xRENAME|] = y; // } // } // var t = new C(12); -// t./*RENAME*/[|xRENAME|] = 11; +// t./*RENAME*/[|xRENAME|] = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc similarity index 92% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc index 0975429736..fdc3564244 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // class C { // constructor(y) { // this.x = y; @@ -12,12 +11,10 @@ - // === findRenameLocations === // === /a.js === - // --- (line: 4) skipped --- // } // C.prototype.z = 1; // var t = new C(12); -// t./*RENAME*/z = 11; +// t./*RENAME*/z = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc.diff new file mode 100644 index 0000000000..0d3d071a7c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty05.baseline.jsonc.diff @@ -0,0 +1,27 @@ +--- old.renameJsThisProperty05.baseline.jsonc ++++ new.renameJsThisProperty05.baseline.jsonc +@@= skipped -4, +4 lines =@@ + // this.x = y; + // } + // } +-// C.prototype./*RENAME*/[|zRENAME|] = 1; ++// C.prototype./*RENAME*/z = 1; + // var t = new C(12); +-// t.[|zRENAME|] = 11; ++// t.z = 11; + + + + // === findRenameLocations === + // === /a.js === +-// class C { +-// constructor(y) { +-// this.x = y; +-// } ++// --- (line: 4) skipped --- + // } +-// C.prototype.[|zRENAME|] = 1; ++// C.prototype.z = 1; + // var t = new C(12); +-// t./*RENAME*/[|zRENAME|] = 11; ++// t./*RENAME*/z = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc similarity index 92% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc index a4df38f6dd..5a3028466a 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /a.js === - // var C = class { // constructor(y) { // this.x = y; @@ -12,12 +11,10 @@ - // === findRenameLocations === // === /a.js === - // --- (line: 4) skipped --- // } // C.prototype.z = 1; // var t = new C(12); -// t./*RENAME*/z = 11; +// t./*RENAME*/z = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc.diff new file mode 100644 index 0000000000..305a180969 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsThisProperty06.baseline.jsonc.diff @@ -0,0 +1,27 @@ +--- old.renameJsThisProperty06.baseline.jsonc ++++ new.renameJsThisProperty06.baseline.jsonc +@@= skipped -4, +4 lines =@@ + // this.x = y; + // } + // } +-// C.prototype./*RENAME*/[|zRENAME|] = 1; ++// C.prototype./*RENAME*/z = 1; + // var t = new C(12); +-// t.[|zRENAME|] = 11; ++// t.z = 11; + + + + // === findRenameLocations === + // === /a.js === +-// var C = class { +-// constructor(y) { +-// this.x = y; +-// } ++// --- (line: 4) skipped --- + // } +-// C.prototype.[|zRENAME|] = 1; ++// C.prototype.z = 1; + // var t = new C(12); +-// t./*RENAME*/[|zRENAME|] = 11; ++// t./*RENAME*/z = 11; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel1.baseline.jsonc similarity index 95% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLabel1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel1.baseline.jsonc index 8052de8b13..75f3440c6f 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel1.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameLabel1.ts === - // [|fooRENAME|]: { // break /*RENAME*/[|fooRENAME|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel2.baseline.jsonc similarity index 95% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLabel2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel2.baseline.jsonc index 90e5de9a9e..a24d4c6036 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel2.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameLabel2.ts === - // /*RENAME*/[|fooRENAME|]: { // break [|fooRENAME|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel3.baseline.jsonc similarity index 97% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLabel3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel3.baseline.jsonc index 0fddfa042b..1c73641bed 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel3.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /renameLabel3.ts === - // /*RENAME*/[|loopRENAME|]: // for (let i = 0; i <= 10; i++) { // if (i === 0) continue [|loopRENAME|]; // if (i === 1) continue [|loopRENAME|]; // if (i === 10) break [|loopRENAME|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel4.baseline.jsonc similarity index 97% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLabel4.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel4.baseline.jsonc index 9a92975063..a4a63d1097 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel4.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel4.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /renameLabel4.ts === - // [|loopRENAME|]: // for (let i = 0; i <= 10; i++) { // if (i === 0) continue [|loopRENAME|]; // if (i === 1) continue /*RENAME*/[|loopRENAME|]; // if (i === 10) break [|loopRENAME|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel5.baseline.jsonc similarity index 97% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLabel5.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel5.baseline.jsonc index d9fabf7505..860407a962 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel5.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel5.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /renameLabel5.ts === - // [|loop1RENAME|]: for (let i = 0; i <= 10; i++) { // loop2: for (let j = 0; j <= 10; j++) { // if (i === 5) continue /*RENAME*/[|loop1RENAME|]; // if (j === 5) break loop2; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel6.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel6.baseline.jsonc similarity index 97% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLabel6.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel6.baseline.jsonc index eb521ed370..41cdf7d4e0 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLabel6.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLabel6.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /renameLabel6.ts === - // loop1: for (let i = 0; i <= 10; i++) { // [|loop2RENAME|]: for (let j = 0; j <= 10; j++) { // if (i === 5) continue loop1; // if (j === 5) break /*RENAME*/[|loop2RENAME|]; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc similarity index 52% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc index 25f1ddbcaf..176f9c4566 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameLocationsForClassExpression01.ts === - // class Foo { // } // @@ -18,24 +17,38 @@ - // === findRenameLocations === // === /renameLocationsForClassExpression01.ts === - -// /*RENAME*/class Foo { +// class Foo { // } // -// var x = class Foo { -// // --- (line: 5) skipped --- - +// var x = class [|FooRENAME|] { +// doIt() { +// return /*RENAME*/[|FooRENAME|]; +// } +// +// static doItStatically() { +// return [|FooRENAME|].y; +// } +// } +// +// // --- (line: 14) skipped --- // === findRenameLocations === // === /renameLocationsForClassExpression01.ts === - -// /*RENAME*/class Foo { +// class Foo { +// } +// +// var x = class [|FooRENAME|] { +// doIt() { +// return [|FooRENAME|]; +// } +// +// static doItStatically() { +// return /*RENAME*/[|FooRENAME|].y; +// } // } // -// var x = class Foo { -// // --- (line: 5) skipped --- +// // --- (line: 14) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc.diff new file mode 100644 index 0000000000..c2ad5857b3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForClassExpression01.baseline.jsonc.diff @@ -0,0 +1,32 @@ +--- old.renameLocationsForClassExpression01.baseline.jsonc ++++ new.renameLocationsForClassExpression01.baseline.jsonc +@@= skipped -12, +12 lines =@@ + // } + // } + // +-// var y = class { +-// getSomeName() { +-// --- (line: 16) skipped --- ++// // --- (line: 14) skipped --- + + + +@@= skipped -21, +19 lines =@@ + // } + // } + // +-// var y = class { +-// getSomeName() { +-// --- (line: 16) skipped --- ++// // --- (line: 14) skipped --- + + + +@@= skipped -21, +19 lines =@@ + // } + // } + // +-// var y = class { +-// getSomeName() { +-// --- (line: 16) skipped --- ++// // --- (line: 14) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc similarity index 64% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc index f0dfea41e6..1418dfe6e5 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc @@ -1,26 +1,21 @@ // === findRenameLocations === // === /renameLocationsForFunctionExpression01.ts === - // var x = function /*RENAME*/[|fRENAME|](g: any, h: any) { // [|fRENAME|]([|fRENAME|], g); // } - // === findRenameLocations === // === /renameLocationsForFunctionExpression01.ts === - -// /*RENAME*/var x = function f(g: any, h: any) { -// f(f, g); +// var x = function [|fRENAME|](g: any, h: any) { +// /*RENAME*/[|fRENAME|]([|fRENAME|], g); // } - // === findRenameLocations === // === /renameLocationsForFunctionExpression01.ts === - -// /*RENAME*/var x = function f(g: any, h: any) { -// f(f, g); -// } +// var x = function [|fRENAME|](g: any, h: any) { +// f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff new file mode 100644 index 0000000000..71b30952d9 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff @@ -0,0 +1,9 @@ +--- old.renameLocationsForFunctionExpression01.baseline.jsonc ++++ new.renameLocationsForFunctionExpression01.baseline.jsonc +@@= skipped -16, +16 lines =@@ + // === findRenameLocations === + // === /renameLocationsForFunctionExpression01.ts === + // var x = function [|fRENAME|](g: any, h: any) { +-// [|fRENAME|](/*RENAME*/[|fRENAME|], g); ++// f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc similarity index 55% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc index 0842391fc6..efbf86c2ca 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameLocationsForFunctionExpression02.ts === - // function f() { // // } @@ -13,24 +12,28 @@ - // === findRenameLocations === // === /renameLocationsForFunctionExpression02.ts === - -// /*RENAME*/function f() { +// function f() { // // } -// var x = function f(g: any, h: any) { -// // --- (line: 5) skipped --- - +// var x = function [|fRENAME|](g: any, h: any) { +// +// let helper = function f(): any { f(); } +// +// let foo = () => /*RENAME*/[|fRENAME|]([|fRENAME|], g); +// } // === findRenameLocations === // === /renameLocationsForFunctionExpression02.ts === - -// /*RENAME*/function f() { +// function f() { // // } -// var x = function f(g: any, h: any) { -// // --- (line: 5) skipped --- +// var x = function [|fRENAME|](g: any, h: any) { +// +// let helper = function f(): any { f(); } +// +// let foo = () => f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff new file mode 100644 index 0000000000..cd22847bf6 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff @@ -0,0 +1,9 @@ +--- old.renameLocationsForFunctionExpression02.baseline.jsonc ++++ new.renameLocationsForFunctionExpression02.baseline.jsonc +@@= skipped -34, +34 lines =@@ + // + // let helper = function f(): any { f(); } + // +-// let foo = () => [|fRENAME|](/*RENAME*/[|fRENAME|], g); ++// let foo = () => f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameModifiers.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc similarity index 63% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameModifiers.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc index 842d23609f..360283f45a 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameModifiers.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc @@ -1,7 +1,6 @@ // === findRenameLocations === // === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { +// declare /*RENAME*/abstract class C1 { // static a; // readonly b; // public c; @@ -9,10 +8,8 @@ - // === findRenameLocations === // === /renameModifiers.ts === - // declare abstract class /*RENAME*/[|C1RENAME|] { // static a; // readonly b; @@ -21,70 +18,74 @@ - // === findRenameLocations === // === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; +// declare abstract class C1 { +// /*RENAME*/static a; // readonly b; // public c; -// // --- (line: 5) skipped --- - +// protected d; +// // --- (line: 6) skipped --- // === findRenameLocations === // === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { +// declare abstract class C1 { // static a; -// readonly b; +// /*RENAME*/readonly b; // public c; -// // --- (line: 5) skipped --- - +// protected d; +// private e; +// // --- (line: 7) skipped --- // === findRenameLocations === // === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { +// declare abstract class C1 { // static a; // readonly b; -// public c; -// // --- (line: 5) skipped --- - +// /*RENAME*/public c; +// protected d; +// private e; +// } +// // --- (line: 8) skipped --- // === findRenameLocations === // === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { +// declare abstract class C1 { // static a; // readonly b; // public c; -// // --- (line: 5) skipped --- - +// /*RENAME*/protected d; +// private e; +// } +// const enum E { +// // --- (line: 9) skipped --- // === findRenameLocations === // === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { +// declare abstract class C1 { // static a; // readonly b; // public c; -// // --- (line: 5) skipped --- - +// protected d; +// /*RENAME*/private e; +// } +// const enum E { +// } +// async function fn() {} +// export default class C2 {} // === findRenameLocations === // === /renameModifiers.ts === - // --- (line: 4) skipped --- // protected d; // private e; @@ -96,10 +97,8 @@ - // === findRenameLocations === // === /renameModifiers.ts === - // --- (line: 6) skipped --- // } // const enum E { @@ -109,24 +108,20 @@ - // === findRenameLocations === // === /renameModifiers.ts === - -// /*RENAME*/declare abstract class C1 { -// static a; -// readonly b; -// public c; -// // --- (line: 5) skipped --- - +// --- (line: 7) skipped --- +// const enum E { +// } +// async function fn() {} +// export /*RENAME*/default class C2 {} // === findRenameLocations === // === /renameModifiers.ts === - // --- (line: 7) skipped --- // const enum E { // } // async function fn() {} -// export default class /*RENAME*/[|C2RENAME|] {} +// export default class /*RENAME*/[|C2RENAME|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff new file mode 100644 index 0000000000..84eca97971 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff @@ -0,0 +1,205 @@ +--- old.renameModifiers.baseline.jsonc ++++ new.renameModifiers.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameModifiers.ts === +-// /*RENAME*/declare abstract class [|C1RENAME|] { +-// static a; +-// readonly b; +-// public c; +-// protected d; +-// private e; +-// } +-// const enum E { +-// } +-// async function fn() {} +-// export default class C2 {} +- +- +- +-// === findRenameLocations === +-// === /renameModifiers.ts === +-// declare /*RENAME*/abstract class [|C1RENAME|] { +-// static a; +-// readonly b; +-// public c; +-// protected d; +-// private e; +-// } +-// const enum E { +-// } +-// async function fn() {} +-// export default class C2 {} +- +- +- +-// === findRenameLocations === +-// === /renameModifiers.ts === +-// declare abstract class C1 { +-// /*RENAME*/static [|aRENAME|]; +-// readonly b; +-// public c; +-// protected d; +-// --- (line: 6) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameModifiers.ts === +-// declare abstract class C1 { +-// static a; +-// /*RENAME*/readonly [|bRENAME|]; +-// public c; +-// protected d; +-// private e; +-// --- (line: 7) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameModifiers.ts === +-// declare abstract class C1 { +-// static a; +-// readonly b; +-// /*RENAME*/public [|cRENAME|]; +-// protected d; +-// private e; +-// } +-// --- (line: 8) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameModifiers.ts === +-// declare abstract class C1 { +-// static a; +-// readonly b; +-// public c; +-// /*RENAME*/protected [|dRENAME|]; +-// private e; +-// } +-// const enum E { +-// --- (line: 9) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameModifiers.ts === +-// declare abstract class C1 { +-// static a; +-// readonly b; +-// public c; +-// protected d; +-// /*RENAME*/private [|eRENAME|]; ++// declare /*RENAME*/abstract class C1 { ++// static a; ++// readonly b; ++// public c; ++// // --- (line: 5) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameModifiers.ts === ++// declare abstract class /*RENAME*/[|C1RENAME|] { ++// static a; ++// readonly b; ++// public c; ++// // --- (line: 5) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameModifiers.ts === ++// declare abstract class C1 { ++// /*RENAME*/static a; ++// readonly b; ++// public c; ++// protected d; ++// // --- (line: 6) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameModifiers.ts === ++// declare abstract class C1 { ++// static a; ++// /*RENAME*/readonly b; ++// public c; ++// protected d; ++// private e; ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameModifiers.ts === ++// declare abstract class C1 { ++// static a; ++// readonly b; ++// /*RENAME*/public c; ++// protected d; ++// private e; ++// } ++// // --- (line: 8) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameModifiers.ts === ++// declare abstract class C1 { ++// static a; ++// readonly b; ++// public c; ++// /*RENAME*/protected d; ++// private e; ++// } ++// const enum E { ++// // --- (line: 9) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameModifiers.ts === ++// declare abstract class C1 { ++// static a; ++// readonly b; ++// public c; ++// protected d; ++// /*RENAME*/private e; + // } + // const enum E { + // } +@@= skipped -101, +89 lines =@@ + // protected d; + // private e; + // } +-// /*RENAME*/const enum [|ERENAME|] { ++// const enum /*RENAME*/[|ERENAME|] { + // } + // async function fn() {} + // export default class C2 {} +@@= skipped -13, +13 lines =@@ + // } + // const enum E { + // } +-// /*RENAME*/async function [|fnRENAME|]() {} ++// async function /*RENAME*/[|fnRENAME|]() {} + // export default class C2 {} + + +@@= skipped -11, +11 lines =@@ + // const enum E { + // } + // async function fn() {} +-// /*RENAME*/export default class [|C2RENAME|] {} ++// export /*RENAME*/default class C2 {} + + + +@@= skipped -10, +10 lines =@@ + // const enum E { + // } + // async function fn() {} +-// export /*RENAME*/default class [|C2RENAME|] {} ++// export default class /*RENAME*/[|C2RENAME|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc similarity index 75% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc index 4c234f33c1..b7498c9ffa 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /renameModuleExportsProperties1.ts === - // /*RENAME*/class A {} // module.exports = { A } - // === findRenameLocations === // === /renameModuleExportsProperties1.ts === - -// /*RENAME*/class A {} -// module.exports = { A } +// class [|ARENAME|] {} +// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff new file mode 100644 index 0000000000..6f826f6ddf --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff @@ -0,0 +1,21 @@ +--- old.renameModuleExportsProperties1.baseline.jsonc ++++ new.renameModuleExportsProperties1.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: true +- + // === /renameModuleExportsProperties1.ts === +-// class /*RENAME*/[|ARENAME|] {} +-// module.exports = { /*START PREFIX*/A: [|ARENAME|] } ++// /*RENAME*/class A {} ++// module.exports = { A } + + + + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: true +- + // === /renameModuleExportsProperties1.ts === + // class [|ARENAME|] {} +-// module.exports = { /*START PREFIX*/A: /*RENAME*/[|ARENAME|] } ++// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc similarity index 74% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc index 1dcc985090..e8598d1899 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /renameModuleExportsProperties2.ts === - // /*RENAME*/class A {} // module.exports = { B: A } - // === findRenameLocations === // === /renameModuleExportsProperties2.ts === - -// /*RENAME*/class A {} -// module.exports = { B: A } +// class [|ARENAME|] {} +// module.exports = { B: /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff new file mode 100644 index 0000000000..9c5ca1bc27 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff @@ -0,0 +1,11 @@ +--- old.renameModuleExportsProperties2.baseline.jsonc ++++ new.renameModuleExportsProperties2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameModuleExportsProperties2.ts === +-// class /*RENAME*/[|ARENAME|] {} +-// module.exports = { B: [|ARENAME|] } ++// /*RENAME*/class A {} ++// module.exports = { B: A } + + diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc similarity index 68% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc index 1a76495d46..f8b9eb57a8 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /a.js === - // /*RENAME*/class A {} // module.exports = { A } - // === findRenameLocations === // === /a.js === - -// /*RENAME*/class A {} -// module.exports = { A } +// class [|ARENAME|] {} +// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff new file mode 100644 index 0000000000..05306ce300 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff @@ -0,0 +1,21 @@ +--- old.renameModuleExportsProperties3.baseline.jsonc ++++ new.renameModuleExportsProperties3.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: true +- + // === /a.js === +-// class /*RENAME*/[|ARENAME|] {} +-// module.exports = { /*START PREFIX*/A: [|ARENAME|] } ++// /*RENAME*/class A {} ++// module.exports = { A } + + + + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: true +- + // === /a.js === + // class [|ARENAME|] {} +-// module.exports = { /*START PREFIX*/A: /*RENAME*/[|ARENAME|] } ++// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc similarity index 81% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc index c3cbf98e5f..67b8c4d178 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc @@ -1,5 +1,4 @@ // === findRenameLocations === // === /home/src/workspaces/project/src/index.ts === - // import { /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; -// [|someExportedVariableRENAME|]; +// [|someExportedVariableRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff new file mode 100644 index 0000000000..dda14d3361 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff @@ -0,0 +1,10 @@ +--- old.renameNamedImport.baseline.jsonc ++++ new.renameNamedImport.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: true +- + // === /home/src/workspaces/project/src/index.ts === +-// import { /*START PREFIX*/someExportedVariable as /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; ++// import { /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; + // [|someExportedVariableRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc similarity index 78% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc index 29f6081e21..b10ee0dc25 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamespaceImport.baseline.jsonc @@ -1,5 +1,4 @@ // === findRenameLocations === // === /home/src/workspaces/project/src/index.ts === - // import * as /*RENAME*/[|libRENAME|] from '../lib/index'; -// [|libRENAME|].someExportedVariable; +// [|libRENAME|].someExportedVariable; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc similarity index 62% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc index 56d118f523..6efc99fea6 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /renameNumericalIndex.ts === - -// /*RENAME*/const foo = { 0: true }; +// const foo = { /*RENAME*/0: true }; // foo[0]; - // === findRenameLocations === // === /renameNumericalIndex.ts === - -// /*RENAME*/const foo = { 0: true }; -// foo[0]; +// const foo = { 0: true }; +// foo[/*RENAME*/0]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc.diff new file mode 100644 index 0000000000..b7f752f9b1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndex.baseline.jsonc.diff @@ -0,0 +1,18 @@ +--- old.renameNumericalIndex.baseline.jsonc ++++ new.renameNumericalIndex.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameNumericalIndex.ts === +-// const foo = { /*RENAME*/[|0RENAME|]: true }; +-// foo[/*START PREFIX*/"[|0RENAME|]"/*END SUFFIX*/]; ++// const foo = { /*RENAME*/0: true }; ++// foo[0]; + + + + // === findRenameLocations === + // === /renameNumericalIndex.ts === +-// const foo = { [|0RENAME|]: true }; +-// foo[/*START PREFIX*/"/*RENAME*/[|0RENAME|]"/*END SUFFIX*/]; ++// const foo = { 0: true }; ++// foo[/*RENAME*/0]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc similarity index 65% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc index 060d984c32..2e84ca6d3b 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /renameNumericalIndexSingleQuoted.ts === - -// /*RENAME*/const foo = { 0: true }; +// const foo = { /*RENAME*/0: true }; // foo[0]; - // === findRenameLocations === // === /renameNumericalIndexSingleQuoted.ts === - -// /*RENAME*/const foo = { 0: true }; -// foo[0]; +// const foo = { 0: true }; +// foo[/*RENAME*/0]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff new file mode 100644 index 0000000000..44e1a1a10b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff @@ -0,0 +1,22 @@ +--- old.renameNumericalIndexSingleQuoted.baseline.jsonc ++++ new.renameNumericalIndexSingleQuoted.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @quotePreference: single +- + // === /renameNumericalIndexSingleQuoted.ts === +-// const foo = { /*RENAME*/[|0RENAME|]: true }; +-// foo[/*START PREFIX*/'[|0RENAME|]'/*END SUFFIX*/]; ++// const foo = { /*RENAME*/0: true }; ++// foo[0]; + + + + // === findRenameLocations === +-// @quotePreference: single +- + // === /renameNumericalIndexSingleQuoted.ts === +-// const foo = { [|0RENAME|]: true }; +-// foo[/*START PREFIX*/'/*RENAME*/[|0RENAME|]'/*END SUFFIX*/]; ++// const foo = { 0: true }; ++// foo[/*RENAME*/0]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc similarity index 88% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc index 16eef71662..06fd8a80b7 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectBindingElementPropertyName01.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameObjectBindingElementPropertyName01.ts === - // interface I { // /*RENAME*/[|property1RENAME|]: number; // property2: string; @@ -11,14 +10,12 @@ - // === findRenameLocations === // === /renameObjectBindingElementPropertyName01.ts === - // interface I { // [|property1RENAME|]: number; // property2: string; // } // // var foo: I; -// var { /*RENAME*/[|property1RENAME|]: prop1 } = foo; +// var { /*RENAME*/[|property1RENAME|]: prop1 } = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc similarity index 59% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc index 0184684b36..45184c6886 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpread.baseline.jsonc @@ -1,35 +1,30 @@ // === findRenameLocations === // === /renameObjectSpread.ts === - -// /*RENAME*/interface A1 { a: number }; +// interface A1 { /*RENAME*/[|aRENAME|]: number }; // interface A2 { a?: number }; // let a1: A1; // let a2: A2; // let a12 = { ...a1, ...a2 }; -// a12.a; - +// a12.[|aRENAME|]; // === findRenameLocations === // === /renameObjectSpread.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; +// interface A1 { a: number }; +// interface A2 { /*RENAME*/[|aRENAME|]?: number }; // let a1: A1; // let a2: A2; // let a12 = { ...a1, ...a2 }; -// a12.a; - +// a12.[|aRENAME|]; // === findRenameLocations === // === /renameObjectSpread.ts === - -// /*RENAME*/interface A1 { a: number }; -// interface A2 { a?: number }; +// interface A1 { [|aRENAME|]: number }; +// interface A2 { [|aRENAME|]?: number }; // let a1: A1; // let a2: A2; // let a12 = { ...a1, ...a2 }; -// a12.a; +// a12./*RENAME*/[|aRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc similarity index 63% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc index 361b508fd3..eeb063f59f 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc @@ -1,44 +1,37 @@ // === findRenameLocations === // === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; +// interface A1 { a: number }; // interface A2 { a?: number }; -// let a1: A1; +// /*RENAME*/let a1: A1; // let a2: A2; // let a12 = { ...a1, ...a2 }; - // === findRenameLocations === // === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; +// interface A1 { a: number }; // interface A2 { a?: number }; -// let a1: A1; +// let [|a1RENAME|]: A1; // let a2: A2; -// let a12 = { ...a1, ...a2 }; - +// let a12 = { .../*RENAME*/[|a1RENAME|], ...a2 }; // === findRenameLocations === // === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; +// interface A1 { a: number }; // interface A2 { a?: number }; // let a1: A1; -// let a2: A2; +// /*RENAME*/let a2: A2; // let a12 = { ...a1, ...a2 }; - // === findRenameLocations === // === /renameObjectSpreadAssignment.ts === - -// /*RENAME*/interface A1 { a: number }; +// interface A1 { a: number }; // interface A2 { a?: number }; // let a1: A1; -// let a2: A2; -// let a12 = { ...a1, ...a2 }; +// let [|a2RENAME|]: A2; +// let a12 = { ...a1, .../*RENAME*/[|a2RENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff new file mode 100644 index 0000000000..0987d50062 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff @@ -0,0 +1,24 @@ +--- old.renameObjectSpreadAssignment.baseline.jsonc ++++ new.renameObjectSpreadAssignment.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /renameObjectSpreadAssignment.ts === + // interface A1 { a: number }; + // interface A2 { a?: number }; +-// let /*RENAME*/[|a1RENAME|]: A1; ++// /*RENAME*/let a1: A1; + // let a2: A2; +-// let a12 = { ...[|a1RENAME|], ...a2 }; ++// let a12 = { ...a1, ...a2 }; + + + +@@= skipped -21, +21 lines =@@ + // interface A1 { a: number }; + // interface A2 { a?: number }; + // let a1: A1; +-// let /*RENAME*/[|a2RENAME|]: A2; +-// let a12 = { ...a1, ...[|a2RENAME|] }; ++// /*RENAME*/let a2: A2; ++// let a12 = { ...a1, ...a2 }; + + diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc similarity index 55% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc index 22ff061a1d..b55e80b306 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration1.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameParameterPropertyDeclaration1.ts === - // class Foo { // constructor(private /*RENAME*/[|privateParamRENAME|]: number) { // let localPrivate = [|privateParamRENAME|]; @@ -10,26 +9,22 @@ - // === findRenameLocations === // === /renameParameterPropertyDeclaration1.ts === - -// /*RENAME*/class Foo { -// constructor(private privateParam: number) { -// let localPrivate = privateParam; -// this.privateParam += 10; +// class Foo { +// constructor(private [|privateParamRENAME|]: number) { +// let localPrivate = /*RENAME*/[|privateParamRENAME|]; +// this.[|privateParamRENAME|] += 10; // } // } - // === findRenameLocations === // === /renameParameterPropertyDeclaration1.ts === - -// /*RENAME*/class Foo { -// constructor(private privateParam: number) { -// let localPrivate = privateParam; -// this.privateParam += 10; +// class Foo { +// constructor(private [|privateParamRENAME|]: number) { +// let localPrivate = [|privateParamRENAME|]; +// this./*RENAME*/[|privateParamRENAME|] += 10; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc similarity index 56% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc index 3ef54137ed..b354259e54 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration2.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameParameterPropertyDeclaration2.ts === - // class Foo { // constructor(public /*RENAME*/[|publicParamRENAME|]: number) { // let publicParam = [|publicParamRENAME|]; @@ -10,26 +9,22 @@ - // === findRenameLocations === // === /renameParameterPropertyDeclaration2.ts === - -// /*RENAME*/class Foo { -// constructor(public publicParam: number) { -// let publicParam = publicParam; -// this.publicParam += 10; +// class Foo { +// constructor(public [|publicParamRENAME|]: number) { +// let publicParam = /*RENAME*/[|publicParamRENAME|]; +// this.[|publicParamRENAME|] += 10; // } // } - // === findRenameLocations === // === /renameParameterPropertyDeclaration2.ts === - -// /*RENAME*/class Foo { -// constructor(public publicParam: number) { -// let publicParam = publicParam; -// this.publicParam += 10; +// class Foo { +// constructor(public [|publicParamRENAME|]: number) { +// let publicParam = [|publicParamRENAME|]; +// this./*RENAME*/[|publicParamRENAME|] += 10; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc similarity index 55% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc index 86b2967ef6..f9de0f7ff3 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration3.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameParameterPropertyDeclaration3.ts === - // class Foo { // constructor(protected /*RENAME*/[|protectedParamRENAME|]: number) { // let protectedParam = [|protectedParamRENAME|]; @@ -10,26 +9,22 @@ - // === findRenameLocations === // === /renameParameterPropertyDeclaration3.ts === - -// /*RENAME*/class Foo { -// constructor(protected protectedParam: number) { -// let protectedParam = protectedParam; -// this.protectedParam += 10; +// class Foo { +// constructor(protected [|protectedParamRENAME|]: number) { +// let protectedParam = /*RENAME*/[|protectedParamRENAME|]; +// this.[|protectedParamRENAME|] += 10; // } // } - // === findRenameLocations === // === /renameParameterPropertyDeclaration3.ts === - -// /*RENAME*/class Foo { -// constructor(protected protectedParam: number) { -// let protectedParam = protectedParam; -// this.protectedParam += 10; +// class Foo { +// constructor(protected [|protectedParamRENAME|]: number) { +// let protectedParam = [|protectedParamRENAME|]; +// this./*RENAME*/[|protectedParamRENAME|] += 10; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc similarity index 51% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc index cfe486d4a5..610d8a4260 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc @@ -1,20 +1,17 @@ // === findRenameLocations === // === /renameParameterPropertyDeclaration4.ts === - -// /*RENAME*/class Foo { -// constructor(protected { protectedParam }) { +// class Foo { +// constructor(/*RENAME*/protected { protectedParam }) { // let myProtectedParam = protectedParam; // } // } - // === findRenameLocations === // === /renameParameterPropertyDeclaration4.ts === - -// /*RENAME*/class Foo { -// constructor(protected { protectedParam }) { -// let myProtectedParam = protectedParam; +// class Foo { +// constructor(protected { [|protectedParamRENAME|] }) { +// let myProtectedParam = /*RENAME*/[|protectedParamRENAME|]; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff new file mode 100644 index 0000000000..2a2a1f787f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff @@ -0,0 +1,22 @@ +--- old.renameParameterPropertyDeclaration4.baseline.jsonc ++++ new.renameParameterPropertyDeclaration4.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameParameterPropertyDeclaration4.ts === + // class Foo { +-// constructor(protected { /*START PREFIX*/protectedParam: /*RENAME*/[|protectedParamRENAME|] }) { +-// let myProtectedParam = [|protectedParamRENAME|]; ++// constructor(/*RENAME*/protected { protectedParam }) { ++// let myProtectedParam = protectedParam; + // } + // } + +@@= skipped -10, +10 lines =@@ + // === findRenameLocations === + // === /renameParameterPropertyDeclaration4.ts === + // class Foo { +-// constructor(protected { /*START PREFIX*/protectedParam: [|protectedParamRENAME|] }) { ++// constructor(protected { [|protectedParamRENAME|] }) { + // let myProtectedParam = /*RENAME*/[|protectedParamRENAME|]; + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc similarity index 69% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc index 94775fef82..8c0eaa91cc 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration5.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameParameterPropertyDeclaration5.ts === - // class Foo { // constructor(protected [ /*RENAME*/[|protectedParamRENAME|] ]) { // let myProtectedParam = [|protectedParamRENAME|]; @@ -9,12 +8,10 @@ - // === findRenameLocations === // === /renameParameterPropertyDeclaration5.ts === - -// /*RENAME*/class Foo { -// constructor(protected [ protectedParam ]) { -// let myProtectedParam = protectedParam; +// class Foo { +// constructor(protected [ [|protectedParamRENAME|] ]) { +// let myProtectedParam = /*RENAME*/[|protectedParamRENAME|]; // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc similarity index 90% rename from testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc index 3fb81dd12c..c17fa1b962 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renamePrivateAccessor.ts === - // class Foo { // get /*RENAME*/#foo() { return 1 } // set #foo(value: number) { } @@ -11,10 +10,8 @@ - // === findRenameLocations === // === /renamePrivateAccessor.ts === - // class Foo { // get #foo() { return 1 } // set /*RENAME*/#foo(value: number) { } @@ -25,12 +22,12 @@ - // === findRenameLocations === // === /renamePrivateAccessor.ts === - -// /*RENAME*/class Foo { +// class Foo { // get #foo() { return 1 } // set #foo(value: number) { } // retFoo() { -// // --- (line: 5) skipped --- +// return this./*RENAME*/#foo; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc.diff new file mode 100644 index 0000000000..66ba385c4f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateAccessor.baseline.jsonc.diff @@ -0,0 +1,64 @@ +--- old.renamePrivateAccessor.baseline.jsonc ++++ new.renamePrivateAccessor.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renamePrivateAccessor.ts === + // class Foo { +-// get /*RENAME*/[|#fooRENAME|]() { return 1 } +-// set [|#fooRENAME|](value: number) { } +-// retFoo() { +-// return this.[|#fooRENAME|]; +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renamePrivateAccessor.ts === +-// class Foo { +-// get [|#fooRENAME|]() { return 1 } +-// set /*RENAME*/[|#fooRENAME|](value: number) { } +-// retFoo() { +-// return this.[|#fooRENAME|]; +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renamePrivateAccessor.ts === +-// class Foo { +-// get [|#fooRENAME|]() { return 1 } +-// set [|#fooRENAME|](value: number) { } +-// retFoo() { +-// return this./*RENAME*/[|#fooRENAME|]; ++// get /*RENAME*/#foo() { return 1 } ++// set #foo(value: number) { } ++// retFoo() { ++// return this.#foo; ++// } ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renamePrivateAccessor.ts === ++// class Foo { ++// get #foo() { return 1 } ++// set /*RENAME*/#foo(value: number) { } ++// retFoo() { ++// return this.#foo; ++// } ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renamePrivateAccessor.ts === ++// class Foo { ++// get #foo() { return 1 } ++// set #foo(value: number) { } ++// retFoo() { ++// return this./*RENAME*/#foo; + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc similarity index 80% rename from testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc index 8467bc25b6..87b4d058a8 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renamePrivateFields1.ts === - // class Foo { // /*RENAME*/#foo = 1; // @@ -11,12 +10,12 @@ - // === findRenameLocations === // === /renamePrivateFields1.ts === - -// /*RENAME*/class Foo { +// class Foo { // #foo = 1; // // getFoo() { -// // --- (line: 5) skipped --- +// return this./*RENAME*/#foo; +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc.diff new file mode 100644 index 0000000000..6cf4b1b70f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateFields1.baseline.jsonc.diff @@ -0,0 +1,27 @@ +--- old.renamePrivateFields1.baseline.jsonc ++++ new.renamePrivateFields1.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renamePrivateFields1.ts === + // class Foo { +-// /*RENAME*/[|#fooRENAME|] = 1; ++// /*RENAME*/#foo = 1; + // + // getFoo() { +-// return this.[|#fooRENAME|]; ++// return this.#foo; + // } + // } + +@@= skipped -12, +12 lines =@@ + // === findRenameLocations === + // === /renamePrivateFields1.ts === + // class Foo { +-// [|#fooRENAME|] = 1; ++// #foo = 1; + // + // getFoo() { +-// return this./*RENAME*/[|#fooRENAME|]; ++// return this./*RENAME*/#foo; + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc similarity index 81% rename from testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc index 50f1136d57..0e2eda2824 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renamePrivateMethod.ts === - // class Foo { // /*RENAME*/#foo() { } // callFoo() { @@ -10,13 +9,11 @@ - // === findRenameLocations === // === /renamePrivateMethod.ts === - -// /*RENAME*/class Foo { +// class Foo { // #foo() { } // callFoo() { -// return this.#foo(); +// return this./*RENAME*/#foo(); // } -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc.diff new file mode 100644 index 0000000000..8748dce412 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePrivateMethod.baseline.jsonc.diff @@ -0,0 +1,25 @@ +--- old.renamePrivateMethod.baseline.jsonc ++++ new.renamePrivateMethod.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renamePrivateMethod.ts === + // class Foo { +-// /*RENAME*/[|#fooRENAME|]() { } ++// /*RENAME*/#foo() { } + // callFoo() { +-// return this.[|#fooRENAME|](); ++// return this.#foo(); + // } + // } + +@@= skipped -11, +11 lines =@@ + // === findRenameLocations === + // === /renamePrivateMethod.ts === + // class Foo { +-// [|#fooRENAME|]() { } ++// #foo() { } + // callFoo() { +-// return this./*RENAME*/[|#fooRENAME|](); ++// return this./*RENAME*/#foo(); + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc similarity index 64% rename from testdata/baselines/reference/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc index 26666e85bd..f1a0995307 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renamePropertyAccessExpressionHeritageClause.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renamePropertyAccessExpressionHeritageClause.ts === - // class B {} // function foo() { // return {/*RENAME*/[|BRENAME|]: B}; @@ -10,26 +9,22 @@ - // === findRenameLocations === // === /renamePropertyAccessExpressionHeritageClause.ts === - -// /*RENAME*/class B {} +// class B {} // function foo() { -// return {B: B}; +// return {[|BRENAME|]: B}; // } -// class C extends (foo()).B {} -// class C1 extends foo().B {} - +// class C extends (foo())./*RENAME*/[|BRENAME|] {} +// class C1 extends foo().[|BRENAME|] {} // === findRenameLocations === // === /renamePropertyAccessExpressionHeritageClause.ts === - -// /*RENAME*/class B {} +// class B {} // function foo() { -// return {B: B}; +// return {[|BRENAME|]: B}; // } -// class C extends (foo()).B {} -// class C1 extends foo().B {} +// class C extends (foo()).[|BRENAME|] {} +// class C1 extends foo()./*RENAME*/[|BRENAME|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc similarity index 72% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc index a3d425fedf..9a1b2c510c 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /a.ts === - -// /*RENAME*/export { default } from "./b"; -// export { default as b } from "./b"; +// export { default } from "./b"; +// /*RENAME*/export { default as b } from "./b"; // export { default as bee } from "./b"; // import { default as b } from "./b"; // import { default as bee } from "./b"; @@ -10,44 +9,36 @@ - // === findRenameLocations === // === /a.ts === - -// /*RENAME*/export { default } from "./b"; +// export { default } from "./b"; // export { default as b } from "./b"; // export { default as bee } from "./b"; -// import { default as b } from "./b"; +// /*RENAME*/import { default as b } from "./b"; // import { default as bee } from "./b"; // import b from "./b"; - // === findRenameLocations === // === /a.ts === - -// /*RENAME*/export { default } from "./b"; +// export { default } from "./b"; // export { default as b } from "./b"; // export { default as bee } from "./b"; // import { default as b } from "./b"; // import { default as bee } from "./b"; -// import b from "./b"; - +// /*RENAME*/import b from "./b"; // === findRenameLocations === // === /b.ts === - // /*RENAME*/const b = 0; // export default b; - // === findRenameLocations === // === /b.ts === - -// /*RENAME*/const b = 0; -// export default b; +// const b = 0; +// /*RENAME*/export default b; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff new file mode 100644 index 0000000000..77de03fabc --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff @@ -0,0 +1,104 @@ +--- old.renameReExportDefault.baseline.jsonc ++++ new.renameReExportDefault.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === + // export { default } from "./b"; +-// export { default as /*RENAME*/[|bRENAME|] } from "./b"; +-// export { default as bee } from "./b"; +-// import { default as b } from "./b"; +-// import { default as bee } from "./b"; +-// import b from "./b"; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// export { default } from "./b"; +-// export { default as b } from "./b"; +-// export { default as bee } from "./b"; +-// import { default as /*RENAME*/[|bRENAME|] } from "./b"; +-// import { default as bee } from "./b"; +-// import b from "./b"; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// export { default } from "./b"; +-// export { default as b } from "./b"; +-// export { default as bee } from "./b"; +-// import { default as b } from "./b"; +-// import { default as bee } from "./b"; +-// import /*RENAME*/[|bRENAME|] from "./b"; +- +- +- +-// === findRenameLocations === +-// === /b.ts === +-// const /*RENAME*/[|bRENAME|] = 0; +-// export default [|bRENAME|]; +- +-// === /a.ts === +-// export { default } from "./b"; +-// export { default as [|bRENAME|] } from "./b"; +-// export { default as bee } from "./b"; +-// import { default as [|bRENAME|] } from "./b"; +-// import { default as bee } from "./b"; +-// import [|bRENAME|] from "./b"; +- +- +- +-// === findRenameLocations === +-// === /b.ts === +-// const [|bRENAME|] = 0; +-// export default /*RENAME*/[|bRENAME|]; +- +-// === /a.ts === +-// export { default } from "./b"; +-// export { default as [|bRENAME|] } from "./b"; +-// export { default as bee } from "./b"; +-// import { default as [|bRENAME|] } from "./b"; +-// import { default as bee } from "./b"; +-// import [|bRENAME|] from "./b"; ++// /*RENAME*/export { default as b } from "./b"; ++// export { default as bee } from "./b"; ++// import { default as b } from "./b"; ++// import { default as bee } from "./b"; ++// import b from "./b"; ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// export { default } from "./b"; ++// export { default as b } from "./b"; ++// export { default as bee } from "./b"; ++// /*RENAME*/import { default as b } from "./b"; ++// import { default as bee } from "./b"; ++// import b from "./b"; ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// export { default } from "./b"; ++// export { default as b } from "./b"; ++// export { default as bee } from "./b"; ++// import { default as b } from "./b"; ++// import { default as bee } from "./b"; ++// /*RENAME*/import b from "./b"; ++ ++ ++ ++// === findRenameLocations === ++// === /b.ts === ++// /*RENAME*/const b = 0; ++// export default b; ++ ++ ++ ++// === findRenameLocations === ++// === /b.ts === ++// const b = 0; ++// /*RENAME*/export default b; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc similarity index 96% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc index e8d98ace55..d932689aca 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag1.baseline.jsonc @@ -1,7 +1,6 @@ // === findRenameLocations === // === /renameReferenceFromLinkTag1.ts === - // enum E { // /** {@link /*RENAME*/[|ARENAME|]} */ // [|ARENAME|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc similarity index 96% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc index 95e0419a90..45f05c2902 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc @@ -1,10 +1,9 @@ // === findRenameLocations === // === /a.ts === - // enum E { // /** {@link /*RENAME*/[|FooRENAME|]} */ // [|FooRENAME|] // } // interface Foo { // foo: E.[|FooRENAME|]; -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc.diff new file mode 100644 index 0000000000..5df33af14a --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag2.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameReferenceFromLinkTag2.baseline.jsonc ++++ new.renameReferenceFromLinkTag2.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /a.ts === + // enum E { + // /** {@link /*RENAME*/[|FooRENAME|]} */ +-// Foo ++// [|FooRENAME|] + // } +-// interface [|FooRENAME|] { +-// foo: E.Foo; ++// interface Foo { ++// foo: E.[|FooRENAME|]; + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc similarity index 96% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc index 9ae1143321..b21b1c40c7 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc @@ -1,14 +1,11 @@ // === findRenameLocations === // === /a.ts === - // interface Foo { // foo: E.[|FooRENAME|]; // } - // === /b.ts === - // enum E { // /** {@link /*RENAME*/[|FooRENAME|]} */ // [|FooRENAME|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc.diff new file mode 100644 index 0000000000..3999adde9f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag3.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.renameReferenceFromLinkTag3.baseline.jsonc ++++ new.renameReferenceFromLinkTag3.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === +-// interface [|FooRENAME|] { +-// foo: E.Foo; ++// interface Foo { ++// foo: E.[|FooRENAME|]; + // } + + // === /b.ts === + // enum E { + // /** {@link /*RENAME*/[|FooRENAME|]} */ +-// Foo ++// [|FooRENAME|] + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc similarity index 96% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc index cdce4f1722..490ae91a94 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag4.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameReferenceFromLinkTag4.ts === - // enum E { // /** {@link /*RENAME*/[|BRENAME|]} */ // A, // [|BRENAME|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc similarity index 96% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc index 09fe5ebbc3..930da5e226 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReferenceFromLinkTag5.baseline.jsonc @@ -1,7 +1,6 @@ // === findRenameLocations === // === /renameReferenceFromLinkTag5.ts === - // enum E { // /** {@link E./*RENAME*/[|ARENAME|]} */ // [|ARENAME|] -// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameRest.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRest.baseline.jsonc similarity index 72% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameRest.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRest.baseline.jsonc index a38db9c1da..9ae2a09d73 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameRest.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRest.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameRest.ts === - // interface Gen { // x: number; // /*RENAME*/[|parentRENAME|]: Gen; @@ -12,12 +11,13 @@ - // === findRenameLocations === // === /renameRest.ts === - -// /*RENAME*/interface Gen { +// interface Gen { // x: number; -// parent: Gen; +// [|parentRENAME|]: Gen; // millenial: string; -// // --- (line: 5) skipped --- +// } +// let t: Gen; +// var { x, ...rest } = t; +// rest./*RENAME*/[|parentRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc similarity index 59% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc index 069823071c..2089ec474b 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc @@ -1,8 +1,10 @@ // === findRenameLocations === // === /renameRestBindingElement.ts === - -// /*RENAME*/interface I { +// interface I { // a: number; // b: number; // c: number; -// // --- (line: 5) skipped --- +// } +// function foo(/*RENAME*/{ a, ...rest }: I) { +// rest; +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff new file mode 100644 index 0000000000..1a62e6c285 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff @@ -0,0 +1,17 @@ +--- old.renameRestBindingElement.baseline.jsonc ++++ new.renameRestBindingElement.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @providePrefixAndSuffixTextForRename: true +- + // === /renameRestBindingElement.ts === + // interface I { + // a: number; + // b: number; + // c: number; + // } +-// function foo({ a, .../*RENAME*/[|restRENAME|] }: I) { +-// [|restRENAME|]; ++// function foo(/*RENAME*/{ a, ...rest }: I) { ++// rest; + // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc similarity index 53% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc index ee096940ae..af955e4968 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc @@ -1,32 +1,31 @@ // === findRenameLocations === // === /renameStringLiteralOk.ts === - -// /*RENAME*/interface Foo { -// f: 'foo' | 'bar' +// interface Foo { +// f: '/*RENAME*/foo' | 'bar' // } // const d: 'foo' = 'foo' -// // --- (line: 5) skipped --- - +// declare const f: Foo +// f.f = 'foo' +// f.f = `foo` // === findRenameLocations === // === /renameStringLiteralOk.ts === - -// /*RENAME*/interface Foo { +// interface Foo { // f: 'foo' | 'bar' // } // const d: 'foo' = 'foo' -// // --- (line: 5) skipped --- - +// declare const f: Foo +// f.f = '/*RENAME*/foo' +// f.f = `foo` // === findRenameLocations === // === /renameStringLiteralOk.ts === - -// /*RENAME*/interface Foo { -// f: 'foo' | 'bar' -// } +// --- (line: 3) skipped --- // const d: 'foo' = 'foo' -// // --- (line: 5) skipped --- +// declare const f: Foo +// f.f = 'foo' +// f.f = `/*RENAME*/foo` \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc.diff new file mode 100644 index 0000000000..af6f24538f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk.baseline.jsonc.diff @@ -0,0 +1,64 @@ +--- old.renameStringLiteralOk.baseline.jsonc ++++ new.renameStringLiteralOk.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameStringLiteralOk.ts === + // interface Foo { +-// f: '/*RENAME*/[|fooRENAME|]' | 'bar' +-// } +-// const d: 'foo' = 'foo' +-// declare const f: Foo +-// f.f = '[|fooRENAME|]' +-// f.f = `[|fooRENAME|]` +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralOk.ts === +-// interface Foo { +-// f: '[|fooRENAME|]' | 'bar' +-// } +-// const d: 'foo' = 'foo' +-// declare const f: Foo +-// f.f = '/*RENAME*/[|fooRENAME|]' +-// f.f = `[|fooRENAME|]` +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralOk.ts === +-// interface Foo { +-// f: '[|fooRENAME|]' | 'bar' +-// } +-// const d: 'foo' = 'foo' +-// declare const f: Foo +-// f.f = '[|fooRENAME|]' +-// f.f = `/*RENAME*/[|fooRENAME|]` ++// f: '/*RENAME*/foo' | 'bar' ++// } ++// const d: 'foo' = 'foo' ++// declare const f: Foo ++// f.f = 'foo' ++// f.f = `foo` ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralOk.ts === ++// interface Foo { ++// f: 'foo' | 'bar' ++// } ++// const d: 'foo' = 'foo' ++// declare const f: Foo ++// f.f = '/*RENAME*/foo' ++// f.f = `foo` ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralOk.ts === ++// --- (line: 3) skipped --- ++// const d: 'foo' = 'foo' ++// declare const f: Foo ++// f.f = 'foo' ++// f.f = `/*RENAME*/foo` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc similarity index 56% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc index 8e83ee0395..63c08bb37f 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc @@ -1,7 +1,6 @@ // === findRenameLocations === // === /renameStringLiteralOk1.ts === - -// /*RENAME*/declare function f(): 'foo' | 'bar' +// declare function f(): '/*RENAME*/foo' | 'bar' // class Foo { // f = f() // } @@ -9,12 +8,10 @@ - // === findRenameLocations === // === /renameStringLiteralOk1.ts === - -// /*RENAME*/declare function f(): 'foo' | 'bar' -// class Foo { -// f = f() +// --- (line: 3) skipped --- // } -// // --- (line: 5) skipped --- +// const d: 'foo' = 'foo' +// declare const ff: Foo +// ff.f = '/*RENAME*/foo' \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc.diff new file mode 100644 index 0000000000..614668ad48 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralOk1.baseline.jsonc.diff @@ -0,0 +1,28 @@ +--- old.renameStringLiteralOk1.baseline.jsonc ++++ new.renameStringLiteralOk1.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameStringLiteralOk1.ts === +-// declare function f(): '/*RENAME*/[|fooRENAME|]' | 'bar' ++// declare function f(): '/*RENAME*/foo' | 'bar' + // class Foo { + // f = f() + // } +-// const d: 'foo' = 'foo' +-// declare const ff: Foo +-// ff.f = '[|fooRENAME|]' ++// // --- (line: 5) skipped --- + + + + // === findRenameLocations === + // === /renameStringLiteralOk1.ts === +-// declare function f(): '[|fooRENAME|]' | 'bar' +-// class Foo { +-// f = f() ++// --- (line: 3) skipped --- + // } + // const d: 'foo' = 'foo' + // declare const ff: Foo +-// ff.f = '/*RENAME*/[|fooRENAME|]' ++// ff.f = '/*RENAME*/foo' \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc new file mode 100644 index 0000000000..43b7c665e5 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes1.ts === +// interface AnimationOptions { +// deltaX: number; +// deltaY: number; +// easing: "ease-in" | "ease-out" | "/*RENAME*/ease-in-out"; +// } +// +// function animate(o: AnimationOptions) { } +// +// animate({ deltaX: 100, deltaY: 100, easing: "ease-in-out" }); + + + +// === findRenameLocations === +// === /renameStringLiteralTypes1.ts === +// --- (line: 5) skipped --- +// +// function animate(o: AnimationOptions) { } +// +// animate({ deltaX: 100, deltaY: 100, easing: "/*RENAME*/ease-in-out" }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc.diff new file mode 100644 index 0000000000..4800cdb997 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes1.baseline.jsonc.diff @@ -0,0 +1,30 @@ +--- old.renameStringLiteralTypes1.baseline.jsonc ++++ new.renameStringLiteralTypes1.baseline.jsonc +@@= skipped -2, +2 lines =@@ + // interface AnimationOptions { + // deltaX: number; + // deltaY: number; +-// easing: "ease-in" | "ease-out" | "/*RENAME*/[|ease-in-outRENAME|]"; ++// easing: "ease-in" | "ease-out" | "/*RENAME*/ease-in-out"; + // } + // + // function animate(o: AnimationOptions) { } + // +-// animate({ deltaX: 100, deltaY: 100, easing: "[|ease-in-outRENAME|]" }); ++// animate({ deltaX: 100, deltaY: 100, easing: "ease-in-out" }); + + + + // === findRenameLocations === + // === /renameStringLiteralTypes1.ts === +-// interface AnimationOptions { +-// deltaX: number; +-// deltaY: number; +-// easing: "ease-in" | "ease-out" | "[|ease-in-outRENAME|]"; +-// } ++// --- (line: 5) skipped --- + // + // function animate(o: AnimationOptions) { } + // +-// animate({ deltaX: 100, deltaY: 100, easing: "/*RENAME*/[|ease-in-outRENAME|]" }); ++// animate({ deltaX: 100, deltaY: 100, easing: "/*RENAME*/ease-in-out" }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc new file mode 100644 index 0000000000..0640c3fdc4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc @@ -0,0 +1,131 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// type Foo = "/*RENAME*/a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// type Foo = "a" | "b"; +// +// class C { +// p: Foo = "/*RENAME*/a"; +// m() { +// if (this.p === "a") {} +// if ("a" === this.p) {} +// // --- (line: 8) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// type Foo = "a" | "b"; +// +// class C { +// p: Foo = "a"; +// m() { +// if (this.p === "/*RENAME*/a") {} +// if ("a" === this.p) {} +// +// if (this.p !== "a") {} +// // --- (line: 10) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// --- (line: 3) skipped --- +// p: Foo = "a"; +// m() { +// if (this.p === "a") {} +// if ("/*RENAME*/a" === this.p) {} +// +// if (this.p !== "a") {} +// if ("a" !== this.p) {} +// // --- (line: 11) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// --- (line: 5) skipped --- +// if (this.p === "a") {} +// if ("a" === this.p) {} +// +// if (this.p !== "/*RENAME*/a") {} +// if ("a" !== this.p) {} +// +// if (this.p == "a") {} +// // --- (line: 13) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// --- (line: 6) skipped --- +// if ("a" === this.p) {} +// +// if (this.p !== "a") {} +// if ("/*RENAME*/a" !== this.p) {} +// +// if (this.p == "a") {} +// if ("a" == this.p) {} +// // --- (line: 14) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// --- (line: 8) skipped --- +// if (this.p !== "a") {} +// if ("a" !== this.p) {} +// +// if (this.p == "/*RENAME*/a") {} +// if ("a" == this.p) {} +// +// if (this.p != "a") {} +// // --- (line: 16) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// --- (line: 9) skipped --- +// if ("a" !== this.p) {} +// +// if (this.p == "a") {} +// if ("/*RENAME*/a" == this.p) {} +// +// if (this.p != "a") {} +// if ("a" != this.p) {} +// } +// } + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// --- (line: 11) skipped --- +// if (this.p == "a") {} +// if ("a" == this.p) {} +// +// if (this.p != "/*RENAME*/a") {} +// if ("a" != this.p) {} +// } +// } + + + +// === findRenameLocations === +// === /renameStringLiteralTypes2.ts === +// --- (line: 12) skipped --- +// if ("a" == this.p) {} +// +// if (this.p != "a") {} +// if ("/*RENAME*/a" != this.p) {} +// } +// } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc.diff new file mode 100644 index 0000000000..b3dbc96cb5 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes2.baseline.jsonc.diff @@ -0,0 +1,357 @@ +--- old.renameStringLiteralTypes2.baseline.jsonc ++++ new.renameStringLiteralTypes2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameStringLiteralTypes2.ts === +-// type Foo = "/*RENAME*/[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "/*RENAME*/[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "/*RENAME*/[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("/*RENAME*/[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "/*RENAME*/[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("/*RENAME*/[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "/*RENAME*/[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("/*RENAME*/[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "/*RENAME*/[|aRENAME|]") {} +-// if ("[|aRENAME|]" != this.p) {} +-// } +-// } +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes2.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// if (this.p === "[|aRENAME|]") {} +-// if ("[|aRENAME|]" === this.p) {} +-// +-// if (this.p !== "[|aRENAME|]") {} +-// if ("[|aRENAME|]" !== this.p) {} +-// +-// if (this.p == "[|aRENAME|]") {} +-// if ("[|aRENAME|]" == this.p) {} +-// +-// if (this.p != "[|aRENAME|]") {} +-// if ("/*RENAME*/[|aRENAME|]" != this.p) {} ++// type Foo = "/*RENAME*/a" | "b"; ++// ++// class C { ++// p: Foo = "a"; ++// // --- (line: 5) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// type Foo = "a" | "b"; ++// ++// class C { ++// p: Foo = "/*RENAME*/a"; ++// m() { ++// if (this.p === "a") {} ++// if ("a" === this.p) {} ++// // --- (line: 8) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// type Foo = "a" | "b"; ++// ++// class C { ++// p: Foo = "a"; ++// m() { ++// if (this.p === "/*RENAME*/a") {} ++// if ("a" === this.p) {} ++// ++// if (this.p !== "a") {} ++// // --- (line: 10) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// --- (line: 3) skipped --- ++// p: Foo = "a"; ++// m() { ++// if (this.p === "a") {} ++// if ("/*RENAME*/a" === this.p) {} ++// ++// if (this.p !== "a") {} ++// if ("a" !== this.p) {} ++// // --- (line: 11) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// --- (line: 5) skipped --- ++// if (this.p === "a") {} ++// if ("a" === this.p) {} ++// ++// if (this.p !== "/*RENAME*/a") {} ++// if ("a" !== this.p) {} ++// ++// if (this.p == "a") {} ++// // --- (line: 13) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// --- (line: 6) skipped --- ++// if ("a" === this.p) {} ++// ++// if (this.p !== "a") {} ++// if ("/*RENAME*/a" !== this.p) {} ++// ++// if (this.p == "a") {} ++// if ("a" == this.p) {} ++// // --- (line: 14) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// --- (line: 8) skipped --- ++// if (this.p !== "a") {} ++// if ("a" !== this.p) {} ++// ++// if (this.p == "/*RENAME*/a") {} ++// if ("a" == this.p) {} ++// ++// if (this.p != "a") {} ++// // --- (line: 16) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// --- (line: 9) skipped --- ++// if ("a" !== this.p) {} ++// ++// if (this.p == "a") {} ++// if ("/*RENAME*/a" == this.p) {} ++// ++// if (this.p != "a") {} ++// if ("a" != this.p) {} ++// } ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// --- (line: 11) skipped --- ++// if (this.p == "a") {} ++// if ("a" == this.p) {} ++// ++// if (this.p != "/*RENAME*/a") {} ++// if ("a" != this.p) {} ++// } ++// } ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes2.ts === ++// --- (line: 12) skipped --- ++// if ("a" == this.p) {} ++// ++// if (this.p != "a") {} ++// if ("/*RENAME*/a" != this.p) {} + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc new file mode 100644 index 0000000000..ccc899d6ec --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc @@ -0,0 +1,34 @@ +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === +// type Foo = "/*RENAME*/a" | "b"; +// +// class C { +// p: Foo = "a"; +// // --- (line: 5) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === +// type Foo = "a" | "b"; +// +// class C { +// p: Foo = "/*RENAME*/a"; +// m() { +// switch (this.p) { +// case "a": +// // --- (line: 8) skipped --- + + + +// === findRenameLocations === +// === /renameStringLiteralTypes3.ts === +// --- (line: 3) skipped --- +// p: Foo = "a"; +// m() { +// switch (this.p) { +// case "/*RENAME*/a": +// return 1; +// case "b": +// return 2; +// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc.diff new file mode 100644 index 0000000000..e31257d7b7 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes3.baseline.jsonc.diff @@ -0,0 +1,80 @@ +--- old.renameStringLiteralTypes3.baseline.jsonc ++++ new.renameStringLiteralTypes3.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameStringLiteralTypes3.ts === +-// type Foo = "/*RENAME*/[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// switch (this.p) { +-// case "[|aRENAME|]": +-// return 1; +-// case "b": +-// return 2; +-// --- (line: 11) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes3.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "/*RENAME*/[|aRENAME|]"; +-// m() { +-// switch (this.p) { +-// case "[|aRENAME|]": +-// return 1; +-// case "b": +-// return 2; +-// --- (line: 11) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameStringLiteralTypes3.ts === +-// type Foo = "[|aRENAME|]" | "b"; +-// +-// class C { +-// p: Foo = "[|aRENAME|]"; +-// m() { +-// switch (this.p) { +-// case "/*RENAME*/[|aRENAME|]": +-// return 1; +-// case "b": +-// return 2; +-// --- (line: 11) skipped --- ++// type Foo = "/*RENAME*/a" | "b"; ++// ++// class C { ++// p: Foo = "a"; ++// // --- (line: 5) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes3.ts === ++// type Foo = "a" | "b"; ++// ++// class C { ++// p: Foo = "/*RENAME*/a"; ++// m() { ++// switch (this.p) { ++// case "a": ++// // --- (line: 8) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringLiteralTypes3.ts === ++// --- (line: 3) skipped --- ++// p: Foo = "a"; ++// m() { ++// switch (this.p) { ++// case "/*RENAME*/a": ++// return 1; ++// case "b": ++// return 2; ++// // --- (line: 11) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc similarity index 85% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc index 4eb7404ce2..12fad48b96 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameStringLiteralTypes4.ts === - // --- (line: 3) skipped --- // // declare const fn: (p: K) => void // -// fn("Prop 1"/*RENAME*/) +// fn("Prop 1"/*RENAME*/) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc.diff new file mode 100644 index 0000000000..9f06762085 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes4.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameStringLiteralTypes4.baseline.jsonc ++++ new.renameStringLiteralTypes4.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameStringLiteralTypes4.ts === +-// interface I { +-// "[|Prop 1RENAME|]": string; +-// } ++// --- (line: 3) skipped --- + // + // declare const fn: (p: K) => void + // +-// fn("[|Prop 1RENAME|]"/*RENAME*/) ++// fn("Prop 1"/*RENAME*/) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc similarity index 85% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc index e1a505609f..31e195ba65 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameStringLiteralTypes5.ts === - // --- (line: 3) skipped --- // // declare const fn: (p: K) => void // -// fn("Prop 1"/*RENAME*/) +// fn("Prop 1"/*RENAME*/) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc.diff new file mode 100644 index 0000000000..df134a3255 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringLiteralTypes5.baseline.jsonc.diff @@ -0,0 +1,14 @@ +--- old.renameStringLiteralTypes5.baseline.jsonc ++++ new.renameStringLiteralTypes5.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameStringLiteralTypes5.ts === +-// type T = { +-// "[|Prop 1RENAME|]": string; +-// } ++// --- (line: 3) skipped --- + // + // declare const fn: (p: K) => void + // +-// fn("[|Prop 1RENAME|]"/*RENAME*/) ++// fn("Prop 1"/*RENAME*/) \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc similarity index 67% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc index 1ec338da15..ba82999e6c 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc @@ -1,6 +1,5 @@ // === findRenameLocations === // === /renameStringPropertyNames.ts === - // var o = { // /*RENAME*/[|propRENAME|]: 0 // }; @@ -15,10 +14,8 @@ - // === findRenameLocations === // === /renameStringPropertyNames.ts === - // var o = { // prop: 0 // }; @@ -33,36 +30,39 @@ - // === findRenameLocations === // === /renameStringPropertyNames.ts === - -// /*RENAME*/var o = { -// prop: 0 +// --- (line: 5) skipped --- +// "prop": 1 // }; // -// // --- (line: 5) skipped --- - +// o["/*RENAME*/prop"]; +// o['prop']; +// o.prop; // === findRenameLocations === // === /renameStringPropertyNames.ts === - -// /*RENAME*/var o = { -// prop: 0 +// --- (line: 6) skipped --- // }; // -// // --- (line: 5) skipped --- - +// o["prop"]; +// o['/*RENAME*/prop']; +// o.prop; // === findRenameLocations === // === /renameStringPropertyNames.ts === - -// /*RENAME*/var o = { -// prop: 0 +// var o = { +// [|propRENAME|]: 0 // }; // -// // --- (line: 5) skipped --- +// o = { +// "[|propRENAME|]": 1 +// }; +// +// o["[|propRENAME|]"]; +// o['[|propRENAME|]']; +// o./*RENAME*/[|propRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc.diff new file mode 100644 index 0000000000..3e4ddebfd3 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames.baseline.jsonc.diff @@ -0,0 +1,83 @@ +--- old.renameStringPropertyNames.baseline.jsonc ++++ new.renameStringPropertyNames.baseline.jsonc +@@= skipped -16, +16 lines =@@ + // === findRenameLocations === + // === /renameStringPropertyNames.ts === + // var o = { +-// [|propRENAME|]: 0 +-// }; +-// +-// o = { +-// "/*RENAME*/[|propRENAME|]": 1 +-// }; +-// +-// o["[|propRENAME|]"]; +-// o['[|propRENAME|]']; +-// o.[|propRENAME|]; +- +- +- +-// === findRenameLocations === +-// === /renameStringPropertyNames.ts === +-// var o = { +-// [|propRENAME|]: 0 +-// }; +-// +-// o = { +-// "[|propRENAME|]": 1 +-// }; +-// +-// o["/*RENAME*/[|propRENAME|]"]; +-// o['[|propRENAME|]']; +-// o.[|propRENAME|]; +- +- +- +-// === findRenameLocations === +-// === /renameStringPropertyNames.ts === +-// var o = { +-// [|propRENAME|]: 0 +-// }; +-// +-// o = { +-// "[|propRENAME|]": 1 +-// }; +-// +-// o["[|propRENAME|]"]; +-// o['/*RENAME*/[|propRENAME|]']; +-// o.[|propRENAME|]; ++// prop: 0 ++// }; ++// ++// o = { ++// "/*RENAME*/prop": 1 ++// }; ++// ++// o["prop"]; ++// o['prop']; ++// o.prop; ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringPropertyNames.ts === ++// --- (line: 5) skipped --- ++// "prop": 1 ++// }; ++// ++// o["/*RENAME*/prop"]; ++// o['prop']; ++// o.prop; ++ ++ ++ ++// === findRenameLocations === ++// === /renameStringPropertyNames.ts === ++// --- (line: 6) skipped --- ++// }; ++// ++// o["prop"]; ++// o['/*RENAME*/prop']; ++// o.prop; + + diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc similarity index 98% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc index 655994e633..31f0c7a560 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc @@ -1,8 +1,7 @@ // === findRenameLocations === // === /renameStringPropertyNames2.ts === - // --- (line: 4) skipped --- // let { foo }: Props = null as any; // foo; // -// let asd: Props = { "foo"/*RENAME*/: true }; // rename foo here +// let asd: Props = { "foo"/*RENAME*/: true }; // rename foo here \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc.diff new file mode 100644 index 0000000000..48096d12df --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameStringPropertyNames2.baseline.jsonc.diff @@ -0,0 +1,16 @@ +--- old.renameStringPropertyNames2.baseline.jsonc ++++ new.renameStringPropertyNames2.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /renameStringPropertyNames2.ts === +-// type Props = { +-// [|fooRENAME|]: boolean; +-// } +-// +-// let { [|fooRENAME|]: foo/*END SUFFIX*/ }: Props = null as any; ++// --- (line: 4) skipped --- ++// let { foo }: Props = null as any; + // foo; + // +-// let asd: Props = { "[|fooRENAME|]"/*RENAME*/: true }; // rename foo here ++// let asd: Props = { "foo"/*RENAME*/: true }; // rename foo here \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc new file mode 100644 index 0000000000..25095184a2 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc @@ -0,0 +1,333 @@ +// === findRenameLocations === +// === /a.ts === +// interface Obj { +// [`/*RENAME*/num`]: number; +// ['bool']: boolean; +// } +// +// // --- (line: 6) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 3) skipped --- +// } +// +// let o: Obj = { +// [`/*RENAME*/num`]: 0, +// ['bool']: true, +// }; +// +// // --- (line: 11) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 8) skipped --- +// }; +// +// o = { +// ['/*RENAME*/num']: 1, +// [`bool`]: false, +// }; +// +// // --- (line: 16) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// interface Obj { +// [`[|numRENAME|]`]: number; +// ['bool']: boolean; +// } +// +// let o: Obj = { +// [`[|numRENAME|]`]: 0, +// ['bool']: true, +// }; +// +// o = { +// ['[|numRENAME|]']: 1, +// [`bool`]: false, +// }; +// +// o./*RENAME*/[|numRENAME|]; +// o['[|numRENAME|]']; +// o["[|numRENAME|]"]; +// o[`[|numRENAME|]`]; +// +// o.bool; +// o['bool']; +// // --- (line: 23) skipped --- + +// === /b.js === +// import { o as obj } from './a'; +// +// obj.[|numRENAME|]; +// obj[`[|numRENAME|]`]; +// +// obj.bool; +// obj[`bool`]; + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 13) skipped --- +// }; +// +// o.num; +// o['/*RENAME*/num']; +// o["num"]; +// o[`num`]; +// +// // --- (line: 21) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 14) skipped --- +// +// o.num; +// o['num']; +// o["/*RENAME*/num"]; +// o[`num`]; +// +// o.bool; +// // --- (line: 22) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 15) skipped --- +// o.num; +// o['num']; +// o["num"]; +// o[`/*RENAME*/num`]; +// +// o.bool; +// o['bool']; +// // --- (line: 23) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// interface Obj { +// [`[|numRENAME|]`]: number; +// ['bool']: boolean; +// } +// +// let o: Obj = { +// [`[|numRENAME|]`]: 0, +// ['bool']: true, +// }; +// +// o = { +// ['[|numRENAME|]']: 1, +// [`bool`]: false, +// }; +// +// o.[|numRENAME|]; +// o['[|numRENAME|]']; +// o["[|numRENAME|]"]; +// o[`[|numRENAME|]`]; +// +// o.bool; +// o['bool']; +// // --- (line: 23) skipped --- + +// === /b.js === +// import { o as obj } from './a'; +// +// obj./*RENAME*/[|numRENAME|]; +// obj[`[|numRENAME|]`]; +// +// obj.bool; +// obj[`bool`]; + + + +// === findRenameLocations === +// === /b.js === +// import { o as obj } from './a'; +// +// obj.num; +// obj[`/*RENAME*/num`]; +// +// obj.bool; +// obj[`bool`]; + + + +// === findRenameLocations === +// === /a.ts === +// interface Obj { +// [`num`]: number; +// ['/*RENAME*/bool']: boolean; +// } +// +// let o: Obj = { +// // --- (line: 7) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 4) skipped --- +// +// let o: Obj = { +// [`num`]: 0, +// ['/*RENAME*/bool']: true, +// }; +// +// o = { +// // --- (line: 12) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 9) skipped --- +// +// o = { +// ['num']: 1, +// [`/*RENAME*/bool`]: false, +// }; +// +// o.num; +// // --- (line: 17) skipped --- + + + +// === findRenameLocations === +// === /a.ts === +// interface Obj { +// [`num`]: number; +// ['[|boolRENAME|]']: boolean; +// } +// +// let o: Obj = { +// [`num`]: 0, +// ['[|boolRENAME|]']: true, +// }; +// +// o = { +// ['num']: 1, +// [`[|boolRENAME|]`]: false, +// }; +// +// o.num; +// o['num']; +// o["num"]; +// o[`num`]; +// +// o./*RENAME*/[|boolRENAME|]; +// o['[|boolRENAME|]']; +// o["[|boolRENAME|]"]; +// o[`[|boolRENAME|]`]; +// +// export { o }; + +// === /b.js === +// import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// +// obj.[|boolRENAME|]; +// obj[`[|boolRENAME|]`]; + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 18) skipped --- +// o[`num`]; +// +// o.bool; +// o['/*RENAME*/bool']; +// o["bool"]; +// o[`bool`]; +// +// export { o }; + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 19) skipped --- +// +// o.bool; +// o['bool']; +// o["/*RENAME*/bool"]; +// o[`bool`]; +// +// export { o }; + + + +// === findRenameLocations === +// === /a.ts === +// --- (line: 20) skipped --- +// o.bool; +// o['bool']; +// o["bool"]; +// o[`/*RENAME*/bool`]; +// +// export { o }; + + + +// === findRenameLocations === +// === /a.ts === +// interface Obj { +// [`num`]: number; +// ['[|boolRENAME|]']: boolean; +// } +// +// let o: Obj = { +// [`num`]: 0, +// ['[|boolRENAME|]']: true, +// }; +// +// o = { +// ['num']: 1, +// [`[|boolRENAME|]`]: false, +// }; +// +// o.num; +// o['num']; +// o["num"]; +// o[`num`]; +// +// o.[|boolRENAME|]; +// o['[|boolRENAME|]']; +// o["[|boolRENAME|]"]; +// o[`[|boolRENAME|]`]; +// +// export { o }; + +// === /b.js === +// import { o as obj } from './a'; +// +// obj.num; +// obj[`num`]; +// +// obj./*RENAME*/[|boolRENAME|]; +// obj[`[|boolRENAME|]`]; + + + +// === findRenameLocations === +// === /b.js === +// --- (line: 3) skipped --- +// obj[`num`]; +// +// obj.bool; +// obj[`/*RENAME*/bool`]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc.diff new file mode 100644 index 0000000000..242764bf5c --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsComputedProperties.baseline.jsonc.diff @@ -0,0 +1,774 @@ +--- old.renameTemplateLiteralsComputedProperties.baseline.jsonc ++++ new.renameTemplateLiteralsComputedProperties.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === + // === /a.ts === + // interface Obj { +-// [`/*RENAME*/[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['[|numRENAME|]']; +-// o["[|numRENAME|]"]; +-// o[`[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.[|numRENAME|]; +-// obj[`[|numRENAME|]`]; +-// +-// obj.bool; +-// obj[`bool`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`/*RENAME*/[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['[|numRENAME|]']; +-// o["[|numRENAME|]"]; +-// o[`[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.[|numRENAME|]; +-// obj[`[|numRENAME|]`]; +-// +-// obj.bool; +-// obj[`bool`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['/*RENAME*/[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['[|numRENAME|]']; +-// o["[|numRENAME|]"]; +-// o[`[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.[|numRENAME|]; +-// obj[`[|numRENAME|]`]; +-// +-// obj.bool; +-// obj[`bool`]; ++// [`/*RENAME*/num`]: number; ++// ['bool']: boolean; ++// } ++// ++// // --- (line: 6) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 3) skipped --- ++// } ++// ++// let o: Obj = { ++// [`/*RENAME*/num`]: 0, ++// ['bool']: true, ++// }; ++// ++// // --- (line: 11) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 8) skipped --- ++// }; ++// ++// o = { ++// ['/*RENAME*/num']: 1, ++// [`bool`]: false, ++// }; ++// ++// // --- (line: 16) skipped --- + + + +@@= skipped -132, +60 lines =@@ + // + // o.bool; + // o['bool']; +-// --- (line: 23) skipped --- +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.[|numRENAME|]; +-// obj[`[|numRENAME|]`]; +-// +-// obj.bool; +-// obj[`bool`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['/*RENAME*/[|numRENAME|]']; +-// o["[|numRENAME|]"]; +-// o[`[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.[|numRENAME|]; +-// obj[`[|numRENAME|]`]; +-// +-// obj.bool; +-// obj[`bool`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['[|numRENAME|]']; +-// o["/*RENAME*/[|numRENAME|]"]; +-// o[`[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.[|numRENAME|]; +-// obj[`[|numRENAME|]`]; +-// +-// obj.bool; +-// obj[`bool`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['[|numRENAME|]']; +-// o["[|numRENAME|]"]; +-// o[`/*RENAME*/[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.[|numRENAME|]; +-// obj[`[|numRENAME|]`]; +-// +-// obj.bool; +-// obj[`bool`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['[|numRENAME|]']; +-// o["[|numRENAME|]"]; +-// o[`[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- ++// // --- (line: 23) skipped --- ++ ++// === /b.js === ++// import { o as obj } from './a'; ++// ++// obj.[|numRENAME|]; ++// obj[`[|numRENAME|]`]; ++// ++// obj.bool; ++// obj[`bool`]; ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 13) skipped --- ++// }; ++// ++// o.num; ++// o['/*RENAME*/num']; ++// o["num"]; ++// o[`num`]; ++// ++// // --- (line: 21) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 14) skipped --- ++// ++// o.num; ++// o['num']; ++// o["/*RENAME*/num"]; ++// o[`num`]; ++// ++// o.bool; ++// // --- (line: 22) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 15) skipped --- ++// o.num; ++// o['num']; ++// o["num"]; ++// o[`/*RENAME*/num`]; ++// ++// o.bool; ++// o['bool']; ++// // --- (line: 23) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// interface Obj { ++// [`[|numRENAME|]`]: number; ++// ['bool']: boolean; ++// } ++// ++// let o: Obj = { ++// [`[|numRENAME|]`]: 0, ++// ['bool']: true, ++// }; ++// ++// o = { ++// ['[|numRENAME|]']: 1, ++// [`bool`]: false, ++// }; ++// ++// o.[|numRENAME|]; ++// o['[|numRENAME|]']; ++// o["[|numRENAME|]"]; ++// o[`[|numRENAME|]`]; ++// ++// o.bool; ++// o['bool']; ++// // --- (line: 23) skipped --- + + // === /b.js === + // import { o as obj } from './a'; +@@= skipped -162, +93 lines =@@ + + + // === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`[|numRENAME|]`]: number; +-// ['bool']: boolean; +-// } +-// +-// let o: Obj = { +-// [`[|numRENAME|]`]: 0, +-// ['bool']: true, +-// }; +-// +-// o = { +-// ['[|numRENAME|]']: 1, +-// [`bool`]: false, +-// }; +-// +-// o.[|numRENAME|]; +-// o['[|numRENAME|]']; +-// o["[|numRENAME|]"]; +-// o[`[|numRENAME|]`]; +-// +-// o.bool; +-// o['bool']; +-// --- (line: 23) skipped --- +- + // === /b.js === + // import { o as obj } from './a'; + // +-// obj.[|numRENAME|]; +-// obj[`/*RENAME*/[|numRENAME|]`]; ++// obj.num; ++// obj[`/*RENAME*/num`]; + // + // obj.bool; + // obj[`bool`]; +@@= skipped -40, +15 lines =@@ + // === /a.ts === + // interface Obj { + // [`num`]: number; +-// ['/*RENAME*/[|boolRENAME|]']: boolean; +-// } +-// +-// let o: Obj = { +-// [`num`]: 0, +-// ['[|boolRENAME|]']: true, +-// }; +-// +-// o = { +-// ['num']: 1, +-// [`[|boolRENAME|]`]: false, +-// }; +-// +-// o.num; +-// o['num']; +-// o["num"]; +-// o[`num`]; +-// +-// o.[|boolRENAME|]; +-// o['[|boolRENAME|]']; +-// o["[|boolRENAME|]"]; +-// o[`[|boolRENAME|]`]; +-// +-// export { o }; +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.num; +-// obj[`num`]; +-// +-// obj.[|boolRENAME|]; +-// obj[`[|boolRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`num`]: number; +-// ['[|boolRENAME|]']: boolean; +-// } +-// +-// let o: Obj = { +-// [`num`]: 0, +-// ['/*RENAME*/[|boolRENAME|]']: true, +-// }; +-// +-// o = { +-// ['num']: 1, +-// [`[|boolRENAME|]`]: false, +-// }; +-// +-// o.num; +-// o['num']; +-// o["num"]; +-// o[`num`]; +-// +-// o.[|boolRENAME|]; +-// o['[|boolRENAME|]']; +-// o["[|boolRENAME|]"]; +-// o[`[|boolRENAME|]`]; +-// +-// export { o }; +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.num; +-// obj[`num`]; +-// +-// obj.[|boolRENAME|]; +-// obj[`[|boolRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`num`]: number; +-// ['[|boolRENAME|]']: boolean; +-// } +-// +-// let o: Obj = { +-// [`num`]: 0, +-// ['[|boolRENAME|]']: true, +-// }; +-// +-// o = { +-// ['num']: 1, +-// [`/*RENAME*/[|boolRENAME|]`]: false, +-// }; +-// +-// o.num; +-// o['num']; +-// o["num"]; +-// o[`num`]; +-// +-// o.[|boolRENAME|]; +-// o['[|boolRENAME|]']; +-// o["[|boolRENAME|]"]; +-// o[`[|boolRENAME|]`]; +-// +-// export { o }; +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.num; +-// obj[`num`]; +-// +-// obj.[|boolRENAME|]; +-// obj[`[|boolRENAME|]`]; ++// ['/*RENAME*/bool']: boolean; ++// } ++// ++// let o: Obj = { ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 4) skipped --- ++// ++// let o: Obj = { ++// [`num`]: 0, ++// ['/*RENAME*/bool']: true, ++// }; ++// ++// o = { ++// // --- (line: 12) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 9) skipped --- ++// ++// o = { ++// ['num']: 1, ++// [`/*RENAME*/bool`]: false, ++// }; ++// ++// o.num; ++// // --- (line: 17) skipped --- + + + +@@= skipped -158, +78 lines =@@ + + // === findRenameLocations === + // === /a.ts === +-// interface Obj { +-// [`num`]: number; +-// ['[|boolRENAME|]']: boolean; +-// } +-// +-// let o: Obj = { +-// [`num`]: 0, +-// ['[|boolRENAME|]']: true, +-// }; +-// +-// o = { +-// ['num']: 1, +-// [`[|boolRENAME|]`]: false, +-// }; +-// +-// o.num; +-// o['num']; +-// o["num"]; +-// o[`num`]; +-// +-// o.[|boolRENAME|]; +-// o['/*RENAME*/[|boolRENAME|]']; +-// o["[|boolRENAME|]"]; +-// o[`[|boolRENAME|]`]; +-// +-// export { o }; +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.num; +-// obj[`num`]; +-// +-// obj.[|boolRENAME|]; +-// obj[`[|boolRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`num`]: number; +-// ['[|boolRENAME|]']: boolean; +-// } +-// +-// let o: Obj = { +-// [`num`]: 0, +-// ['[|boolRENAME|]']: true, +-// }; +-// +-// o = { +-// ['num']: 1, +-// [`[|boolRENAME|]`]: false, +-// }; +-// +-// o.num; +-// o['num']; +-// o["num"]; +-// o[`num`]; +-// +-// o.[|boolRENAME|]; +-// o['[|boolRENAME|]']; +-// o["/*RENAME*/[|boolRENAME|]"]; +-// o[`[|boolRENAME|]`]; +-// +-// export { o }; +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.num; +-// obj[`num`]; +-// +-// obj.[|boolRENAME|]; +-// obj[`[|boolRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`num`]: number; +-// ['[|boolRENAME|]']: boolean; +-// } +-// +-// let o: Obj = { +-// [`num`]: 0, +-// ['[|boolRENAME|]']: true, +-// }; +-// +-// o = { +-// ['num']: 1, +-// [`[|boolRENAME|]`]: false, +-// }; +-// +-// o.num; +-// o['num']; +-// o["num"]; +-// o[`num`]; +-// +-// o.[|boolRENAME|]; +-// o['[|boolRENAME|]']; +-// o["[|boolRENAME|]"]; +-// o[`/*RENAME*/[|boolRENAME|]`]; +-// +-// export { o }; +- +-// === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.num; +-// obj[`num`]; +-// +-// obj.[|boolRENAME|]; +-// obj[`[|boolRENAME|]`]; ++// --- (line: 18) skipped --- ++// o[`num`]; ++// ++// o.bool; ++// o['/*RENAME*/bool']; ++// o["bool"]; ++// o[`bool`]; ++// ++// export { o }; ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 19) skipped --- ++// ++// o.bool; ++// o['bool']; ++// o["/*RENAME*/bool"]; ++// o[`bool`]; ++// ++// export { o }; ++ ++ ++ ++// === findRenameLocations === ++// === /a.ts === ++// --- (line: 20) skipped --- ++// o.bool; ++// o['bool']; ++// o["bool"]; ++// o[`/*RENAME*/bool`]; ++// ++// export { o }; + + + +@@= skipped -159, +78 lines =@@ + + + // === findRenameLocations === +-// === /a.ts === +-// interface Obj { +-// [`num`]: number; +-// ['[|boolRENAME|]']: boolean; +-// } +-// +-// let o: Obj = { +-// [`num`]: 0, +-// ['[|boolRENAME|]']: true, +-// }; +-// +-// o = { +-// ['num']: 1, +-// [`[|boolRENAME|]`]: false, +-// }; +-// +-// o.num; +-// o['num']; +-// o["num"]; +-// o[`num`]; +-// +-// o.[|boolRENAME|]; +-// o['[|boolRENAME|]']; +-// o["[|boolRENAME|]"]; +-// o[`[|boolRENAME|]`]; +-// +-// export { o }; +- + // === /b.js === +-// import { o as obj } from './a'; +-// +-// obj.num; ++// --- (line: 3) skipped --- + // obj[`num`]; + // +-// obj.[|boolRENAME|]; +-// obj[`/*RENAME*/[|boolRENAME|]`]; ++// obj.bool; ++// obj[`/*RENAME*/bool`]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc new file mode 100644 index 0000000000..0b2c07002b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc @@ -0,0 +1,70 @@ +// === findRenameLocations === +// === /a.js === +// let obj = {}; +// +// Object.defineProperty(obj, `/*RENAME*/prop`, { value: 0 }); +// +// obj = { +// [`prop`]: 1 +// // --- (line: 7) skipped --- + + + +// === findRenameLocations === +// === /a.js === +// let obj = {}; +// +// Object.defineProperty(obj, `prop`, { value: 0 }); +// +// obj = { +// [`/*RENAME*/prop`]: 1 +// }; +// +// obj.prop; +// // --- (line: 10) skipped --- + + + +// === findRenameLocations === +// === /a.js === +// --- (line: 5) skipped --- +// [`prop`]: 1 +// }; +// +// obj./*RENAME*/prop; +// obj['prop']; +// obj["prop"]; +// obj[`prop`]; + + + +// === findRenameLocations === +// === /a.js === +// --- (line: 6) skipped --- +// }; +// +// obj.prop; +// obj['/*RENAME*/prop']; +// obj["prop"]; +// obj[`prop`]; + + + +// === findRenameLocations === +// === /a.js === +// --- (line: 7) skipped --- +// +// obj.prop; +// obj['prop']; +// obj["/*RENAME*/prop"]; +// obj[`prop`]; + + + +// === findRenameLocations === +// === /a.js === +// --- (line: 8) skipped --- +// obj.prop; +// obj['prop']; +// obj["prop"]; +// obj[`/*RENAME*/prop`]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc.diff new file mode 100644 index 0000000000..631991ae7e --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameTemplateLiteralsDefinePropertyJs.baseline.jsonc.diff @@ -0,0 +1,167 @@ +--- old.renameTemplateLiteralsDefinePropertyJs.baseline.jsonc ++++ new.renameTemplateLiteralsDefinePropertyJs.baseline.jsonc +@@= skipped -1, +1 lines =@@ + // === /a.js === + // let obj = {}; + // +-// Object.defineProperty(obj, `/*RENAME*/[|propRENAME|]`, { value: 0 }); +-// +-// obj = { +-// [`[|propRENAME|]`]: 1 +-// }; +-// +-// obj.[|propRENAME|]; +-// obj['[|propRENAME|]']; +-// obj["[|propRENAME|]"]; +-// obj[`[|propRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.js === +-// let obj = {}; +-// +-// Object.defineProperty(obj, `[|propRENAME|]`, { value: 0 }); +-// +-// obj = { +-// [`/*RENAME*/[|propRENAME|]`]: 1 +-// }; +-// +-// obj.[|propRENAME|]; +-// obj['[|propRENAME|]']; +-// obj["[|propRENAME|]"]; +-// obj[`[|propRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.js === +-// let obj = {}; +-// +-// Object.defineProperty(obj, `[|propRENAME|]`, { value: 0 }); +-// +-// obj = { +-// [`[|propRENAME|]`]: 1 +-// }; +-// +-// obj./*RENAME*/[|propRENAME|]; +-// obj['[|propRENAME|]']; +-// obj["[|propRENAME|]"]; +-// obj[`[|propRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.js === +-// let obj = {}; +-// +-// Object.defineProperty(obj, `[|propRENAME|]`, { value: 0 }); +-// +-// obj = { +-// [`[|propRENAME|]`]: 1 +-// }; +-// +-// obj.[|propRENAME|]; +-// obj['/*RENAME*/[|propRENAME|]']; +-// obj["[|propRENAME|]"]; +-// obj[`[|propRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.js === +-// let obj = {}; +-// +-// Object.defineProperty(obj, `[|propRENAME|]`, { value: 0 }); +-// +-// obj = { +-// [`[|propRENAME|]`]: 1 +-// }; +-// +-// obj.[|propRENAME|]; +-// obj['[|propRENAME|]']; +-// obj["/*RENAME*/[|propRENAME|]"]; +-// obj[`[|propRENAME|]`]; +- +- +- +-// === findRenameLocations === +-// === /a.js === +-// let obj = {}; +-// +-// Object.defineProperty(obj, `[|propRENAME|]`, { value: 0 }); +-// +-// obj = { +-// [`[|propRENAME|]`]: 1 +-// }; +-// +-// obj.[|propRENAME|]; +-// obj['[|propRENAME|]']; +-// obj["[|propRENAME|]"]; +-// obj[`/*RENAME*/[|propRENAME|]`]; ++// Object.defineProperty(obj, `/*RENAME*/prop`, { value: 0 }); ++// ++// obj = { ++// [`prop`]: 1 ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.js === ++// let obj = {}; ++// ++// Object.defineProperty(obj, `prop`, { value: 0 }); ++// ++// obj = { ++// [`/*RENAME*/prop`]: 1 ++// }; ++// ++// obj.prop; ++// // --- (line: 10) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /a.js === ++// --- (line: 5) skipped --- ++// [`prop`]: 1 ++// }; ++// ++// obj./*RENAME*/prop; ++// obj['prop']; ++// obj["prop"]; ++// obj[`prop`]; ++ ++ ++ ++// === findRenameLocations === ++// === /a.js === ++// --- (line: 6) skipped --- ++// }; ++// ++// obj.prop; ++// obj['/*RENAME*/prop']; ++// obj["prop"]; ++// obj[`prop`]; ++ ++ ++ ++// === findRenameLocations === ++// === /a.js === ++// --- (line: 7) skipped --- ++// ++// obj.prop; ++// obj['prop']; ++// obj["/*RENAME*/prop"]; ++// obj[`prop`]; ++ ++ ++ ++// === findRenameLocations === ++// === /a.js === ++// --- (line: 8) skipped --- ++// obj.prop; ++// obj['prop']; ++// obj["prop"]; ++// obj[`/*RENAME*/prop`]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc similarity index 59% rename from testdata/baselines/reference/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc rename to testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc index e3b5f1b76a..2cc30311d9 100644 --- a/testdata/baselines/reference/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameUMDModuleAlias1.baseline.jsonc @@ -1,21 +1,21 @@ // === findRenameLocations === // === /0.d.ts === - // export function doThing(): string; // export function doTheOtherThing(): void; // export as namespace /*RENAME*/[|myLibRENAME|]; - // === /1.ts === - // /// // [|myLibRENAME|].doThing(); - // === findRenameLocations === -// === /1.ts === +// === /0.d.ts === +// export function doThing(): string; +// export function doTheOtherThing(): void; +// export as namespace [|myLibRENAME|]; -// /*RENAME*//// -// myLib.doThing(); +// === /1.ts === +// /// +// /*RENAME*/[|myLibRENAME|].doThing(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc new file mode 100644 index 0000000000..09a71e42e1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename1.baseline.jsonc @@ -0,0 +1,29 @@ +// === findRenameLocations === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// /*RENAME*/[|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = <[|divRENAME|] />; + + + +// === findRenameLocations === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// [|divRENAME|]: { +// name?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// } +// } +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc new file mode 100644 index 0000000000..c9d4b07aa1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc @@ -0,0 +1,21 @@ +// === findRenameLocations === +// === /file.tsx === +// declare module JSX { +// interface Element { } +// interface IntrinsicElements { +// div: { +// /*RENAME*/[|nameRENAME|]?: string; +// isOpen?: boolean; +// }; +// span: { n: string; }; +// // --- (line: 9) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 7) skipped --- +// span: { n: string; }; +// } +// } +// var x =
; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff new file mode 100644 index 0000000000..b4ca831c75 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename2.baseline.jsonc.diff @@ -0,0 +1,26 @@ +--- old.tsxRename2.baseline.jsonc ++++ new.tsxRename2.baseline.jsonc +@@= skipped -7, +7 lines =@@ + // isOpen?: boolean; + // }; + // span: { n: string; }; +-// } +-// } +-// var x =
; ++// // --- (line: 9) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// declare module JSX { +-// interface Element { } +-// interface IntrinsicElements { +-// div: { +-// [|nameRENAME|]?: string; +-// isOpen?: boolean; +-// }; ++// --- (line: 7) skipped --- + // span: { n: string; }; + // } + // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc new file mode 100644 index 0000000000..a4963b39a6 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc @@ -0,0 +1,22 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 5) skipped --- +// } +// class MyClass { +// props: { +// /*RENAME*/[|nameRENAME|]?: string; +// size?: number; +// } +// +// +// var x = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// +// +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff new file mode 100644 index 0000000000..02c57a3f30 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename3.baseline.jsonc.diff @@ -0,0 +1,23 @@ +--- old.tsxRename3.baseline.jsonc ++++ new.tsxRename3.baseline.jsonc +@@= skipped -8, +8 lines =@@ + // } + // + // +-// var x = ; ++// var x = ; + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 5) skipped --- +-// } +-// class MyClass { +-// props: { +-// [|nameRENAME|]?: string; +-// size?: number; ++// --- (line: 10) skipped --- + // } + // + // \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc new file mode 100644 index 0000000000..93acdaddbf --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename5.baseline.jsonc @@ -0,0 +1,19 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 9) skipped --- +// size?: number; +// } +// +// var /*RENAME*/[|nnRENAME|]: string; +// var x = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 9) skipped --- +// size?: number; +// } +// +// var [|nnRENAME|]: string; +// var x = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc new file mode 100644 index 0000000000..b5319c0e42 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename6.baseline.jsonc @@ -0,0 +1,87 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function /*RENAME*/[|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = ; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = ; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = ; +// let opt4 = <[|OptRENAME|] propx={100} propString="hi" />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// propString: string +// optional?: boolean +// } +// declare function [|OptRENAME|](attributes: OptionPropBag): JSX.Element; +// let opt = <[|OptRENAME|] />; +// let opt1 = <[|OptRENAME|] propx={100} propString />; +// let opt2 = <[|OptRENAME|] propx={100} optional/>; +// let opt3 = <[|OptRENAME|] wrong />; +// let opt4 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc new file mode 100644 index 0000000000..295648425f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc @@ -0,0 +1,34 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 4) skipped --- +// interface ElementAttributesProperty { props; } +// } +// interface OptionPropBag { +// /*RENAME*/[|propxRENAME|]: number +// propString: string +// optional?: boolean +// } +// // --- (line: 12) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 10) skipped --- +// } +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 11) skipped --- +// declare function Opt(attributes: OptionPropBag): JSX.Element; +// let opt = ; +// let opt1 = ; +// let opt2 = ; +// let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff new file mode 100644 index 0000000000..7b8a814c5b --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename7.baseline.jsonc.diff @@ -0,0 +1,52 @@ +--- old.tsxRename7.baseline.jsonc ++++ new.tsxRename7.baseline.jsonc +@@= skipped -7, +7 lines =@@ + // propString: string + // optional?: boolean + // } +-// declare function Opt(attributes: OptionPropBag): JSX.Element; +-// let opt = ; +-// let opt1 = ; +-// let opt2 = ; +-// let opt3 = ; ++// // --- (line: 12) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 4) skipped --- +-// interface ElementAttributesProperty { props; } +-// } +-// interface OptionPropBag { +-// [|propxRENAME|]: number +-// propString: string +-// optional?: boolean ++// --- (line: 10) skipped --- + // } + // declare function Opt(attributes: OptionPropBag): JSX.Element; + // let opt = ; + // let opt1 = ; +-// let opt2 = ; ++// let opt2 = ; + // let opt3 = ; + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 4) skipped --- +-// interface ElementAttributesProperty { props; } +-// } +-// interface OptionPropBag { +-// [|propxRENAME|]: number +-// propString: string +-// optional?: boolean +-// } ++// --- (line: 11) skipped --- + // declare function Opt(attributes: OptionPropBag): JSX.Element; + // let opt = ; +-// let opt1 = ; ++// let opt1 = ; + // let opt2 = ; + // let opt3 = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc new file mode 100644 index 0000000000..ee06cf2f9f --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc @@ -0,0 +1,245 @@ +// === findRenameLocations === +// === /file.tsx === +// --- (line: 8) skipped --- +// className?: string; +// } +// interface ButtonProps extends ClickableProps { +// /*RENAME*/[|onClickRENAME|](event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// goTo: string; +// // --- (line: 16) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 18) skipped --- +// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 11) skipped --- +// onClick(event?: React.MouseEvent): void; +// } +// interface LinkProps extends ClickableProps { +// /*RENAME*/[|goToRENAME|]: string; +// } +// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +// declare function MainButton(linkProps: LinkProps): JSX.Element; +// // --- (line: 19) skipped --- + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 20) skipped --- +// let opt = ; +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function /*RENAME*/[|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function /*RENAME*/[|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = ; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = {}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = {}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = ; +// let opt = <[|MainButtonRENAME|] wrong />; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 13) skipped --- +// interface LinkProps extends ClickableProps { +// goTo: string; +// } +// declare function [|MainButtonRENAME|](buttonProps: ButtonProps): JSX.Element; +// declare function [|MainButtonRENAME|](linkProps: LinkProps): JSX.Element; +// declare function [|MainButtonRENAME|](props: ButtonProps | LinkProps): JSX.Element; +// let opt = <[|MainButtonRENAME|] />; +// let opt = <[|MainButtonRENAME|] children="chidlren" />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} />; +// let opt = <[|MainButtonRENAME|] onClick={()=>{}} ignore-prop />; +// let opt = <[|MainButtonRENAME|] goTo="goTo" />; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 19) skipped --- +// let opt = ; +// let opt = ; +// let opt = {}} />; +// let opt = {}} /*RENAME*/[|ignore-propRENAME|] />; +// let opt = ; +// let opt = ; + + + +// === findRenameLocations === +// === /file.tsx === +// --- (line: 21) skipped --- +// let opt = {}} />; +// let opt = {}} ignore-prop />; +// let opt = ; +// let opt = ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff new file mode 100644 index 0000000000..40ae19c4bc --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/tsxRename9.baseline.jsonc.diff @@ -0,0 +1,98 @@ +--- old.tsxRename9.baseline.jsonc ++++ new.tsxRename9.baseline.jsonc +@@= skipped -7, +7 lines =@@ + // } + // interface LinkProps extends ClickableProps { + // goTo: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +-// let opt = ; +-// let opt = ; +-// let opt = {}} />; +-// let opt = {}} ignore-prop />; +-// let opt = ; +-// let opt = ; ++// // --- (line: 16) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 8) skipped --- +-// className?: string; +-// } +-// interface ButtonProps extends ClickableProps { +-// [|onClickRENAME|](event?: React.MouseEvent): void; +-// } +-// interface LinkProps extends ClickableProps { +-// goTo: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; ++// --- (line: 18) skipped --- + // declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; + // let opt = ; + // let opt = ; + // let opt = {}} />; +-// let opt = {}} ignore-prop />; ++// let opt = {}} ignore-prop />; + // let opt = ; + // let opt = ; + +@@= skipped -38, +19 lines =@@ + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 8) skipped --- +-// className?: string; +-// } +-// interface ButtonProps extends ClickableProps { +-// [|onClickRENAME|](event?: React.MouseEvent): void; +-// } +-// interface LinkProps extends ClickableProps { +-// goTo: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; ++// --- (line: 19) skipped --- + // let opt = ; + // let opt = ; +-// let opt = {}} />; ++// let opt = {}} />; + // let opt = {}} ignore-prop />; + // let opt = ; + // let opt = ; +@@= skipped -31, +20 lines =@@ + // } + // declare function MainButton(buttonProps: ButtonProps): JSX.Element; + // declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +-// let opt = ; +-// let opt = ; +-// let opt = {}} />; +-// let opt = {}} ignore-prop />; +-// let opt = ; +-// let opt = ; ++// // --- (line: 19) skipped --- + + + + // === findRenameLocations === + // === /file.tsx === +-// --- (line: 11) skipped --- +-// onClick(event?: React.MouseEvent): void; +-// } +-// interface LinkProps extends ClickableProps { +-// [|goToRENAME|]: string; +-// } +-// declare function MainButton(buttonProps: ButtonProps): JSX.Element; +-// declare function MainButton(linkProps: LinkProps): JSX.Element; +-// declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; +-// let opt = ; ++// --- (line: 20) skipped --- + // let opt = ; + // let opt = {}} />; + // let opt = {}} ignore-prop />; \ No newline at end of file From 62ad46cc934b7d0eac01a9623bfd0b7f4c928f28 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Wed, 10 Sep 2025 10:37:01 -0700 Subject: [PATCH 13/18] update failing tests --- internal/fourslash/_scripts/failingTests.txt | 6 ++++++ internal/fourslash/fourslash.go | 2 +- internal/fourslash/tests/gen/jsDocSee_rename1_test.go | 2 +- internal/fourslash/tests/gen/jsdocLink_rename1_test.go | 2 +- internal/fourslash/tests/gen/renameCrossJsTs01_test.go | 2 +- .../fourslash/tests/gen/renameForAliasingExport02_test.go | 2 +- .../fourslash/tests/gen/renameFromNodeModulesDep3_test.go | 2 +- internal/fourslash/tests/gen/renamePrivateFields_test.go | 2 +- 8 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index 54854f47e3..227a0077fc 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -253,6 +253,7 @@ TestJsDocPropertyDescription6 TestJsDocPropertyDescription7 TestJsDocPropertyDescription8 TestJsDocPropertyDescription9 +TestJsDocSee_rename1 TestJsDocTagsWithHyphen TestJsQuickInfoGenerallyAcceptableSize TestJsRequireQuickInfo @@ -261,6 +262,7 @@ TestJsdocLink2 TestJsdocLink3 TestJsdocLink6 TestJsdocLink_findAllReferences1 +TestJsdocLink_rename1 TestJsdocTemplatePrototypeCompletions TestJsdocThrowsTagCompletion TestJsdocTypedefTag @@ -442,6 +444,10 @@ TestReferencesInComment TestReferencesInEmptyFile TestReferencesIsAvailableThroughGlobalNoCrash TestRegexDetection +TestRenameCrossJsTs01 +TestRenameForAliasingExport02 +TestRenameFromNodeModulesDep3 +TestRenamePrivateFields TestReverseMappedTypeQuickInfo TestSelfReferencedExternalModule TestSignatureHelpInferenceJsDocImportTag diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index d98d65941f..9c5b89a7e3 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1561,7 +1561,7 @@ func (f *FourslashTest) VerifyRenameSucceeded(t *testing.T) { } if result.WorkspaceEdit == nil || result.WorkspaceEdit.Changes == nil || len(*result.WorkspaceEdit.Changes) == 0 { - t.Fatal(prefix + "Expected rename to be succeed, but got no changes") + t.Fatal(prefix + "Expected rename to succeed, but got no changes") } } diff --git a/internal/fourslash/tests/gen/jsDocSee_rename1_test.go b/internal/fourslash/tests/gen/jsDocSee_rename1_test.go index 3639908376..8841262edd 100644 --- a/internal/fourslash/tests/gen/jsDocSee_rename1_test.go +++ b/internal/fourslash/tests/gen/jsDocSee_rename1_test.go @@ -10,7 +10,7 @@ import ( func TestJsDocSee_rename1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|interface [|{| "contextRangeIndex": 0 |}A|] {}|] /** diff --git a/internal/fourslash/tests/gen/jsdocLink_rename1_test.go b/internal/fourslash/tests/gen/jsdocLink_rename1_test.go index f40890acd9..24aabfe7e9 100644 --- a/internal/fourslash/tests/gen/jsdocLink_rename1_test.go +++ b/internal/fourslash/tests/gen/jsdocLink_rename1_test.go @@ -9,7 +9,7 @@ import ( func TestJsdocLink_rename1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A/**/ {} /** diff --git a/internal/fourslash/tests/gen/renameCrossJsTs01_test.go b/internal/fourslash/tests/gen/renameCrossJsTs01_test.go index df64099f3c..9ed60bd095 100644 --- a/internal/fourslash/tests/gen/renameCrossJsTs01_test.go +++ b/internal/fourslash/tests/gen/renameCrossJsTs01_test.go @@ -9,7 +9,7 @@ import ( func TestRenameCrossJsTs01(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/internal/fourslash/tests/gen/renameForAliasingExport02_test.go b/internal/fourslash/tests/gen/renameForAliasingExport02_test.go index ce01893df4..67e3c1fc8e 100644 --- a/internal/fourslash/tests/gen/renameForAliasingExport02_test.go +++ b/internal/fourslash/tests/gen/renameForAliasingExport02_test.go @@ -9,7 +9,7 @@ import ( func TestRenameForAliasingExport02(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts let x = 1; diff --git a/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go b/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go index 3ee7b1ae02..9966a2cd02 100644 --- a/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go +++ b/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go @@ -9,7 +9,7 @@ import ( func TestRenameFromNodeModulesDep3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/first/index.d.ts import { /*ok*/[|Foo|] } from "foo"; diff --git a/internal/fourslash/tests/gen/renamePrivateFields_test.go b/internal/fourslash/tests/gen/renamePrivateFields_test.go index 3104397bdb..437ea6c491 100644 --- a/internal/fourslash/tests/gen/renamePrivateFields_test.go +++ b/internal/fourslash/tests/gen/renamePrivateFields_test.go @@ -9,7 +9,7 @@ import ( func TestRenamePrivateFields(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { [|/**/#foo|] = 1; From 0fb1a46bec41c828a4e30bf737f67935255d77b6 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Wed, 10 Sep 2025 10:47:31 -0700 Subject: [PATCH 14/18] update makeManual --- internal/fourslash/_scripts/makeManual.mts | 25 ++++++++++++++++----- internal/fourslash/_scripts/manualTests.txt | 1 + 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/internal/fourslash/_scripts/makeManual.mts b/internal/fourslash/_scripts/makeManual.mts index 8f1893cc4e..b2a33ab3f4 100644 --- a/internal/fourslash/_scripts/makeManual.mts +++ b/internal/fourslash/_scripts/makeManual.mts @@ -5,6 +5,7 @@ const scriptsDir = import.meta.dirname; const manualTestsPath = path.join(scriptsDir, "manualTests.txt"); const genDir = path.join(scriptsDir, "../", "tests", "gen"); const manualDir = path.join(scriptsDir, "../", "tests", "manual"); +const submoduleDir = path.join(scriptsDir, "../../../", "_submodules", "TypeScript", "tests", "cases", "fourslash"); function main() { const args = process.argv.slice(2); @@ -17,8 +18,20 @@ function main() { const testName = args[0]; const testFileName = testName; const genTestFile = path.join(genDir, testFileName + "_test.go"); - if (!fs.existsSync(genTestFile)) { - console.error(`Test file not found: '${genTestFile}'. Make sure the test exists in the gen directory first.`); + const submoduleTestFile = path.join(submoduleDir, testFileName + ".ts"); + const submoduleServerTestFile = path.join(submoduleDir, "server", testFileName + ".ts"); + let testKind: "gen" | "submodule" | "submoduleServer" | undefined; + if (fs.existsSync(genTestFile)) { + testKind = "gen"; + } else if (fs.existsSync(submoduleTestFile)) { + testKind = "submodule"; + } else if (fs.existsSync(submoduleServerTestFile)) { + testKind = "submoduleServer"; + } + + if (!testKind) { + console.error(`Could not find test neither as '${genTestFile}', nor as '${submoduleTestFile}' or '${submoduleServerTestFile}'.` + + `Make sure the test exists in the gen directory or in the submodule.`); process.exit(1); } @@ -26,8 +39,10 @@ function main() { fs.mkdirSync(manualDir, { recursive: true }); } - const manualTestFile = path.join(manualDir, path.basename(genTestFile)); - renameAndRemoveSkip(genTestFile, manualTestFile); + if (testKind === "gen") { + const manualTestFile = path.join(manualDir, path.basename(genTestFile)); + markAsManual(genTestFile, manualTestFile); + } let manualTests: string[] = []; if (fs.existsSync(manualTestsPath)) { @@ -42,7 +57,7 @@ function main() { } } -function renameAndRemoveSkip(genFilePath: string, manualFilePath: string) { +function markAsManual(genFilePath: string, manualFilePath: string) { const content = fs.readFileSync(genFilePath, "utf-8"); const updatedContent = content.replace(/^\s*t\.Skip\(\)\s*$/m, ""); fs.writeFileSync(manualFilePath, updatedContent, "utf-8"); diff --git a/internal/fourslash/_scripts/manualTests.txt b/internal/fourslash/_scripts/manualTests.txt index 492e3ccf70..075837864a 100644 --- a/internal/fourslash/_scripts/manualTests.txt +++ b/internal/fourslash/_scripts/manualTests.txt @@ -2,3 +2,4 @@ completionListInClosedFunction05 completionsAtIncompleteObjectLiteralProperty completionsSelfDeclaring1 completionsWithDeprecatedTag4 +renameForDefaultExport01 From b723a671b47433947b5117e0ebc4bdf38e514656 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Wed, 10 Sep 2025 12:26:49 -0700 Subject: [PATCH 15/18] improvements: rename info failed, parse rename preferences --- .../fourslash/_scripts/convertFourslash.mts | 76 ++++++++++++++++--- internal/fourslash/_scripts/makeManual.mts | 12 ++- internal/fourslash/fourslash.go | 39 ++++++++-- internal/fourslash/test_parser.go | 8 +- .../tests/gen/doubleUnderscoreRenames_test.go | 2 +- .../findAllReferencesDynamicImport2_test.go | 2 +- .../findAllReferencesDynamicImport3_test.go | 2 +- ...ndAllRefsClassWithStaticThisAccess_test.go | 2 +- .../gen/findAllRefsOnImportAliases2_test.go | 2 +- .../tests/gen/getRenameInfoTests1_test.go | 2 +- ...01_test.go => getRenameInfoTests2_test.go} | 9 +-- ...ghlightsForExportFromUnfoundModule_test.go | 2 +- .../tests/gen/javaScriptClass2_test.go | 2 +- .../tests/gen/jsDocSee_rename1_test.go | 2 +- ...bjectDefinePropertyRenameLocations_test.go | 2 +- .../gen/jsdocCallbackTagRename01_test.go | 2 +- .../tests/gen/jsdocLink_rename1_test.go | 2 +- .../tests/gen/jsdocSatisfiesTagRename_test.go | 2 +- .../tests/gen/jsdocThrowsTag_rename_test.go | 2 +- .../tests/gen/jsdocTypedefTagRename01_test.go | 2 +- .../tests/gen/jsdocTypedefTagRename02_test.go | 2 +- .../tests/gen/jsdocTypedefTagRename03_test.go | 2 +- .../tests/gen/jsxSpreadReference_test.go | 2 +- .../tests/gen/processInvalidSyntax1_test.go | 2 +- internal/fourslash/tests/gen/rename01_test.go | 2 +- .../gen/renameAcrossMultipleProjects_test.go | 2 +- .../fourslash/tests/gen/renameAlias2_test.go | 2 +- .../fourslash/tests/gen/renameAlias3_test.go | 2 +- .../gen/renameAliasExternalModule2_test.go | 2 +- .../gen/renameAliasExternalModule3_test.go | 2 +- .../gen/renameAliasExternalModule_test.go | 2 +- .../fourslash/tests/gen/renameAlias_test.go | 2 +- ...eBindingElementInitializerExternal_test.go | 2 +- ...eBindingElementInitializerProperty_test.go | 2 +- .../gen/renameCommentsAndStrings1_test.go | 2 +- .../gen/renameCommentsAndStrings2_test.go | 2 +- .../gen/renameCommentsAndStrings3_test.go | 2 +- .../gen/renameCommentsAndStrings4_test.go | 2 +- ...renameContextuallyTypedProperties2_test.go | 2 +- .../renameContextuallyTypedProperties_test.go | 2 +- .../tests/gen/renameCrossJsTs01_test.go | 2 +- .../gen/renameDeclarationKeywords_test.go | 2 +- .../gen/renameDefaultLibDontWork_test.go | 2 +- ...ringAssignmentNestedInArrayLiteral_test.go | 2 +- ...tructuringAssignmentNestedInForOf2_test.go | 2 +- .../gen/renameDestructuringAssignment_test.go | 2 +- .../renameDestructuringClassProperty_test.go | 2 +- ...ameDestructuringDeclarationInForOf_test.go | 2 +- ...enameDestructuringDeclarationInFor_test.go | 2 +- ...nameDestructuringFunctionParameter_test.go | 2 +- ...eDestructuringNestedBindingElement_test.go | 2 +- .../tests/gen/renameExportCrash_test.go | 2 +- .../tests/gen/renameExportSpecifier2_test.go | 4 +- .../tests/gen/renameExportSpecifier_test.go | 4 +- .../gen/renameForAliasingExport02_test.go | 21 ----- .../gen/renameForDefaultExport04_test.go | 27 ------- .../gen/renameForDefaultExport05_test.go | 27 ------- .../gen/renameForDefaultExport06_test.go | 27 ------- .../gen/renameForDefaultExport07_test.go | 28 ------- .../gen/renameForDefaultExport08_test.go | 28 ------- .../gen/renameForDefaultExport09_test.go | 34 --------- .../tests/gen/renameForStringLiteral_test.go | 2 +- .../gen/renameFromNodeModulesDep3_test.go | 32 -------- .../gen/renameFunctionParameter1_test.go | 2 +- .../gen/renameFunctionParameter2_test.go | 2 +- .../renameImportAndExportInDiffFiles_test.go | 2 +- .../tests/gen/renameImportAndExport_test.go | 2 +- .../gen/renameImportAndShorthand_test.go | 2 +- .../renameImportNamespaceAndShorthand_test.go | 2 +- .../gen/renameImportOfExportEquals_test.go | 10 +-- .../tests/gen/renameImportRequire_test.go | 2 +- .../renameImportSpecifierPropertyName_test.go | 2 +- .../gen/renameInConfiguredProject_test.go | 2 +- .../renameInfoForFunctionExpression01_test.go | 2 +- .../gen/renameInheritedProperties1_test.go | 2 +- .../gen/renameInheritedProperties2_test.go | 2 +- .../gen/renameInheritedProperties3_test.go | 2 +- .../gen/renameInheritedProperties4_test.go | 2 +- .../gen/renameInheritedProperties5_test.go | 2 +- .../gen/renameInheritedProperties6_test.go | 2 +- .../gen/renameInheritedProperties7_test.go | 2 +- .../gen/renameInheritedProperties8_test.go | 2 +- .../tests/gen/renameJSDocNamepath_test.go | 2 +- .../tests/gen/renameJsDocImportTag_test.go | 2 +- .../tests/gen/renameJsDocTypeLiteral_test.go | 2 +- .../tests/gen/renameJsExports01_test.go | 2 +- ...enameJsOverloadedFunctionParameter_test.go | 2 +- .../gen/renameJsPropertyAssignment2_test.go | 2 +- .../gen/renameJsPropertyAssignment3_test.go | 2 +- .../gen/renameJsPropertyAssignment4_test.go | 2 +- .../gen/renameJsPropertyAssignment_test.go | 2 +- .../gen/renameJsPrototypeProperty01_test.go | 2 +- .../gen/renameJsPrototypeProperty02_test.go | 2 +- .../gen/renameJsSpecialAssignmentRhs1_test.go | 2 +- .../gen/renameJsSpecialAssignmentRhs2_test.go | 2 +- .../tests/gen/renameJsThisProperty01_test.go | 2 +- .../tests/gen/renameJsThisProperty03_test.go | 2 +- .../tests/gen/renameJsThisProperty05_test.go | 2 +- .../tests/gen/renameJsThisProperty06_test.go | 2 +- .../fourslash/tests/gen/renameLabel1_test.go | 2 +- .../fourslash/tests/gen/renameLabel2_test.go | 2 +- .../fourslash/tests/gen/renameLabel3_test.go | 2 +- .../fourslash/tests/gen/renameLabel4_test.go | 2 +- .../fourslash/tests/gen/renameLabel5_test.go | 2 +- .../fourslash/tests/gen/renameLabel6_test.go | 2 +- ...enameLocationsForClassExpression01_test.go | 2 +- ...meLocationsForFunctionExpression01_test.go | 2 +- ...meLocationsForFunctionExpression02_test.go | 2 +- .../tests/gen/renameModifiers_test.go | 2 +- .../renameModuleExportsProperties1_test.go | 4 +- .../renameModuleExportsProperties2_test.go | 2 +- .../renameModuleExportsProperties3_test.go | 4 +- .../tests/gen/renameNameOnEnumMember_test.go | 23 ------ .../tests/gen/renameNamedImport_test.go | 4 +- .../tests/gen/renameNamespaceImport_test.go | 2 +- .../tests/gen/renameNoDefaultLib_test.go | 2 +- .../renameNumericalIndexSingleQuoted_test.go | 2 +- .../tests/gen/renameNumericalIndex_test.go | 2 +- ...ObjectBindingElementPropertyName01_test.go | 2 +- .../gen/renameObjectSpreadAssignment_test.go | 2 +- .../tests/gen/renameObjectSpread_test.go | 2 +- ...enameParameterPropertyDeclaration1_test.go | 2 +- ...enameParameterPropertyDeclaration2_test.go | 2 +- ...enameParameterPropertyDeclaration3_test.go | 2 +- ...enameParameterPropertyDeclaration4_test.go | 2 +- ...enameParameterPropertyDeclaration5_test.go | 2 +- .../tests/gen/renamePrivateAccessor_test.go | 2 +- .../tests/gen/renamePrivateFields1_test.go | 2 +- .../tests/gen/renamePrivateFields_test.go | 2 +- .../tests/gen/renamePrivateMethod_test.go | 2 +- ...ertyAccessExpressionHeritageClause_test.go | 2 +- .../tests/gen/renameReExportDefault_test.go | 2 +- .../gen/renameReferenceFromLinkTag1_test.go | 2 +- .../gen/renameReferenceFromLinkTag2_test.go | 2 +- .../gen/renameReferenceFromLinkTag3_test.go | 2 +- .../gen/renameReferenceFromLinkTag4_test.go | 2 +- .../gen/renameReferenceFromLinkTag5_test.go | 2 +- .../gen/renameRestBindingElement_test.go | 4 +- .../fourslash/tests/gen/renameRest_test.go | 2 +- .../tests/gen/renameStringLiteralOk1_test.go | 2 +- .../tests/gen/renameStringLiteralOk_test.go | 2 +- .../gen/renameStringLiteralTypes1_test.go | 2 +- .../gen/renameStringLiteralTypes2_test.go | 2 +- .../gen/renameStringLiteralTypes3_test.go | 2 +- .../gen/renameStringLiteralTypes4_test.go | 2 +- .../gen/renameStringLiteralTypes5_test.go | 2 +- .../gen/renameStringPropertyNames2_test.go | 2 +- .../gen/renameStringPropertyNames_test.go | 2 +- ...TemplateLiteralsComputedProperties_test.go | 2 +- ...meTemplateLiteralsDefinePropertyJs_test.go | 2 +- .../fourslash/tests/gen/renameThis_test.go | 23 ++++++ .../tests/gen/renameUMDModuleAlias1_test.go | 2 +- .../tests/gen/renameUMDModuleAlias2_test.go | 2 +- .../fourslash/tests/gen/tsxRename1_test.go | 2 +- .../fourslash/tests/gen/tsxRename2_test.go | 2 +- .../fourslash/tests/gen/tsxRename3_test.go | 2 +- .../fourslash/tests/gen/tsxRename5_test.go | 2 +- .../fourslash/tests/gen/tsxRename6_test.go | 2 +- .../fourslash/tests/gen/tsxRename7_test.go | 2 +- .../fourslash/tests/gen/tsxRename8_test.go | 2 +- .../fourslash/tests/gen/tsxRename9_test.go | 2 +- .../manual/renameForDefaultExport01_test.go | 35 +++++++++ internal/ls/types.go | 2 + .../renameForDefaultExport01.baseline.jsonc | 39 ++++++++++ ...nameForDefaultExport01.baseline.jsonc.diff | 45 +++++++++++ .../renameThis.baseline.jsonc | 37 +++++++++ .../renameThis.baseline.jsonc.diff | 19 +++++ 167 files changed, 478 insertions(+), 425 deletions(-) rename internal/fourslash/tests/gen/{renameForAliasingExport01_test.go => getRenameInfoTests2_test.go} (67%) delete mode 100644 internal/fourslash/tests/gen/renameForAliasingExport02_test.go delete mode 100644 internal/fourslash/tests/gen/renameForDefaultExport04_test.go delete mode 100644 internal/fourslash/tests/gen/renameForDefaultExport05_test.go delete mode 100644 internal/fourslash/tests/gen/renameForDefaultExport06_test.go delete mode 100644 internal/fourslash/tests/gen/renameForDefaultExport07_test.go delete mode 100644 internal/fourslash/tests/gen/renameForDefaultExport08_test.go delete mode 100644 internal/fourslash/tests/gen/renameForDefaultExport09_test.go delete mode 100644 internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go delete mode 100644 internal/fourslash/tests/gen/renameNameOnEnumMember_test.go create mode 100644 internal/fourslash/tests/gen/renameThis_test.go create mode 100644 internal/fourslash/tests/manual/renameForDefaultExport01_test.go create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc create mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff diff --git a/internal/fourslash/_scripts/convertFourslash.mts b/internal/fourslash/_scripts/convertFourslash.mts index 0508d0380e..3fd2615809 100644 --- a/internal/fourslash/_scripts/convertFourslash.mts +++ b/internal/fourslash/_scripts/convertFourslash.mts @@ -194,7 +194,8 @@ function parseFourslashStatement(statement: ts.Statement): Cmd[] | undefined { // `verify.baselineRename...(...)` return parseBaselineRenameArgs(func.text, callExpression.arguments); case "renameInfoSucceeded": - return [{ kind: "renameInfoSucceeded" }]; + case "renameInfoFailed": + return parseRenameInfo(func.text, callExpression.arguments); } } // `goTo....` @@ -806,8 +807,36 @@ function parseBaselineGoToDefinitionArgs(args: readonly ts.Expression[]): [Verif }]; } +function parseRenameInfo(funcName: "renameInfoSucceeded" | "renameInfoFailed", args: readonly ts.Expression[]): [VerifyRenameInfoCmd] | undefined { + let preferences = "nil /*preferences*/"; + let prefArg; + switch (funcName) { + case "renameInfoSucceeded": + if (args[6]) { + prefArg = args[6]; + } + case "renameInfoFailed": + if (args[1]) { + prefArg = args[1]; + } + } + if (prefArg) { + if (!ts.isObjectLiteralExpression(prefArg)) { + console.error(`Expected object literal expression for preferences, got ${prefArg.getText()}`); + return undefined; + } + const parsedPreferences = parseUserPreferences(prefArg); + if (!parsedPreferences) { + console.error(`Unrecognized user preferences in ${funcName}: ${prefArg.getText()}`); + return undefined; + } + } + return [{ kind: funcName, preferences }]; +} + function parseBaselineRenameArgs(funcName: string, args: readonly ts.Expression[]): [VerifyBaselineRenameCmd] | undefined { let newArgs: string[] = []; + let preferences: string | undefined; for (const arg of args) { let typedArg; if ((typedArg = getArrayLiteralExpression(arg))) { @@ -820,7 +849,11 @@ function parseBaselineRenameArgs(funcName: string, args: readonly ts.Expression[ } } else if (ts.isObjectLiteralExpression(arg)) { - // !!! TODO: parse options + preferences = parseUserPreferences(arg); + if (!preferences) { + console.error(`Unrecognized user preferences in verify.baselineRename: ${arg.getText()}`); + return undefined; + } continue; } else if (typedArg = parseBaselineRenameArg(arg)) { @@ -833,9 +866,30 @@ function parseBaselineRenameArgs(funcName: string, args: readonly ts.Expression[ return [{ kind: funcName === "baselineRenameAtRangesWithText" ? "verifyBaselineRenameAtRangesWithText" : "verifyBaselineRename", args: newArgs, + preferences: preferences ? preferences : "nil /*preferences*/", }]; } +function parseUserPreferences(arg: ts.ObjectLiteralExpression): string | undefined { + const preferences: string[] = []; + for (const prop of arg.properties) { + if (ts.isPropertyAssignment(prop)) { + switch (prop.name.getText()) { + // !!! other preferences + case "providePrefixAndSuffixTextForRename": + preferences.push(`UseAliasesForRename: PtrTo(${prop.initializer.getText()})`); + } + } + else { + return undefined; + } + } + if (preferences.length === 0) { + return "nil /*preferences*/"; + } + return `&ls.UserPreferences{${preferences.join(",")}}`; +} + function parseBaselineRenameArg(arg: ts.Expression): string | undefined { if (ts.isStringLiteral(arg)) { return getGoStringLiteral(arg.text); @@ -1199,6 +1253,7 @@ interface VerifyBaselineSignatureHelpCmd { interface VerifyBaselineRenameCmd { kind: "verifyBaselineRename" | "verifyBaselineRenameAtRangesWithText"; args: string[]; + preferences: string; } interface GoToCmd { @@ -1220,8 +1275,9 @@ interface VerifyQuickInfoCmd { docs?: string; } -interface VerifyRenameInfoSucceededCmd { - kind: "renameInfoSucceeded"; +interface VerifyRenameInfoCmd { + kind: "renameInfoSucceeded" | "renameInfoFailed"; + preferences: string; } type Cmd = @@ -1234,7 +1290,7 @@ type Cmd = | EditCmd | VerifyQuickInfoCmd | VerifyBaselineRenameCmd - | VerifyRenameInfoSucceededCmd; + | VerifyRenameInfoCmd; function generateVerifyCompletions({ marker, args, isNewIdentifierLocation }: VerifyCompletionsCmd): string { let expectedList: string; @@ -1295,12 +1351,12 @@ function generateQuickInfoCommand({ kind, marker, text, docs }: VerifyQuickInfoC } } -function generateBaselineRename({ kind, args }: VerifyBaselineRenameCmd): string { +function generateBaselineRename({ kind, args, preferences }: VerifyBaselineRenameCmd): string { switch (kind) { case "verifyBaselineRename": - return `f.VerifyBaselineRename(t, ${args.join(", ")})`; + return `f.VerifyBaselineRename(t, ${preferences}, ${args.join(", ")})`; case "verifyBaselineRenameAtRangesWithText": - return `f.VerifyBaselineRenameAtRangesWithText(t, ${args.join(", ")})`; + return `f.VerifyBaselineRenameAtRangesWithText(t, ${preferences}, ${args.join(", ")})`; } } @@ -1330,7 +1386,9 @@ function generateCmd(cmd: Cmd): string { case "verifyBaselineRenameAtRangesWithText": return generateBaselineRename(cmd); case "renameInfoSucceeded": - return `f.VerifyRenameSucceeded(t)`; + return `f.VerifyRenameSucceeded(t, ${cmd.preferences})`; + case "renameInfoFailed": + return `f.VerifyRenameFailed(t, ${cmd.preferences})`; default: let neverCommand: never = cmd; throw new Error(`Unknown command kind: ${neverCommand as Cmd["kind"]}`); diff --git a/internal/fourslash/_scripts/makeManual.mts b/internal/fourslash/_scripts/makeManual.mts index b2a33ab3f4..09beb81cac 100644 --- a/internal/fourslash/_scripts/makeManual.mts +++ b/internal/fourslash/_scripts/makeManual.mts @@ -23,15 +23,19 @@ function main() { let testKind: "gen" | "submodule" | "submoduleServer" | undefined; if (fs.existsSync(genTestFile)) { testKind = "gen"; - } else if (fs.existsSync(submoduleTestFile)) { + } + else if (fs.existsSync(submoduleTestFile)) { testKind = "submodule"; - } else if (fs.existsSync(submoduleServerTestFile)) { + } + else if (fs.existsSync(submoduleServerTestFile)) { testKind = "submoduleServer"; } if (!testKind) { - console.error(`Could not find test neither as '${genTestFile}', nor as '${submoduleTestFile}' or '${submoduleServerTestFile}'.` + - `Make sure the test exists in the gen directory or in the submodule.`); + console.error( + `Could not find test neither as '${genTestFile}', nor as '${submoduleTestFile}' or '${submoduleServerTestFile}'.` + + `Make sure the test exists in the gen directory or in the submodule.`, + ); process.exit(1); } diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 9c5b89a7e3..35c976ffba 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1468,6 +1468,7 @@ type MarkerOrRangeOrName = any func (f *FourslashTest) VerifyBaselineRename( t *testing.T, + preferences *ls.UserPreferences, markerOrNameOrRanges ...MarkerOrRangeOrName, ) { var markerOrRanges []MarkerOrRange @@ -1488,17 +1489,18 @@ func (f *FourslashTest) VerifyBaselineRename( } } - f.verifyBaselineRename(t, markerOrRanges) + f.verifyBaselineRename(t, preferences, markerOrRanges) } func (f *FourslashTest) verifyBaselineRename( t *testing.T, + preferences *ls.UserPreferences, markerOrRanges []MarkerOrRange, ) { for _, markerOrRange := range markerOrRanges { f.GoToMarkerOrRange(t, markerOrRange) - // !!! options + // !!! set preferences params := &lsproto.RenameParams{ TextDocument: lsproto.TextDocumentIdentifier{ Uri: ls.FileNameToDocumentURI(f.activeFilename), @@ -1526,7 +1528,7 @@ func (f *FourslashTest) verifyBaselineRename( fileToRange.Add(uri, edit.Range) } } - // !!! include options in string + // !!! include preferences in string f.addResultToBaseline(t, "findRenameLocations", f.getBaselineForGroupedLocationsWithFileContents( @@ -1541,8 +1543,8 @@ func (f *FourslashTest) verifyBaselineRename( } } -func (f *FourslashTest) VerifyRenameSucceeded(t *testing.T) { - // !!! options +func (f *FourslashTest) VerifyRenameSucceeded(t *testing.T, preferences *ls.UserPreferences) { + // !!! set preferences params := &lsproto.RenameParams{ TextDocument: lsproto.TextDocumentIdentifier{ Uri: ls.FileNameToDocumentURI(f.activeFilename), @@ -1565,8 +1567,33 @@ func (f *FourslashTest) VerifyRenameSucceeded(t *testing.T) { } } +func (f *FourslashTest) VerifyRenameFailed(t *testing.T, preferences *ls.UserPreferences) { + // !!! set preferences + params := &lsproto.RenameParams{ + TextDocument: lsproto.TextDocumentIdentifier{ + Uri: ls.FileNameToDocumentURI(f.activeFilename), + }, + Position: f.currentCaretPosition, + NewName: "?", + } + + prefix := f.getCurrentPositionPrefix() + resMsg, result, resultOk := sendRequest(t, f, lsproto.TextDocumentRenameInfo, params) + if resMsg == nil { + t.Fatal(prefix + "Nil response received for rename request") + } + if !resultOk { + t.Fatalf(prefix+"Unexpected rename response type: %T", resMsg.AsResponse().Result) + } + + if result.WorkspaceEdit != nil { + t.Fatalf(prefix+"Expected rename to fail, but got changes: %s", cmp.Diff(result.WorkspaceEdit, nil)) + } +} + func (f *FourslashTest) VerifyBaselineRenameAtRangesWithText( t *testing.T, + preferences *ls.UserPreferences, texts ...string, ) { var markerOrRanges []MarkerOrRange @@ -1574,7 +1601,7 @@ func (f *FourslashTest) VerifyBaselineRenameAtRangesWithText( ranges := core.Map(f.GetRangesByText().Get(text), func(r *RangeMarker) MarkerOrRange { return r }) markerOrRanges = append(markerOrRanges, ranges...) } - f.verifyBaselineRename(t, markerOrRanges) + f.verifyBaselineRename(t, preferences, markerOrRanges) } func (f *FourslashTest) GetRangesByText() *collections.MultiMap[string, *RangeMarker] { diff --git a/internal/fourslash/test_parser.go b/internal/fourslash/test_parser.go index f22a114ccb..bb995fc096 100644 --- a/internal/fourslash/test_parser.go +++ b/internal/fourslash/test_parser.go @@ -25,7 +25,7 @@ type RangeMarker struct { fileName string Range core.TextRange LSRange lsproto.Range - marker *Marker + Marker *Marker } func (r *RangeMarker) LSPos() lsproto.Position { @@ -37,10 +37,10 @@ func (r *RangeMarker) FileName() string { } func (r *RangeMarker) GetName() *string { - if r.marker == nil { + if r.Marker == nil { return nil } - return r.marker.Name + return r.Marker.Name } type Marker struct { @@ -251,7 +251,7 @@ func parseFileContent(fileName string, content string, fileOptions map[string]st closedRange := &RangeMarker{ fileName: fileName, Range: core.NewTextRange(rangeStart.position, (i-1)-difference), - marker: rangeStart.marker, + Marker: rangeStart.marker, } rangeMarkers = append(rangeMarkers, closedRange) diff --git a/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go b/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go index 208ba30e2a..3f3798d238 100644 --- a/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go +++ b/internal/fourslash/tests/gen/doubleUnderscoreRenames_test.go @@ -20,5 +20,5 @@ func TestDoubleUnderscoreRenames(t *testing.T) { bar();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "__foo") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "__foo") } diff --git a/internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go b/internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go index bcb1c37b9d..227dfa1255 100644 --- a/internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go @@ -19,5 +19,5 @@ x.then(foo => { })` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2") - f.VerifyBaselineRenameAtRangesWithText(t, "bar") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "bar") } diff --git a/internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go b/internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go index fb5dc01719..0a53745cb5 100644 --- a/internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go @@ -16,5 +16,5 @@ func TestFindAllReferencesDynamicImport3(t *testing.T) { import('./foo').then(([|{ /*1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}bar|] }|]) => undefined);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "1") - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3]) } diff --git a/internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go b/internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go index a1b55ac6a1..610e388639 100644 --- a/internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go +++ b/internal/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go @@ -24,5 +24,5 @@ func TestFindAllRefsClassWithStaticThisAccess(t *testing.T) { }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "0", "1", "2") - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go b/internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go index b227a9f171..ed3a5c0dc3 100644 --- a/internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go +++ b/internal/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go @@ -20,5 +20,5 @@ var c = new /*c2_1*/[|C2|](); [|export { /*class2*/[|{| "contextRangeIndex": 6 |}Class|] as /*c3*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 6 |}C3|] } from "./a";|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "class0", "class1", "class2", "c2_0", "c2_1", "c3") - f.VerifyBaselineRenameAtRangesWithText(t, "Class", "C2", "C3") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "Class", "C2", "C3") } diff --git a/internal/fourslash/tests/gen/getRenameInfoTests1_test.go b/internal/fourslash/tests/gen/getRenameInfoTests1_test.go index 6df94b1a4b..bfb7b4bea1 100644 --- a/internal/fourslash/tests/gen/getRenameInfoTests1_test.go +++ b/internal/fourslash/tests/gen/getRenameInfoTests1_test.go @@ -16,5 +16,5 @@ func TestGetRenameInfoTests1(t *testing.T) { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) + f.VerifyRenameSucceeded(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/renameForAliasingExport01_test.go b/internal/fourslash/tests/gen/getRenameInfoTests2_test.go similarity index 67% rename from internal/fourslash/tests/gen/renameForAliasingExport01_test.go rename to internal/fourslash/tests/gen/getRenameInfoTests2_test.go index af7bd97bd9..f8ec27690e 100644 --- a/internal/fourslash/tests/gen/renameForAliasingExport01_test.go +++ b/internal/fourslash/tests/gen/getRenameInfoTests2_test.go @@ -7,15 +7,14 @@ import ( "github.com/microsoft/typescript-go/internal/testutil" ) -func TestRenameForAliasingExport01(t *testing.T) { +func TestGetRenameInfoTests2(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -let x = 1; + const content = `class C /**/extends null { -export { /**/[|x|] as y };` +}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) + f.VerifyRenameFailed(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go b/internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go index dc46988dfa..24acc5ac06 100644 --- a/internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go +++ b/internal/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go @@ -23,5 +23,5 @@ export { } from './a';` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/javaScriptClass2_test.go b/internal/fourslash/tests/gen/javaScriptClass2_test.go index b3265f88ac..f892e00c54 100644 --- a/internal/fourslash/tests/gen/javaScriptClass2_test.go +++ b/internal/fourslash/tests/gen/javaScriptClass2_test.go @@ -23,5 +23,5 @@ class Foo { var x = new Foo(); x.[|union|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "union") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "union") } diff --git a/internal/fourslash/tests/gen/jsDocSee_rename1_test.go b/internal/fourslash/tests/gen/jsDocSee_rename1_test.go index 8841262edd..cb5e02fa38 100644 --- a/internal/fourslash/tests/gen/jsDocSee_rename1_test.go +++ b/internal/fourslash/tests/gen/jsDocSee_rename1_test.go @@ -18,5 +18,5 @@ func TestJsDocSee_rename1(t *testing.T) { */ declare const a: [|A|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) + f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.Ranges()[1:])...) } diff --git a/internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go b/internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go index ec1e5b437b..400a54d78d 100644 --- a/internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go +++ b/internal/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go @@ -25,5 +25,5 @@ var CircularList = (function () { return CircularList; })()` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t) + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go b/internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go index 5772f3219a..1a7111c69a 100644 --- a/internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go +++ b/internal/fourslash/tests/gen/jsdocCallbackTagRename01_test.go @@ -22,5 +22,5 @@ func TestJsdocCallbackTagRename01(t *testing.T) { /** @type {/*1*/[|FooCallback|]} */ var t;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/jsdocLink_rename1_test.go b/internal/fourslash/tests/gen/jsdocLink_rename1_test.go index 24aabfe7e9..5317505a24 100644 --- a/internal/fourslash/tests/gen/jsdocLink_rename1_test.go +++ b/internal/fourslash/tests/gen/jsdocLink_rename1_test.go @@ -17,5 +17,5 @@ func TestJsdocLink_rename1(t *testing.T) { */ declare const a: A` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go b/internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go index 6c6336b4e5..d65c45f61c 100644 --- a/internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go +++ b/internal/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go @@ -23,5 +23,5 @@ func TestJsdocSatisfiesTagRename(t *testing.T) { /** @satisfies {/**/T} comment */ const foo = { a: 1 };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go b/internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go index bdf64aa956..6d51a3b50d 100644 --- a/internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go +++ b/internal/fourslash/tests/gen/jsdocThrowsTag_rename_test.go @@ -17,5 +17,5 @@ func TestJsdocThrowsTag_rename(t *testing.T) { */ function f() {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go index 8399f183af..47ef05dc8c 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename01_test.go @@ -23,5 +23,5 @@ func TestJsdocTypedefTagRename01(t *testing.T) { /** @type {[|NumberLike|]} */ var numberLike;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) + f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.Ranges()[1:])...) } diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go index aaf681849b..2fbe40851c 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename02_test.go @@ -20,5 +20,5 @@ func TestJsdocTypedefTagRename02(t *testing.T) { /** @type {[|NumberLike|]} */ var numberLike;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) + f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.Ranges()[1:])...) } diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go index 393b1d5b94..94c632a2ee 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagRename03_test.go @@ -26,5 +26,5 @@ func TestJsdocTypedefTagRename03(t *testing.T) { var person;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToFile(t, "jsDocTypedef_form3.js") - f.VerifyBaselineRename(t, ToAny(f.GetRangesByText().Get("Person"))...) + f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.GetRangesByText().Get("Person"))...) } diff --git a/internal/fourslash/tests/gen/jsxSpreadReference_test.go b/internal/fourslash/tests/gen/jsxSpreadReference_test.go index 2de89b8d1d..f602955d29 100644 --- a/internal/fourslash/tests/gen/jsxSpreadReference_test.go +++ b/internal/fourslash/tests/gen/jsxSpreadReference_test.go @@ -28,6 +28,6 @@ class MyClass { [|var [|/*dst*/{| "contextRangeIndex": 0 |}nn|]: {name?: string; size?: number};|] var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "nn") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "nn") f.VerifyBaselineGoToDefinition(t, "src") } diff --git a/internal/fourslash/tests/gen/processInvalidSyntax1_test.go b/internal/fourslash/tests/gen/processInvalidSyntax1_test.go index 45db8f7a00..ec97a26b64 100644 --- a/internal/fourslash/tests/gen/processInvalidSyntax1_test.go +++ b/internal/fourslash/tests/gen/processInvalidSyntax1_test.go @@ -25,5 +25,5 @@ for (obj/**/.prop of arr) { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/rename01_test.go b/internal/fourslash/tests/gen/rename01_test.go index 7fdf8ffa5d..ba3cf9437d 100644 --- a/internal/fourslash/tests/gen/rename01_test.go +++ b/internal/fourslash/tests/gen/rename01_test.go @@ -17,5 +17,5 @@ func TestRename01(t *testing.T) { "this is a reference to [|Bar|] in a string" }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go b/internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go index 5c18881662..4be3a38c11 100644 --- a/internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go +++ b/internal/fourslash/tests/gen/renameAcrossMultipleProjects_test.go @@ -20,5 +20,5 @@ func TestRenameAcrossMultipleProjects(t *testing.T) { /// [|x|]++;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "x") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "x") } diff --git a/internal/fourslash/tests/gen/renameAlias2_test.go b/internal/fourslash/tests/gen/renameAlias2_test.go index c6c34721a5..919300f458 100644 --- a/internal/fourslash/tests/gen/renameAlias2_test.go +++ b/internal/fourslash/tests/gen/renameAlias2_test.go @@ -15,5 +15,5 @@ func TestRenameAlias2(t *testing.T) { import M = [|SomeModule|]; import C = M.SomeClass;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "SomeModule") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "SomeModule") } diff --git a/internal/fourslash/tests/gen/renameAlias3_test.go b/internal/fourslash/tests/gen/renameAlias3_test.go index d8f733e51f..d392d4c56d 100644 --- a/internal/fourslash/tests/gen/renameAlias3_test.go +++ b/internal/fourslash/tests/gen/renameAlias3_test.go @@ -15,5 +15,5 @@ func TestRenameAlias3(t *testing.T) { import M = SomeModule; import C = M.[|SomeClass|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "SomeClass") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "SomeClass") } diff --git a/internal/fourslash/tests/gen/renameAliasExternalModule2_test.go b/internal/fourslash/tests/gen/renameAliasExternalModule2_test.go index 934202089c..82e69cb3c1 100644 --- a/internal/fourslash/tests/gen/renameAliasExternalModule2_test.go +++ b/internal/fourslash/tests/gen/renameAliasExternalModule2_test.go @@ -18,5 +18,5 @@ func TestRenameAliasExternalModule2(t *testing.T) { [|import [|{| "contextRangeIndex": 4 |}M|] = require("./a");|] import C = [|M|].SomeClass;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) } diff --git a/internal/fourslash/tests/gen/renameAliasExternalModule3_test.go b/internal/fourslash/tests/gen/renameAliasExternalModule3_test.go index ba20c13613..d8f994b29f 100644 --- a/internal/fourslash/tests/gen/renameAliasExternalModule3_test.go +++ b/internal/fourslash/tests/gen/renameAliasExternalModule3_test.go @@ -18,5 +18,5 @@ export = SomeModule; import M = require("./a"); import C = M.[|SomeClass|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "SomeClass") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "SomeClass") } diff --git a/internal/fourslash/tests/gen/renameAliasExternalModule_test.go b/internal/fourslash/tests/gen/renameAliasExternalModule_test.go index a179459161..d11406a6a3 100644 --- a/internal/fourslash/tests/gen/renameAliasExternalModule_test.go +++ b/internal/fourslash/tests/gen/renameAliasExternalModule_test.go @@ -18,5 +18,5 @@ export = SomeModule; [|import [|{| "contextRangeIndex": 0 |}M|] = require("./a");|] import C = [|M|].SomeClass;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "M") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "M") } diff --git a/internal/fourslash/tests/gen/renameAlias_test.go b/internal/fourslash/tests/gen/renameAlias_test.go index 161ac2c87c..38d5dd7cda 100644 --- a/internal/fourslash/tests/gen/renameAlias_test.go +++ b/internal/fourslash/tests/gen/renameAlias_test.go @@ -15,5 +15,5 @@ func TestRenameAlias(t *testing.T) { [|import [|{| "contextRangeIndex": 0 |}M|] = SomeModule;|] import C = [|M|].SomeClass;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "M") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "M") } diff --git a/internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go b/internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go index cef6968a1c..33739c90f1 100644 --- a/internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go +++ b/internal/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go @@ -25,5 +25,5 @@ const { oldName: newName = [|external|] } = obj;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "external") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "external") } diff --git a/internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go b/internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go index ae2d1b57b4..9ea15f592f 100644 --- a/internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go +++ b/internal/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go @@ -18,5 +18,5 @@ func TestRenameBindingElementInitializerProperty(t *testing.T) { f({[|[|{| "contextRangeIndex": 6 |}required|]: 10|]});` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2], f.Ranges()[5], f.Ranges()[4], f.Ranges()[7]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[2], f.Ranges()[5], f.Ranges()[4], f.Ranges()[7]) } diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go index f82cc7ceab..9925e55563 100644 --- a/internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings1_test.go @@ -17,5 +17,5 @@ func TestRenameCommentsAndStrings1(t *testing.T) { "this is a reference to Bar in a string" }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "Bar") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "Bar") } diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go index 72dd9aeacd..c1e6f11161 100644 --- a/internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings2_test.go @@ -17,5 +17,5 @@ func TestRenameCommentsAndStrings2(t *testing.T) { "this is a reference to [|Bar|] in a string" }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go index b843b5106c..2c5dd0ab10 100644 --- a/internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings3_test.go @@ -17,5 +17,5 @@ func TestRenameCommentsAndStrings3(t *testing.T) { "this is a reference to Bar in a string" }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go b/internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go index ffe3821638..413d624fb4 100644 --- a/internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go +++ b/internal/fourslash/tests/gen/renameCommentsAndStrings4_test.go @@ -22,5 +22,5 @@ func TestRenameCommentsAndStrings4(t *testing.T) { } }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go b/internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go index f8346cf8af..507eba5c22 100644 --- a/internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go +++ b/internal/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go @@ -66,5 +66,5 @@ var o10: I = { [|set ["[|{| "contextRangeIndex": 20 |}prop2|]"](v) { }|] };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "prop2") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "prop2") } diff --git a/internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go b/internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go index 90d8181349..bc90714813 100644 --- a/internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go +++ b/internal/fourslash/tests/gen/renameContextuallyTypedProperties_test.go @@ -66,5 +66,5 @@ var o10: I = { set ["prop2"](v) { } };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "prop1") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "prop1") } diff --git a/internal/fourslash/tests/gen/renameCrossJsTs01_test.go b/internal/fourslash/tests/gen/renameCrossJsTs01_test.go index 9ed60bd095..f7cb56466a 100644 --- a/internal/fourslash/tests/gen/renameCrossJsTs01_test.go +++ b/internal/fourslash/tests/gen/renameCrossJsTs01_test.go @@ -18,5 +18,5 @@ func TestRenameCrossJsTs01(t *testing.T) { [|import { [|{| "contextRangeIndex": 2 |}area|] } from './a';|] var t = [|area|](10);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[4]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[4]) } diff --git a/internal/fourslash/tests/gen/renameDeclarationKeywords_test.go b/internal/fourslash/tests/gen/renameDeclarationKeywords_test.go index 9f7e4e831a..33d015c442 100644 --- a/internal/fourslash/tests/gen/renameDeclarationKeywords_test.go +++ b/internal/fourslash/tests/gen/renameDeclarationKeywords_test.go @@ -27,5 +27,5 @@ func TestRenameDeclarationKeywords(t *testing.T) { [|{| "id": "letDecl" |}[|let|] [|{| "isWriteAccess": false, "isDefinition": true, "contextRangeId": "letDecl" |}y|];|] [|{| "id": "constDecl" |}[|const|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "constDecl" |}z|] = 1;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[5], f.Ranges()[7], f.Ranges()[9], f.Ranges()[12], f.Ranges()[15], f.Ranges()[18], f.Ranges()[20], f.Ranges()[23], f.Ranges()[26], f.Ranges()[29], f.Ranges()[32], f.Ranges()[35], f.Ranges()[38], f.Ranges()[41], f.Ranges()[44]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[5], f.Ranges()[7], f.Ranges()[9], f.Ranges()[12], f.Ranges()[15], f.Ranges()[18], f.Ranges()[20], f.Ranges()[23], f.Ranges()[26], f.Ranges()[29], f.Ranges()[32], f.Ranges()[35], f.Ranges()[38], f.Ranges()[41], f.Ranges()[44]) } diff --git a/internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go b/internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go index 405cadfc61..01ae7d4c8b 100644 --- a/internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go +++ b/internal/fourslash/tests/gen/renameDefaultLibDontWork_test.go @@ -15,5 +15,5 @@ func TestRenameDefaultLibDontWork(t *testing.T) { [|var [|{| "contextRangeIndex": 0 |}test|] = "foo";|] console.log([|test|]);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go index 7dff050cc7..cce6851885 100644 --- a/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go @@ -19,5 +19,5 @@ var elems: I[], p1: number, [|[|{| "contextRangeIndex": 2 |}property1|]: number| [|[{ [|{| "contextRangeIndex": 4 |}property1|]: p1 }] = elems;|] [|[{ [|{| "contextRangeIndex": 6 |}property1|] }] = elems;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7]) } diff --git a/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go index f355cc27ad..fa1a3ec47c 100644 --- a/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go @@ -26,5 +26,5 @@ for ([|{ skills: { [|{| "contextRangeIndex": 6 |}primary|], secondary } } of mul console.log([|primary|]); }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7], f.Ranges()[8]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7], f.Ranges()[8]) } diff --git a/internal/fourslash/tests/gen/renameDestructuringAssignment_test.go b/internal/fourslash/tests/gen/renameDestructuringAssignment_test.go index 7332cd2555..7ff77f0e66 100644 --- a/internal/fourslash/tests/gen/renameDestructuringAssignment_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringAssignment_test.go @@ -18,5 +18,5 @@ var a: I; var x; ([|{ [|{| "contextRangeIndex": 2 |}x|]: x } = a|]);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "x") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "x") } diff --git a/internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go b/internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go index 0c7845d14d..216ab88b41 100644 --- a/internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringClassProperty_test.go @@ -27,5 +27,5 @@ class B { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7], f.Ranges()[8]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[5], f.Ranges()[3], f.Ranges()[7], f.Ranges()[8]) } diff --git a/internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go b/internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go index 5c52639c60..38cc70a69a 100644 --- a/internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go @@ -23,5 +23,5 @@ for ([|let { [|{| "contextRangeIndex": 2 |}property1|] } of elems|]) { for ([|let { [|{| "contextRangeIndex": 5 |}property1|]: p2 } of elems|]) { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[6], f.Ranges()[3], f.Ranges()[4]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[6], f.Ranges()[3], f.Ranges()[4]) } diff --git a/internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go b/internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go index 833c133d1c..f7c735b13b 100644 --- a/internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go @@ -24,5 +24,5 @@ for ([|let { [|{| "contextRangeIndex": 4 |}property1|] } = elems[0]|]; p2 < 100; [|property1|] = p2; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) } diff --git a/internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go b/internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go index b7bb6c7d4a..e31c02d08d 100644 --- a/internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go @@ -15,5 +15,5 @@ func TestRenameDestructuringFunctionParameter(t *testing.T) { f({[|a|]}); }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[2]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[2]) } diff --git a/internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go b/internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go index 642e36f56d..9ca512319f 100644 --- a/internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go +++ b/internal/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go @@ -26,5 +26,5 @@ for ([|let { skills: {[|{| "contextRangeIndex": 4|}primary|], secondary } } of m console.log([|primary|]); }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[6]) } diff --git a/internal/fourslash/tests/gen/renameExportCrash_test.go b/internal/fourslash/tests/gen/renameExportCrash_test.go index a4da822721..ab04fe910b 100644 --- a/internal/fourslash/tests/gen/renameExportCrash_test.go +++ b/internal/fourslash/tests/gen/renameExportCrash_test.go @@ -17,5 +17,5 @@ let a; module.exports = /**/a; exports["foo"] = a;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameExportSpecifier2_test.go b/internal/fourslash/tests/gen/renameExportSpecifier2_test.go index 151da4d0c0..f0cadff970 100644 --- a/internal/fourslash/tests/gen/renameExportSpecifier2_test.go +++ b/internal/fourslash/tests/gen/renameExportSpecifier2_test.go @@ -4,6 +4,8 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/testutil" ) @@ -18,5 +20,5 @@ export { name/**/ }; import { name } from './a'; const x = name.toString();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, &ls.UserPreferences{UseAliasesForRename: PtrTo(false)}, "") } diff --git a/internal/fourslash/tests/gen/renameExportSpecifier_test.go b/internal/fourslash/tests/gen/renameExportSpecifier_test.go index 66db070953..590d875928 100644 --- a/internal/fourslash/tests/gen/renameExportSpecifier_test.go +++ b/internal/fourslash/tests/gen/renameExportSpecifier_test.go @@ -4,6 +4,8 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/testutil" ) @@ -18,5 +20,5 @@ export { name as name/**/ }; import { name } from './a'; const x = name.toString();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, &ls.UserPreferences{UseAliasesForRename: PtrTo(false)}, "") } diff --git a/internal/fourslash/tests/gen/renameForAliasingExport02_test.go b/internal/fourslash/tests/gen/renameForAliasingExport02_test.go deleted file mode 100644 index 67e3c1fc8e..0000000000 --- a/internal/fourslash/tests/gen/renameForAliasingExport02_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameForAliasingExport02(t *testing.T) { - t.Parallel() - t.Skip() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -let x = 1; - -export { x as /**/[|y|] };` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport04_test.go b/internal/fourslash/tests/gen/renameForDefaultExport04_test.go deleted file mode 100644 index 375d156327..0000000000 --- a/internal/fourslash/tests/gen/renameForDefaultExport04_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameForDefaultExport04(t *testing.T) { - t.Parallel() - - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -export default class /**/[|DefaultExportedClass|] { -} -/* - * Commenting DefaultExportedClass - */ - -var x: DefaultExportedClass; - -var y = new DefaultExportedClass;` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport05_test.go b/internal/fourslash/tests/gen/renameForDefaultExport05_test.go deleted file mode 100644 index 192540915f..0000000000 --- a/internal/fourslash/tests/gen/renameForDefaultExport05_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameForDefaultExport05(t *testing.T) { - t.Parallel() - - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -export default class DefaultExportedClass { -} -/* - * Commenting DefaultExportedClass - */ - -var x: /**/[|DefaultExportedClass|]; - -var y = new DefaultExportedClass;` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport06_test.go b/internal/fourslash/tests/gen/renameForDefaultExport06_test.go deleted file mode 100644 index f81fa1dce9..0000000000 --- a/internal/fourslash/tests/gen/renameForDefaultExport06_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameForDefaultExport06(t *testing.T) { - t.Parallel() - - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -export default class DefaultExportedClass { -} -/* - * Commenting DefaultExportedClass - */ - -var x: DefaultExportedClass; - -var y = new /**/[|DefaultExportedClass|];` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport07_test.go b/internal/fourslash/tests/gen/renameForDefaultExport07_test.go deleted file mode 100644 index 4c24dc0780..0000000000 --- a/internal/fourslash/tests/gen/renameForDefaultExport07_test.go +++ /dev/null @@ -1,28 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameForDefaultExport07(t *testing.T) { - t.Parallel() - - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -export default function /**/[|DefaultExportedFunction|]() { - return DefaultExportedFunction -} -/** - * Commenting DefaultExportedFunction - */ - -var x: typeof DefaultExportedFunction; - -var y = DefaultExportedFunction();` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport08_test.go b/internal/fourslash/tests/gen/renameForDefaultExport08_test.go deleted file mode 100644 index b67dbd931b..0000000000 --- a/internal/fourslash/tests/gen/renameForDefaultExport08_test.go +++ /dev/null @@ -1,28 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameForDefaultExport08(t *testing.T) { - t.Parallel() - - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -export default function DefaultExportedFunction() { - return /**/[|DefaultExportedFunction|] -} -/** - * Commenting DefaultExportedFunction - */ - -var x: typeof DefaultExportedFunction; - -var y = DefaultExportedFunction();` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport09_test.go b/internal/fourslash/tests/gen/renameForDefaultExport09_test.go deleted file mode 100644 index fd2001a3c7..0000000000 --- a/internal/fourslash/tests/gen/renameForDefaultExport09_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameForDefaultExport09(t *testing.T) { - t.Parallel() - - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: foo.ts -function /**/[|f|]() { - return 100; -} - -export default f; - -var x: typeof f; - -var y = f(); - -/** - * Commenting f - */ -namespace f { - var local = 100; -}` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameForStringLiteral_test.go b/internal/fourslash/tests/gen/renameForStringLiteral_test.go index fe740b906e..befb3c621e 100644 --- a/internal/fourslash/tests/gen/renameForStringLiteral_test.go +++ b/internal/fourslash/tests/gen/renameForStringLiteral_test.go @@ -22,5 +22,5 @@ const obj: Foo = { property: "foo", }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go b/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go deleted file mode 100644 index 9966a2cd02..0000000000 --- a/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go +++ /dev/null @@ -1,32 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameFromNodeModulesDep3(t *testing.T) { - t.Parallel() - t.Skip() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `// @Filename: /packages/first/index.d.ts -import { /*ok*/[|Foo|] } from "foo"; -declare type FooBar = Foo[/*ok2*/"[|bar|]"]; -// @Filename: /packages/foo/package.json - { "types": "index.d.ts" } -// @Filename: /packages/foo/index.d.ts -export interface Foo { - /*ok3*/[|bar|]: string; -} -// @link: /packages/foo -> /packages/first/node_modules/foo` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "ok") - f.VerifyRenameSucceeded(t) - f.VerifyRenameSucceeded(t) - f.GoToMarker(t, "ok2") - f.VerifyRenameSucceeded(t) - f.GoToMarker(t, "ok3") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameFunctionParameter1_test.go b/internal/fourslash/tests/gen/renameFunctionParameter1_test.go index 045ddaf4df..cf87638072 100644 --- a/internal/fourslash/tests/gen/renameFunctionParameter1_test.go +++ b/internal/fourslash/tests/gen/renameFunctionParameter1_test.go @@ -20,5 +20,5 @@ func TestRenameFunctionParameter1(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameFunctionParameter2_test.go b/internal/fourslash/tests/gen/renameFunctionParameter2_test.go index 54bac302e2..87da9195df 100644 --- a/internal/fourslash/tests/gen/renameFunctionParameter2_test.go +++ b/internal/fourslash/tests/gen/renameFunctionParameter2_test.go @@ -18,5 +18,5 @@ const foo = function foo(p/**/) { return p; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go b/internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go index 97b2785c8a..6204bbdf6d 100644 --- a/internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go +++ b/internal/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go @@ -18,5 +18,5 @@ func TestRenameImportAndExportInDiffFiles(t *testing.T) { [|export { /*3*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}a|] };|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1", "2", "3") - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5]) } diff --git a/internal/fourslash/tests/gen/renameImportAndExport_test.go b/internal/fourslash/tests/gen/renameImportAndExport_test.go index 9dc86e60bd..f6b3c4f6d5 100644 --- a/internal/fourslash/tests/gen/renameImportAndExport_test.go +++ b/internal/fourslash/tests/gen/renameImportAndExport_test.go @@ -14,5 +14,5 @@ func TestRenameImportAndExport(t *testing.T) { const content = `[|import [|{| "contextRangeIndex": 0 |}a|] from "module";|] [|export { [|{| "contextRangeIndex": 2 |}a|] };|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3]) } diff --git a/internal/fourslash/tests/gen/renameImportAndShorthand_test.go b/internal/fourslash/tests/gen/renameImportAndShorthand_test.go index 572d68ce69..5e77b7e07c 100644 --- a/internal/fourslash/tests/gen/renameImportAndShorthand_test.go +++ b/internal/fourslash/tests/gen/renameImportAndShorthand_test.go @@ -14,5 +14,5 @@ func TestRenameImportAndShorthand(t *testing.T) { const content = `[|import [|{| "contextRangeIndex": 0 |}foo|] from 'bar';|] const bar = { [|foo|] };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[2]) } diff --git a/internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go b/internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go index 2bf70faa85..c8b7bae5af 100644 --- a/internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go +++ b/internal/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go @@ -14,5 +14,5 @@ func TestRenameImportNamespaceAndShorthand(t *testing.T) { const content = `[|import * as [|{| "contextRangeIndex": 0 |}foo|] from 'bar';|] const bar = { [|foo|] };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[2]) } diff --git a/internal/fourslash/tests/gen/renameImportOfExportEquals_test.go b/internal/fourslash/tests/gen/renameImportOfExportEquals_test.go index c57356d30e..f566d24737 100644 --- a/internal/fourslash/tests/gen/renameImportOfExportEquals_test.go +++ b/internal/fourslash/tests/gen/renameImportOfExportEquals_test.go @@ -27,9 +27,9 @@ declare module "b" { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "N", "a", "b", "x") - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[5]) - f.VerifyBaselineRename(t, f.Ranges()[7]) - f.VerifyBaselineRename(t, f.Ranges()[9]) - f.VerifyBaselineRename(t, f.Ranges()[11], f.Ranges()[12]) - f.VerifyBaselineRename(t, f.Ranges()[3], f.Ranges()[13]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[5]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[7]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[9]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[11], f.Ranges()[12]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[3], f.Ranges()[13]) } diff --git a/internal/fourslash/tests/gen/renameImportRequire_test.go b/internal/fourslash/tests/gen/renameImportRequire_test.go index 0d96c90d60..358938bf06 100644 --- a/internal/fourslash/tests/gen/renameImportRequire_test.go +++ b/internal/fourslash/tests/gen/renameImportRequire_test.go @@ -20,5 +20,5 @@ a = { [|e|] }; [|import { [|{| "contextRangeIndex": 6 |}e|] } from "./a";|] [|export { [|{| "contextRangeIndex": 8 |}e|] };|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2], f.Ranges()[3], f.Ranges()[5], f.Ranges()[7], f.Ranges()[9]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[2], f.Ranges()[3], f.Ranges()[5], f.Ranges()[7], f.Ranges()[9]) } diff --git a/internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go b/internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go index c00b49bb3a..37bb695b38 100644 --- a/internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go +++ b/internal/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go @@ -16,5 +16,5 @@ export interface /**/Ginger {} // @Filename: dry.ts import { Ginger as Ale } from './canada';` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameInConfiguredProject_test.go b/internal/fourslash/tests/gen/renameInConfiguredProject_test.go index 71f8c176d4..4e9262843d 100644 --- a/internal/fourslash/tests/gen/renameInConfiguredProject_test.go +++ b/internal/fourslash/tests/gen/renameInConfiguredProject_test.go @@ -19,5 +19,5 @@ var y = [|globalName|]; // @Filename: tsconfig.json { "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, ToAny(f.Ranges()[1:])...) + f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.Ranges()[1:])...) } diff --git a/internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go b/internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go index 7666be616c..df4dde5e67 100644 --- a/internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go +++ b/internal/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go @@ -16,5 +16,5 @@ func TestRenameInfoForFunctionExpression01(t *testing.T) { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) + f.VerifyRenameSucceeded(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties1_test.go b/internal/fourslash/tests/gen/renameInheritedProperties1_test.go index 42547d0362..dd2e656754 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties1_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties1_test.go @@ -18,5 +18,5 @@ func TestRenameInheritedProperties1(t *testing.T) { var v: class1; v.[|propName|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "propName") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "propName") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties2_test.go b/internal/fourslash/tests/gen/renameInheritedProperties2_test.go index fedcf8099e..c83f4da4bd 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties2_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties2_test.go @@ -18,5 +18,5 @@ func TestRenameInheritedProperties2(t *testing.T) { var v: class1; v.[|doStuff|]();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "doStuff") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "doStuff") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties3_test.go b/internal/fourslash/tests/gen/renameInheritedProperties3_test.go index ddc8bb3fae..2607076e9c 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties3_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties3_test.go @@ -18,5 +18,5 @@ func TestRenameInheritedProperties3(t *testing.T) { var v: interface1; v.[|propName|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "propName") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "propName") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties4_test.go b/internal/fourslash/tests/gen/renameInheritedProperties4_test.go index ee619bdc11..cfebc1cff7 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties4_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties4_test.go @@ -18,5 +18,5 @@ func TestRenameInheritedProperties4(t *testing.T) { var v: interface1; v.[|doStuff|]();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "doStuff") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "doStuff") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties5_test.go b/internal/fourslash/tests/gen/renameInheritedProperties5_test.go index 1201d1a1b9..35681dfde7 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties5_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties5_test.go @@ -20,5 +20,5 @@ interface D extends C { var d: D; d.[|propD|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "propD") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "propD") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties6_test.go b/internal/fourslash/tests/gen/renameInheritedProperties6_test.go index a903f1b023..8615a8163b 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties6_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties6_test.go @@ -20,5 +20,5 @@ interface D extends C { var d: D; d.[|propC|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "propC") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "propC") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties7_test.go b/internal/fourslash/tests/gen/renameInheritedProperties7_test.go index d5a80c5358..96a6135daa 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties7_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties7_test.go @@ -22,5 +22,5 @@ class D extends C { var c: C; c.[|prop1|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "prop1") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "prop1") } diff --git a/internal/fourslash/tests/gen/renameInheritedProperties8_test.go b/internal/fourslash/tests/gen/renameInheritedProperties8_test.go index dd422d008c..865d4972fb 100644 --- a/internal/fourslash/tests/gen/renameInheritedProperties8_test.go +++ b/internal/fourslash/tests/gen/renameInheritedProperties8_test.go @@ -22,5 +22,5 @@ interface D extends C { var c: C; c.[|prop1|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "prop1") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "prop1") } diff --git a/internal/fourslash/tests/gen/renameJSDocNamepath_test.go b/internal/fourslash/tests/gen/renameJSDocNamepath_test.go index 7e1595ba8b..4c70cee492 100644 --- a/internal/fourslash/tests/gen/renameJSDocNamepath_test.go +++ b/internal/fourslash/tests/gen/renameJSDocNamepath_test.go @@ -18,5 +18,5 @@ func TestRenameJSDocNamepath(t *testing.T) { var x = 1 var /*0*/A = 0;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "0") + f.VerifyBaselineRename(t, nil /*preferences*/, "0") } diff --git a/internal/fourslash/tests/gen/renameJsDocImportTag_test.go b/internal/fourslash/tests/gen/renameJsDocImportTag_test.go index 9aa5bea248..2197b60535 100644 --- a/internal/fourslash/tests/gen/renameJsDocImportTag_test.go +++ b/internal/fourslash/tests/gen/renameJsDocImportTag_test.go @@ -25,5 +25,5 @@ export interface A { } */ function f(a) {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go b/internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go index e5f9e1cc56..29d606f9e0 100644 --- a/internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go +++ b/internal/fourslash/tests/gen/renameJsDocTypeLiteral_test.go @@ -22,5 +22,5 @@ func TestRenameJsDocTypeLiteral(t *testing.T) { function foo(/**/options) {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToFile(t, "/a.js") - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameJsExports01_test.go b/internal/fourslash/tests/gen/renameJsExports01_test.go index 56c9b860f5..6bec4c8912 100644 --- a/internal/fourslash/tests/gen/renameJsExports01_test.go +++ b/internal/fourslash/tests/gen/renameJsExports01_test.go @@ -19,5 +19,5 @@ var mod = require('./a'); var t = mod./*1*/[|area|](10);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyBaselineFindAllReferences(t, "1") - f.VerifyBaselineRenameAtRangesWithText(t, "area") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "area") } diff --git a/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go b/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go index 5499401e8f..e97ae010b5 100644 --- a/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go +++ b/internal/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go @@ -30,5 +30,5 @@ function foo(x/**/) { return x; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go index b73bad72b1..7bc449b11b 100644 --- a/internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment2_test.go @@ -18,5 +18,5 @@ class Minimatch { [|Minimatch.[|{| "contextRangeIndex": 0 |}staticProperty|] = "string";|] console.log(Minimatch.[|staticProperty|]);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "staticProperty") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "staticProperty") } diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go index e1f2fe8df3..36f2b341ec 100644 --- a/internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment3_test.go @@ -18,5 +18,5 @@ var C = class { [|C.[|{| "contextRangeIndex": 0 |}staticProperty|] = "string";|] console.log(C.[|staticProperty|]);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "staticProperty") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "staticProperty") } diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go index acf4241838..b91b383e9f 100644 --- a/internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment4_test.go @@ -19,5 +19,5 @@ function f() { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToFile(t, "/a.js") - f.VerifyBaselineRename(t, "1", "2") + f.VerifyBaselineRename(t, nil /*preferences*/, "1", "2") } diff --git a/internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go b/internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go index 741780406c..299297c8ee 100644 --- a/internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go +++ b/internal/fourslash/tests/gen/renameJsPropertyAssignment_test.go @@ -18,5 +18,5 @@ function bar() { [|bar.[|{| "contextRangeIndex": 0 |}foo|] = "foo";|] console.log(bar.[|foo|]);` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "foo") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "foo") } diff --git a/internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go b/internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go index 318dd99aee..30dc14dada 100644 --- a/internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go +++ b/internal/fourslash/tests/gen/renameJsPrototypeProperty01_test.go @@ -19,5 +19,5 @@ function bar() { var t = new bar(); [|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "x") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "x") } diff --git a/internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go b/internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go index b7cf71717c..a6fd9fd806 100644 --- a/internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go +++ b/internal/fourslash/tests/gen/renameJsPrototypeProperty02_test.go @@ -19,5 +19,5 @@ function bar() { var t = new bar(); [|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "x") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "x") } diff --git a/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go index d004b3805a..21c30f2ba4 100644 --- a/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go +++ b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go @@ -22,5 +22,5 @@ const foo = { } };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t) + f.VerifyBaselineRename(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go index 8a9731edeb..5c6afe91d4 100644 --- a/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go +++ b/internal/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go @@ -22,5 +22,5 @@ const foo = { } };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t) + f.VerifyBaselineRename(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/renameJsThisProperty01_test.go b/internal/fourslash/tests/gen/renameJsThisProperty01_test.go index ca7248c81e..823d68f901 100644 --- a/internal/fourslash/tests/gen/renameJsThisProperty01_test.go +++ b/internal/fourslash/tests/gen/renameJsThisProperty01_test.go @@ -19,5 +19,5 @@ function bar() { var t = new bar(); [|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "x") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "x") } diff --git a/internal/fourslash/tests/gen/renameJsThisProperty03_test.go b/internal/fourslash/tests/gen/renameJsThisProperty03_test.go index 60fdb72724..c1bbdbaba3 100644 --- a/internal/fourslash/tests/gen/renameJsThisProperty03_test.go +++ b/internal/fourslash/tests/gen/renameJsThisProperty03_test.go @@ -21,5 +21,5 @@ class C { var t = new C(12); [|t.[|{| "contextRangeIndex": 2 |}x|] = 11;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "x") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "x") } diff --git a/internal/fourslash/tests/gen/renameJsThisProperty05_test.go b/internal/fourslash/tests/gen/renameJsThisProperty05_test.go index 352267718b..3acd7ef894 100644 --- a/internal/fourslash/tests/gen/renameJsThisProperty05_test.go +++ b/internal/fourslash/tests/gen/renameJsThisProperty05_test.go @@ -22,5 +22,5 @@ class C { var t = new C(12); [|t.[|{| "contextRangeIndex": 2 |}z|] = 11;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "z") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "z") } diff --git a/internal/fourslash/tests/gen/renameJsThisProperty06_test.go b/internal/fourslash/tests/gen/renameJsThisProperty06_test.go index 2396e895df..f39f3fdafc 100644 --- a/internal/fourslash/tests/gen/renameJsThisProperty06_test.go +++ b/internal/fourslash/tests/gen/renameJsThisProperty06_test.go @@ -22,5 +22,5 @@ var C = class { var t = new C(12); [|t.[|{| "contextRangeIndex": 2 |}z|] = 11;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "z") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "z") } diff --git a/internal/fourslash/tests/gen/renameLabel1_test.go b/internal/fourslash/tests/gen/renameLabel1_test.go index 274f6dc6e9..cd936bf99e 100644 --- a/internal/fourslash/tests/gen/renameLabel1_test.go +++ b/internal/fourslash/tests/gen/renameLabel1_test.go @@ -15,5 +15,5 @@ func TestRenameLabel1(t *testing.T) { break /**/foo; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameLabel2_test.go b/internal/fourslash/tests/gen/renameLabel2_test.go index d615ed6403..f1882eddf6 100644 --- a/internal/fourslash/tests/gen/renameLabel2_test.go +++ b/internal/fourslash/tests/gen/renameLabel2_test.go @@ -15,5 +15,5 @@ func TestRenameLabel2(t *testing.T) { break foo; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameLabel3_test.go b/internal/fourslash/tests/gen/renameLabel3_test.go index 05020c80da..faaf5bbf98 100644 --- a/internal/fourslash/tests/gen/renameLabel3_test.go +++ b/internal/fourslash/tests/gen/renameLabel3_test.go @@ -18,5 +18,5 @@ for (let i = 0; i <= 10; i++) { if (i === 10) break loop; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameLabel4_test.go b/internal/fourslash/tests/gen/renameLabel4_test.go index eacfc7668a..1d2afa0adb 100644 --- a/internal/fourslash/tests/gen/renameLabel4_test.go +++ b/internal/fourslash/tests/gen/renameLabel4_test.go @@ -18,5 +18,5 @@ for (let i = 0; i <= 10; i++) { if (i === 10) break loop; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameLabel5_test.go b/internal/fourslash/tests/gen/renameLabel5_test.go index bb443c6950..db63a2c6c9 100644 --- a/internal/fourslash/tests/gen/renameLabel5_test.go +++ b/internal/fourslash/tests/gen/renameLabel5_test.go @@ -18,5 +18,5 @@ func TestRenameLabel5(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameLabel6_test.go b/internal/fourslash/tests/gen/renameLabel6_test.go index e90db67e61..2c7c13a19a 100644 --- a/internal/fourslash/tests/gen/renameLabel6_test.go +++ b/internal/fourslash/tests/gen/renameLabel6_test.go @@ -18,5 +18,5 @@ func TestRenameLabel6(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go b/internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go index 828ffd6987..d77a896133 100644 --- a/internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go +++ b/internal/fourslash/tests/gen/renameLocationsForClassExpression01_test.go @@ -31,5 +31,5 @@ var y = class { } var z = class Foo {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "Foo") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "Foo") } diff --git a/internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go index 2a19d4d7ac..1630a25c47 100644 --- a/internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go +++ b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go @@ -15,5 +15,5 @@ func TestRenameLocationsForFunctionExpression01(t *testing.T) { [|f|]([|f|], g); }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "f") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "f") } diff --git a/internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go index c353a69d7c..db51f9110a 100644 --- a/internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go +++ b/internal/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go @@ -21,5 +21,5 @@ var x = [|function [|{| "contextRangeIndex": 0 |}f|](g: any, h: any) { let foo = () => [|f|]([|f|], g); }|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "f") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "f") } diff --git a/internal/fourslash/tests/gen/renameModifiers_test.go b/internal/fourslash/tests/gen/renameModifiers_test.go index 04e887fbfb..448392fc79 100644 --- a/internal/fourslash/tests/gen/renameModifiers_test.go +++ b/internal/fourslash/tests/gen/renameModifiers_test.go @@ -23,5 +23,5 @@ func TestRenameModifiers(t *testing.T) { [|[|async|] function [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}fn|]() {}|] [|[|export|] [|default|] class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -3 |}C2|] {}|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2], f.Ranges()[5], f.Ranges()[8], f.Ranges()[11], f.Ranges()[14], f.Ranges()[17], f.Ranges()[20], f.Ranges()[23], f.Ranges()[26], f.Ranges()[27]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[2], f.Ranges()[5], f.Ranges()[8], f.Ranges()[11], f.Ranges()[14], f.Ranges()[17], f.Ranges()[20], f.Ranges()[23], f.Ranges()[26], f.Ranges()[27]) } diff --git a/internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go b/internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go index d7edccce9a..657685a1d9 100644 --- a/internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go +++ b/internal/fourslash/tests/gen/renameModuleExportsProperties1_test.go @@ -4,6 +4,8 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/testutil" ) @@ -14,5 +16,5 @@ func TestRenameModuleExportsProperties1(t *testing.T) { const content = `[|class [|{| "contextRangeIndex": 0 |}A|] {}|] module.exports = { [|A|] }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) + f.VerifyBaselineRename(t, &ls.UserPreferences{UseAliasesForRename: PtrTo(true)}, f.Ranges()[1], f.Ranges()[2]) } diff --git a/internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go b/internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go index c02a8c5669..2787bf2570 100644 --- a/internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go +++ b/internal/fourslash/tests/gen/renameModuleExportsProperties2_test.go @@ -14,5 +14,5 @@ func TestRenameModuleExportsProperties2(t *testing.T) { const content = `[|class [|{| "contextRangeIndex": 0 |}A|] {}|] module.exports = { B: [|A|] }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[2]) } diff --git a/internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go b/internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go index d00db08a37..8c3e219207 100644 --- a/internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go +++ b/internal/fourslash/tests/gen/renameModuleExportsProperties3_test.go @@ -4,6 +4,8 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/testutil" ) @@ -16,5 +18,5 @@ func TestRenameModuleExportsProperties3(t *testing.T) { [|class [|{| "contextRangeIndex": 0 |}A|] {}|] module.exports = { [|A|] }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) + f.VerifyBaselineRename(t, &ls.UserPreferences{UseAliasesForRename: PtrTo(true)}, f.Ranges()[1], f.Ranges()[2]) } diff --git a/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go b/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go deleted file mode 100644 index 23dd9dadd3..0000000000 --- a/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package fourslash_test - -import ( - "testing" - - "github.com/microsoft/typescript-go/internal/fourslash" - "github.com/microsoft/typescript-go/internal/testutil" -) - -func TestRenameNameOnEnumMember(t *testing.T) { - t.Parallel() - - defer testutil.RecoverAndFail(t, "Panic on fourslash test") - const content = `enum e { - firstMember, - secondMember, - thirdMember -} -var enumMember = e.[|/**/thirdMember|];` - f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) -} diff --git a/internal/fourslash/tests/gen/renameNamedImport_test.go b/internal/fourslash/tests/gen/renameNamedImport_test.go index dbbc9c08fc..71524eaf77 100644 --- a/internal/fourslash/tests/gen/renameNamedImport_test.go +++ b/internal/fourslash/tests/gen/renameNamedImport_test.go @@ -4,6 +4,8 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/testutil" ) @@ -26,5 +28,5 @@ someExportedVariable; f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToFile(t, "/home/src/workspaces/project/lib/index.ts") f.GoToFile(t, "/home/src/workspaces/project/src/index.ts") - f.VerifyBaselineRename(t, "i") + f.VerifyBaselineRename(t, &ls.UserPreferences{UseAliasesForRename: PtrTo(true)}, "i") } diff --git a/internal/fourslash/tests/gen/renameNamespaceImport_test.go b/internal/fourslash/tests/gen/renameNamespaceImport_test.go index 80d1ff0b5b..f70dbbd6a4 100644 --- a/internal/fourslash/tests/gen/renameNamespaceImport_test.go +++ b/internal/fourslash/tests/gen/renameNamespaceImport_test.go @@ -26,5 +26,5 @@ lib.someExportedVariable; f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToFile(t, "/home/src/workspaces/project/lib/index.ts") f.GoToFile(t, "/home/src/workspaces/project/src/index.ts") - f.VerifyBaselineRename(t, "i") + f.VerifyBaselineRename(t, nil /*preferences*/, "i") } diff --git a/internal/fourslash/tests/gen/renameNoDefaultLib_test.go b/internal/fourslash/tests/gen/renameNoDefaultLib_test.go index ab51d5f972..51dc6cff23 100644 --- a/internal/fourslash/tests/gen/renameNoDefaultLib_test.go +++ b/internal/fourslash/tests/gen/renameNoDefaultLib_test.go @@ -19,5 +19,5 @@ func TestRenameNoDefaultLib(t *testing.T) { const [|/**/foo|] = 1;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) + f.VerifyRenameSucceeded(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go b/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go index 43110d9df8..1ac0f16163 100644 --- a/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go +++ b/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go @@ -14,5 +14,5 @@ func TestRenameNumericalIndexSingleQuoted(t *testing.T) { const content = `const foo = { [|0|]: true }; foo[[|0|]];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "0") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "0") } diff --git a/internal/fourslash/tests/gen/renameNumericalIndex_test.go b/internal/fourslash/tests/gen/renameNumericalIndex_test.go index 25a1f47be2..95ea0102ec 100644 --- a/internal/fourslash/tests/gen/renameNumericalIndex_test.go +++ b/internal/fourslash/tests/gen/renameNumericalIndex_test.go @@ -14,5 +14,5 @@ func TestRenameNumericalIndex(t *testing.T) { const content = `const foo = { [|0|]: true }; foo[[|0|]];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "0") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "0") } diff --git a/internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go b/internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go index b836ba86e5..2fc4d0a039 100644 --- a/internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go +++ b/internal/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go @@ -19,5 +19,5 @@ func TestRenameObjectBindingElementPropertyName01(t *testing.T) { var foo: I; [|var { [|{| "contextRangeIndex": 2 |}property1|]: prop1 } = foo;|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "property1") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "property1") } diff --git a/internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go b/internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go index 78464c0207..906eb7ad31 100644 --- a/internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go +++ b/internal/fourslash/tests/gen/renameObjectSpreadAssignment_test.go @@ -17,5 +17,5 @@ interface A2 { a?: number }; [|let [|{| "contextRangeIndex": 2 |}a2|]: A2;|] let a12 = { ...[|a1|], ...[|a2|] };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[4], f.Ranges()[3], f.Ranges()[5]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[4], f.Ranges()[3], f.Ranges()[5]) } diff --git a/internal/fourslash/tests/gen/renameObjectSpread_test.go b/internal/fourslash/tests/gen/renameObjectSpread_test.go index 5ac31871df..b4a0358a87 100644 --- a/internal/fourslash/tests/gen/renameObjectSpread_test.go +++ b/internal/fourslash/tests/gen/renameObjectSpread_test.go @@ -18,5 +18,5 @@ let a2: A2; let a12 = { ...a1, ...a2 }; a12.[|a|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[4]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[4]) } diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go index 9c82888d7f..e48a017059 100644 --- a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go @@ -18,5 +18,5 @@ func TestRenameParameterPropertyDeclaration1(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "privateParam") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "privateParam") } diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go index c726830596..0ed9c6e3c6 100644 --- a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go @@ -18,5 +18,5 @@ func TestRenameParameterPropertyDeclaration2(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "publicParam") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "publicParam") } diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go index 65206e4662..bfa14f074e 100644 --- a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go @@ -18,5 +18,5 @@ func TestRenameParameterPropertyDeclaration3(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "protectedParam") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "protectedParam") } diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go index 7529e613bf..c0134dddf3 100644 --- a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go @@ -17,5 +17,5 @@ func TestRenameParameterPropertyDeclaration4(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[2]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[2]) } diff --git a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go index dedeb8b04d..479c01bc2b 100644 --- a/internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go +++ b/internal/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go @@ -17,5 +17,5 @@ func TestRenameParameterPropertyDeclaration5(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "protectedParam") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "protectedParam") } diff --git a/internal/fourslash/tests/gen/renamePrivateAccessor_test.go b/internal/fourslash/tests/gen/renamePrivateAccessor_test.go index b831672463..8a1a64958d 100644 --- a/internal/fourslash/tests/gen/renamePrivateAccessor_test.go +++ b/internal/fourslash/tests/gen/renamePrivateAccessor_test.go @@ -20,5 +20,5 @@ func TestRenamePrivateAccessor(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, ToAny(f.GetRangesByText().Get("#foo"))...) + f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.GetRangesByText().Get("#foo"))...) } diff --git a/internal/fourslash/tests/gen/renamePrivateFields1_test.go b/internal/fourslash/tests/gen/renamePrivateFields1_test.go index 24bd99a5d7..299c21638f 100644 --- a/internal/fourslash/tests/gen/renamePrivateFields1_test.go +++ b/internal/fourslash/tests/gen/renamePrivateFields1_test.go @@ -19,5 +19,5 @@ func TestRenamePrivateFields1(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "#foo") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "#foo") } diff --git a/internal/fourslash/tests/gen/renamePrivateFields_test.go b/internal/fourslash/tests/gen/renamePrivateFields_test.go index 437ea6c491..d57d8c3f09 100644 --- a/internal/fourslash/tests/gen/renamePrivateFields_test.go +++ b/internal/fourslash/tests/gen/renamePrivateFields_test.go @@ -20,5 +20,5 @@ func TestRenamePrivateFields(t *testing.T) { }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) + f.VerifyRenameSucceeded(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/renamePrivateMethod_test.go b/internal/fourslash/tests/gen/renamePrivateMethod_test.go index f07f13d15d..95ddf5facb 100644 --- a/internal/fourslash/tests/gen/renamePrivateMethod_test.go +++ b/internal/fourslash/tests/gen/renamePrivateMethod_test.go @@ -19,5 +19,5 @@ func TestRenamePrivateMethod(t *testing.T) { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, ToAny(f.GetRangesByText().Get("#foo"))...) + f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.GetRangesByText().Get("#foo"))...) } diff --git a/internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go b/internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go index 9c278761d1..8b56104225 100644 --- a/internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go +++ b/internal/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go @@ -18,5 +18,5 @@ function foo() { class C extends (foo()).[|B|] {} class C1 extends foo().[|B|] {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "B") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "B") } diff --git a/internal/fourslash/tests/gen/renameReExportDefault_test.go b/internal/fourslash/tests/gen/renameReExportDefault_test.go index 28a18a8315..5f10213b09 100644 --- a/internal/fourslash/tests/gen/renameReExportDefault_test.go +++ b/internal/fourslash/tests/gen/renameReExportDefault_test.go @@ -22,5 +22,5 @@ import { default as bee } from "./b"; [|const [|{| "contextRangeIndex": 6 |}b|] = 0;|] [|export default [|{| "contextRangeIndex": 8 |}b|];|]` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[7], f.Ranges()[9]) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1], f.Ranges()[3], f.Ranges()[5], f.Ranges()[7], f.Ranges()[9]) } diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go index 1122216ab8..e82506c682 100644 --- a/internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go @@ -16,5 +16,5 @@ func TestRenameReferenceFromLinkTag1(t *testing.T) { A }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go index 2224349514..aa6d3e120c 100644 --- a/internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go @@ -20,5 +20,5 @@ interface Foo { foo: E.Foo; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go index 5806255c9c..2caf81f5a8 100644 --- a/internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go @@ -21,5 +21,5 @@ enum E { Foo }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go index 053a374bde..3305ac5307 100644 --- a/internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go @@ -17,5 +17,5 @@ func TestRenameReferenceFromLinkTag4(t *testing.T) { B }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go b/internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go index 3c942601c1..1575bdd807 100644 --- a/internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go +++ b/internal/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go @@ -16,5 +16,5 @@ func TestRenameReferenceFromLinkTag5(t *testing.T) { A }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameRestBindingElement_test.go b/internal/fourslash/tests/gen/renameRestBindingElement_test.go index ec6ef0f6cb..31ea3a77aa 100644 --- a/internal/fourslash/tests/gen/renameRestBindingElement_test.go +++ b/internal/fourslash/tests/gen/renameRestBindingElement_test.go @@ -4,6 +4,8 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/testutil" ) @@ -20,5 +22,5 @@ function foo([|{ a, ...[|{| "contextRangeIndex": 0 |}rest|] }: I|]) { [|rest|]; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, f.Ranges()[1]) + f.VerifyBaselineRename(t, &ls.UserPreferences{UseAliasesForRename: PtrTo(true)}, f.Ranges()[1]) } diff --git a/internal/fourslash/tests/gen/renameRest_test.go b/internal/fourslash/tests/gen/renameRest_test.go index 8fd75b587d..cc3c73daee 100644 --- a/internal/fourslash/tests/gen/renameRest_test.go +++ b/internal/fourslash/tests/gen/renameRest_test.go @@ -20,5 +20,5 @@ let t: Gen; var { x, ...rest } = t; rest.[|parent|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "parent") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "parent") } diff --git a/internal/fourslash/tests/gen/renameStringLiteralOk1_test.go b/internal/fourslash/tests/gen/renameStringLiteralOk1_test.go index 86469792ac..78e94024b2 100644 --- a/internal/fourslash/tests/gen/renameStringLiteralOk1_test.go +++ b/internal/fourslash/tests/gen/renameStringLiteralOk1_test.go @@ -19,5 +19,5 @@ const d: 'foo' = 'foo' declare const ff: Foo ff.f = '[|foo|]'` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "foo") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "foo") } diff --git a/internal/fourslash/tests/gen/renameStringLiteralOk_test.go b/internal/fourslash/tests/gen/renameStringLiteralOk_test.go index 74294a5c77..9779a6f422 100644 --- a/internal/fourslash/tests/gen/renameStringLiteralOk_test.go +++ b/internal/fourslash/tests/gen/renameStringLiteralOk_test.go @@ -19,5 +19,5 @@ declare const f: Foo f.f = '[|foo|]' f.f = ` + "`" + `[|foo|]` + "`" + `` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "foo") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "foo") } diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go index 9bb96680d9..9ef81dea6c 100644 --- a/internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes1_test.go @@ -21,5 +21,5 @@ function animate(o: AnimationOptions) { } animate({ deltaX: 100, deltaY: 100, easing: "[|ease-in-out|]" });` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "ease-in-out") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "ease-in-out") } diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go index 552222b5c2..1c24de97f6 100644 --- a/internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes2_test.go @@ -30,5 +30,5 @@ class C { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "a") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "a") } diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go index 4f77ee0b13..7a9243df32 100644 --- a/internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes3_test.go @@ -25,5 +25,5 @@ class C { } }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "a") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "a") } diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go index 67b57fa0df..01a338b5ce 100644 --- a/internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes4_test.go @@ -19,5 +19,5 @@ declare const fn: (p: K) => void fn("Prop 1"/**/)` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go b/internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go index f60c682d08..e22ee91227 100644 --- a/internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go +++ b/internal/fourslash/tests/gen/renameStringLiteralTypes5_test.go @@ -19,5 +19,5 @@ declare const fn: (p: K) => void fn("Prop 1"/**/)` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameStringPropertyNames2_test.go b/internal/fourslash/tests/gen/renameStringPropertyNames2_test.go index 0eb5ad4103..cfe5023744 100644 --- a/internal/fourslash/tests/gen/renameStringPropertyNames2_test.go +++ b/internal/fourslash/tests/gen/renameStringPropertyNames2_test.go @@ -20,5 +20,5 @@ foo; let asd: Props = { "foo"/**/: true }; // rename foo here` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t, "") + f.VerifyBaselineRename(t, nil /*preferences*/, "") } diff --git a/internal/fourslash/tests/gen/renameStringPropertyNames_test.go b/internal/fourslash/tests/gen/renameStringPropertyNames_test.go index 00ca8ee9a0..eed50023ba 100644 --- a/internal/fourslash/tests/gen/renameStringPropertyNames_test.go +++ b/internal/fourslash/tests/gen/renameStringPropertyNames_test.go @@ -23,5 +23,5 @@ o["[|prop|]"]; o['[|prop|]']; o.[|prop|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "prop") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "prop") } diff --git a/internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go b/internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go index 7d7be517a5..cd0f3d82ce 100644 --- a/internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go +++ b/internal/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go @@ -48,5 +48,5 @@ obj[` + "`" + `[|num|]` + "`" + `]; obj.[|bool|]; obj[` + "`" + `[|bool|]` + "`" + `];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "num", "bool") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "num", "bool") } diff --git a/internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go b/internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go index 7667e4f555..409ba50fdb 100644 --- a/internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go +++ b/internal/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go @@ -26,5 +26,5 @@ obj['[|prop|]']; obj["[|prop|]"]; obj[` + "`" + `[|prop|]` + "`" + `];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "prop") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "prop") } diff --git a/internal/fourslash/tests/gen/renameThis_test.go b/internal/fourslash/tests/gen/renameThis_test.go new file mode 100644 index 0000000000..5fc64bffab --- /dev/null +++ b/internal/fourslash/tests/gen/renameThis_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameThis(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `function f([|this|]) { + return [|this|]; +} +this/**/; +const _ = { [|[|{| "contextRangeIndex": 2 |}this|]: 0|] }.[|this|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameFailed(t, nil /*preferences*/) + f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[0], f.Ranges()[1], f.Ranges()[3], f.Ranges()[4]) +} diff --git a/internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go b/internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go index 21b10863b4..665133cd86 100644 --- a/internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go +++ b/internal/fourslash/tests/gen/renameUMDModuleAlias1_test.go @@ -19,5 +19,5 @@ export function doTheOtherThing(): void; /// [|myLib|].doThing();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "myLib") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "myLib") } diff --git a/internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go b/internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go index 66f9d11e13..e939d5d158 100644 --- a/internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go +++ b/internal/fourslash/tests/gen/renameUMDModuleAlias2_test.go @@ -20,5 +20,5 @@ export as namespace /**/[|myLib|]; myLib.doThing();` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") - f.VerifyRenameSucceeded(t) + f.VerifyRenameSucceeded(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/tsxRename1_test.go b/internal/fourslash/tests/gen/tsxRename1_test.go index 53d46c82b4..afd061e82d 100644 --- a/internal/fourslash/tests/gen/tsxRename1_test.go +++ b/internal/fourslash/tests/gen/tsxRename1_test.go @@ -24,5 +24,5 @@ declare module JSX { } var x = [|<[|{| "contextRangeIndex": 2 |}div|] />|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "div") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "div") } diff --git a/internal/fourslash/tests/gen/tsxRename2_test.go b/internal/fourslash/tests/gen/tsxRename2_test.go index 5ef6242627..0177caa15d 100644 --- a/internal/fourslash/tests/gen/tsxRename2_test.go +++ b/internal/fourslash/tests/gen/tsxRename2_test.go @@ -24,5 +24,5 @@ declare module JSX { } var x =
;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "name") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "name") } diff --git a/internal/fourslash/tests/gen/tsxRename3_test.go b/internal/fourslash/tests/gen/tsxRename3_test.go index e0dc51e1b6..df4f15bab7 100644 --- a/internal/fourslash/tests/gen/tsxRename3_test.go +++ b/internal/fourslash/tests/gen/tsxRename3_test.go @@ -27,5 +27,5 @@ class MyClass { var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "name") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "name") } diff --git a/internal/fourslash/tests/gen/tsxRename5_test.go b/internal/fourslash/tests/gen/tsxRename5_test.go index 3d8ab6de7a..2efeb02c10 100644 --- a/internal/fourslash/tests/gen/tsxRename5_test.go +++ b/internal/fourslash/tests/gen/tsxRename5_test.go @@ -27,5 +27,5 @@ class MyClass { [|var [|{| "contextRangeIndex": 0 |}nn|]: string;|] var x = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "nn") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "nn") } diff --git a/internal/fourslash/tests/gen/tsxRename6_test.go b/internal/fourslash/tests/gen/tsxRename6_test.go index ee1aa60262..06abad84e8 100644 --- a/internal/fourslash/tests/gen/tsxRename6_test.go +++ b/internal/fourslash/tests/gen/tsxRename6_test.go @@ -32,5 +32,5 @@ let opt2 = [|<[|{| "contextRangeIndex": 6 |}Opt|] propx={100} optional/>|]; let opt3 = [|<[|{| "contextRangeIndex": 8 |}Opt|] wrong />|]; let opt4 = [|<[|{| "contextRangeIndex": 10 |}Opt|] propx={100} propString="hi" />|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "Opt") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "Opt") } diff --git a/internal/fourslash/tests/gen/tsxRename7_test.go b/internal/fourslash/tests/gen/tsxRename7_test.go index b5edf7dad7..119782e5d6 100644 --- a/internal/fourslash/tests/gen/tsxRename7_test.go +++ b/internal/fourslash/tests/gen/tsxRename7_test.go @@ -31,5 +31,5 @@ let opt1 = ; let opt2 = ; let opt3 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "propx") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "propx") } diff --git a/internal/fourslash/tests/gen/tsxRename8_test.go b/internal/fourslash/tests/gen/tsxRename8_test.go index 4a86214420..79bf2e7034 100644 --- a/internal/fourslash/tests/gen/tsxRename8_test.go +++ b/internal/fourslash/tests/gen/tsxRename8_test.go @@ -32,5 +32,5 @@ let opt2 = ; let opt3 = ; let opt4 = ;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRename(t) + f.VerifyBaselineRename(t, nil /*preferences*/) } diff --git a/internal/fourslash/tests/gen/tsxRename9_test.go b/internal/fourslash/tests/gen/tsxRename9_test.go index 6f98c2443d..e631806a1f 100644 --- a/internal/fourslash/tests/gen/tsxRename9_test.go +++ b/internal/fourslash/tests/gen/tsxRename9_test.go @@ -40,5 +40,5 @@ let opt = [|<[|{| "contextRangeIndex": 18 |}MainButton|] [|[|{| "contextRangeInd let opt = [|<[|{| "contextRangeIndex": 23 |}MainButton|] [|[|{| "contextRangeIndex": 25 |}goTo|]="goTo"|] />|]; let opt = [|<[|{| "contextRangeIndex": 27 |}MainButton|] [|wrong|] />|];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, "onClick", "goTo", "MainButton", "ignore-prop", "wrong") + f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "onClick", "goTo", "MainButton", "ignore-prop", "wrong") } diff --git a/internal/fourslash/tests/manual/renameForDefaultExport01_test.go b/internal/fourslash/tests/manual/renameForDefaultExport01_test.go new file mode 100644 index 0000000000..ca6ad3dd18 --- /dev/null +++ b/internal/fourslash/tests/manual/renameForDefaultExport01_test.go @@ -0,0 +1,35 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `[|export default class [|{| "contextRangeIndex": 0 |}DefaultExportedClass|] { +}|] +/* + * Commenting [|{| "inComment": true |}DefaultExportedClass|] + */ + +var x: [|DefaultExportedClass|]; + +var y = new [|DefaultExportedClass|];` + + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + ranges := f.GetRangesByText().Get("DefaultExportedClass") + + var markerOrRanges []fourslash.MarkerOrRangeOrName + for _, r := range ranges { + if !(r.Marker != nil && r.Marker.Data != nil && r.Marker.Data["inComment"] == true) { + markerOrRanges = append(markerOrRanges, r) + } + } + + f.VerifyBaselineRename(t, nil /*preferences*/, markerOrRanges...) +} diff --git a/internal/ls/types.go b/internal/ls/types.go index 6aafc4bbbb..9d2331f3e3 100644 --- a/internal/ls/types.go +++ b/internal/ls/types.go @@ -45,6 +45,8 @@ type UserPreferences struct { PreferTypeOnlyAutoImports *bool AutoImportSpecifierExcludeRegexes []string AutoImportFileExcludePatterns []string + + UseAliasesForRename *bool } func (p *UserPreferences) ModuleSpecifierPreferences() modulespecifiers.UserPreferences { diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc new file mode 100644 index 0000000000..906a20df00 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc @@ -0,0 +1,39 @@ +// === findRenameLocations === +// === /renameForDefaultExport01.ts === +// export default class /*RENAME*/[|DefaultExportedClassRENAME|] { +// } +// /* +// * Commenting DefaultExportedClass +// */ +// +// var x: [|DefaultExportedClassRENAME|]; +// +// var y = new [|DefaultExportedClassRENAME|]; + + + +// === findRenameLocations === +// === /renameForDefaultExport01.ts === +// export default class [|DefaultExportedClassRENAME|] { +// } +// /* +// * Commenting DefaultExportedClass +// */ +// +// var x: /*RENAME*/[|DefaultExportedClassRENAME|]; +// +// var y = new [|DefaultExportedClassRENAME|]; + + + +// === findRenameLocations === +// === /renameForDefaultExport01.ts === +// export default class [|DefaultExportedClassRENAME|] { +// } +// /* +// * Commenting DefaultExportedClass +// */ +// +// var x: [|DefaultExportedClassRENAME|]; +// +// var y = new /*RENAME*/[|DefaultExportedClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff new file mode 100644 index 0000000000..ffae21b942 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff @@ -0,0 +1,45 @@ +--- old.renameForDefaultExport01.baseline.jsonc ++++ new.renameForDefaultExport01.baseline.jsonc +@@= skipped -0, +0 lines =@@ + // === findRenameLocations === +-// @findInComments: true +- + // === /renameForDefaultExport01.ts === + // export default class /*RENAME*/[|DefaultExportedClassRENAME|] { + // } + // /* +-// * Commenting [|DefaultExportedClassRENAME|] ++// * Commenting DefaultExportedClass + // */ + // + // var x: [|DefaultExportedClassRENAME|]; +@@= skipped -14, +12 lines =@@ + + + // === findRenameLocations === +-// @findInComments: true +- + // === /renameForDefaultExport01.ts === + // export default class [|DefaultExportedClassRENAME|] { + // } + // /* +-// * Commenting [|DefaultExportedClassRENAME|] ++// * Commenting DefaultExportedClass + // */ + // + // var x: /*RENAME*/[|DefaultExportedClassRENAME|]; +@@= skipped -16, +14 lines =@@ + + + // === findRenameLocations === +-// @findInComments: true +- + // === /renameForDefaultExport01.ts === + // export default class [|DefaultExportedClassRENAME|] { + // } + // /* +-// * Commenting [|DefaultExportedClassRENAME|] ++// * Commenting DefaultExportedClass + // */ + // + // var x: [|DefaultExportedClassRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc new file mode 100644 index 0000000000..b81b0642e4 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc @@ -0,0 +1,37 @@ +// === findRenameLocations === +// === /renameThis.ts === +// function f(/*RENAME*/[|thisRENAME|]) { +// return [|thisRENAME|]; +// } +// this; +// const _ = { this: 0 }.this; + + + +// === findRenameLocations === +// === /renameThis.ts === +// function f(this) { +// return /*RENAME*/this; +// } +// this; +// const _ = { this: 0 }.this; + + + +// === findRenameLocations === +// === /renameThis.ts === +// function f(this) { +// return this; +// } +// this; +// const _ = { /*RENAME*/[|thisRENAME|]: 0 }.[|thisRENAME|]; + + + +// === findRenameLocations === +// === /renameThis.ts === +// function f(this) { +// return this; +// } +// this; +// const _ = { this: 0 }./*RENAME*/[|thisRENAME|]: 0 }.[|thisRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff new file mode 100644 index 0000000000..692a0371d1 --- /dev/null +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff @@ -0,0 +1,19 @@ +--- old.renameThis.baseline.jsonc ++++ new.renameThis.baseline.jsonc +@@= skipped -9, +9 lines =@@ + + // === findRenameLocations === + // === /renameThis.ts === +-// function f([|thisRENAME|]) { +-// return /*RENAME*/[|thisRENAME|]; ++// function f(this) { ++// return /*RENAME*/this; + // } + // this; + // const _ = { this: 0 }.this; +@@= skipped -24, +24 lines =@@ + // return this; + // } + // this; +-// const _ = { [|thisRENAME|]: 0 }./*RENAME*/[|thisRENAME|]; ++// const _ = { this: 0 }./*RENAME*/[|thisRENAME|]: 0 }.[|thisRENAME|]; \ No newline at end of file From fe0ca4a687416210d43b6f21c203e24ebcd709ce Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Thu, 11 Sep 2025 09:55:30 -0700 Subject: [PATCH 16/18] add user preferences argument --- .../fourslash/_scripts/convertFourslash.mts | 6 + internal/fourslash/_scripts/tsconfig.json | 3 +- internal/fourslash/baselineutil.go | 48 ++++- internal/fourslash/fourslash.go | 55 +++++- internal/fourslash/test_parser.go | 8 + .../gen/renameForAliasingExport01_test.go | 21 +++ .../gen/renameForAliasingExport02_test.go | 21 +++ .../gen/renameForDefaultExport04_test.go | 27 +++ .../gen/renameForDefaultExport05_test.go | 27 +++ .../gen/renameForDefaultExport06_test.go | 27 +++ .../gen/renameForDefaultExport07_test.go | 28 +++ .../gen/renameForDefaultExport08_test.go | 28 +++ .../gen/renameForDefaultExport09_test.go | 34 ++++ .../gen/renameFromNodeModulesDep1_test.go | 32 ++++ .../gen/renameFromNodeModulesDep2_test.go | 36 ++++ .../gen/renameFromNodeModulesDep3_test.go | 32 ++++ .../gen/renameFromNodeModulesDep4_test.go | 40 ++++ .../tests/gen/renameNameOnEnumMember_test.go | 23 +++ .../renameNumericalIndexSingleQuoted_test.go | 4 +- internal/ls/types.go | 9 + internal/ls/utilities.go | 2 +- ...ortProvider_referencesCrash.baseline.jsonc | 2 +- ...findAllReferencesImportMeta.baseline.jsonc | 2 +- ...OverloadedFunctionParameter.baseline.jsonc | 2 +- .../findAllReferencesLinkTag1.baseline.jsonc | 16 +- .../findAllReferencesLinkTag2.baseline.jsonc | 10 +- .../findAllReferencesLinkTag3.baseline.jsonc | 10 +- ...cesNonExistentExportBinding.baseline.jsonc | 2 +- .../findAllRefsEnumMember.baseline.jsonc | 2 +- ...RefsForFunctionExpression01.baseline.jsonc | 8 +- .../findAllRefsForImportCall.baseline.jsonc | 2 +- ...indAllRefsForImportCallType.baseline.jsonc | 2 +- ...findAllRefsInsideTemplates1.baseline.jsonc | 2 +- ...findAllRefsInsideTemplates2.baseline.jsonc | 4 +- .../findAllRefsInsideWithBlock.baseline.jsonc | 2 +- .../findAllRefsIsDefinition.baseline.jsonc | 10 +- .../findAllRefsJsDocImportTag.baseline.jsonc | 2 +- .../findAllRefsJsDocImportTag2.baseline.jsonc | 2 +- .../findAllRefsJsDocImportTag3.baseline.jsonc | 2 +- .../findAllRefsJsDocImportTag4.baseline.jsonc | 2 +- ...odulesOverlappingSpecifiers.baseline.jsonc | 2 +- ...indingElementPropertyName03.baseline.jsonc | 2 +- ...indingElementPropertyName10.baseline.jsonc | 2 +- .../findAllRefsOnDecorators.baseline.jsonc | 2 +- .../findAllRefsPrimitiveJsDoc.baseline.jsonc | 2 +- .../findAllRefsThisKeyword.baseline.jsonc | 2 +- ...efsThisKeywordMultipleFiles.baseline.jsonc | 8 +- ...eParameterInMergedInterface.baseline.jsonc | 4 +- ...encesDefinitionDisplayParts.baseline.jsonc | 6 +- .../findReferencesSeeTagInTs.baseline.jsonc | 2 +- ...sDefinitionOfBindingPattern.baseline.jsonc | 2 +- ...nitionOfInterfaceClassMerge.baseline.jsonc | 2 +- ...encesIsDefinitionOfVariable.baseline.jsonc | 4 +- ...DefinitionShorthandProperty.baseline.jsonc | 2 +- ...xtuallyTypedUnionProperties.baseline.jsonc | 2 +- .../referencesForLabel6.baseline.jsonc | 2 +- .../remoteGetReferences.baseline.jsonc | 4 +- .../tsxFindAllReferences4.baseline.jsonc | 2 +- ...oToDefinitionDynamicImport3.baseline.jsonc | 2 +- ...oToDefinitionDynamicImport4.baseline.jsonc | 2 +- ...finitionExternalModuleName5.baseline.jsonc | 2 +- .../goToDefinitionMember.baseline.jsonc | 2 +- .../goToDefinitionMetaProperty.baseline.jsonc | 4 +- .../goToDefinitionModifiers.baseline.jsonc | 14 +- ...itionSignatureAlias_require.baseline.jsonc | 4 +- .../goToDefinitionThis.baseline.jsonc | 2 +- ...goToDefinitionTypePredicate.baseline.jsonc | 2 +- .../goToDefinitionTypeofThis.baseline.jsonc | 2 +- .../goToDefinitionYield4.baseline.jsonc | 2 +- ...tionInObjectBindingPattern1.baseline.jsonc | 2 +- ...tionInObjectBindingPattern2.baseline.jsonc | 6 +- ...AllReferencesDynamicImport3.baseline.jsonc | 6 +- ...ferencesDynamicImport3.baseline.jsonc.diff | 17 -- ...fsClassWithStaticThisAccess.baseline.jsonc | 8 +- ...ssWithStaticThisAccess.baseline.jsonc.diff | 15 +- .../jsdocCallbackTagRename01.baseline.jsonc | 2 +- ...docCallbackTagRename01.baseline.jsonc.diff | 4 +- .../jsdocTypedefTagRename01.baseline.jsonc | 4 +- ...sdocTypedefTagRename01.baseline.jsonc.diff | 15 +- .../jsdocTypedefTagRename02.baseline.jsonc | 2 +- ...sdocTypedefTagRename02.baseline.jsonc.diff | 4 +- ...sdocTypedefTagRename03.baseline.jsonc.diff | 2 - .../processInvalidSyntax1.baseline.jsonc | 2 +- .../processInvalidSyntax1.baseline.jsonc.diff | 29 +-- .../rename01.baseline.jsonc | 4 +- .../rename01.baseline.jsonc.diff | 7 +- .../renameAliasExternalModule2.baseline.jsonc | 12 +- ...meAliasExternalModule2.baseline.jsonc.diff | 29 --- ...gElementInitializerProperty.baseline.jsonc | 16 +- ...entInitializerProperty.baseline.jsonc.diff | 85 --------- .../renameCommentsAndStrings2.baseline.jsonc | 4 +- ...ameCommentsAndStrings2.baseline.jsonc.diff | 6 +- .../renameCommentsAndStrings3.baseline.jsonc | 4 +- ...ameCommentsAndStrings3.baseline.jsonc.diff | 6 +- .../renameCommentsAndStrings4.baseline.jsonc | 7 +- ...ameCommentsAndStrings4.baseline.jsonc.diff | 15 +- .../renameDeclarationKeywords.baseline.jsonc | 40 ++-- ...ameDeclarationKeywords.baseline.jsonc.diff | 178 +++++++++++------- .../renameDefaultLibDontWork.baseline.jsonc | 4 +- ...nameDefaultLibDontWork.baseline.jsonc.diff | 7 +- ...ignmentNestedInArrayLiteral.baseline.jsonc | 18 +- ...ntNestedInArrayLiteral.baseline.jsonc.diff | 47 ----- ...ingAssignmentNestedInForOf2.baseline.jsonc | 26 ++- ...signmentNestedInForOf2.baseline.jsonc.diff | 101 ---------- ...eDestructuringClassProperty.baseline.jsonc | 28 +-- ...ructuringClassProperty.baseline.jsonc.diff | 71 +------ ...structuringDeclarationInFor.baseline.jsonc | 17 +- ...turingDeclarationInFor.baseline.jsonc.diff | 79 -------- ...ructuringDeclarationInForOf.baseline.jsonc | 19 +- ...ringDeclarationInForOf.baseline.jsonc.diff | 51 ----- ...tructuringFunctionParameter.baseline.jsonc | 12 +- ...uringFunctionParameter.baseline.jsonc.diff | 42 ----- ...cturingNestedBindingElement.baseline.jsonc | 18 +- ...ngNestedBindingElement.baseline.jsonc.diff | 82 -------- .../renameExportSpecifier.baseline.jsonc | 2 + .../renameExportSpecifier.baseline.jsonc.diff | 6 +- .../renameExportSpecifier2.baseline.jsonc | 2 + ...renameExportSpecifier2.baseline.jsonc.diff | 6 +- ...nameForDefaultExport01.baseline.jsonc.diff | 7 +- .../renameFunctionParameter1.baseline.jsonc | 2 +- ...nameFunctionParameter1.baseline.jsonc.diff | 7 +- .../renameFunctionParameter2.baseline.jsonc | 2 +- ...nameFunctionParameter2.baseline.jsonc.diff | 6 +- .../renameImportAndExport.baseline.jsonc | 6 +- .../renameImportAndExport.baseline.jsonc.diff | 8 +- ...eImportAndExportInDiffFiles.baseline.jsonc | 12 +- ...rtAndExportInDiffFiles.baseline.jsonc.diff | 21 +-- .../renameImportAndShorthand.baseline.jsonc | 6 +- ...nameImportAndShorthand.baseline.jsonc.diff | 17 -- ...ImportNamespaceAndShorthand.baseline.jsonc | 6 +- ...tNamespaceAndShorthand.baseline.jsonc.diff | 17 -- .../renameImportOfExportEquals.baseline.jsonc | 57 +++--- ...meImportOfExportEquals.baseline.jsonc.diff | 140 ++++---------- .../renameImportRequire.baseline.jsonc | 24 +-- .../renameImportRequire.baseline.jsonc.diff | 45 ++--- .../renameInConfiguredProject.baseline.jsonc | 5 +- ...ameInConfiguredProject.baseline.jsonc.diff | 11 +- .../renameJsDocImportTag.baseline.jsonc | 2 +- .../renameJsDocImportTag.baseline.jsonc.diff | 6 +- ...OverloadedFunctionParameter.baseline.jsonc | 2 +- ...oadedFunctionParameter.baseline.jsonc.diff | 6 +- ...ionsForFunctionExpression01.baseline.jsonc | 2 +- ...orFunctionExpression01.baseline.jsonc.diff | 9 - ...ionsForFunctionExpression02.baseline.jsonc | 2 +- ...orFunctionExpression02.baseline.jsonc.diff | 9 - .../renameModifiers.baseline.jsonc | 12 +- .../renameModifiers.baseline.jsonc.diff | 12 +- ...ameModuleExportsProperties1.baseline.jsonc | 10 +- ...duleExportsProperties1.baseline.jsonc.diff | 21 --- ...ameModuleExportsProperties2.baseline.jsonc | 4 +- ...duleExportsProperties2.baseline.jsonc.diff | 11 -- ...ameModuleExportsProperties3.baseline.jsonc | 10 +- ...duleExportsProperties3.baseline.jsonc.diff | 21 --- .../renameNamedImport.baseline.jsonc | 4 +- .../renameNamedImport.baseline.jsonc.diff | 10 - ...eNumericalIndexSingleQuoted.baseline.jsonc | 4 + ...ricalIndexSingleQuoted.baseline.jsonc.diff | 13 +- ...enameObjectSpreadAssignment.baseline.jsonc | 8 +- ...ObjectSpreadAssignment.baseline.jsonc.diff | 24 --- ...rameterPropertyDeclaration4.baseline.jsonc | 6 +- ...erPropertyDeclaration4.baseline.jsonc.diff | 22 --- .../renameReExportDefault.baseline.jsonc | 30 ++- .../renameReExportDefault.baseline.jsonc.diff | 121 ++++-------- .../renameRestBindingElement.baseline.jsonc | 6 +- ...nameRestBindingElement.baseline.jsonc.diff | 17 -- .../renameThis.baseline.jsonc | 2 +- .../renameThis.baseline.jsonc.diff | 8 +- 167 files changed, 1143 insertions(+), 1524 deletions(-) create mode 100644 internal/fourslash/tests/gen/renameForAliasingExport01_test.go create mode 100644 internal/fourslash/tests/gen/renameForAliasingExport02_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport04_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport05_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport06_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport07_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport08_test.go create mode 100644 internal/fourslash/tests/gen/renameForDefaultExport09_test.go create mode 100644 internal/fourslash/tests/gen/renameFromNodeModulesDep1_test.go create mode 100644 internal/fourslash/tests/gen/renameFromNodeModulesDep2_test.go create mode 100644 internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go create mode 100644 internal/fourslash/tests/gen/renameFromNodeModulesDep4_test.go create mode 100644 internal/fourslash/tests/gen/renameNameOnEnumMember_test.go delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff delete mode 100644 testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff diff --git a/internal/fourslash/_scripts/convertFourslash.mts b/internal/fourslash/_scripts/convertFourslash.mts index 3fd2615809..7dff8086e8 100644 --- a/internal/fourslash/_scripts/convertFourslash.mts +++ b/internal/fourslash/_scripts/convertFourslash.mts @@ -815,10 +815,12 @@ function parseRenameInfo(funcName: "renameInfoSucceeded" | "renameInfoFailed", a if (args[6]) { prefArg = args[6]; } + break; case "renameInfoFailed": if (args[1]) { prefArg = args[1]; } + break; } if (prefArg) { if (!ts.isObjectLiteralExpression(prefArg)) { @@ -878,6 +880,10 @@ function parseUserPreferences(arg: ts.ObjectLiteralExpression): string | undefin // !!! other preferences case "providePrefixAndSuffixTextForRename": preferences.push(`UseAliasesForRename: PtrTo(${prop.initializer.getText()})`); + break; + case "quotePreference": + preferences.push(`QuotePreference: PtrTo(ls.QuotePreference(${prop.initializer.getText()}))`); + break; } } else { diff --git a/internal/fourslash/_scripts/tsconfig.json b/internal/fourslash/_scripts/tsconfig.json index 2a320eaf55..2f37a6d028 100644 --- a/internal/fourslash/_scripts/tsconfig.json +++ b/internal/fourslash/_scripts/tsconfig.json @@ -3,6 +3,7 @@ "strict": true, "noEmit": true, "module": "nodenext", - "allowImportingTsExtensions": true + "allowImportingTsExtensions": true, + "noFallthroughCasesInSwitch": true, } } diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index b5664d752f..32f4c912f9 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -12,6 +12,7 @@ import ( "github.com/microsoft/typescript-go/internal/collections" "github.com/microsoft/typescript-go/internal/core" + "github.com/microsoft/typescript-go/internal/debug" "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/lsp/lsproto" "github.com/microsoft/typescript-go/internal/testutil/baseline" @@ -74,15 +75,21 @@ func getBaselineOptions(command string) baseline.Options { serverTestFilePrefix := "/server" contextSpanOpening := "<|" contextSpanClosing := "|>" + oldPreference := "providePrefixAndSuffixTextForRename" + newPreference := "useAliasesForRename" replacer := strings.NewReplacer( contextSpanOpening, "", contextSpanClosing, "", testFilePrefix, "", serverTestFilePrefix, "", + oldPreference, newPreference, ) lines := strings.Split(s, "\n") var isInCommand bool for _, line := range lines { + if strings.HasPrefix(line, "// @findInStrings: ") || strings.HasPrefix(line, "// @findInComments: ") { + continue + } matches := commandPrefix.FindStringSubmatch(line) if len(matches) > 0 { commandName := matches[1] @@ -114,8 +121,8 @@ type baselineFourslashLocationsOptions struct { endMarker string - startMarkerPrefix func(span lsproto.Location) string - endMarkerSuffix func(span lsproto.Location) string + startMarkerPrefix func(span lsproto.Location) *string + endMarkerSuffix func(span lsproto.Location) *string } func (f *FourslashTest) getBaselineForLocationsWithFileContents(spans []lsproto.Location, options baselineFourslashLocationsOptions) string { @@ -201,20 +208,47 @@ func (f *FourslashTest) getBaselineContentForFile( options baselineFourslashLocationsOptions, ) string { details := []*baselineDetail{} - detailPrefixes := map[baselineDetail]string{} - detailSuffixes := map[baselineDetail]string{} + detailPrefixes := map[*baselineDetail]string{} + detailSuffixes := map[*baselineDetail]string{} canDetermineContextIdInline := true + uri := ls.FileNameToDocumentURI(fileName) if options.marker != nil && options.marker.FileName() == fileName { details = append(details, &baselineDetail{pos: options.marker.LSPos(), positionMarker: options.markerName}) } for _, span := range spansInFile { + textSpanIndex := len(details) details = append(details, &baselineDetail{pos: span.Start, positionMarker: "[|", span: &span, kind: "textStart"}, &baselineDetail{pos: span.End, positionMarker: core.OrElse(options.endMarker, "|]"), span: &span, kind: "textEnd"}, ) + + if options.startMarkerPrefix != nil { + startPrefix := options.startMarkerPrefix(lsproto.Location{Uri: uri, Range: span}) + if startPrefix != nil { + // Special case: if this span starts at the same position as the provided marker, + // we want the span's prefix to appear before the marker name. + // i.e. We want `/*START PREFIX*/A: /*RENAME*/[|ARENAME|]`, + // not `/*RENAME*//*START PREFIX*/A: [|ARENAME|]` + if options.marker != nil && fileName == options.marker.FileName() && span.Start == options.marker.LSPos() { + _, ok := detailPrefixes[details[0]] + debug.Assert(!ok, "Expected only single prefix at marker location") + detailPrefixes[details[0]] = *startPrefix + } else { + detailPrefixes[details[textSpanIndex]] = *startPrefix + } + } + } + + if options.endMarkerSuffix != nil { + endSuffix := options.endMarkerSuffix(lsproto.Location{Uri: uri, Range: span}) + if endSuffix != nil { + detailSuffixes[details[textSpanIndex+1]] = *endSuffix + } + } } + slices.SortStableFunc(details, func(d1, d2 *baselineDetail) int { return ls.ComparePositions(d1.pos, d2.pos) }) @@ -249,7 +283,7 @@ func (f *FourslashTest) getBaselineContentForFile( textWithContext.add(detail) textWithContext.pos = detail.pos // Prefix - prefix := detailPrefixes[*detail] + prefix := detailPrefixes[detail] if prefix != "" { textWithContext.newContent.WriteString(prefix) } @@ -257,7 +291,7 @@ func (f *FourslashTest) getBaselineContentForFile( if detail.span != nil { switch detail.kind { case "textStart": - text := prefix + var text string if contextId, ok := spanToContextId[*detail.span]; ok { isAfterContextStart := false for textStartIndex := index - 1; textStartIndex >= 0; textStartIndex-- { @@ -296,7 +330,7 @@ func (f *FourslashTest) getBaselineContentForFile( detail = details[0] // Marker detail } } - if suffix, ok := detailSuffixes[*detail]; ok { + if suffix, ok := detailSuffixes[detail]; ok { textWithContext.newContent.WriteString(suffix) } } diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 35c976ffba..5f8425015d 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1522,23 +1522,60 @@ func (f *FourslashTest) verifyBaselineRename( if result.WorkspaceEdit != nil && result.WorkspaceEdit.Changes != nil { changes = *result.WorkspaceEdit.Changes } + locationToText := map[lsproto.Location]string{} fileToRange := collections.MultiMap[lsproto.DocumentUri, lsproto.Range]{} for uri, edits := range changes { for _, edit := range edits { fileToRange.Add(uri, edit.Range) + locationToText[lsproto.Location{Uri: uri, Range: edit.Range}] = edit.NewText } } - // !!! include preferences in string + + var renameOptions strings.Builder + if preferences != nil { + if preferences.UseAliasesForRename != nil { + fmt.Fprintf(&renameOptions, "// @useAliasesForRename: %v\n", *preferences.UseAliasesForRename) + } + if preferences.QuotePreference != nil { + fmt.Fprintf(&renameOptions, "// @quotePreference: %v\n", *preferences.QuotePreference) + } + } + + baselineFileContent := f.getBaselineForGroupedLocationsWithFileContents( + &fileToRange, + baselineFourslashLocationsOptions{ + marker: markerOrRange, + markerName: "/*RENAME*/", + endMarker: "RENAME|]", + startMarkerPrefix: func(span lsproto.Location) *string { + text := locationToText[span] + prefixAndSuffix := strings.Split(text, "?") + if prefixAndSuffix[0] != "" { + return ptrTo("/*START PREFIX*/" + prefixAndSuffix[0]) + } + return nil + }, + endMarkerSuffix: func(span lsproto.Location) *string { + text := locationToText[span] + prefixAndSuffix := strings.Split(text, "?") + if prefixAndSuffix[1] != "" { + return ptrTo(prefixAndSuffix[1] + "/*END SUFFIX*/") + } + return nil + }, + }, + ) + + var baselineResult string + if renameOptions.Len() > 0 { + baselineResult = renameOptions.String() + "\n" + baselineFileContent + } else { + baselineResult = baselineFileContent + } + f.addResultToBaseline(t, "findRenameLocations", - f.getBaselineForGroupedLocationsWithFileContents( - &fileToRange, - baselineFourslashLocationsOptions{ - marker: markerOrRange, - markerName: "/*RENAME*/", - endMarker: "RENAME|]", - }, - ), + baselineResult, ) } } diff --git a/internal/fourslash/test_parser.go b/internal/fourslash/test_parser.go index bb995fc096..346a5eb811 100644 --- a/internal/fourslash/test_parser.go +++ b/internal/fourslash/test_parser.go @@ -2,6 +2,7 @@ package fourslash import ( "fmt" + "slices" "strings" "testing" "unicode/utf8" @@ -380,6 +381,13 @@ func parseFileContent(fileName string, content string, fileOptions map[string]st emit: emit, } + slices.SortStableFunc(rangeMarkers, func(a, b *RangeMarker) int { + if a.Range.Pos() != b.Range.Pos() { + return a.Range.Pos() - b.Range.Pos() + } + return b.Range.End() - a.Range.End() + }) + for _, marker := range markers { marker.LSPosition = converters.PositionToLineAndCharacter(testFileInfo, core.TextPos(marker.Position)) } diff --git a/internal/fourslash/tests/gen/renameForAliasingExport01_test.go b/internal/fourslash/tests/gen/renameForAliasingExport01_test.go new file mode 100644 index 0000000000..886902a915 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForAliasingExport01_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForAliasingExport01(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +let x = 1; + +export { /**/[|x|] as y };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameForAliasingExport02_test.go b/internal/fourslash/tests/gen/renameForAliasingExport02_test.go new file mode 100644 index 0000000000..836eea5129 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForAliasingExport02_test.go @@ -0,0 +1,21 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForAliasingExport02(t *testing.T) { + t.Parallel() + t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +let x = 1; + +export { x as /**/[|y|] };` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport04_test.go b/internal/fourslash/tests/gen/renameForDefaultExport04_test.go new file mode 100644 index 0000000000..21961d2e6c --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport04_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport04(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default class /**/[|DefaultExportedClass|] { +} +/* + * Commenting DefaultExportedClass + */ + +var x: DefaultExportedClass; + +var y = new DefaultExportedClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport05_test.go b/internal/fourslash/tests/gen/renameForDefaultExport05_test.go new file mode 100644 index 0000000000..3238fde37b --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport05_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport05(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default class DefaultExportedClass { +} +/* + * Commenting DefaultExportedClass + */ + +var x: /**/[|DefaultExportedClass|]; + +var y = new DefaultExportedClass;` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport06_test.go b/internal/fourslash/tests/gen/renameForDefaultExport06_test.go new file mode 100644 index 0000000000..c59054b118 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport06_test.go @@ -0,0 +1,27 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport06(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default class DefaultExportedClass { +} +/* + * Commenting DefaultExportedClass + */ + +var x: DefaultExportedClass; + +var y = new /**/[|DefaultExportedClass|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport07_test.go b/internal/fourslash/tests/gen/renameForDefaultExport07_test.go new file mode 100644 index 0000000000..b9999f2dee --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport07_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport07(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default function /**/[|DefaultExportedFunction|]() { + return DefaultExportedFunction +} +/** + * Commenting DefaultExportedFunction + */ + +var x: typeof DefaultExportedFunction; + +var y = DefaultExportedFunction();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport08_test.go b/internal/fourslash/tests/gen/renameForDefaultExport08_test.go new file mode 100644 index 0000000000..939fab24fd --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport08_test.go @@ -0,0 +1,28 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport08(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +export default function DefaultExportedFunction() { + return /**/[|DefaultExportedFunction|] +} +/** + * Commenting DefaultExportedFunction + */ + +var x: typeof DefaultExportedFunction; + +var y = DefaultExportedFunction();` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameForDefaultExport09_test.go b/internal/fourslash/tests/gen/renameForDefaultExport09_test.go new file mode 100644 index 0000000000..25be2af5f4 --- /dev/null +++ b/internal/fourslash/tests/gen/renameForDefaultExport09_test.go @@ -0,0 +1,34 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameForDefaultExport09(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: foo.ts +function /**/[|f|]() { + return 100; +} + +export default f; + +var x: typeof f; + +var y = f(); + +/** + * Commenting f + */ +namespace f { + var local = 100; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameFromNodeModulesDep1_test.go b/internal/fourslash/tests/gen/renameFromNodeModulesDep1_test.go new file mode 100644 index 0000000000..2025a74485 --- /dev/null +++ b/internal/fourslash/tests/gen/renameFromNodeModulesDep1_test.go @@ -0,0 +1,32 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameFromNodeModulesDep1(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /index.ts +import { /*okWithAlias*/[|Foo|] } from "foo"; +declare const f: Foo; +f./*notOk*/bar; +// @Filename: /tsconfig.json + { } +// @Filename: /node_modules/foo/package.json + { "types": "index.d.ts" } +// @Filename: /node_modules/foo/index.d.ts +export interface Foo { + bar: string; +}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "okWithAlias") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.VerifyRenameFailed(t, nil /*preferences*/) + f.GoToMarker(t, "notOk") + f.VerifyRenameFailed(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameFromNodeModulesDep2_test.go b/internal/fourslash/tests/gen/renameFromNodeModulesDep2_test.go new file mode 100644 index 0000000000..0fd26e2cc4 --- /dev/null +++ b/internal/fourslash/tests/gen/renameFromNodeModulesDep2_test.go @@ -0,0 +1,36 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameFromNodeModulesDep2(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /node_modules/first/index.d.ts +import { /*okWithAlias*/[|Foo|] } from "foo"; +declare type FooBar = Foo[/*notOk*/"bar"]; +// @Filename: /node_modules/first/node_modules/foo/package.json + { "types": "index.d.ts" } +// @Filename: /node_modules/first/node_modules/foo/index.d.ts +export interface Foo { + /*ok2*/[|bar|]: string; +} +// @Filename: /node_modules/first/node_modules/foo/bar.d.ts +import { Foo } from "./index"; +declare type FooBar = Foo[/*ok3*/"[|bar|]"];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "okWithAlias") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.VerifyRenameFailed(t, nil /*preferences*/) + f.GoToMarker(t, "notOk") + f.VerifyRenameFailed(t, nil /*preferences*/) + f.GoToMarker(t, "ok2") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.GoToMarker(t, "ok3") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go b/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go new file mode 100644 index 0000000000..11016c493a --- /dev/null +++ b/internal/fourslash/tests/gen/renameFromNodeModulesDep3_test.go @@ -0,0 +1,32 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameFromNodeModulesDep3(t *testing.T) { + t.Parallel() + t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /packages/first/index.d.ts +import { /*ok*/[|Foo|] } from "foo"; +declare type FooBar = Foo[/*ok2*/"[|bar|]"]; +// @Filename: /packages/foo/package.json + { "types": "index.d.ts" } +// @Filename: /packages/foo/index.d.ts +export interface Foo { + /*ok3*/[|bar|]: string; +} +// @link: /packages/foo -> /packages/first/node_modules/foo` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "ok") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.GoToMarker(t, "ok2") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.GoToMarker(t, "ok3") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameFromNodeModulesDep4_test.go b/internal/fourslash/tests/gen/renameFromNodeModulesDep4_test.go new file mode 100644 index 0000000000..b6bdf02a11 --- /dev/null +++ b/internal/fourslash/tests/gen/renameFromNodeModulesDep4_test.go @@ -0,0 +1,40 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameFromNodeModulesDep4(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @Filename: /index.ts +import hljs from "highlight.js/lib/core" +import { h } from "highlight.js/lib/core"; +import { /*notOk*/h as hh } from "highlight.js/lib/core"; +/*ok*/[|hljs|]; +/*okWithAlias*/[|h|]; +/*ok2*/[|hh|]; +// @Filename: /node_modules/highlight.js/lib/core.d.ts +declare const hljs: { registerLanguage(s: string): void }; +export default hljs; +export const h: string; +// @Filename: /tsconfig.json +{}` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "ok") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.GoToMarker(t, "ok2") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.GoToMarker(t, "notOk") + f.VerifyRenameFailed(t, nil /*preferences*/) + f.VerifyRenameFailed(t, nil /*preferences*/) + f.GoToMarker(t, "okWithAlias") + f.VerifyRenameSucceeded(t, nil /*preferences*/) + f.VerifyRenameFailed(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go b/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go new file mode 100644 index 0000000000..8b5f1dcbb7 --- /dev/null +++ b/internal/fourslash/tests/gen/renameNameOnEnumMember_test.go @@ -0,0 +1,23 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestRenameNameOnEnumMember(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `enum e { + firstMember, + secondMember, + thirdMember +} +var enumMember = e.[|/**/thirdMember|];` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyRenameSucceeded(t, nil /*preferences*/) +} diff --git a/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go b/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go index 1ac0f16163..ecef90cedf 100644 --- a/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go +++ b/internal/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go @@ -4,6 +4,8 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/testutil" ) @@ -14,5 +16,5 @@ func TestRenameNumericalIndexSingleQuoted(t *testing.T) { const content = `const foo = { [|0|]: true }; foo[[|0|]];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) - f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "0") + f.VerifyBaselineRenameAtRangesWithText(t, &ls.UserPreferences{QuotePreference: PtrTo(ls.QuotePreference("single"))}, "0") } diff --git a/internal/ls/types.go b/internal/ls/types.go index 9d2331f3e3..f5f9d19014 100644 --- a/internal/ls/types.go +++ b/internal/ls/types.go @@ -12,7 +12,16 @@ const ( JsxAttributeCompletionStyleNone JsxAttributeCompletionStyle = "none" ) +type QuotePreference string + +const ( + QuotePreferenceAuto QuotePreference = "auto" + QuotePreferenceDouble QuotePreference = "double" + QuotePreferenceSingle QuotePreference = "single" +) + type UserPreferences struct { + QuotePreference *QuotePreference // If enabled, TypeScript will search through all external modules' exports and add them to the completions list. // This affects lone identifier completions but not completions on the right hand side of `obj.`. IncludeCompletionsForModuleExports *bool diff --git a/internal/ls/utilities.go b/internal/ls/utilities.go index b4f888fd12..73c87b4032 100644 --- a/internal/ls/utilities.go +++ b/internal/ls/utilities.go @@ -28,7 +28,7 @@ func ComparePositions(pos, other lsproto.Position) int { if lineComp := cmp.Compare(pos.Line, other.Line); lineComp != 0 { return lineComp } - return cmp.Compare(pos.Line, other.Line) + return cmp.Compare(pos.Character, other.Character) } // Implements a cmp.Compare like function for two *lsproto.Range diff --git a/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc index 1de92f14ab..a1f16deccb 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/autoImportProvider_referencesCrash.baseline.jsonc @@ -6,4 +6,4 @@ // === /home/src/workspaces/project/b/b.ts === // /// -// new A/*FIND ALL REFS*/[|A|](); \ No newline at end of file +// new [|A|]/*FIND ALL REFS*/(); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc index 1f4ceb99c8..f0113af254 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesImportMeta.baseline.jsonc @@ -2,4 +2,4 @@ // === /findAllReferencesImportMeta.ts === // // Haha that's so meta! // -// let x = import.meta/*FIND ALL REFS*/[|meta|]; \ No newline at end of file +// let x = import.[|meta|]/*FIND ALL REFS*/; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc index a16111da60..141474941d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc @@ -4,6 +4,6 @@ // * @param {unknown} x // * @returns {unknown} // */ -// function foo(x/*FIND ALL REFS*/[|x|]) { +// function foo([|x|]/*FIND ALL REFS*/) { // return [|x|]; // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc index cfc4792e1c..dc20133f1f 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag1.baseline.jsonc @@ -1,7 +1,7 @@ // === findAllReferences === // === /findAllReferencesLinkTag1.ts === // class C { -// m/*FIND ALL REFS*/[|m|]() { } +// [|m|]/*FIND ALL REFS*/() { } // n = 1 // static s() { } // /** @@ -23,7 +23,7 @@ // === /findAllReferencesLinkTag1.ts === // class C { // m() { } -// n/*FIND ALL REFS*/[|n|] = 1 +// [|n|]/*FIND ALL REFS*/ = 1 // static s() { } // /** // * {@link m} @@ -46,7 +46,7 @@ // class C { // m() { } // n = 1 -// static s/*FIND ALL REFS*/[|s|]() { } +// static [|s|]/*FIND ALL REFS*/() { } // /** // * {@link m} // * @see {m} @@ -70,7 +70,7 @@ // } // // interface I { -// a/*FIND ALL REFS*/[|a|]() +// [|a|]/*FIND ALL REFS*/() // b: 1 // /** // * {@link a} @@ -84,7 +84,7 @@ // // interface I { // a() -// b/*FIND ALL REFS*/[|b|]: 1 +// [|b|]/*FIND ALL REFS*/: 1 // /** // * {@link a} // * @see {a} @@ -102,14 +102,14 @@ // function ref() { } // /** @see {r2} */ // function d3() { } -// function r2/*FIND ALL REFS*/[|r2|]() { } +// function [|r2|]/*FIND ALL REFS*/() { } // } // === findAllReferences === // === /findAllReferencesLinkTag1.ts === -// class C/*FIND ALL REFS*/[|C|] { +// class [|C|]/*FIND ALL REFS*/ { // m() { } // n = 1 // static s() { } @@ -152,7 +152,7 @@ // r() { } // } // -// interface I/*FIND ALL REFS*/[|I|] { +// interface [|I|]/*FIND ALL REFS*/ { // a() // b: 1 // /** diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc index 11bc47938d..9f10bb3c3d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag2.baseline.jsonc @@ -5,7 +5,7 @@ // This = class { // show() { } // } -// m/*FIND ALL REFS*/[|m|]() { } +// [|m|]/*FIND ALL REFS*/() { } // } // /** // * @see {Consider.prototype.m} @@ -18,7 +18,7 @@ // namespace NPR { // export class Consider { // This = class { -// show/*FIND ALL REFS*/[|show|]() { } +// [|show|]/*FIND ALL REFS*/() { } // } // m() { } // } @@ -30,7 +30,7 @@ // === /findAllReferencesLinkTag2.ts === // namespace NPR { // export class Consider { -// This/*FIND ALL REFS*/[|This|] = class { +// [|This|]/*FIND ALL REFS*/ = class { // show() { } // } // m() { } @@ -41,7 +41,7 @@ // === findAllReferences === // === /findAllReferencesLinkTag2.ts === // namespace NPR { -// export class Consider/*FIND ALL REFS*/[|Consider|] { +// export class [|Consider|]/*FIND ALL REFS*/ { // This = class { // show() { } // } @@ -71,7 +71,7 @@ // === findAllReferences === // === /findAllReferencesLinkTag2.ts === -// namespace NPR/*FIND ALL REFS*/[|NPR|] { +// namespace [|NPR|]/*FIND ALL REFS*/ { // export class Consider { // This = class { // show() { } diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc index 7d2e671b14..ffc9ddb162 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesLinkTag3.baseline.jsonc @@ -5,7 +5,7 @@ // This = class { // show() { } // } -// m/*FIND ALL REFS*/[|m|]() { } +// [|m|]/*FIND ALL REFS*/() { } // } // /** // * {@linkcode Consider.prototype.[|m|]} @@ -21,7 +21,7 @@ // namespace NPR { // export class Consider { // This = class { -// show/*FIND ALL REFS*/[|show|]() { } +// [|show|]/*FIND ALL REFS*/() { } // } // m() { } // } @@ -33,7 +33,7 @@ // === /findAllReferencesLinkTag3.ts === // namespace NPR { // export class Consider { -// This/*FIND ALL REFS*/[|This|] = class { +// [|This|]/*FIND ALL REFS*/ = class { // show() { } // } // m() { } @@ -44,7 +44,7 @@ // === findAllReferences === // === /findAllReferencesLinkTag3.ts === // namespace NPR { -// export class Consider/*FIND ALL REFS*/[|Consider|] { +// export class [|Consider|]/*FIND ALL REFS*/ { // This = class { // show() { } // } @@ -74,7 +74,7 @@ // === findAllReferences === // === /findAllReferencesLinkTag3.ts === -// namespace NPR/*FIND ALL REFS*/[|NPR|] { +// namespace [|NPR|]/*FIND ALL REFS*/ { // export class Consider { // This = class { // show() { } diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc index 370303c237..e3ba1d5b6a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllReferencesNonExistentExportBinding.baseline.jsonc @@ -1,3 +1,3 @@ // === findAllReferences === // === /bar.ts === -// import { Foo/*FIND ALL REFS*/[|Foo|] } from "./foo"; \ No newline at end of file +// import { [|Foo|]/*FIND ALL REFS*/ } from "./foo"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc index cbef0152f5..caca53e1d7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsEnumMember.baseline.jsonc @@ -15,4 +15,4 @@ // === findAllReferences === // === /findAllRefsEnumMember.ts === // enum E { [|A|], B } -// const e: E.A = E./*FIND ALL REFS*/[|A|] = E.[|A|]; \ No newline at end of file +// const e: E.[|A|] = E./*FIND ALL REFS*/[|A|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc index f4a1f032b8..f02db6604a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForFunctionExpression01.baseline.jsonc @@ -16,7 +16,7 @@ // === findAllReferences === // === /file1.ts === -// var foo = function foo(a = /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { +// var foo = function [|foo|](a = /*FIND ALL REFS*/[|foo|](), b = () => [|foo|]) { // [|foo|]([|foo|], [|foo|]); // } @@ -24,7 +24,7 @@ // === findAllReferences === // === /file1.ts === -// var foo = function foo(a = foo(), b = () => /*FIND ALL REFS*/[|foo|](a = [|foo|](), b = () => [|foo|]) { +// var foo = function [|foo|](a = [|foo|](), b = () => /*FIND ALL REFS*/[|foo|]) { // [|foo|]([|foo|], [|foo|]); // } @@ -41,7 +41,7 @@ // === findAllReferences === // === /file1.ts === // var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// foo(/*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); +// [|foo|](/*FIND ALL REFS*/[|foo|], [|foo|]); // } @@ -49,5 +49,5 @@ // === findAllReferences === // === /file1.ts === // var foo = function [|foo|](a = [|foo|](), b = () => [|foo|]) { -// foo(foo, /*FIND ALL REFS*/[|foo|]([|foo|], [|foo|]); +// [|foo|]([|foo|], /*FIND ALL REFS*/[|foo|]); // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc index 3ba49d29d0..571d62441b 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCall.baseline.jsonc @@ -1,6 +1,6 @@ // === findAllReferences === // === /app.ts === -// export function he/*FIND ALL REFS*/[|hello|]() {}; +// export function [|he/*FIND ALL REFS*/llo|]() {}; // === /direct-use.ts === // async function main() { diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc index 66215f9a87..7addf059ff 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsForImportCallType.baseline.jsonc @@ -1,6 +1,6 @@ // === findAllReferences === // === /app.ts === -// export function he/*FIND ALL REFS*/[|hello|]() {}; +// export function [|he/*FIND ALL REFS*/llo|]() {}; // === /indirect-use.ts === // import type { app } from "./re-export"; diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc index 351879580f..d70f81e56a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates1.baseline.jsonc @@ -22,4 +22,4 @@ // === findAllReferences === // === /findAllRefsInsideTemplates1.ts === // var [|x|] = 10; -// var y = `${ x } ${ /*FIND ALL REFS*/[|x|] } ${ [|x|] }` \ No newline at end of file +// var y = `${ [|x|] } ${ /*FIND ALL REFS*/[|x|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc index ff621fd632..9d2e0aa91d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideTemplates2.baseline.jsonc @@ -22,11 +22,11 @@ // === findAllReferences === // === /findAllRefsInsideTemplates2.ts === // function [|f|](...rest: any[]) { } -// f `${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` +// [|f|] `${ /*FIND ALL REFS*/[|f|] } ${ [|f|] }` // === findAllReferences === // === /findAllRefsInsideTemplates2.ts === // function [|f|](...rest: any[]) { } -// f `${ f } ${ /*FIND ALL REFS*/[|f|] `${ [|f|] } ${ [|f|] }` \ No newline at end of file +// [|f|] `${ [|f|] } ${ /*FIND ALL REFS*/[|f|] }` \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc index 403ee7dd30..118d6ab98c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsInsideWithBlock.baseline.jsonc @@ -43,4 +43,4 @@ // y++; // also reference for y should be ignored // } // -// x = /*FIND ALL REFS*/[|x|] = [|x|] + 1; \ No newline at end of file +// [|x|] = /*FIND ALL REFS*/[|x|] + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc index 9f29c973a2..40a30963df 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsIsDefinition.baseline.jsonc @@ -2,7 +2,7 @@ // === /findAllRefsIsDefinition.ts === // declare function [|foo|](a: number): number; // declare function [|foo|](a: string): string; -// declare function foo/*FIND ALL REFS*/[|foo|](a: string | number): string | number; +// declare function [|foo|]/*FIND ALL REFS*/(a: string | number): string | number; // // function foon(a: number): number; // function foon(a: string): string; @@ -26,7 +26,7 @@ // // function [|foon|](a: number): number; // function [|foon|](a: string): string; -// function foon/*FIND ALL REFS*/[|foon|](a: string | number): string | number { +// function [|foon|]/*FIND ALL REFS*/(a: string | number): string | number { // return a // } // @@ -44,7 +44,7 @@ // // foo; foon; // -// export const bar/*FIND ALL REFS*/[|bar|] = 123; +// export const [|bar|]/*FIND ALL REFS*/ = 123; // console.log({ [|bar|] }); // // interface IFoo { @@ -59,7 +59,7 @@ // console.log({ bar }); // // interface IFoo { -// foo/*FIND ALL REFS*/[|foo|](): void; +// [|foo|]/*FIND ALL REFS*/(): void; // } // class Foo implements IFoo { // constructor(n: number) @@ -99,6 +99,6 @@ // constructor(n: number) // constructor() // constructor(n: number?) { } -// foo/*FIND ALL REFS*/[|foo|](): void { } +// [|foo|]/*FIND ALL REFS*/(): void { } // static init() { return new this() } // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc index e10a8c56cd..69bfe68d81 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag.baseline.jsonc @@ -5,6 +5,6 @@ // */ // // /** -// * @param { A/*FIND ALL REFS*/[|A|] } a +// * @param { [|A|]/*FIND ALL REFS*/ } a // */ // function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc index 6368e68f5d..b429077008 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag2.baseline.jsonc @@ -10,7 +10,7 @@ // import [|Component|] from './component.js'; // // /** -// * @extends Component/*FIND ALL REFS*/[|Component|] +// * @extends [|Component|]/*FIND ALL REFS*/ // */ // export class Player extends [|Component|] {} diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc index 5fdddf1010..35954d4f1d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag3.baseline.jsonc @@ -10,7 +10,7 @@ // import { [|Component|] } from './component.js'; // // /** -// * @extends Component/*FIND ALL REFS*/[|Component|] +// * @extends [|Component|]/*FIND ALL REFS*/ // */ // export class Player extends [|Component|] {} diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc index 800ef0d1ad..c3af1c6944 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsJsDocImportTag4.baseline.jsonc @@ -3,6 +3,6 @@ // import * as [|C|] from './component.js'; // // /** -// * @extends C/*FIND ALL REFS*/[|C|].Component +// * @extends [|C|]/*FIND ALL REFS*/.Component // */ // export class Player extends Component {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc index cbfbbebc38..6aaee5897e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsMissingModulesOverlappingSpecifiers.baseline.jsonc @@ -10,4 +10,4 @@ // === /findAllRefsMissingModulesOverlappingSpecifiers.ts === // // https://github.com/microsoft/TypeScript/issues/5551 // import { resolve as resolveUrl } from "idontcare"; -// import { resolve/*FIND ALL REFS*/[|resolve|] } from "whatever"; \ No newline at end of file +// import { [|resolve|]/*FIND ALL REFS*/ } from "whatever"; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc index 62a83c34a5..4a97e32610 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName03.baseline.jsonc @@ -18,4 +18,4 @@ // } // // var foo: I; -// var [ { property1: prop1 }, { /*FIND ALL REFS*/[|property1|]: prop1 }, { [|property1|], property2 } ] = [foo, foo]; \ No newline at end of file +// var [ { [|property1|]: prop1 }, { /*FIND ALL REFS*/[|property1|], property2 } ] = [foo, foo]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc index 560df119a7..369cf2fa1d 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsObjectBindingElementPropertyName10.baseline.jsonc @@ -41,5 +41,5 @@ // value: any; // } // -// function f ({ next: { /*FIND ALL REFS*/[|next|]: { [|next|]: x} }: Recursive) { +// function f ({ [|next|]: { /*FIND ALL REFS*/[|next|]: x} }: Recursive) { // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc index 2d5c4457c8..8cef99ffaa 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsOnDecorators.baseline.jsonc @@ -63,7 +63,7 @@ // [|decorator|](); // === /b.ts === -// @decorator @/*FIND ALL REFS*/[|decorator|] @[|decorator|]("again") +// @[|decorator|] @/*FIND ALL REFS*/[|decorator|]("again") // class C { // @[|decorator|] // method() {} diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc index 5a5197b8ff..0b90e046e7 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsPrimitiveJsDoc.baseline.jsonc @@ -34,4 +34,4 @@ // * @param {[|number|]} n // * @returns {[|number|]} // */ -// function f(n: number): /*FIND ALL REFS*/[|number|]): [|number|] {} \ No newline at end of file +// function f(n: [|number|]): /*FIND ALL REFS*/[|number|] {} \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc index 9d209a3db3..f8e13748e3 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeyword.baseline.jsonc @@ -50,7 +50,7 @@ // this; // function f(this) { // return this; -// function g(this) { return /*FIND ALL REFS*/[|this|]) { return [|this|]; } +// function g([|this|]) { return /*FIND ALL REFS*/[|this|]; } // } // class C { // static x() { diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc index a64175652e..1864e0a2c2 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsThisKeywordMultipleFiles.baseline.jsonc @@ -6,7 +6,7 @@ // === findAllReferences === // === /file1.ts === -// this; /*FIND ALL REFS*/[|this|]; [|this|]; +// [|this|]; /*FIND ALL REFS*/[|this|]; @@ -34,7 +34,7 @@ // === findAllReferences === // === /file3.ts === -// ((x = this, y) => /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// ((x = [|this|], y) => /*FIND ALL REFS*/[|this|])([|this|], [|this|]); // // different 'this' // function f(this) { return this; } @@ -42,7 +42,7 @@ // === findAllReferences === // === /file3.ts === -// ((x = this, y) => this)(/*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// ((x = [|this|], y) => [|this|])(/*FIND ALL REFS*/[|this|], [|this|]); // // different 'this' // function f(this) { return this; } @@ -50,6 +50,6 @@ // === findAllReferences === // === /file3.ts === -// ((x = this, y) => this)(this, /*FIND ALL REFS*/[|this|], y) => [|this|])([|this|], [|this|]); +// ((x = [|this|], y) => [|this|])([|this|], /*FIND ALL REFS*/[|this|]); // // different 'this' // function f(this) { return this; } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc index fee3c158a9..2573cb4e41 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findAllRefsTypeParameterInMergedInterface.baseline.jsonc @@ -7,7 +7,7 @@ // === findAllReferences === // === /findAllRefsTypeParameterInMergedInterface.ts === -// interface I { a: /*FIND ALL REFS*/[|T|]> { a: [|T|] } +// interface I<[|T|]> { a: /*FIND ALL REFS*/[|T|] } // interface I<[|T|]> { b: [|T|] } @@ -22,4 +22,4 @@ // === findAllReferences === // === /findAllRefsTypeParameterInMergedInterface.ts === // interface I<[|T|]> { a: [|T|] } -// interface I { b: /*FIND ALL REFS*/[|T|]> { b: [|T|] } \ No newline at end of file +// interface I<[|T|]> { b: /*FIND ALL REFS*/[|T|] } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc index f52b5cee29..01bbfdfb3a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesDefinitionDisplayParts.baseline.jsonc @@ -1,6 +1,6 @@ // === findAllReferences === // === /findReferencesDefinitionDisplayParts.ts === -// class Gre/*FIND ALL REFS*/[|Greeter|] { +// class [|Gre/*FIND ALL REFS*/eter|] { // someFunction() { this; } // } // @@ -11,7 +11,7 @@ // === findAllReferences === // === /findReferencesDefinitionDisplayParts.ts === // class Greeter { -// someFunction() { th/*FIND ALL REFS*/[|this|]; } +// someFunction() { [|th/*FIND ALL REFS*/is|]; } // } // // type Options = "option 1" | "option 2"; @@ -39,5 +39,5 @@ // type Options = "option 1" | "option 2"; // let myOption: Options = "option 1"; // -// some/*FIND ALL REFS*/[|someLabel|]: +// [|some/*FIND ALL REFS*/Label|]: // break [|someLabel|]; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc index f012ee13c2..ab74ad5c0c 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/findReferencesSeeTagInTs.baseline.jsonc @@ -1,6 +1,6 @@ // === findAllReferences === // === /findReferencesSeeTagInTs.ts === -// function doStuffWithStuff/*FIND ALL REFS*/[|doStuffWithStuff|](stuff: { quantity: number }) {} +// function [|doStuffWithStuff|]/*FIND ALL REFS*/(stuff: { quantity: number }) {} // // declare const stuff: { quantity: number }; // /** @see {doStuffWithStuff} */ diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc index 9e06949ebc..7b39ee9210 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfBindingPattern.baseline.jsonc @@ -7,7 +7,7 @@ // === findAllReferences === // === /getOccurrencesIsDefinitionOfBindingPattern.ts === -// const { x, y } = { /*FIND ALL REFS*/[|x|], y } = { [|x|]: 1, y: 2 }; +// const { [|x|], y } = { /*FIND ALL REFS*/[|x|]: 1, y: 2 }; // const z = x; diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc index bc660b6d6d..0482d27845 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc @@ -120,5 +120,5 @@ // return this.p + this.m + n; // } // } -// let i: Numbers = new /*FIND ALL REFS*/[|Numbers|] = new [|Numbers|](); +// let i: [|Numbers|] = new /*FIND ALL REFS*/[|Numbers|](); // let x = i.f(i.p + i.m); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc index 3be2b9e0a6..3e18059318 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/getOccurrencesIsDefinitionOfVariable.baseline.jsonc @@ -125,7 +125,7 @@ // var assignmentRightHandSide2 = 1 + [|x|]; // // [|x|] = 1; -// x = /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; +// [|x|] = /*FIND ALL REFS*/[|x|] + [|x|]; // // [|x|] == 1; // [|x|] <= 1; @@ -147,7 +147,7 @@ // var assignmentRightHandSide2 = 1 + [|x|]; // // [|x|] = 1; -// x = x + /*FIND ALL REFS*/[|x|] = [|x|] + [|x|]; +// [|x|] = [|x|] + /*FIND ALL REFS*/[|x|]; // // [|x|] == 1; // [|x|] <= 1; diff --git a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc index f2acb40f0c..837a87c67a 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/isDefinitionShorthandProperty.baseline.jsonc @@ -15,4 +15,4 @@ // === findAllReferences === // === /isDefinitionShorthandProperty.ts === // const [|x|] = 1; -// const y: { x: number } = { /*FIND ALL REFS*/[|x|]: number } = { [|x|] }; \ No newline at end of file +// const y: { [|x|]: number } = { /*FIND ALL REFS*/[|x|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc index 675fdc58e9..81e3ad5bc9 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForContextuallyTypedUnionProperties.baseline.jsonc @@ -285,7 +285,7 @@ // var c = { [|common|]: 0, b: 0 }; // // // Array literal -// var ar: Array = [{ a: 0, common: "" }, { b: 0, /*FIND ALL REFS*/[|common|]: "" }, { b: 0, [|common|]: 0 }]; +// var ar: Array = [{ a: 0, [|common|]: "" }, { b: 0, /*FIND ALL REFS*/[|common|]: 0 }]; // // // Nested object literal // var ob: { aorb: A|B } = { aorb: { b: 0, [|common|]: 0 } }; diff --git a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc index 49cf759d33..0d9f5a80dc 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/referencesForLabel6.baseline.jsonc @@ -28,6 +28,6 @@ // === findAllReferences === // === /referencesForLabel6.ts === // labela: while (true) { -// labelb: while (false) { break /*FIND ALL REFS*/[|labelb|]: while (false) { break [|labelb|]; } +// [|labelb|]: while (false) { break /*FIND ALL REFS*/[|labelb|]; } // break labelc; // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc index f6840464c8..2515a755e4 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/remoteGetReferences.baseline.jsonc @@ -486,7 +486,7 @@ // //Increments // remotefooCls.remoteclsSVar++; // remotemodTest.remotemodVar++; -// remoteglobalVar = /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// [|remoteglobalVar|] = /*FIND ALL REFS*/[|remoteglobalVar|] + [|remoteglobalVar|]; // // //ETC - Other cases // [|remoteglobalVar|] = 3; @@ -555,7 +555,7 @@ // //Increments // remotefooCls.remoteclsSVar++; // remotemodTest.remotemodVar++; -// remoteglobalVar = remoteglobalVar + /*FIND ALL REFS*/[|remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; +// [|remoteglobalVar|] = [|remoteglobalVar|] + /*FIND ALL REFS*/[|remoteglobalVar|]; // // //ETC - Other cases // [|remoteglobalVar|] = 3; diff --git a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc index 451812b822..a65332382e 100644 --- a/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/findAllReferences/tsxFindAllReferences4.baseline.jsonc @@ -69,4 +69,4 @@ // } // // -// var x = ; \ No newline at end of file +// var x = <[|MyClass|] name='hello'>; \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc index 1bfaf3adda..80f46261ba 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport3.baseline.jsonc @@ -1,4 +1,4 @@ // === goToDefinition === // === /foo.ts === // export function bar() { return "bar"; } -// import('./foo').then(({ ba/*GOTO DEF*/[|bar|] }) => undefined); \ No newline at end of file +// import('./foo').then(({ [|ba/*GOTO DEF*/r|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc index 1bfaf3adda..80f46261ba 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionDynamicImport4.baseline.jsonc @@ -1,4 +1,4 @@ // === goToDefinition === // === /foo.ts === // export function bar() { return "bar"; } -// import('./foo').then(({ ba/*GOTO DEF*/[|bar|] }) => undefined); \ No newline at end of file +// import('./foo').then(({ [|ba/*GOTO DEF*/r|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc index d95735c1a0..a9336821ec 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionExternalModuleName5.baseline.jsonc @@ -1,5 +1,5 @@ // === goToDefinition === // === /a.ts === -// declare module "external/*GOTO DEF*/[|"external"|] { +// declare module [|"external/*GOTO DEF*/"|] { // class Foo { } // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc index 8eace5c6d1..73c5325d09 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMember.baseline.jsonc @@ -1,5 +1,5 @@ // === goToDefinition === // === /a.ts === // class A { -// private z/*GOTO DEF*/[|z|]: string; +// private [|z|]/*GOTO DEF*/: string; // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc index 250ca86e5d..a148da853a 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionMetaProperty.baseline.jsonc @@ -22,7 +22,7 @@ // === goToDefinition === // === /a.ts === // import.meta; -// function f() { new.t/*GOTO DEF*/[|f|]() { new.target; } +// function [|f|]() { new.t/*GOTO DEF*/arget; } @@ -43,4 +43,4 @@ // === goToDefinition === // === /b.ts === // import.m; -// class c { constructor() { new.t/*GOTO DEF*/[|c|] { constructor() { new.target; } } \ No newline at end of file +// class [|c|] { constructor() { new.t/*GOTO DEF*/arget; } } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc index aa1c18bb80..25bd1b90c5 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionModifiers.baseline.jsonc @@ -10,7 +10,7 @@ // === goToDefinition === // === /a.ts === -// export class A/*GOTO DEF*/[|A|] { +// export class [|A|]/*GOTO DEF*/ { // // private z: string; // @@ -34,7 +34,7 @@ // === /a.ts === // export class A { // -// private z/*GOTO DEF*/[|z|]: string; +// private [|z|]/*GOTO DEF*/: string; // // readonly x: string; // @@ -62,7 +62,7 @@ // // private z: string; // -// readonly x/*GOTO DEF*/[|x|]: string; +// readonly [|x|]/*GOTO DEF*/: string; // // async a() { } // @@ -90,7 +90,7 @@ // // readonly x: string; // -// async a/*GOTO DEF*/[|a|]() { } +// async [|a|]/*GOTO DEF*/() { } // // override b() {} // @@ -119,7 +119,7 @@ // // async a() { } // -// override b/*GOTO DEF*/[|b|]() {} +// override [|b|]/*GOTO DEF*/() {} // // public async c() { } // } @@ -173,7 +173,7 @@ // // override b() {} // -// public async c/*GOTO DEF*/[|c|]() { } +// public async [|c|]/*GOTO DEF*/() { } // } // // export function foo() { } @@ -196,4 +196,4 @@ // public async c() { } // } // -// export function foo/*GOTO DEF*/[|foo|]() { } \ No newline at end of file +// export function [|foo|]/*GOTO DEF*/() { } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc index 0990621212..9af12dce90 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionSignatureAlias_require.baseline.jsonc @@ -1,6 +1,6 @@ // === goToDefinition === // === /a.js === -// [|module.exports = function f() {}|][|f|]() {} +// [|module.exports = function [|f|]() {}|] // === /b.js === // const f = require("./a"); @@ -10,7 +10,7 @@ // === goToDefinition === // === /a.js === -// [|module.exports = function f() {}|][|f|]() {} +// [|module.exports = function [|f|]() {}|] // === /bar.ts === // import f = require("./a"); diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc index 058596206c..0b3dc0c246 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionThis.baseline.jsonc @@ -29,5 +29,5 @@ // } // class C { // constructor() { return this; } -// get self(this: number) { return /*GOTO DEF*/[|this|]: number) { return this; } +// get self([|this|]: number) { return /*GOTO DEF*/this; } // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc index a013b92932..790a5121c9 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypePredicate.baseline.jsonc @@ -1,7 +1,7 @@ // === goToDefinition === // === /goToDefinitionTypePredicate.ts === // class A {} -// function f(parameter: any): /*GOTO DEF*/[|parameter|]: any): parameter is A { +// function f([|parameter|]: any): /*GOTO DEF*/parameter is A { // return typeof parameter === "string"; // } diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc index 444f708813..d27141f9f7 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionTypeofThis.baseline.jsonc @@ -29,5 +29,5 @@ // } // class C { // constructor() { type X = typeof this; } -// get self(this: number) { type X = typeof /*GOTO DEF*/[|this|]: number) { type X = typeof this; } +// get self([|this|]: number) { type X = typeof /*GOTO DEF*/this; } // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc index 2df91dd46d..a3f9d8721b 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/goToDefinitionYield4.baseline.jsonc @@ -1,5 +1,5 @@ // === goToDefinition === // === /goToDefinitionYield4.ts === // function* gen() { -// class C { [/*GOTO DEF*/[|[yield 10]|]() {} } +// class C { [|[/*GOTO DEF*/yield 10]|]() {} } // } \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc index 4c5e79361f..abb98b47fe 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern1.baseline.jsonc @@ -4,4 +4,4 @@ // interface Test { // prop2: number // } -// bar(({pr/*GOTO DEF*/[|prop2|]})=>{}); \ No newline at end of file +// bar(({[|pr/*GOTO DEF*/op2|]})=>{}); \ No newline at end of file diff --git a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc index a32b50516b..2cde751515 100644 --- a/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDefinition/gotoDefinitionInObjectBindingPattern2.baseline.jsonc @@ -1,6 +1,6 @@ // === goToDefinition === // === /gotoDefinitionInObjectBindingPattern2.ts === -// var p0 = ({a/*GOTO DEF*/[|aa|]}) => {console.log(aa)}; +// var p0 = ({[|a/*GOTO DEF*/a|]}) => {console.log(aa)}; // function f2({ a1, b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} @@ -8,11 +8,11 @@ // === goToDefinition === // === /gotoDefinitionInObjectBindingPattern2.ts === // var p0 = ({aa}) => {console.log(aa)}; -// function f2({ a/*GOTO DEF*/[|a1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} +// function f2({ [|a/*GOTO DEF*/1|], b1 }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} // === goToDefinition === // === /gotoDefinitionInObjectBindingPattern2.ts === // var p0 = ({aa}) => {console.log(aa)}; -// function f2({ a1, b/*GOTO DEF*/[|b1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} \ No newline at end of file +// function f2({ a1, [|b/*GOTO DEF*/1|] }: { a1: number, b1: number } = { a1: 0, b1: 0 }) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc index 68ea3cc024..29d9e140b4 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc @@ -1,11 +1,11 @@ // === findRenameLocations === // === /foo.ts === -// /*RENAME*/export function bar() { return "bar"; } -// import('./foo').then(({ bar }) => undefined); +// export function /*RENAME*/[|barRENAME|]() { return "bar"; } +// import('./foo').then(({ [|barRENAME|]: bar/*END SUFFIX*/ }) => undefined); // === findRenameLocations === // === /foo.ts === // export function bar() { return "bar"; } -// import('./foo').then((/*RENAME*/{ bar }) => undefined); \ No newline at end of file +// import('./foo').then(({ /*START PREFIX*/bar: /*RENAME*/[|barRENAME|] }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff deleted file mode 100644 index 5e59ef1ae7..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllReferencesDynamicImport3.baseline.jsonc.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.findAllReferencesDynamicImport3.baseline.jsonc -+++ new.findAllReferencesDynamicImport3.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /foo.ts === --// export function /*RENAME*/[|barRENAME|]() { return "bar"; } --// import('./foo').then(({ [|barRENAME|]: bar/*END SUFFIX*/ }) => undefined); -+// /*RENAME*/export function bar() { return "bar"; } -+// import('./foo').then(({ bar }) => undefined); - - - - // === findRenameLocations === - // === /foo.ts === - // export function bar() { return "bar"; } --// import('./foo').then(({ /*START PREFIX*/bar: /*RENAME*/[|barRENAME|] }) => undefined); -+// import('./foo').then((/*RENAME*/{ bar }) => undefined); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc index ede29b4966..f96fbc5b1d 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -1,9 +1,7 @@ // === findRenameLocations === // === /findAllRefsClassWithStaticThisAccess.ts === -// class C { +// class /*RENAME*/[|CRENAME|] { // static s() { -// /*RENAME*/this; +// this; // } -// static get f() { -// return this; -// // --- (line: 7) skipped --- \ No newline at end of file +// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff index b8090ed53b..29eec4cdc0 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/findAllRefsClassWithStaticThisAccess.baseline.jsonc.diff @@ -1,19 +1,14 @@ --- old.findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ new.findAllRefsClassWithStaticThisAccess.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /findAllRefsClassWithStaticThisAccess.ts === --// class /*RENAME*/[|CRENAME|] { -+// class C { +@@= skipped -3, +3 lines =@@ // static s() { --// this; -+// /*RENAME*/this; + // this; // } - // static get f() { - // return this; +-// static get f() { +-// return this; -// -// function inner() { this; } -// class Inner { x = this; } -// } -// } -+// // --- (line: 7) skipped --- \ No newline at end of file ++// // --- (line: 5) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc index e505edfd94..8a047e56c1 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc @@ -1,7 +1,7 @@ // === findRenameLocations === // === /jsDocCallback.js === // /** -// * /*RENAME*/@callback FooCallback +// * @callback /*RENAME*/FooCallback // * @param {string} eventName - Rename should work // */ // diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff index 5539c6c094..59b5f01cd8 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocCallbackTagRename01.baseline.jsonc.diff @@ -2,14 +2,12 @@ +++ new.jsdocCallbackTagRename01.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInStrings: false --// @findInComments: true - // === /jsDocCallback.js === -// // /** -// * @callback /*RENAME*/[|FooCallbackRENAME|] -+// * /*RENAME*/@callback FooCallback ++// * @callback /*RENAME*/FooCallback // * @param {string} eventName - Rename should work // */ // diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc index ddd9444fe8..382e55f562 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc @@ -1,9 +1,9 @@ // === findRenameLocations === // === /jsDocTypedef_form1.js === // /** @typedef {(string | number)} */ -// /*RENAME*/var NumberLike; +// var /*RENAME*/[|NumberLikeRENAME|]; // -// NumberLike = 10; +// [|NumberLikeRENAME|] = 10; // // /** @type {NumberLike} */ // var numberLike; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff index ae96080227..8a16026273 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename01.baseline.jsonc.diff @@ -2,27 +2,21 @@ +++ new.jsdocTypedefTagRename01.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /jsDocTypedef_form1.js === -// // /** @typedef {(string | number)} */ --// var /*RENAME*/[|NumberLikeRENAME|]; --// --// [|NumberLikeRENAME|] = 10; --// + // var /*RENAME*/[|NumberLikeRENAME|]; + // + // [|NumberLikeRENAME|] = 10; + // -// /** @type {[|NumberLikeRENAME|]} */ -+// /*RENAME*/var NumberLike; -+// -+// NumberLike = 10; -+// +// /** @type {NumberLike} */ // var numberLike; // === findRenameLocations === --// @findInComments: true - // === /jsDocTypedef_form1.js === -// @@ -38,7 +32,6 @@ // === findRenameLocations === --// @findInComments: true - // === /jsDocTypedef_form1.js === -// diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc index 2a2194b55e..301beab1fc 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc @@ -1,6 +1,6 @@ // === findRenameLocations === // === /jsDocTypedef_form2.js === -// /** /*RENAME*/@typedef {(string | number)} NumberLike */ +// /** @typedef {(string | number)} /*RENAME*/NumberLike */ // // /** @type {NumberLike} */ // var numberLike; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff index 69b63e7ffa..f15b27d041 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename02.baseline.jsonc.diff @@ -2,14 +2,13 @@ +++ new.jsdocTypedefTagRename02.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /jsDocTypedef_form2.js === -// -// /** @typedef {(string | number)} /*RENAME*/[|NumberLikeRENAME|] */ -// -// /** @type {[|NumberLikeRENAME|]} */ -+// /** /*RENAME*/@typedef {(string | number)} NumberLike */ ++// /** @typedef {(string | number)} /*RENAME*/NumberLike */ +// +// /** @type {NumberLike} */ // var numberLike; @@ -17,7 +16,6 @@ // === findRenameLocations === --// @findInComments: true - // === /jsDocTypedef_form2.js === -// diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff index 06b5ffcfb8..c730e77fe8 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/jsdocTypedefTagRename03.baseline.jsonc.diff @@ -2,7 +2,6 @@ +++ new.jsdocTypedefTagRename03.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /jsDocTypedef_form3.js === -// @@ -21,7 +20,6 @@ // === findRenameLocations === --// @findInComments: true - // === /jsDocTypedef_form3.js === -// diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc index 5b5186938f..f08a819ee4 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc @@ -3,7 +3,7 @@ // var [|objRENAME|] = {}; // === /forof.js === -// for (obj/*RENAME*/[|objRENAME|].prop of arr) { +// for ([|objRENAME|]/*RENAME*/.prop of arr) { // // } diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff index 03ad6961e9..19174180ba 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/processInvalidSyntax1.baseline.jsonc.diff @@ -4,21 +4,22 @@ // === /decl.js === // var [|objRENAME|] = {}; -+// === /forof.js === -+// for (obj/*RENAME*/[|objRENAME|].prop of arr) { -+// -+// } -+ - // === /unicode1.js === - // [|objRENAME|].𝒜 ; - - // === /unicode2.js === - // [|objRENAME|].¬ ; +-// === /unicode1.js === +-// [|objRENAME|].𝒜 ; +- +-// === /unicode2.js === +-// [|objRENAME|].¬ ; - -// === /unicode3.js === -// [|objRENAME|]¬ - --// === /forof.js === --// for ([|objRENAME|]/*RENAME*/.prop of arr) { --// --// } \ No newline at end of file + // === /forof.js === + // for ([|objRENAME|]/*RENAME*/.prop of arr) { + // + // } ++ ++// === /unicode1.js === ++// [|objRENAME|].𝒜 ; ++ ++// === /unicode2.js === ++// [|objRENAME|].¬ ; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc index f9484e260b..91ee0e756d 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc @@ -1,7 +1,7 @@ // === findRenameLocations === // === /rename01.ts === // /// -// function Bar() { -// // This is a reference to /*RENAME*/Bar in a comment. +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. // "this is a reference to Bar in a string" // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff index 71e4705d08..10a21fa37c 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/rename01.baseline.jsonc.diff @@ -2,15 +2,12 @@ +++ new.rename01.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInStrings: true --// @findInComments: true - // === /rename01.ts === // /// --// function /*RENAME*/[|BarRENAME|]() { + // function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to [|BarRENAME|] in a comment. -// "this is a reference to [|BarRENAME|] in a string" -+// function Bar() { -+// // This is a reference to /*RENAME*/Bar in a comment. ++// // This is a reference to Bar in a comment. +// "this is a reference to Bar in a string" // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc index 0dc571be95..58598eadcb 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc @@ -1,21 +1,21 @@ // === findRenameLocations === // === /a.ts === -// /*RENAME*/module SomeModule { export class SomeClass { } } -// export = SomeModule; +// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } +// export = [|SomeModuleRENAME|]; // === findRenameLocations === // === /a.ts === -// module SomeModule { export class SomeClass { } } -// /*RENAME*/export = SomeModule; +// module [|SomeModuleRENAME|] { export class SomeClass { } } +// export = /*RENAME*/[|SomeModuleRENAME|]; // === findRenameLocations === // === /b.ts === -// /*RENAME*/import M = require("./a"); -// import C = M.SomeClass; +// import /*RENAME*/[|MRENAME|] = require("./a"); +// import C = [|MRENAME|].SomeClass; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff deleted file mode 100644 index b4c26b842b..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameAliasExternalModule2.baseline.jsonc.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.renameAliasExternalModule2.baseline.jsonc -+++ new.renameAliasExternalModule2.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /a.ts === --// module /*RENAME*/[|SomeModuleRENAME|] { export class SomeClass { } } --// export = [|SomeModuleRENAME|]; -+// /*RENAME*/module SomeModule { export class SomeClass { } } -+// export = SomeModule; - - - - // === findRenameLocations === - // === /a.ts === --// module [|SomeModuleRENAME|] { export class SomeClass { } } --// export = /*RENAME*/[|SomeModuleRENAME|]; -+// module SomeModule { export class SomeClass { } } -+// /*RENAME*/export = SomeModule; - - - - // === findRenameLocations === - // === /b.ts === --// import /*RENAME*/[|MRENAME|] = require("./a"); --// import C = [|MRENAME|].SomeClass; -+// /*RENAME*/import M = require("./a"); -+// import C = M.SomeClass; - - diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc index 93bd3cd741..6d2729cd2e 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc @@ -1,6 +1,6 @@ // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === -// function f({required, optional = /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +// function f({/*START PREFIX*/required: /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { // console.log("required", [|requiredRENAME|]); // console.log("optional", optional); // } @@ -11,18 +11,18 @@ // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === -// function f({required, optional = required}: {/*RENAME*/[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { -// console.log("required", required); +// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = /*RENAME*/[|requiredRENAME|]}: {required: number, optional?: number}) { +// console.log("required", [|requiredRENAME|]); // console.log("optional", optional); // } // -// f({[|requiredRENAME|]: 10}); +// f({required: 10}); // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === -// function f({[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { +// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { // console.log("required", /*RENAME*/[|requiredRENAME|]); // console.log("optional", optional); // } @@ -33,18 +33,18 @@ // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === -// function f(/*RENAME*/{required, optional = required}: {required: number, optional?: number}) { +// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {/*RENAME*/[|requiredRENAME|]: number, optional?: number}) { // console.log("required", required); // console.log("optional", optional); // } // -// f({required: 10}); +// f({[|requiredRENAME|]: 10}); // === findRenameLocations === // === /renameBindingElementInitializerProperty.ts === -// function f({[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { +// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {[|requiredRENAME|]: number, optional?: number}) { // console.log("required", required); // console.log("optional", optional); // } diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff deleted file mode 100644 index 87d1439efb..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameBindingElementInitializerProperty.baseline.jsonc.diff +++ /dev/null @@ -1,85 +0,0 @@ ---- old.renameBindingElementInitializerProperty.baseline.jsonc -+++ new.renameBindingElementInitializerProperty.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameBindingElementInitializerProperty.ts === --// function f({/*START PREFIX*/required: /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { --// console.log("required", [|requiredRENAME|]); --// console.log("optional", optional); --// } --// --// f({required: 10}); -- -- -- --// === findRenameLocations === --// === /renameBindingElementInitializerProperty.ts === --// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = /*RENAME*/[|requiredRENAME|]}: {required: number, optional?: number}) { --// console.log("required", [|requiredRENAME|]); --// console.log("optional", optional); --// } --// --// f({required: 10}); -- -- -- --// === findRenameLocations === --// === /renameBindingElementInitializerProperty.ts === --// function f({/*START PREFIX*/required: [|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { --// console.log("required", /*RENAME*/[|requiredRENAME|]); --// console.log("optional", optional); --// } --// --// f({required: 10}); -- -- -- --// === findRenameLocations === --// === /renameBindingElementInitializerProperty.ts === --// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {/*RENAME*/[|requiredRENAME|]: number, optional?: number}) { -+// function f({required, optional = /*RENAME*/[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { -+// console.log("required", [|requiredRENAME|]); -+// console.log("optional", optional); -+// } -+// -+// f({required: 10}); -+ -+ -+ -+// === findRenameLocations === -+// === /renameBindingElementInitializerProperty.ts === -+// function f({required, optional = required}: {/*RENAME*/[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { - // console.log("required", required); - // console.log("optional", optional); - // } -@@= skipped -43, +21 lines =@@ - - // === findRenameLocations === - // === /renameBindingElementInitializerProperty.ts === --// function f({[|requiredRENAME|]: required/*END SUFFIX*/, optional = required}: {[|requiredRENAME|]: number, optional?: number}) { -+// function f({[|requiredRENAME|], optional = [|requiredRENAME|]}: {required: number, optional?: number}) { -+// console.log("required", /*RENAME*/[|requiredRENAME|]); -+// console.log("optional", optional); -+// } -+// -+// f({required: 10}); -+ -+ -+ -+// === findRenameLocations === -+// === /renameBindingElementInitializerProperty.ts === -+// function f(/*RENAME*/{required, optional = required}: {required: number, optional?: number}) { -+// console.log("required", required); -+// console.log("optional", optional); -+// } -+// -+// f({required: 10}); -+ -+ -+ -+// === findRenameLocations === -+// === /renameBindingElementInitializerProperty.ts === -+// function f({[|requiredRENAME|], optional = required}: {[|requiredRENAME|]: number, optional?: number}) { - // console.log("required", required); - // console.log("optional", optional); - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc index 8de991e6c2..20c5f83e25 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc @@ -1,7 +1,7 @@ // === findRenameLocations === // === /renameCommentsAndStrings2.ts === // /// -// function Bar() { +// function /*RENAME*/[|BarRENAME|]() { // // This is a reference to Bar in a comment. -// "this is a reference to /*RENAME*/Bar in a string" +// "this is a reference to Bar in a string" // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff index 8b0321378a..04055e0b6e 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings2.baseline.jsonc.diff @@ -2,13 +2,11 @@ +++ new.renameCommentsAndStrings2.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInStrings: true - // === /renameCommentsAndStrings2.ts === // /// --// function /*RENAME*/[|BarRENAME|]() { -+// function Bar() { + // function /*RENAME*/[|BarRENAME|]() { // // This is a reference to Bar in a comment. -// "this is a reference to [|BarRENAME|] in a string" -+// "this is a reference to /*RENAME*/Bar in a string" ++// "this is a reference to Bar in a string" // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc index 22ba48a4f9..9ccb26f725 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc @@ -1,7 +1,7 @@ // === findRenameLocations === // === /renameCommentsAndStrings3.ts === // /// -// function Bar() { -// // This is a reference to /*RENAME*/Bar in a comment. +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. // "this is a reference to Bar in a string" // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff index 1c14edaca2..87ad7c1be2 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings3.baseline.jsonc.diff @@ -2,13 +2,11 @@ +++ new.renameCommentsAndStrings3.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /renameCommentsAndStrings3.ts === // /// --// function /*RENAME*/[|BarRENAME|]() { + // function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to [|BarRENAME|] in a comment. -+// function Bar() { -+// // This is a reference to /*RENAME*/Bar in a comment. ++// // This is a reference to Bar in a comment. // "this is a reference to Bar in a string" // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc index f4cc41aa68..65750b7846 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc @@ -1,9 +1,8 @@ // === findRenameLocations === // === /renameCommentsAndStrings4.ts === // /// -// function Bar() { -// // This is a reference to /*RENAME*/Bar in a comment. +// function /*RENAME*/[|BarRENAME|]() { +// // This is a reference to Bar in a comment. // "this is a reference to Bar in a string"; // `Foo Bar Baz.`; -// { -// // --- (line: 7) skipped --- \ No newline at end of file +// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff index ef2faf3303..77124b4370 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameCommentsAndStrings4.baseline.jsonc.diff @@ -2,22 +2,19 @@ +++ new.renameCommentsAndStrings4.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInStrings: true --// @findInComments: true - // === /renameCommentsAndStrings4.ts === // /// --// function /*RENAME*/[|BarRENAME|]() { + // function /*RENAME*/[|BarRENAME|]() { -// // This is a reference to [|BarRENAME|] in a comment. -// "this is a reference to [|BarRENAME|] in a string"; -// `Foo [|BarRENAME|] Baz.`; -+// function Bar() { -+// // This is a reference to /*RENAME*/Bar in a comment. -+// "this is a reference to Bar in a string"; -+// `Foo Bar Baz.`; - // { +-// { -// const Bar = 0; -// `[|BarRENAME|] ba ${Bar} bara [|BarRENAME|] berbobo ${Bar} araura [|BarRENAME|] ara!`; -// } -// } -+// // --- (line: 7) skipped --- \ No newline at end of file ++// // This is a reference to Bar in a comment. ++// "this is a reference to Bar in a string"; ++// `Foo Bar Baz.`; ++// // --- (line: 6) skipped --- \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc index 3d4ca0f2b1..f0155261f0 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc @@ -2,7 +2,7 @@ // === /renameDeclarationKeywords.ts === // class Base {} // interface Implemented1 {} -// class /*RENAME*/[|C1RENAME|] extends Base implements Implemented1 { +// /*RENAME*/class C1 extends Base implements Implemented1 { // get e() { return 1; } // set e(v) {} // } @@ -12,25 +12,21 @@ // === findRenameLocations === // === /renameDeclarationKeywords.ts === -// class [|BaseRENAME|] {} +// class Base {} // interface Implemented1 {} -// class C1 extends /*RENAME*/[|BaseRENAME|] implements Implemented1 { +// class C1 /*RENAME*/extends Base implements Implemented1 { // get e() { return 1; } // set e(v) {} // } -// interface I1 extends [|BaseRENAME|] { } -// type T = { } -// enum E { } -// namespace N { } -// // --- (line: 11) skipped --- +// // --- (line: 7) skipped --- // === findRenameLocations === // === /renameDeclarationKeywords.ts === // class Base {} -// interface [|Implemented1RENAME|] {} -// class C1 extends Base implements /*RENAME*/[|Implemented1RENAME|] { +// interface Implemented1 {} +// class C1 extends Base /*RENAME*/implements Implemented1 { // get e() { return 1; } // set e(v) {} // } @@ -71,7 +67,7 @@ // get e() { return 1; } // set e(v) {} // } -// interface /*RENAME*/[|I1RENAME|] extends Base { } +// /*RENAME*/interface I1 extends Base { } // type T = { } // enum E { } // namespace N { } @@ -81,13 +77,11 @@ // === findRenameLocations === // === /renameDeclarationKeywords.ts === -// class [|BaseRENAME|] {} -// interface Implemented1 {} -// class C1 extends [|BaseRENAME|] implements Implemented1 { +// --- (line: 3) skipped --- // get e() { return 1; } // set e(v) {} // } -// interface I1 extends /*RENAME*/[|BaseRENAME|] { } +// interface I1 /*RENAME*/extends Base { } // type T = { } // enum E { } // namespace N { } @@ -101,7 +95,7 @@ // set e(v) {} // } // interface I1 extends Base { } -// type /*RENAME*/[|TRENAME|] = { } +// /*RENAME*/type T = { } // enum E { } // namespace N { } // module M { } @@ -115,7 +109,7 @@ // } // interface I1 extends Base { } // type T = { } -// enum /*RENAME*/[|ERENAME|] { } +// /*RENAME*/enum E { } // namespace N { } // module M { } // function fn() {} @@ -129,7 +123,7 @@ // interface I1 extends Base { } // type T = { } // enum E { } -// namespace /*RENAME*/[|NRENAME|] { } +// /*RENAME*/namespace N { } // module M { } // function fn() {} // var x; @@ -144,7 +138,7 @@ // type T = { } // enum E { } // namespace N { } -// module /*RENAME*/[|MRENAME|] { } +// /*RENAME*/module M { } // function fn() {} // var x; // let y; @@ -158,7 +152,7 @@ // enum E { } // namespace N { } // module M { } -// function /*RENAME*/[|fnRENAME|]() {} +// /*RENAME*/function fn() {} // var x; // let y; // const z = 1; @@ -171,7 +165,7 @@ // namespace N { } // module M { } // function fn() {} -// var /*RENAME*/[|xRENAME|]; +// /*RENAME*/var x; // let y; // const z = 1; @@ -183,7 +177,7 @@ // module M { } // function fn() {} // var x; -// let /*RENAME*/[|yRENAME|]; +// /*RENAME*/let y; // const z = 1; @@ -194,4 +188,4 @@ // function fn() {} // var x; // let y; -// const /*RENAME*/[|zRENAME|] = 1; \ No newline at end of file +// /*RENAME*/const z = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff index 94ca1d35b4..994bb4b0aa 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDeclarationKeywords.baseline.jsonc.diff @@ -5,40 +5,36 @@ // class Base {} // interface Implemented1 {} -// /*RENAME*/class [|C1RENAME|] extends Base implements Implemented1 { -+// class /*RENAME*/[|C1RENAME|] extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } +-// get e() { return 1; } +-// set e(v) {} +-// } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// --- (line: 10) skipped --- -+// // --- (line: 7) skipped --- - - - -@@= skipped -15, +12 lines =@@ - // === /renameDeclarationKeywords.ts === - // class [|BaseRENAME|] {} - // interface Implemented1 {} +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class [|BaseRENAME|] {} +-// interface Implemented1 {} -// class C1 /*RENAME*/extends [|BaseRENAME|] implements Implemented1 { -+// class C1 extends /*RENAME*/[|BaseRENAME|] implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } -@@= skipped -8, +8 lines =@@ - // type T = { } - // enum E { } - // namespace N { } +-// get e() { return 1; } +-// set e(v) {} +-// } +-// interface I1 extends [|BaseRENAME|] { } +-// type T = { } +-// enum E { } +-// namespace N { } -// --- (line: 11) skipped --- -+// // --- (line: 11) skipped --- - - - -@@= skipped -8, +8 lines =@@ - // === /renameDeclarationKeywords.ts === - // class Base {} - // interface [|Implemented1RENAME|] {} +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class Base {} +-// interface [|Implemented1RENAME|] {} -// class C1 extends Base /*RENAME*/implements [|Implemented1RENAME|] { -// get e() { return 1; } -// set e(v) {} @@ -72,7 +68,61 @@ -// interface I1 extends Base { } -// type T = { } -// --- (line: 9) skipped --- -+// class C1 extends Base implements /*RENAME*/[|Implemented1RENAME|] { +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// --- (line: 3) skipped --- +-// get e() { return 1; } +-// set e(v) {} +-// } +-// /*RENAME*/interface [|I1RENAME|] extends Base { } +-// type T = { } +-// enum E { } +-// namespace N { } +-// --- (line: 11) skipped --- +- +- +- +-// === findRenameLocations === +-// === /renameDeclarationKeywords.ts === +-// class [|BaseRENAME|] {} +-// interface Implemented1 {} +-// class C1 extends [|BaseRENAME|] implements Implemented1 { +-// get e() { return 1; } +-// set e(v) {} +-// } +-// interface I1 /*RENAME*/extends [|BaseRENAME|] { } +-// type T = { } +-// enum E { } +-// namespace N { } +-// --- (line: 11) skipped --- ++// /*RENAME*/class C1 extends Base implements Implemented1 { ++// get e() { return 1; } ++// set e(v) {} ++// } ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 /*RENAME*/extends Base implements Implemented1 { ++// get e() { return 1; } ++// set e(v) {} ++// } ++// // --- (line: 7) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// class Base {} ++// interface Implemented1 {} ++// class C1 extends Base /*RENAME*/implements Implemented1 { +// get e() { return 1; } +// set e(v) {} +// } @@ -104,43 +154,43 @@ +// interface I1 extends Base { } +// type T = { } +// // --- (line: 9) skipped --- - - - -@@= skipped -42, +41 lines =@@ - // get e() { return 1; } - // set e(v) {} - // } --// /*RENAME*/interface [|I1RENAME|] extends Base { } -+// interface /*RENAME*/[|I1RENAME|] extends Base { } - // type T = { } - // enum E { } - // namespace N { } --// --- (line: 11) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// --- (line: 3) skipped --- ++// get e() { return 1; } ++// set e(v) {} ++// } ++// /*RENAME*/interface I1 extends Base { } ++// type T = { } ++// enum E { } ++// namespace N { } +// // --- (line: 11) skipped --- - - - -@@= skipped -16, +16 lines =@@ - // get e() { return 1; } - // set e(v) {} - // } --// interface I1 /*RENAME*/extends [|BaseRENAME|] { } -+// interface I1 extends /*RENAME*/[|BaseRENAME|] { } - // type T = { } - // enum E { } - // namespace N { } --// --- (line: 11) skipped --- ++ ++ ++ ++// === findRenameLocations === ++// === /renameDeclarationKeywords.ts === ++// --- (line: 3) skipped --- ++// get e() { return 1; } ++// set e(v) {} ++// } ++// interface I1 /*RENAME*/extends Base { } ++// type T = { } ++// enum E { } ++// namespace N { } +// // --- (line: 11) skipped --- -@@= skipped -14, +14 lines =@@ +@@= skipped -103, +93 lines =@@ // set e(v) {} // } // interface I1 extends Base { } -// /*RENAME*/type [|TRENAME|] = { } -+// type /*RENAME*/[|TRENAME|] = { } ++// /*RENAME*/type T = { } // enum E { } // namespace N { } // module M { } @@ -154,7 +204,7 @@ // interface I1 extends Base { } // type T = { } -// /*RENAME*/enum [|ERENAME|] { } -+// enum /*RENAME*/[|ERENAME|] { } ++// /*RENAME*/enum E { } // namespace N { } // module M { } // function fn() {} @@ -168,7 +218,7 @@ // type T = { } // enum E { } -// /*RENAME*/namespace [|NRENAME|] { } -+// namespace /*RENAME*/[|NRENAME|] { } ++// /*RENAME*/namespace N { } // module M { } // function fn() {} // var x; @@ -177,7 +227,7 @@ // enum E { } // namespace N { } -// /*RENAME*/module [|MRENAME|] { } -+// module /*RENAME*/[|MRENAME|] { } ++// /*RENAME*/module M { } // function fn() {} // var x; // let y; @@ -186,7 +236,7 @@ // namespace N { } // module M { } -// /*RENAME*/function [|fnRENAME|]() {} -+// function /*RENAME*/[|fnRENAME|]() {} ++// /*RENAME*/function fn() {} // var x; // let y; // const z = 1; @@ -195,7 +245,7 @@ // module M { } // function fn() {} -// /*RENAME*/var [|xRENAME|]; -+// var /*RENAME*/[|xRENAME|]; ++// /*RENAME*/var x; // let y; // const z = 1; @@ -204,7 +254,7 @@ // function fn() {} // var x; -// /*RENAME*/let [|yRENAME|]; -+// let /*RENAME*/[|yRENAME|]; ++// /*RENAME*/let y; // const z = 1; @@ -213,4 +263,4 @@ // var x; // let y; -// /*RENAME*/const [|zRENAME|] = 1; -+// const /*RENAME*/[|zRENAME|] = 1; \ No newline at end of file ++// /*RENAME*/const z = 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc index 86263038d3..78e6d47758 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc @@ -1,4 +1,4 @@ // === findRenameLocations === // === /file1.ts === -// /*RENAME*/var test = "foo"; -// console.log(test); \ No newline at end of file +// var /*RENAME*/[|testRENAME|] = "foo"; +// console.log([|testRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff index 5450f8878d..c1cf1d7d15 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDefaultLibDontWork.baseline.jsonc.diff @@ -2,10 +2,7 @@ +++ new.renameDefaultLibDontWork.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /file1.ts === --// var /*RENAME*/[|testRENAME|] = "foo"; --// console.log([|testRENAME|]); -+// /*RENAME*/var test = "foo"; -+// console.log(test); \ No newline at end of file + // var /*RENAME*/[|testRENAME|] = "foo"; + // console.log([|testRENAME|]); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc index ec8ea7dca7..5f243b92f5 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc @@ -6,19 +6,19 @@ // } // var elems: I[], p1: number, property1: number; // [{ [|property1RENAME|]: p1 }] = elems; -// [{ [|property1RENAME|] }] = elems; +// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; // === findRenameLocations === // === /renameDestructuringAssignmentNestedInArrayLiteral.ts === // interface I { -// property1: number; +// [|property1RENAME|]: number; // property2: string; // } // var elems: I[], p1: number, property1: number; -// /*RENAME*/[{ property1: p1 }] = elems; -// [{ property1 }] = elems; +// [{ /*RENAME*/[|property1RENAME|]: p1 }] = elems; +// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; @@ -30,14 +30,16 @@ // } // var elems: I[], p1: number, /*RENAME*/[|property1RENAME|]: number; // [{ property1: p1 }] = elems; -// [{ [|property1RENAME|] }] = elems; +// [{ /*START PREFIX*/property1: [|property1RENAME|] }] = elems; // === findRenameLocations === // === /renameDestructuringAssignmentNestedInArrayLiteral.ts === -// --- (line: 3) skipped --- +// interface I { +// property1: number; +// property2: string; // } -// var elems: I[], p1: number, property1: number; +// var elems: I[], p1: number, [|property1RENAME|]: number; // [{ property1: p1 }] = elems; -// /*RENAME*/[{ property1 }] = elems; \ No newline at end of file +// [{ /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] }] = elems; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff deleted file mode 100644 index b4177576ff..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc.diff +++ /dev/null @@ -1,47 +0,0 @@ ---- old.renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc -+++ new.renameDestructuringAssignmentNestedInArrayLiteral.baseline.jsonc -@@= skipped -5, +5 lines =@@ - // } - // var elems: I[], p1: number, property1: number; - // [{ [|property1RENAME|]: p1 }] = elems; --// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; -+// [{ [|property1RENAME|] }] = elems; - - - - // === findRenameLocations === - // === /renameDestructuringAssignmentNestedInArrayLiteral.ts === - // interface I { --// [|property1RENAME|]: number; -+// property1: number; - // property2: string; - // } - // var elems: I[], p1: number, property1: number; --// [{ /*RENAME*/[|property1RENAME|]: p1 }] = elems; --// [{ [|property1RENAME|]: property1/*END SUFFIX*/ }] = elems; -+// /*RENAME*/[{ property1: p1 }] = elems; -+// [{ property1 }] = elems; - - - -@@= skipped -24, +24 lines =@@ - // } - // var elems: I[], p1: number, /*RENAME*/[|property1RENAME|]: number; - // [{ property1: p1 }] = elems; --// [{ /*START PREFIX*/property1: [|property1RENAME|] }] = elems; -+// [{ [|property1RENAME|] }] = elems; - - - - // === findRenameLocations === - // === /renameDestructuringAssignmentNestedInArrayLiteral.ts === --// interface I { --// property1: number; --// property2: string; -+// --- (line: 3) skipped --- - // } --// var elems: I[], p1: number, [|property1RENAME|]: number; -+// var elems: I[], p1: number, property1: number; - // [{ property1: p1 }] = elems; --// [{ /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] }] = elems; -+// /*RENAME*/[{ property1 }] = elems; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc index 9234fcc1fb..1d6d63f567 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc @@ -11,7 +11,7 @@ // for ({ skills: { [|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { +// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { // console.log(primary); // } @@ -19,14 +19,18 @@ // === findRenameLocations === // === /renameDestructuringAssignmentNestedInForOf2.ts === -// --- (line: 5) skipped --- +// interface MultiRobot { +// name: string; +// skills: { +// [|primaryRENAME|]: string; +// secondary: string; // }; // } // let multiRobots: MultiRobot[], primary: string; -// for (/*RENAME*/{ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { +// for ({ skills: { /*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for ({ skills: { primary, secondary } } of multiRobots) { +// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { // console.log(primary); // } @@ -42,7 +46,7 @@ // for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { +// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { // console.log([|primaryRENAME|]); // } @@ -50,12 +54,16 @@ // === findRenameLocations === // === /renameDestructuringAssignmentNestedInForOf2.ts === -// --- (line: 8) skipped --- +// --- (line: 4) skipped --- +// secondary: string; +// }; +// } +// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; // for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for (/*RENAME*/{ skills: { primary, secondary } } of multiRobots) { -// console.log(primary); +// for ({ skills: { /*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { +// console.log([|primaryRENAME|]); // } @@ -70,6 +78,6 @@ // for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { +// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { // console.log(/*RENAME*/[|primaryRENAME|]); // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff deleted file mode 100644 index e1ba9d2266..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc.diff +++ /dev/null @@ -1,101 +0,0 @@ ---- old.renameDestructuringAssignmentNestedInForOf2.baseline.jsonc -+++ new.renameDestructuringAssignmentNestedInForOf2.baseline.jsonc -@@= skipped -10, +10 lines =@@ - // for ({ skills: { [|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { - // console.log(primaryA); - // } --// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { -+// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { - // console.log(primary); - // } - -@@= skipped -8, +8 lines =@@ - - // === findRenameLocations === - // === /renameDestructuringAssignmentNestedInForOf2.ts === --// interface MultiRobot { --// name: string; --// skills: { --// [|primaryRENAME|]: string; --// secondary: string; -+// --- (line: 5) skipped --- - // }; - // } - // let multiRobots: MultiRobot[], primary: string; --// for ({ skills: { /*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { -+// for (/*RENAME*/{ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - // console.log(primaryA); - // } --// for ({ skills: { [|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { -+// for ({ skills: { primary, secondary } } of multiRobots) { - // console.log(primary); - // } - -@@= skipped -27, +23 lines =@@ - // for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { - // console.log(primaryA); - // } --// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { --// console.log([|primaryRENAME|]); --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringAssignmentNestedInForOf2.ts === --// --- (line: 4) skipped --- --// secondary: string; --// }; --// } --// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; --// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { --// console.log(primaryA); --// } --// for ({ skills: { /*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { --// console.log([|primaryRENAME|]); --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringAssignmentNestedInForOf2.ts === --// --- (line: 4) skipped --- --// secondary: string; --// }; --// } --// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; --// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { --// console.log(primaryA); --// } --// for ({ skills: { /*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { -+// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { -+// console.log([|primaryRENAME|]); -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringAssignmentNestedInForOf2.ts === -+// --- (line: 8) skipped --- -+// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { -+// console.log(primaryA); -+// } -+// for (/*RENAME*/{ skills: { primary, secondary } } of multiRobots) { -+// console.log(primary); -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringAssignmentNestedInForOf2.ts === -+// --- (line: 4) skipped --- -+// secondary: string; -+// }; -+// } -+// let multiRobots: MultiRobot[], [|primaryRENAME|]: string; -+// for ({ skills: { primary: primaryA, secondary: secondaryA } } of multiRobots) { -+// console.log(primaryA); -+// } -+// for ({ skills: { [|primaryRENAME|], secondary } } of multiRobots) { - // console.log(/*RENAME*/[|primaryRENAME|]); - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc index d959175de7..d8e5f06926 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc @@ -5,13 +5,13 @@ // } // class B { // syntax1(a: A): void { -// let { [|fooRENAME|] } = a; +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; // } // syntax2(a: A): void { // let { [|fooRENAME|]: foo } = a; // } // syntax11(a: A): void { -// let { [|fooRENAME|] } = a; +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; // foo = "newString"; // } // } @@ -20,15 +20,21 @@ // === findRenameLocations === // === /renameDestructuringClassProperty.ts === -// --- (line: 5) skipped --- -// let { foo } = a; +// class A { +// [|fooRENAME|]: string; +// } +// class B { +// syntax1(a: A): void { +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; // } // syntax2(a: A): void { -// /*RENAME*/let { foo: foo } = a; +// let { /*RENAME*/[|fooRENAME|]: foo } = a; // } // syntax11(a: A): void { -// let { foo } = a; -// // --- (line: 13) skipped --- +// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; +// foo = "newString"; +// } +// } @@ -39,7 +45,7 @@ // } // class B { // syntax1(a: A): void { -// /*RENAME*/let { foo } = a; +// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; // } // syntax2(a: A): void { // let { foo: foo } = a; @@ -53,8 +59,8 @@ // let { foo: foo } = a; // } // syntax11(a: A): void { -// /*RENAME*/let { foo } = a; -// foo = "newString"; +// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; +// [|fooRENAME|] = "newString"; // } // } @@ -66,7 +72,7 @@ // let { foo: foo } = a; // } // syntax11(a: A): void { -// let { [|fooRENAME|] } = a; +// let { /*START PREFIX*/foo: [|fooRENAME|] } = a; // /*RENAME*/[|fooRENAME|] = "newString"; // } // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff index 416c1dda31..c5b0529fbe 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringClassProperty.baseline.jsonc.diff @@ -1,54 +1,6 @@ --- old.renameDestructuringClassProperty.baseline.jsonc +++ new.renameDestructuringClassProperty.baseline.jsonc -@@= skipped -4, +4 lines =@@ - // } - // class B { - // syntax1(a: A): void { --// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; -+// let { [|fooRENAME|] } = a; - // } - // syntax2(a: A): void { - // let { [|fooRENAME|]: foo } = a; - // } - // syntax11(a: A): void { --// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; -+// let { [|fooRENAME|] } = a; - // foo = "newString"; - // } - // } -@@= skipped -15, +15 lines =@@ - - // === findRenameLocations === - // === /renameDestructuringClassProperty.ts === --// class A { --// [|fooRENAME|]: string; --// } --// class B { --// syntax1(a: A): void { --// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; -+// --- (line: 5) skipped --- -+// let { foo } = a; - // } - // syntax2(a: A): void { --// let { /*RENAME*/[|fooRENAME|]: foo } = a; -+// /*RENAME*/let { foo: foo } = a; - // } - // syntax11(a: A): void { --// let { [|fooRENAME|]: foo/*END SUFFIX*/ } = a; --// foo = "newString"; --// } --// } -+// let { foo } = a; -+// // --- (line: 13) skipped --- - - - -@@= skipped -25, +19 lines =@@ - // } - // class B { - // syntax1(a: A): void { --// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; -+// /*RENAME*/let { foo } = a; +@@= skipped -48, +48 lines =@@ // } // syntax2(a: A): void { // let { foo: foo } = a; @@ -56,24 +8,3 @@ +// // --- (line: 10) skipped --- - -@@= skipped -14, +14 lines =@@ - // let { foo: foo } = a; - // } - // syntax11(a: A): void { --// let { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] } = a; --// [|fooRENAME|] = "newString"; -+// /*RENAME*/let { foo } = a; -+// foo = "newString"; - // } - // } - -@@= skipped -13, +13 lines =@@ - // let { foo: foo } = a; - // } - // syntax11(a: A): void { --// let { /*START PREFIX*/foo: [|fooRENAME|] } = a; -+// let { [|fooRENAME|] } = a; - // /*RENAME*/[|fooRENAME|] = "newString"; - // } - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc index d60835eb62..634b62c027 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc @@ -9,7 +9,7 @@ // var p2: number, property1: number; // for (let { [|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { // } -// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { // property1 = p2; // } @@ -17,13 +17,16 @@ // === findRenameLocations === // === /renameDestructuringDeclarationInFor.ts === -// --- (line: 4) skipped --- +// interface I { +// [|property1RENAME|]: number; +// property2: string; +// } // var elems: I[]; // // var p2: number, property1: number; -// for (/*RENAME*/let { property1: p2 } = elems[0]; p2 < 100; p2++) { +// for (let { /*RENAME*/[|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { // } -// for (let { property1 } = elems[0]; p2 < 100; p2++) { +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { // property1 = p2; // } @@ -35,8 +38,8 @@ // var p2: number, property1: number; // for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { // } -// for (/*RENAME*/let { property1 } = elems[0]; p2 < 100; p2++) { -// property1 = p2; +// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +// [|property1RENAME|] = p2; // } @@ -47,6 +50,6 @@ // var p2: number, property1: number; // for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { // } -// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { +// for (let { /*START PREFIX*/property1: [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { // /*RENAME*/[|property1RENAME|] = p2; // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff deleted file mode 100644 index a64d06f8d2..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInFor.baseline.jsonc.diff +++ /dev/null @@ -1,79 +0,0 @@ ---- old.renameDestructuringDeclarationInFor.baseline.jsonc -+++ new.renameDestructuringDeclarationInFor.baseline.jsonc -@@= skipped -8, +8 lines =@@ - // var p2: number, property1: number; - // for (let { [|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { - // } --// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { -+// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { - // property1 = p2; - // } - -@@= skipped -8, +8 lines =@@ - - // === findRenameLocations === - // === /renameDestructuringDeclarationInFor.ts === --// interface I { --// [|property1RENAME|]: number; --// property2: string; --// } -+// --- (line: 4) skipped --- - // var elems: I[]; - // - // var p2: number, property1: number; --// for (let { /*RENAME*/[|property1RENAME|]: p2 } = elems[0]; p2 < 100; p2++) { --// } --// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } = elems[0]; p2 < 100; p2++) { --// property1 = p2; --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringDeclarationInFor.ts === --// --- (line: 6) skipped --- --// var p2: number, property1: number; --// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { --// } --// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } = elems[0]; p2 < 100; p2++) { --// [|property1RENAME|] = p2; --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringDeclarationInFor.ts === --// --- (line: 6) skipped --- --// var p2: number, property1: number; --// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { --// } --// for (let { /*START PREFIX*/property1: [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { -+// for (/*RENAME*/let { property1: p2 } = elems[0]; p2 < 100; p2++) { -+// } -+// for (let { property1 } = elems[0]; p2 < 100; p2++) { -+// property1 = p2; -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringDeclarationInFor.ts === -+// --- (line: 6) skipped --- -+// var p2: number, property1: number; -+// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { -+// } -+// for (/*RENAME*/let { property1 } = elems[0]; p2 < 100; p2++) { -+// property1 = p2; -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringDeclarationInFor.ts === -+// --- (line: 6) skipped --- -+// var p2: number, property1: number; -+// for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { -+// } -+// for (let { [|property1RENAME|] } = elems[0]; p2 < 100; p2++) { - // /*RENAME*/[|property1RENAME|] = p2; - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc index 4a67da2e55..23a7989f99 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc @@ -6,7 +6,7 @@ // } // var elems: I[]; // -// for (let { [|property1RENAME|] } of elems) { +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { // property1++; // } // for (let { [|property1RENAME|]: p2 } of elems) { @@ -16,11 +16,16 @@ // === findRenameLocations === // === /renameDestructuringDeclarationInForOf.ts === -// --- (line: 6) skipped --- -// for (let { property1 } of elems) { +// interface I { +// [|property1RENAME|]: number; +// property2: string; +// } +// var elems: I[]; +// +// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { // property1++; // } -// for (/*RENAME*/let { property1: p2 } of elems) { +// for (let { /*RENAME*/[|property1RENAME|]: p2 } of elems) { // } @@ -31,8 +36,8 @@ // } // var elems: I[]; // -// for (/*RENAME*/let { property1 } of elems) { -// property1++; +// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } of elems) { +// [|property1RENAME|]++; // } // for (let { property1: p2 } of elems) { // } @@ -45,7 +50,7 @@ // } // var elems: I[]; // -// for (let { [|property1RENAME|] } of elems) { +// for (let { /*START PREFIX*/property1: [|property1RENAME|] } of elems) { // /*RENAME*/[|property1RENAME|]++; // } // for (let { property1: p2 } of elems) { diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff deleted file mode 100644 index 1ecbdb1126..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringDeclarationInForOf.baseline.jsonc.diff +++ /dev/null @@ -1,51 +0,0 @@ ---- old.renameDestructuringDeclarationInForOf.baseline.jsonc -+++ new.renameDestructuringDeclarationInForOf.baseline.jsonc -@@= skipped -5, +5 lines =@@ - // } - // var elems: I[]; - // --// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { -+// for (let { [|property1RENAME|] } of elems) { - // property1++; - // } - // for (let { [|property1RENAME|]: p2 } of elems) { -@@= skipped -10, +10 lines =@@ - - // === findRenameLocations === - // === /renameDestructuringDeclarationInForOf.ts === --// interface I { --// [|property1RENAME|]: number; --// property2: string; --// } --// var elems: I[]; --// --// for (let { [|property1RENAME|]: property1/*END SUFFIX*/ } of elems) { -+// --- (line: 6) skipped --- -+// for (let { property1 } of elems) { - // property1++; - // } --// for (let { /*RENAME*/[|property1RENAME|]: p2 } of elems) { -+// for (/*RENAME*/let { property1: p2 } of elems) { - // } - - -@@= skipped -20, +15 lines =@@ - // } - // var elems: I[]; - // --// for (let { /*START PREFIX*/property1: /*RENAME*/[|property1RENAME|] } of elems) { --// [|property1RENAME|]++; -+// for (/*RENAME*/let { property1 } of elems) { -+// property1++; - // } - // for (let { property1: p2 } of elems) { - // } -@@= skipped -14, +14 lines =@@ - // } - // var elems: I[]; - // --// for (let { /*START PREFIX*/property1: [|property1RENAME|] } of elems) { -+// for (let { [|property1RENAME|] } of elems) { - // /*RENAME*/[|property1RENAME|]++; - // } - // for (let { property1: p2 } of elems) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc index f3ac053176..3da6d4496c 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc @@ -1,21 +1,21 @@ // === findRenameLocations === // === /renameDestructuringFunctionParameter.ts === -// function f({a}: {/*RENAME*/[|aRENAME|]}: {[|aRENAME|]}) { -// f({[|aRENAME|]}); +// function f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}: {a}) { +// f({/*START PREFIX*/a: [|aRENAME|]}); // } // === findRenameLocations === // === /renameDestructuringFunctionParameter.ts === -// function f({[|aRENAME|]}: {a}) { -// f({/*RENAME*/[|aRENAME|]}); +// function f({/*START PREFIX*/a: [|aRENAME|]}: {a}) { +// f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}); // } // === findRenameLocations === // === /renameDestructuringFunctionParameter.ts === -// function f(/*RENAME*/{a}: {a}) { -// f({a}); +// function f({[|aRENAME|]: a/*END SUFFIX*/}: {/*RENAME*/[|aRENAME|]}) { +// f({[|aRENAME|]: a/*END SUFFIX*/}); // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff deleted file mode 100644 index f1852764fa..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringFunctionParameter.baseline.jsonc.diff +++ /dev/null @@ -1,42 +0,0 @@ ---- old.renameDestructuringFunctionParameter.baseline.jsonc -+++ new.renameDestructuringFunctionParameter.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameDestructuringFunctionParameter.ts === --// function f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}: {a}) { --// f({/*START PREFIX*/a: [|aRENAME|]}); --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringFunctionParameter.ts === --// function f({/*START PREFIX*/a: [|aRENAME|]}: {a}) { --// f({/*START PREFIX*/a: /*RENAME*/[|aRENAME|]}); --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringFunctionParameter.ts === --// function f({[|aRENAME|]: a/*END SUFFIX*/}: {/*RENAME*/[|aRENAME|]}) { --// f({[|aRENAME|]: a/*END SUFFIX*/}); -+// function f({a}: {/*RENAME*/[|aRENAME|]}: {[|aRENAME|]}) { -+// f({[|aRENAME|]}); -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringFunctionParameter.ts === -+// function f({[|aRENAME|]}: {a}) { -+// f({/*RENAME*/[|aRENAME|]}); -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringFunctionParameter.ts === -+// function f(/*RENAME*/{a}: {a}) { -+// f({a}); - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc index d6522092d0..ab3a3fab33 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc @@ -11,7 +11,7 @@ // for (let { skills: {[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { +// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { // console.log(primary); // } @@ -19,14 +19,18 @@ // === findRenameLocations === // === /renameDestructuringNestedBindingElement.ts === -// --- (line: 5) skipped --- +// interface MultiRobot { +// name: string; +// skills: { +// [|primaryRENAME|]: string; +// secondary: string; // }; // } // let multiRobots: MultiRobot[]; -// for (/*RENAME*/let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { +// for (let { skills: {/*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for (let { skills: {primary, secondary } } of multiRobots) { +// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { // console.log(primary); // } @@ -38,8 +42,8 @@ // for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for (/*RENAME*/let { skills: {primary, secondary } } of multiRobots) { -// console.log(primary); +// for (let { skills: {/*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { +// console.log([|primaryRENAME|]); // } @@ -50,6 +54,6 @@ // for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } -// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { +// for (let { skills: {/*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { // console.log(/*RENAME*/[|primaryRENAME|]); // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff deleted file mode 100644 index d3b08a72e7..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameDestructuringNestedBindingElement.baseline.jsonc.diff +++ /dev/null @@ -1,82 +0,0 @@ ---- old.renameDestructuringNestedBindingElement.baseline.jsonc -+++ new.renameDestructuringNestedBindingElement.baseline.jsonc -@@= skipped -10, +10 lines =@@ - // for (let { skills: {[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { - // console.log(primaryA); - // } --// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { -+// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { - // console.log(primary); - // } - -@@= skipped -8, +8 lines =@@ - - // === findRenameLocations === - // === /renameDestructuringNestedBindingElement.ts === --// interface MultiRobot { --// name: string; --// skills: { --// [|primaryRENAME|]: string; --// secondary: string; -+// --- (line: 5) skipped --- - // }; - // } - // let multiRobots: MultiRobot[]; --// for (let { skills: {/*RENAME*/[|primaryRENAME|]: primaryA, secondary: secondaryA } } of multiRobots) { --// console.log(primaryA); --// } --// for (let { skills: {[|primaryRENAME|]: primary/*END SUFFIX*/, secondary } } of multiRobots) { --// console.log(primary); --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringNestedBindingElement.ts === --// --- (line: 8) skipped --- --// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { --// console.log(primaryA); --// } --// for (let { skills: {/*START PREFIX*/primary: /*RENAME*/[|primaryRENAME|], secondary } } of multiRobots) { --// console.log([|primaryRENAME|]); --// } -- -- -- --// === findRenameLocations === --// === /renameDestructuringNestedBindingElement.ts === --// --- (line: 8) skipped --- --// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { --// console.log(primaryA); --// } --// for (let { skills: {/*START PREFIX*/primary: [|primaryRENAME|], secondary } } of multiRobots) { -+// for (/*RENAME*/let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { -+// console.log(primaryA); -+// } -+// for (let { skills: {primary, secondary } } of multiRobots) { -+// console.log(primary); -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringNestedBindingElement.ts === -+// --- (line: 8) skipped --- -+// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { -+// console.log(primaryA); -+// } -+// for (/*RENAME*/let { skills: {primary, secondary } } of multiRobots) { -+// console.log(primary); -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameDestructuringNestedBindingElement.ts === -+// --- (line: 8) skipped --- -+// for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { -+// console.log(primaryA); -+// } -+// for (let { skills: {[|primaryRENAME|], secondary } } of multiRobots) { - // console.log(/*RENAME*/[|primaryRENAME|]); - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc index 8e304e7e53..6e30fd32c4 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc @@ -1,4 +1,6 @@ // === findRenameLocations === +// @useAliasesForRename: false + // === /a.ts === // const name = {}; // export { name as name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff index 39a04697e3..6c108ca3a9 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier.baseline.jsonc.diff @@ -1,9 +1,7 @@ --- old.renameExportSpecifier.baseline.jsonc +++ new.renameExportSpecifier.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: false -- +@@= skipped -2, +2 lines =@@ + // === /a.ts === // const name = {}; -// export { name as [|nameRENAME|]/*RENAME*/ }; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc index b2275861ad..155c542abf 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc @@ -1,4 +1,6 @@ // === findRenameLocations === +// @useAliasesForRename: false + // === /a.ts === // const [|nameRENAME|] = {}; // export { name/*RENAME*/ }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff index fa01117945..2fd41bf05f 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameExportSpecifier2.baseline.jsonc.diff @@ -1,9 +1,7 @@ --- old.renameExportSpecifier2.baseline.jsonc +++ new.renameExportSpecifier2.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: false -- +@@= skipped -2, +2 lines =@@ + // === /a.ts === // const [|nameRENAME|] = {}; -// export { [|nameRENAME|]/*RENAME*/ }; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff index ffae21b942..57beca9cff 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameForDefaultExport01.baseline.jsonc.diff @@ -2,7 +2,6 @@ +++ new.renameForDefaultExport01.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /renameForDefaultExport01.ts === // export default class /*RENAME*/[|DefaultExportedClassRENAME|] { @@ -13,11 +12,10 @@ // */ // // var x: [|DefaultExportedClassRENAME|]; -@@= skipped -14, +12 lines =@@ +@@= skipped -13, +12 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /renameForDefaultExport01.ts === // export default class [|DefaultExportedClassRENAME|] { @@ -28,11 +26,10 @@ // */ // // var x: /*RENAME*/[|DefaultExportedClassRENAME|]; -@@= skipped -16, +14 lines =@@ +@@= skipped -15, +14 lines =@@ // === findRenameLocations === --// @findInComments: true - // === /renameForDefaultExport01.ts === // export default class [|DefaultExportedClassRENAME|] { diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc index 7ebfb20f42..2a4061d4f4 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc @@ -4,7 +4,7 @@ // /** // * @param {number} p // */ -// this.foo = function foo(p/*RENAME*/[|pRENAME|]) { +// this.foo = function foo([|pRENAME|]/*RENAME*/) { // return [|pRENAME|]; // } // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff index d636e6e0c2..08796165aa 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter1.baseline.jsonc.diff @@ -7,8 +7,5 @@ -// * @param {number} [|pRENAME|] +// * @param {number} p // */ --// this.foo = function foo([|pRENAME|]/*RENAME*/) { -+// this.foo = function foo(p/*RENAME*/[|pRENAME|]) { - // return [|pRENAME|]; - // } - // } \ No newline at end of file + // this.foo = function foo([|pRENAME|]/*RENAME*/) { + // return [|pRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc index 1ea4c434a9..84a2628d06 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc @@ -3,6 +3,6 @@ // /** // * @param {number} p // */ -// const foo = function foo(p/*RENAME*/[|pRENAME|]) { +// const foo = function foo([|pRENAME|]/*RENAME*/) { // return [|pRENAME|]; // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff index c30c6fadd5..b44d781335 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameFunctionParameter2.baseline.jsonc.diff @@ -7,7 +7,5 @@ -// * @param {number} [|pRENAME|] +// * @param {number} p // */ --// const foo = function foo([|pRENAME|]/*RENAME*/) { -+// const foo = function foo(p/*RENAME*/[|pRENAME|]) { - // return [|pRENAME|]; - // } \ No newline at end of file + // const foo = function foo([|pRENAME|]/*RENAME*/) { + // return [|pRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc index cdf0daaef1..f2c7a402dd 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc @@ -1,11 +1,11 @@ // === findRenameLocations === // === /renameImportAndExport.ts === -// /*RENAME*/import a from "module"; +// import /*RENAME*/[|aRENAME|] from "module"; // export { a }; // === findRenameLocations === // === /renameImportAndExport.ts === -// import a from "module"; -// /*RENAME*/export { a }; \ No newline at end of file +// import [|aRENAME|] from "module"; +// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff index c662701132..7579be5fcf 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExport.baseline.jsonc.diff @@ -3,15 +3,15 @@ @@= skipped -0, +0 lines =@@ // === findRenameLocations === // === /renameImportAndExport.ts === --// import /*RENAME*/[|aRENAME|] from "module"; + // import /*RENAME*/[|aRENAME|] from "module"; -// export { [|aRENAME|] as a/*END SUFFIX*/ }; -+// /*RENAME*/import a from "module"; +// export { a }; // === findRenameLocations === // === /renameImportAndExport.ts === - // import a from "module"; +-// import a from "module"; -// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; -+// /*RENAME*/export { a }; \ No newline at end of file ++// import [|aRENAME|] from "module"; ++// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc index 7f3e3bdf1a..3df1b40965 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc @@ -1,17 +1,21 @@ // === findRenameLocations === // === /a.ts === -// /*RENAME*/export var a; +// export var /*RENAME*/[|aRENAME|]; + +// === /b.ts === +// import { [|aRENAME|] } from './a'; +// export { a }; // === findRenameLocations === // === /b.ts === -// /*RENAME*/import { a } from './a'; +// import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; // export { a }; // === findRenameLocations === // === /b.ts === -// import { a } from './a'; -// /*RENAME*/export { a }; \ No newline at end of file +// import { /*START PREFIX*/a as [|aRENAME|] } from './a'; +// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff index 8a26e045bc..bbe6b24e4e 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndExportInDiffFiles.baseline.jsonc.diff @@ -1,28 +1,25 @@ --- old.renameImportAndExportInDiffFiles.baseline.jsonc +++ new.renameImportAndExportInDiffFiles.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /a.ts === --// export var /*RENAME*/[|aRENAME|]; -- --// === /b.ts === --// import { [|aRENAME|] } from './a'; +@@= skipped -3, +3 lines =@@ + + // === /b.ts === + // import { [|aRENAME|] } from './a'; -// export { [|aRENAME|] as a/*END SUFFIX*/ }; -+// /*RENAME*/export var a; ++// export { a }; // === findRenameLocations === // === /b.ts === --// import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; + // import { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] } from './a'; -// export { [|aRENAME|] as a/*END SUFFIX*/ }; -+// /*RENAME*/import { a } from './a'; +// export { a }; // === findRenameLocations === // === /b.ts === - // import { a } from './a'; +-// import { a } from './a'; -// export { /*START PREFIX*/a as /*RENAME*/[|aRENAME|] }; -+// /*RENAME*/export { a }; \ No newline at end of file ++// import { /*START PREFIX*/a as [|aRENAME|] } from './a'; ++// export { /*RENAME*/a }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc index fd4cc5dcbb..6ca5609808 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc @@ -1,11 +1,11 @@ // === findRenameLocations === // === /renameImportAndShorthand.ts === -// /*RENAME*/import foo from 'bar'; -// const bar = { foo }; +// import /*RENAME*/[|fooRENAME|] from 'bar'; +// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; // === findRenameLocations === // === /renameImportAndShorthand.ts === // import [|fooRENAME|] from 'bar'; -// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file +// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff deleted file mode 100644 index 909eb7fdd7..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportAndShorthand.baseline.jsonc.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.renameImportAndShorthand.baseline.jsonc -+++ new.renameImportAndShorthand.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameImportAndShorthand.ts === --// import /*RENAME*/[|fooRENAME|] from 'bar'; --// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; -+// /*RENAME*/import foo from 'bar'; -+// const bar = { foo }; - - - - // === findRenameLocations === - // === /renameImportAndShorthand.ts === - // import [|fooRENAME|] from 'bar'; --// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; -+// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc index 78b7811d4c..799b0d0522 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc @@ -1,11 +1,11 @@ // === findRenameLocations === // === /renameImportNamespaceAndShorthand.ts === -// /*RENAME*/import * as foo from 'bar'; -// const bar = { foo }; +// import * as /*RENAME*/[|fooRENAME|] from 'bar'; +// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; // === findRenameLocations === // === /renameImportNamespaceAndShorthand.ts === // import * as [|fooRENAME|] from 'bar'; -// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file +// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff deleted file mode 100644 index 10d4fdba50..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportNamespaceAndShorthand.baseline.jsonc.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.renameImportNamespaceAndShorthand.baseline.jsonc -+++ new.renameImportNamespaceAndShorthand.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameImportNamespaceAndShorthand.ts === --// import * as /*RENAME*/[|fooRENAME|] from 'bar'; --// const bar = { /*START PREFIX*/foo: [|fooRENAME|] }; -+// /*RENAME*/import * as foo from 'bar'; -+// const bar = { foo }; - - - - // === findRenameLocations === - // === /renameImportNamespaceAndShorthand.ts === - // import * as [|fooRENAME|] from 'bar'; --// const bar = { /*START PREFIX*/foo: /*RENAME*/[|fooRENAME|] }; -+// const bar = { /*RENAME*/[|fooRENAME|] }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc index c3542271ec..98bee31a7f 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc @@ -1,32 +1,34 @@ // === findRenameLocations === // === /renameImportOfExportEquals.ts === -// declare namespace N { -// export var /*RENAME*/[|xRENAME|]: number; +// declare namespace /*RENAME*/[|NRENAME|] { +// export var x: number; // } // declare module "mod" { -// export = N; -// // --- (line: 6) skipped --- - -// --- (line: 9) skipped --- +// export = [|NRENAME|]; // } -// declare module "b" { -// import { N } from "a"; -// export const y: typeof N.[|xRENAME|]; +// declare module "a" { +// import * as [|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename // } +// declare module "b" { +// // --- (line: 12) skipped --- // === findRenameLocations === // === /renameImportOfExportEquals.ts === -// declare namespace N { +// declare namespace [|NRENAME|] { // export var x: number; // } // declare module "mod" { -// /*RENAME*/export = N; +// export = /*RENAME*/[|NRENAME|]; // } // declare module "a" { -// import * as N from "mod"; -// // --- (line: 9) skipped --- +// import * as [|NRENAME|] from "mod"; +// export { N }; // Renaming N here would rename +// } +// declare module "b" { +// // --- (line: 12) skipped --- @@ -36,7 +38,7 @@ // export = N; // } // declare module "a" { -// /*RENAME*/import * as N from "mod"; +// import * as /*RENAME*/[|NRENAME|] from "mod"; // export { N }; // Renaming N here would rename // } // declare module "b" { @@ -46,11 +48,12 @@ // === findRenameLocations === // === /renameImportOfExportEquals.ts === -// --- (line: 5) skipped --- +// --- (line: 4) skipped --- +// export = N; // } // declare module "a" { -// import * as N from "mod"; -// /*RENAME*/export { N }; // Renaming N here would rename +// import * as [|NRENAME|] from "mod"; +// export { /*RENAME*/N }; // Renaming N here would rename // } // declare module "b" { // import { N } from "a"; @@ -65,8 +68,8 @@ // export { N }; // Renaming N here would rename // } // declare module "b" { -// /*RENAME*/import { N } from "a"; -// export const y: typeof N.x; +// import { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] } from "a"; +// export const y: typeof [|NRENAME|].x; // } @@ -77,7 +80,7 @@ // export { N }; // Renaming N here would rename // } // declare module "b" { -// import { [|NRENAME|] } from "a"; +// import { /*START PREFIX*/N as [|NRENAME|] } from "a"; // export const y: typeof /*RENAME*/[|NRENAME|].x; // } @@ -85,11 +88,19 @@ // === findRenameLocations === // === /renameImportOfExportEquals.ts === -// /*RENAME*/declare namespace N { -// export var x: number; +// declare namespace N { +// export var /*RENAME*/[|xRENAME|]: number; // } // declare module "mod" { -// // --- (line: 5) skipped --- +// export = N; +// // --- (line: 6) skipped --- + +// --- (line: 9) skipped --- +// } +// declare module "b" { +// import { N } from "a"; +// export const y: typeof N.[|xRENAME|]; +// } diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff index 748847e13a..e3008bc1a8 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportOfExportEquals.baseline.jsonc.diff @@ -1,62 +1,40 @@ --- old.renameImportOfExportEquals.baseline.jsonc +++ new.renameImportOfExportEquals.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameImportOfExportEquals.ts === --// declare namespace /*RENAME*/[|NRENAME|] { --// export var x: number; -+// declare namespace N { -+// export var /*RENAME*/[|xRENAME|]: number; +@@= skipped -7, +7 lines =@@ // } - // declare module "mod" { --// export = [|NRENAME|]; --// } --// declare module "a" { --// import * as [|NRENAME|] from "mod"; + // declare module "a" { + // import * as [|NRENAME|] from "mod"; -// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename -+// export = N; -+// // --- (line: 6) skipped --- -+ -+// --- (line: 9) skipped --- ++// export { N }; // Renaming N here would rename // } // declare module "b" { - // import { N } from "a"; +-// import { N } from "a"; -// export const y: typeof N.x; -+// export const y: typeof N.[|xRENAME|]; - // } +-// } ++// // --- (line: 12) skipped --- - // === findRenameLocations === - // === /renameImportOfExportEquals.ts === --// declare namespace [|NRENAME|] { -+// declare namespace N { - // export var x: number; - // } - // declare module "mod" { --// export = /*RENAME*/[|NRENAME|]; -+// /*RENAME*/export = N; +@@= skipped -19, +17 lines =@@ // } // declare module "a" { --// import * as [|NRENAME|] from "mod"; + // import * as [|NRENAME|] from "mod"; -// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename --// } --// declare module "b" { ++// export { N }; // Renaming N here would rename + // } + // declare module "b" { -// import { N } from "a"; -// export const y: typeof N.x; -// } -+// import * as N from "mod"; -+// // --- (line: 9) skipped --- ++// // --- (line: 12) skipped --- -@@= skipped -41, +35 lines =@@ - // export = N; +@@= skipped -16, +14 lines =@@ // } // declare module "a" { --// import * as /*RENAME*/[|NRENAME|] from "mod"; + // import * as /*RENAME*/[|NRENAME|] from "mod"; -// export { [|NRENAME|] as N/*END SUFFIX*/ }; // Renaming N here would rename -+// /*RENAME*/import * as N from "mod"; +// export { N }; // Renaming N here would rename // } // declare module "b" { @@ -67,90 +45,36 @@ -@@= skipped -16, +14 lines =@@ + // === findRenameLocations === + // === /renameImportOfExportEquals.ts === +-// --- (line: 5) skipped --- ++// --- (line: 4) skipped --- ++// export = N; // } // declare module "a" { - // import * as N from "mod"; +-// import * as N from "mod"; -// export { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] }; // Renaming N here would rename -+// /*RENAME*/export { N }; // Renaming N here would rename -+// } -+// declare module "b" { -+// import { N } from "a"; -+// export const y: typeof N.x; -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameImportOfExportEquals.ts === -+// --- (line: 8) skipped --- -+// export { N }; // Renaming N here would rename -+// } -+// declare module "b" { -+// /*RENAME*/import { N } from "a"; -+// export const y: typeof N.x; -+// } -+ -+ -+ -+// === findRenameLocations === -+// === /renameImportOfExportEquals.ts === -+// --- (line: 8) skipped --- -+// export { N }; // Renaming N here would rename ++// import * as [|NRENAME|] from "mod"; ++// export { /*RENAME*/N }; // Renaming N here would rename // } // declare module "b" { - // import { [|NRENAME|] } from "a"; +-// import { [|NRENAME|] } from "a"; -// export const y: typeof [|NRENAME|].x; --// } -- -- -- --// === findRenameLocations === --// === /renameImportOfExportEquals.ts === --// --- (line: 8) skipped --- --// export { N }; // Renaming N here would rename --// } --// declare module "b" { --// import { /*START PREFIX*/N as /*RENAME*/[|NRENAME|] } from "a"; --// export const y: typeof [|NRENAME|].x; --// } -- -- -- --// === findRenameLocations === --// === /renameImportOfExportEquals.ts === --// --- (line: 8) skipped --- --// export { N }; // Renaming N here would rename --// } --// declare module "b" { --// import { /*START PREFIX*/N as [|NRENAME|] } from "a"; - // export const y: typeof /*RENAME*/[|NRENAME|].x; ++// import { N } from "a"; ++// export const y: typeof N.x; // } -@@= skipped -35, +35 lines =@@ - // === findRenameLocations === - // === /renameImportOfExportEquals.ts === --// declare namespace N { --// export var /*RENAME*/[|xRENAME|]: number; -+// /*RENAME*/declare namespace N { -+// export var x: number; +@@= skipped -55, +54 lines =@@ // } // declare module "mod" { --// export = N; + // export = N; -// --- (line: 6) skipped --- -- --// --- (line: 9) skipped --- --// } --// declare module "b" { --// import { N } from "a"; --// export const y: typeof N.[|xRENAME|]; --// } -+// // --- (line: 5) skipped --- - - ++// // --- (line: 6) skipped --- -@@= skipped -23, +15 lines =@@ + // --- (line: 9) skipped --- + // } +@@= skipped -18, +18 lines =@@ // } // declare module "mod" { // export = N; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc index f7ef54c164..9a6afde3d1 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc @@ -1,8 +1,8 @@ // === findRenameLocations === // === /a.ts === -// /*RENAME*/import e = require("mod4"); -// e; -// a = { e }; +// import /*RENAME*/[|eRENAME|] = require("mod4"); +// [|eRENAME|]; +// a = { /*START PREFIX*/e: [|eRENAME|] }; // export { e }; @@ -11,7 +11,7 @@ // === /a.ts === // import [|eRENAME|] = require("mod4"); // /*RENAME*/[|eRENAME|]; -// a = { [|eRENAME|] }; +// a = { /*START PREFIX*/e: [|eRENAME|] }; // export { e }; @@ -20,28 +20,28 @@ // === /a.ts === // import [|eRENAME|] = require("mod4"); // [|eRENAME|]; -// a = { /*RENAME*/[|eRENAME|] }; +// a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; // export { e }; // === findRenameLocations === // === /a.ts === -// import e = require("mod4"); -// e; -// a = { e }; -// /*RENAME*/export { e }; +// import [|eRENAME|] = require("mod4"); +// [|eRENAME|]; +// a = { /*START PREFIX*/e: [|eRENAME|] }; +// export { /*RENAME*/e }; // === findRenameLocations === // === /b.ts === -// /*RENAME*/import { e } from "./a"; +// import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; // export { e }; // === findRenameLocations === // === /b.ts === -// import { e } from "./a"; -// /*RENAME*/export { e }; \ No newline at end of file +// import { /*START PREFIX*/e as [|eRENAME|] } from "./a"; +// export { /*RENAME*/e }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff index a9aade0586..f7fe0c1be4 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameImportRequire.baseline.jsonc.diff @@ -1,65 +1,60 @@ --- old.renameImportRequire.baseline.jsonc +++ new.renameImportRequire.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /a.ts === --// import /*RENAME*/[|eRENAME|] = require("mod4"); --// [|eRENAME|]; --// a = { /*START PREFIX*/e: [|eRENAME|] }; +@@= skipped -2, +2 lines =@@ + // import /*RENAME*/[|eRENAME|] = require("mod4"); + // [|eRENAME|]; + // a = { /*START PREFIX*/e: [|eRENAME|] }; -// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// /*RENAME*/import e = require("mod4"); -+// e; -+// a = { e }; +// export { e }; -@@= skipped -10, +10 lines =@@ - // === /a.ts === +@@= skipped -9, +9 lines =@@ // import [|eRENAME|] = require("mod4"); // /*RENAME*/[|eRENAME|]; --// a = { /*START PREFIX*/e: [|eRENAME|] }; + // a = { /*START PREFIX*/e: [|eRENAME|] }; -// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// a = { [|eRENAME|] }; +// export { e }; @@= skipped -9, +9 lines =@@ - // === /a.ts === // import [|eRENAME|] = require("mod4"); // [|eRENAME|]; --// a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; + // a = { /*START PREFIX*/e: /*RENAME*/[|eRENAME|] }; -// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// a = { /*RENAME*/[|eRENAME|] }; +// export { e }; -@@= skipped -10, +10 lines =@@ - // import e = require("mod4"); - // e; - // a = { e }; + // === findRenameLocations === + // === /a.ts === +-// import e = require("mod4"); +-// e; +-// a = { e }; -// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; - -// === /b.ts === -// import { [|eRENAME|] } from "./a"; -// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// /*RENAME*/export { e }; ++// import [|eRENAME|] = require("mod4"); ++// [|eRENAME|]; ++// a = { /*START PREFIX*/e: [|eRENAME|] }; ++// export { /*RENAME*/e }; // === findRenameLocations === // === /b.ts === --// import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; + // import { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] } from "./a"; -// export { [|eRENAME|] as e/*END SUFFIX*/ }; -+// /*RENAME*/import { e } from "./a"; +// export { e }; // === findRenameLocations === // === /b.ts === - // import { e } from "./a"; +-// import { e } from "./a"; -// export { /*START PREFIX*/e as /*RENAME*/[|eRENAME|] }; -+// /*RENAME*/export { e }; \ No newline at end of file ++// import { /*START PREFIX*/e as [|eRENAME|] } from "./a"; ++// export { /*RENAME*/e }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc index 6caf06fe80..de08a0964c 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc @@ -1,6 +1,9 @@ // === findRenameLocations === // === /referencesForGlobals_1.ts === -// /*RENAME*/var globalName = 0; +// var /*RENAME*/[|globalNameRENAME|] = 0; + +// === /referencesForGlobals_2.ts === +// var y = [|globalNameRENAME|]; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff index 87e1ccc79b..853b283620 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameInConfiguredProject.baseline.jsonc.diff @@ -2,21 +2,14 @@ +++ new.renameInConfiguredProject.baseline.jsonc @@= skipped -0, +0 lines =@@ // === findRenameLocations === --// @findInStrings: true --// @findInComments: true - // === /referencesForGlobals_1.ts === --// var /*RENAME*/[|globalNameRENAME|] = 0; -- --// === /referencesForGlobals_2.ts === --// var y = [|globalNameRENAME|]; -+// /*RENAME*/var globalName = 0; + // var /*RENAME*/[|globalNameRENAME|] = 0; +@@= skipped -8, +7 lines =@@ // === findRenameLocations === --// @findInStrings: true --// @findInComments: true - // === /referencesForGlobals_1.ts === // var [|globalNameRENAME|] = 0; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc index 3f44825889..ba5fbe2f00 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc @@ -5,6 +5,6 @@ // */ // // /** -// * @param { A/*RENAME*/[|ARENAME|] } a +// * @param { [|ARENAME|]/*RENAME*/ } a // */ // function f(a) {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff index fd90212541..ea0a73d9cf 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsDocImportTag.baseline.jsonc.diff @@ -8,8 +8,4 @@ +// * @import { A } from "./b"; // */ // - // /** --// * @param { [|ARENAME|]/*RENAME*/ } a -+// * @param { A/*RENAME*/[|ARENAME|] } a - // */ - // function f(a) {} \ No newline at end of file + // /** \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc index 02ba8df266..3d903aee8f 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc @@ -4,6 +4,6 @@ // * @param {unknown} x // * @returns {unknown} // */ -// function foo(x/*RENAME*/[|xRENAME|]) { +// function foo([|xRENAME|]/*RENAME*/) { // return [|xRENAME|]; // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff index 9936663670..3a29bbee12 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameJsOverloadedFunctionParameter.baseline.jsonc.diff @@ -13,7 +13,5 @@ +// * @param {unknown} x +// * @returns {unknown} // */ --// function foo([|xRENAME|]/*RENAME*/) { -+// function foo(x/*RENAME*/[|xRENAME|]) { - // return [|xRENAME|]; - // } \ No newline at end of file + // function foo([|xRENAME|]/*RENAME*/) { + // return [|xRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc index 1418dfe6e5..b587486a51 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc @@ -17,5 +17,5 @@ // === findRenameLocations === // === /renameLocationsForFunctionExpression01.ts === // var x = function [|fRENAME|](g: any, h: any) { -// f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); +// [|fRENAME|](/*RENAME*/[|fRENAME|], g); // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff deleted file mode 100644 index 71b30952d9..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression01.baseline.jsonc.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.renameLocationsForFunctionExpression01.baseline.jsonc -+++ new.renameLocationsForFunctionExpression01.baseline.jsonc -@@= skipped -16, +16 lines =@@ - // === findRenameLocations === - // === /renameLocationsForFunctionExpression01.ts === - // var x = function [|fRENAME|](g: any, h: any) { --// [|fRENAME|](/*RENAME*/[|fRENAME|], g); -+// f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc index efbf86c2ca..af2e744390 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc @@ -35,5 +35,5 @@ // // let helper = function f(): any { f(); } // -// let foo = () => f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); +// let foo = () => [|fRENAME|](/*RENAME*/[|fRENAME|], g); // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff deleted file mode 100644 index cd22847bf6..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameLocationsForFunctionExpression02.baseline.jsonc.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.renameLocationsForFunctionExpression02.baseline.jsonc -+++ new.renameLocationsForFunctionExpression02.baseline.jsonc -@@= skipped -34, +34 lines =@@ - // - // let helper = function f(): any { f(); } - // --// let foo = () => [|fRENAME|](/*RENAME*/[|fRENAME|], g); -+// let foo = () => f(/*RENAME*/[|fRENAME|]([|fRENAME|], g); - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc index 360283f45a..9220b601c8 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc @@ -1,6 +1,6 @@ // === findRenameLocations === // === /renameModifiers.ts === -// declare /*RENAME*/abstract class C1 { +// /*RENAME*/declare abstract class C1 { // static a; // readonly b; // public c; @@ -10,7 +10,7 @@ // === findRenameLocations === // === /renameModifiers.ts === -// declare abstract class /*RENAME*/[|C1RENAME|] { +// declare /*RENAME*/abstract class C1 { // static a; // readonly b; // public c; @@ -90,7 +90,7 @@ // protected d; // private e; // } -// const enum /*RENAME*/[|ERENAME|] { +// /*RENAME*/const enum E { // } // async function fn() {} // export default class C2 {} @@ -103,7 +103,7 @@ // } // const enum E { // } -// async function /*RENAME*/[|fnRENAME|]() {} +// /*RENAME*/async function fn() {} // export default class C2 {} @@ -114,7 +114,7 @@ // const enum E { // } // async function fn() {} -// export /*RENAME*/default class C2 {} +// /*RENAME*/export default class C2 {} @@ -124,4 +124,4 @@ // const enum E { // } // async function fn() {} -// export default class /*RENAME*/[|C2RENAME|] {} \ No newline at end of file +// export /*RENAME*/default class C2 {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff index 84eca97971..fe40e1eecd 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModifiers.baseline.jsonc.diff @@ -91,7 +91,7 @@ -// public c; -// protected d; -// /*RENAME*/private [|eRENAME|]; -+// declare /*RENAME*/abstract class C1 { ++// /*RENAME*/declare abstract class C1 { +// static a; +// readonly b; +// public c; @@ -101,7 +101,7 @@ + +// === findRenameLocations === +// === /renameModifiers.ts === -+// declare abstract class /*RENAME*/[|C1RENAME|] { ++// declare /*RENAME*/abstract class C1 { +// static a; +// readonly b; +// public c; @@ -175,7 +175,7 @@ // private e; // } -// /*RENAME*/const enum [|ERENAME|] { -+// const enum /*RENAME*/[|ERENAME|] { ++// /*RENAME*/const enum E { // } // async function fn() {} // export default class C2 {} @@ -184,7 +184,7 @@ // const enum E { // } -// /*RENAME*/async function [|fnRENAME|]() {} -+// async function /*RENAME*/[|fnRENAME|]() {} ++// /*RENAME*/async function fn() {} // export default class C2 {} @@ -193,7 +193,7 @@ // } // async function fn() {} -// /*RENAME*/export default class [|C2RENAME|] {} -+// export /*RENAME*/default class C2 {} ++// /*RENAME*/export default class C2 {} @@ -202,4 +202,4 @@ // } // async function fn() {} -// export /*RENAME*/default class [|C2RENAME|] {} -+// export default class /*RENAME*/[|C2RENAME|] {} \ No newline at end of file ++// export /*RENAME*/default class C2 {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc index b7498c9ffa..93eaefdfbb 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc @@ -1,11 +1,15 @@ // === findRenameLocations === +// @useAliasesForRename: true + // === /renameModuleExportsProperties1.ts === -// /*RENAME*/class A {} -// module.exports = { A } +// class /*RENAME*/[|ARENAME|] {} +// module.exports = { /*START PREFIX*/A: [|ARENAME|] } // === findRenameLocations === +// @useAliasesForRename: true + // === /renameModuleExportsProperties1.ts === // class [|ARENAME|] {} -// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file +// module.exports = { /*START PREFIX*/A: /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff deleted file mode 100644 index 6f826f6ddf..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties1.baseline.jsonc.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.renameModuleExportsProperties1.baseline.jsonc -+++ new.renameModuleExportsProperties1.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: true -- - // === /renameModuleExportsProperties1.ts === --// class /*RENAME*/[|ARENAME|] {} --// module.exports = { /*START PREFIX*/A: [|ARENAME|] } -+// /*RENAME*/class A {} -+// module.exports = { A } - - - - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: true -- - // === /renameModuleExportsProperties1.ts === - // class [|ARENAME|] {} --// module.exports = { /*START PREFIX*/A: /*RENAME*/[|ARENAME|] } -+// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc index e8598d1899..848173961a 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc @@ -1,7 +1,7 @@ // === findRenameLocations === // === /renameModuleExportsProperties2.ts === -// /*RENAME*/class A {} -// module.exports = { B: A } +// class /*RENAME*/[|ARENAME|] {} +// module.exports = { B: [|ARENAME|] } diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff deleted file mode 100644 index 9c5ca1bc27..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties2.baseline.jsonc.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.renameModuleExportsProperties2.baseline.jsonc -+++ new.renameModuleExportsProperties2.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameModuleExportsProperties2.ts === --// class /*RENAME*/[|ARENAME|] {} --// module.exports = { B: [|ARENAME|] } -+// /*RENAME*/class A {} -+// module.exports = { B: A } - - diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc index f8b9eb57a8..d195c0d246 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc @@ -1,11 +1,15 @@ // === findRenameLocations === +// @useAliasesForRename: true + // === /a.js === -// /*RENAME*/class A {} -// module.exports = { A } +// class /*RENAME*/[|ARENAME|] {} +// module.exports = { /*START PREFIX*/A: [|ARENAME|] } // === findRenameLocations === +// @useAliasesForRename: true + // === /a.js === // class [|ARENAME|] {} -// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file +// module.exports = { /*START PREFIX*/A: /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff deleted file mode 100644 index 05306ce300..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameModuleExportsProperties3.baseline.jsonc.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.renameModuleExportsProperties3.baseline.jsonc -+++ new.renameModuleExportsProperties3.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: true -- - // === /a.js === --// class /*RENAME*/[|ARENAME|] {} --// module.exports = { /*START PREFIX*/A: [|ARENAME|] } -+// /*RENAME*/class A {} -+// module.exports = { A } - - - - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: true -- - // === /a.js === - // class [|ARENAME|] {} --// module.exports = { /*START PREFIX*/A: /*RENAME*/[|ARENAME|] } -+// module.exports = { /*RENAME*/[|ARENAME|] } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc index 67b8c4d178..9b09f45022 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc @@ -1,4 +1,6 @@ // === findRenameLocations === +// @useAliasesForRename: true + // === /home/src/workspaces/project/src/index.ts === -// import { /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; +// import { /*START PREFIX*/someExportedVariable as /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; // [|someExportedVariableRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff deleted file mode 100644 index dda14d3361..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNamedImport.baseline.jsonc.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.renameNamedImport.baseline.jsonc -+++ new.renameNamedImport.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: true -- - // === /home/src/workspaces/project/src/index.ts === --// import { /*START PREFIX*/someExportedVariable as /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; -+// import { /*RENAME*/[|someExportedVariableRENAME|] } from '../lib/index'; - // [|someExportedVariableRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc index 2e84ca6d3b..d219f28677 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc @@ -1,4 +1,6 @@ // === findRenameLocations === +// @quotePreference: single + // === /renameNumericalIndexSingleQuoted.ts === // const foo = { /*RENAME*/0: true }; // foo[0]; @@ -6,6 +8,8 @@ // === findRenameLocations === +// @quotePreference: single + // === /renameNumericalIndexSingleQuoted.ts === // const foo = { 0: true }; // foo[/*RENAME*/0]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff index 44e1a1a10b..13d07f4adb 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameNumericalIndexSingleQuoted.baseline.jsonc.diff @@ -1,9 +1,8 @@ --- old.renameNumericalIndexSingleQuoted.baseline.jsonc +++ new.renameNumericalIndexSingleQuoted.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === --// @quotePreference: single -- +@@= skipped -1, +1 lines =@@ + // @quotePreference: single + // === /renameNumericalIndexSingleQuoted.ts === -// const foo = { /*RENAME*/[|0RENAME|]: true }; -// foo[/*START PREFIX*/'[|0RENAME|]'/*END SUFFIX*/]; @@ -12,9 +11,9 @@ - // === findRenameLocations === --// @quotePreference: single -- +@@= skipped -9, +9 lines =@@ + // @quotePreference: single + // === /renameNumericalIndexSingleQuoted.ts === -// const foo = { [|0RENAME|]: true }; -// foo[/*START PREFIX*/'/*RENAME*/[|0RENAME|]'/*END SUFFIX*/]; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc index eeb063f59f..10a4cd8889 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc @@ -2,9 +2,9 @@ // === /renameObjectSpreadAssignment.ts === // interface A1 { a: number }; // interface A2 { a?: number }; -// /*RENAME*/let a1: A1; +// let /*RENAME*/[|a1RENAME|]: A1; // let a2: A2; -// let a12 = { ...a1, ...a2 }; +// let a12 = { ...[|a1RENAME|], ...a2 }; @@ -23,8 +23,8 @@ // interface A1 { a: number }; // interface A2 { a?: number }; // let a1: A1; -// /*RENAME*/let a2: A2; -// let a12 = { ...a1, ...a2 }; +// let /*RENAME*/[|a2RENAME|]: A2; +// let a12 = { ...a1, ...[|a2RENAME|] }; diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff deleted file mode 100644 index 0987d50062..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameObjectSpreadAssignment.baseline.jsonc.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.renameObjectSpreadAssignment.baseline.jsonc -+++ new.renameObjectSpreadAssignment.baseline.jsonc -@@= skipped -1, +1 lines =@@ - // === /renameObjectSpreadAssignment.ts === - // interface A1 { a: number }; - // interface A2 { a?: number }; --// let /*RENAME*/[|a1RENAME|]: A1; -+// /*RENAME*/let a1: A1; - // let a2: A2; --// let a12 = { ...[|a1RENAME|], ...a2 }; -+// let a12 = { ...a1, ...a2 }; - - - -@@= skipped -21, +21 lines =@@ - // interface A1 { a: number }; - // interface A2 { a?: number }; - // let a1: A1; --// let /*RENAME*/[|a2RENAME|]: A2; --// let a12 = { ...a1, ...[|a2RENAME|] }; -+// /*RENAME*/let a2: A2; -+// let a12 = { ...a1, ...a2 }; - - diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc index 610d8a4260..c9b8794ff8 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc @@ -1,8 +1,8 @@ // === findRenameLocations === // === /renameParameterPropertyDeclaration4.ts === // class Foo { -// constructor(/*RENAME*/protected { protectedParam }) { -// let myProtectedParam = protectedParam; +// constructor(protected { /*START PREFIX*/protectedParam: /*RENAME*/[|protectedParamRENAME|] }) { +// let myProtectedParam = [|protectedParamRENAME|]; // } // } @@ -11,7 +11,7 @@ // === findRenameLocations === // === /renameParameterPropertyDeclaration4.ts === // class Foo { -// constructor(protected { [|protectedParamRENAME|] }) { +// constructor(protected { /*START PREFIX*/protectedParam: [|protectedParamRENAME|] }) { // let myProtectedParam = /*RENAME*/[|protectedParamRENAME|]; // } // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff deleted file mode 100644 index 2a2a1f787f..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameParameterPropertyDeclaration4.baseline.jsonc.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.renameParameterPropertyDeclaration4.baseline.jsonc -+++ new.renameParameterPropertyDeclaration4.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === - // === /renameParameterPropertyDeclaration4.ts === - // class Foo { --// constructor(protected { /*START PREFIX*/protectedParam: /*RENAME*/[|protectedParamRENAME|] }) { --// let myProtectedParam = [|protectedParamRENAME|]; -+// constructor(/*RENAME*/protected { protectedParam }) { -+// let myProtectedParam = protectedParam; - // } - // } - -@@= skipped -10, +10 lines =@@ - // === findRenameLocations === - // === /renameParameterPropertyDeclaration4.ts === - // class Foo { --// constructor(protected { /*START PREFIX*/protectedParam: [|protectedParamRENAME|] }) { -+// constructor(protected { [|protectedParamRENAME|] }) { - // let myProtectedParam = /*RENAME*/[|protectedParamRENAME|]; - // } - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc index 9a1b2c510c..450c8648bd 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc @@ -1,7 +1,7 @@ // === findRenameLocations === // === /a.ts === // export { default } from "./b"; -// /*RENAME*/export { default as b } from "./b"; +// export { default as /*RENAME*/b } from "./b"; // export { default as bee } from "./b"; // import { default as b } from "./b"; // import { default as bee } from "./b"; @@ -14,7 +14,7 @@ // export { default } from "./b"; // export { default as b } from "./b"; // export { default as bee } from "./b"; -// /*RENAME*/import { default as b } from "./b"; +// import { default as /*RENAME*/[|bRENAME|] } from "./b"; // import { default as bee } from "./b"; // import b from "./b"; @@ -27,18 +27,34 @@ // export { default as bee } from "./b"; // import { default as b } from "./b"; // import { default as bee } from "./b"; -// /*RENAME*/import b from "./b"; +// import /*RENAME*/[|bRENAME|] from "./b"; // === findRenameLocations === +// === /a.ts === +// export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as [|bRENAME|] } from "./b"; +// import { default as bee } from "./b"; +// import [|bRENAME|] from "./b"; + // === /b.ts === -// /*RENAME*/const b = 0; -// export default b; +// const /*RENAME*/[|bRENAME|] = 0; +// export default [|bRENAME|]; // === findRenameLocations === +// === /a.ts === +// export { default } from "./b"; +// export { default as b } from "./b"; +// export { default as bee } from "./b"; +// import { default as [|bRENAME|] } from "./b"; +// import { default as bee } from "./b"; +// import [|bRENAME|] from "./b"; + // === /b.ts === -// const b = 0; -// /*RENAME*/export default b; \ No newline at end of file +// const [|bRENAME|] = 0; +// export default /*RENAME*/[|bRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff index 77de03fabc..37732e586e 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameReExportDefault.baseline.jsonc.diff @@ -5,54 +5,44 @@ // === /a.ts === // export { default } from "./b"; -// export { default as /*RENAME*/[|bRENAME|] } from "./b"; --// export { default as bee } from "./b"; --// import { default as b } from "./b"; --// import { default as bee } from "./b"; --// import b from "./b"; -- -- -- --// === findRenameLocations === --// === /a.ts === --// export { default } from "./b"; --// export { default as b } from "./b"; --// export { default as bee } from "./b"; --// import { default as /*RENAME*/[|bRENAME|] } from "./b"; --// import { default as bee } from "./b"; --// import b from "./b"; -- -- -- --// === findRenameLocations === --// === /a.ts === --// export { default } from "./b"; --// export { default as b } from "./b"; --// export { default as bee } from "./b"; --// import { default as b } from "./b"; --// import { default as bee } from "./b"; --// import /*RENAME*/[|bRENAME|] from "./b"; -- -- -- --// === findRenameLocations === --// === /b.ts === --// const /*RENAME*/[|bRENAME|] = 0; --// export default [|bRENAME|]; -- --// === /a.ts === --// export { default } from "./b"; ++// export { default as /*RENAME*/b } from "./b"; + // export { default as bee } from "./b"; + // import { default as b } from "./b"; + // import { default as bee } from "./b"; +@@= skipped -31, +31 lines =@@ + + + // === findRenameLocations === ++// === /a.ts === ++// export { default } from "./b"; ++// export { default as b } from "./b"; ++// export { default as bee } from "./b"; ++// import { default as [|bRENAME|] } from "./b"; ++// import { default as bee } from "./b"; ++// import [|bRENAME|] from "./b"; ++ + // === /b.ts === + // const /*RENAME*/[|bRENAME|] = 0; + // export default [|bRENAME|]; + ++ ++ ++// === findRenameLocations === + // === /a.ts === + // export { default } from "./b"; -// export { default as [|bRENAME|] } from "./b"; --// export { default as bee } from "./b"; --// import { default as [|bRENAME|] } from "./b"; --// import { default as bee } from "./b"; --// import [|bRENAME|] from "./b"; -- ++// export { default as b } from "./b"; + // export { default as bee } from "./b"; + // import { default as [|bRENAME|] } from "./b"; + // import { default as bee } from "./b"; + // import [|bRENAME|] from "./b"; + - - -// === findRenameLocations === --// === /b.ts === --// const [|bRENAME|] = 0; --// export default /*RENAME*/[|bRENAME|]; + // === /b.ts === + // const [|bRENAME|] = 0; + // export default /*RENAME*/[|bRENAME|]; - -// === /a.ts === -// export { default } from "./b"; @@ -60,45 +50,4 @@ -// export { default as bee } from "./b"; -// import { default as [|bRENAME|] } from "./b"; -// import { default as bee } from "./b"; --// import [|bRENAME|] from "./b"; -+// /*RENAME*/export { default as b } from "./b"; -+// export { default as bee } from "./b"; -+// import { default as b } from "./b"; -+// import { default as bee } from "./b"; -+// import b from "./b"; -+ -+ -+ -+// === findRenameLocations === -+// === /a.ts === -+// export { default } from "./b"; -+// export { default as b } from "./b"; -+// export { default as bee } from "./b"; -+// /*RENAME*/import { default as b } from "./b"; -+// import { default as bee } from "./b"; -+// import b from "./b"; -+ -+ -+ -+// === findRenameLocations === -+// === /a.ts === -+// export { default } from "./b"; -+// export { default as b } from "./b"; -+// export { default as bee } from "./b"; -+// import { default as b } from "./b"; -+// import { default as bee } from "./b"; -+// /*RENAME*/import b from "./b"; -+ -+ -+ -+// === findRenameLocations === -+// === /b.ts === -+// /*RENAME*/const b = 0; -+// export default b; -+ -+ -+ -+// === findRenameLocations === -+// === /b.ts === -+// const b = 0; -+// /*RENAME*/export default b; \ No newline at end of file +-// import [|bRENAME|] from "./b"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc index 2089ec474b..9bfb1953d6 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc @@ -1,10 +1,12 @@ // === findRenameLocations === +// @useAliasesForRename: true + // === /renameRestBindingElement.ts === // interface I { // a: number; // b: number; // c: number; // } -// function foo(/*RENAME*/{ a, ...rest }: I) { -// rest; +// function foo({ a, .../*RENAME*/[|restRENAME|] }: I) { +// [|restRENAME|]; // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff deleted file mode 100644 index 1a62e6c285..0000000000 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameRestBindingElement.baseline.jsonc.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.renameRestBindingElement.baseline.jsonc -+++ new.renameRestBindingElement.baseline.jsonc -@@= skipped -0, +0 lines =@@ - // === findRenameLocations === --// @providePrefixAndSuffixTextForRename: true -- - // === /renameRestBindingElement.ts === - // interface I { - // a: number; - // b: number; - // c: number; - // } --// function foo({ a, .../*RENAME*/[|restRENAME|] }: I) { --// [|restRENAME|]; -+// function foo(/*RENAME*/{ a, ...rest }: I) { -+// rest; - // } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc index b81b0642e4..39b62b900f 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc @@ -34,4 +34,4 @@ // return this; // } // this; -// const _ = { this: 0 }./*RENAME*/[|thisRENAME|]: 0 }.[|thisRENAME|]; \ No newline at end of file +// const _ = { [|thisRENAME|]: 0 }./*RENAME*/[|thisRENAME|]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff index 692a0371d1..7c1f424971 100644 --- a/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff +++ b/testdata/baselines/reference/submodule/fourslash/findRenameLocations/renameThis.baseline.jsonc.diff @@ -10,10 +10,4 @@ +// return /*RENAME*/this; // } // this; - // const _ = { this: 0 }.this; -@@= skipped -24, +24 lines =@@ - // return this; - // } - // this; --// const _ = { [|thisRENAME|]: 0 }./*RENAME*/[|thisRENAME|]; -+// const _ = { this: 0 }./*RENAME*/[|thisRENAME|]: 0 }.[|thisRENAME|]; \ No newline at end of file + // const _ = { this: 0 }.this; \ No newline at end of file From 0e15b6af72eed276080455e3c2915b3c82a4eea5 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Thu, 11 Sep 2025 10:12:56 -0700 Subject: [PATCH 17/18] refactor --- internal/fourslash/baselineutil.go | 5 ----- internal/fourslash/fourslash.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/fourslash/baselineutil.go b/internal/fourslash/baselineutil.go index 32f4c912f9..5511028e3b 100644 --- a/internal/fourslash/baselineutil.go +++ b/internal/fourslash/baselineutil.go @@ -40,12 +40,7 @@ func (f *FourslashTest) writeToBaseline(command string, content string) { b.WriteString(content) } -// !!! HERE func getBaselineFileName(t *testing.T, command string) string { - return "fourslash/" + command + "/" + getBaseFileNameFromTest(t) + "." + getBaselineExtension(command) -} - -func getSubmoduleBaselineFileName(t *testing.T, command string) string { return getBaseFileNameFromTest(t) + "." + getBaselineExtension(command) } diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 5f8425015d..a12a7a5390 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1661,6 +1661,6 @@ func (f *FourslashTest) getRangeText(r *RangeMarker) string { func (f *FourslashTest) verifyBaselines(t *testing.T) { for command, content := range f.baselines { - baseline.Run(t, getSubmoduleBaselineFileName(t, command), content.String(), getBaselineOptions(command)) + baseline.Run(t, getBaselineFileName(t, command), content.String(), getBaselineOptions(command)) } } From 7dccc626a9e2de7b7f33cc499de67ceca1df7528 Mon Sep 17 00:00:00 2001 From: Gabriela Araujo Britto Date: Thu, 11 Sep 2025 11:34:21 -0700 Subject: [PATCH 18/18] format --- internal/fourslash/_scripts/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fourslash/_scripts/tsconfig.json b/internal/fourslash/_scripts/tsconfig.json index 2f37a6d028..4ef7cf9083 100644 --- a/internal/fourslash/_scripts/tsconfig.json +++ b/internal/fourslash/_scripts/tsconfig.json @@ -4,6 +4,6 @@ "noEmit": true, "module": "nodenext", "allowImportingTsExtensions": true, - "noFallthroughCasesInSwitch": true, + "noFallthroughCasesInSwitch": true } }