diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index 61c070e771afc..85f8bd1118cc1 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -1416,6 +1416,8 @@ export class TestState { return fileBaselines.join("\n\n"); } + private static readonly nLinesContext = 4; + private getBaselineContentForFile( fileName: string, content: string, @@ -1433,7 +1435,8 @@ export class TestState { }: BaselineDocumentSpansWithFileContentsOptions, spanToContextId: Map, ) { - let newContent = `=== ${fileName} ===\n`; + let readableContents = `// === ${fileName} ===`; + let newContent = ""; interface Detail { location: number; locationMarker: string; @@ -1514,6 +1517,8 @@ export class TestState { } }); } + const lineStarts = ts.computeLineStarts(content); + let posLineInfo: { pos: number, line: number } | undefined; // Our preferred way to write marker is // /*MARKER*/[| some text |] // [| some /*MARKER*/ text |] @@ -1537,7 +1542,7 @@ export class TestState { // Defer writing marker position to deffered marker index if (deferredMarkerIndex !== undefined) return; } - newContent += content.slice(pos, location); + textWithContext(location, type); pos = location; // Prefix const prefix = detailPrefixes.get(detail); @@ -1587,8 +1592,36 @@ export class TestState { const suffix = detailSuffixes.get(detail); if (suffix) newContent += suffix; }); - newContent += content.slice(pos); - return readableJsoncBaseline(newContent); + textWithContext(/*location*/ undefined, /*type*/ undefined); + return readableContents + (newContent ? "\n" + readableJsoncBaseline(newContent) : ""); + + function textWithContext(location: number | undefined, type: Detail["type"]) { + if (!newContent && location === undefined) ts.Debug.fail("Unsupported"); + if (type !== "textEnd" && type !== "contextEnd") { + // Calculate pos to location number of lines + const posLine = posLineInfo?.pos === pos ? posLineInfo.line : ts.computeLineOfPosition(lineStarts, pos, posLineInfo?.line); + const locationLine = location !== undefined ? ts.computeLineOfPosition(lineStarts, location, posLine) : lineStarts.length - 1; + if (location !== undefined) posLineInfo = { pos: location, line: locationLine }; + let nLines = 0; + if (newContent) nLines += TestState.nLinesContext + 1; + if (location !== undefined) nLines += TestState.nLinesContext + 1; + // first nLinesContext and last nLinesContext + if (locationLine - posLine > nLines) { + if (newContent) { + readableContents = readableContents + "\n" + readableJsoncBaseline(newContent + content.slice(pos, lineStarts[posLine + TestState.nLinesContext]) + + `--- (line: ${posLine + TestState.nLinesContext + 1}) skipped ---`); + if (location !== undefined) readableContents += "\n"; + newContent = ""; + } + if (location !== undefined) { + newContent += `--- (line: ${locationLine - TestState.nLinesContext + 1}) skipped ---\n` + + content.slice(lineStarts[locationLine - TestState.nLinesContext + 1], location); + } + return; + } + } + newContent += content.slice(pos, location); + } } private assertObjectsEqual(fullActual: T, fullExpected: T, msgPrefix = ""): void { diff --git a/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc b/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc index a6e5caa0d21e1..dc8ebeae50c4c 100644 --- a/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc +++ b/tests/baselines/reference/cancellationWhenfindingAllRefsOnDefinition.baseline.jsonc @@ -1,8 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -24,9 +22,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // @@ -108,9 +104,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -132,9 +126,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // diff --git a/tests/baselines/reference/declarationMapGoToDefinition.baseline.jsonc b/tests/baselines/reference/declarationMapGoToDefinition.baseline.jsonc index 2afa99e7a17c2..42e68f0041e1b 100644 --- a/tests/baselines/reference/declarationMapGoToDefinition.baseline.jsonc +++ b/tests/baselines/reference/declarationMapGoToDefinition.baseline.jsonc @@ -6,14 +6,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /tests/cases/fourslash/server/mymodule.ts === // import * as mod from "./indexdef"; diff --git a/tests/baselines/reference/declarationMapsEnableMapping_NoInline.baseline.jsonc b/tests/baselines/reference/declarationMapsEnableMapping_NoInline.baseline.jsonc index 35b20e967b0f5..64365dbe372b5 100644 --- a/tests/baselines/reference/declarationMapsEnableMapping_NoInline.baseline.jsonc +++ b/tests/baselines/reference/declarationMapsEnableMapping_NoInline.baseline.jsonc @@ -6,14 +6,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -32,14 +25,7 @@ // === goToType === // === /index.ts === -// export class Foo { -// member: string; -// methodName(propName: SomeType): SomeType { return propName; } -// otherMethod() { -// if (Math.random() > 0.5) { -// return {x: 42}; -// } -// return {y: "yes"}; +// --- (line: 8) skipped --- // } // } // @@ -72,14 +58,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -106,14 +85,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; diff --git a/tests/baselines/reference/declarationMapsEnableMapping_NoInlineSources.baseline.jsonc b/tests/baselines/reference/declarationMapsEnableMapping_NoInlineSources.baseline.jsonc index 35b20e967b0f5..64365dbe372b5 100644 --- a/tests/baselines/reference/declarationMapsEnableMapping_NoInlineSources.baseline.jsonc +++ b/tests/baselines/reference/declarationMapsEnableMapping_NoInlineSources.baseline.jsonc @@ -6,14 +6,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -32,14 +25,7 @@ // === goToType === // === /index.ts === -// export class Foo { -// member: string; -// methodName(propName: SomeType): SomeType { return propName; } -// otherMethod() { -// if (Math.random() > 0.5) { -// return {x: 42}; -// } -// return {y: "yes"}; +// --- (line: 8) skipped --- // } // } // @@ -72,14 +58,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -106,14 +85,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; diff --git a/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping.baseline.jsonc b/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping.baseline.jsonc index 35b20e967b0f5..64365dbe372b5 100644 --- a/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping.baseline.jsonc +++ b/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping.baseline.jsonc @@ -6,14 +6,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -32,14 +25,7 @@ // === goToType === // === /index.ts === -// export class Foo { -// member: string; -// methodName(propName: SomeType): SomeType { return propName; } -// otherMethod() { -// if (Math.random() > 0.5) { -// return {x: 42}; -// } -// return {y: "yes"}; +// --- (line: 8) skipped --- // } // } // @@ -72,14 +58,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -106,14 +85,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; diff --git a/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping2.baseline.jsonc b/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping2.baseline.jsonc index 35b20e967b0f5..64365dbe372b5 100644 --- a/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping2.baseline.jsonc +++ b/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping2.baseline.jsonc @@ -6,14 +6,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -32,14 +25,7 @@ // === goToType === // === /index.ts === -// export class Foo { -// member: string; -// methodName(propName: SomeType): SomeType { return propName; } -// otherMethod() { -// if (Math.random() > 0.5) { -// return {x: 42}; -// } -// return {y: "yes"}; +// --- (line: 8) skipped --- // } // } // @@ -72,14 +58,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -106,14 +85,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; diff --git a/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping3.baseline.jsonc b/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping3.baseline.jsonc index 35b20e967b0f5..64365dbe372b5 100644 --- a/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping3.baseline.jsonc +++ b/tests/baselines/reference/declarationMapsGeneratedMapsEnableMapping3.baseline.jsonc @@ -6,14 +6,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -32,14 +25,7 @@ // === goToType === // === /index.ts === -// export class Foo { -// member: string; -// methodName(propName: SomeType): SomeType { return propName; } -// otherMethod() { -// if (Math.random() > 0.5) { -// return {x: 42}; -// } -// return {y: "yes"}; +// --- (line: 8) skipped --- // } // } // @@ -72,14 +58,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; @@ -106,14 +85,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /mymodule.ts === // import * as mod from "/dist/index"; diff --git a/tests/baselines/reference/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc b/tests/baselines/reference/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc index f13d6674b39f1..f28a0cb6a6173 100644 --- a/tests/baselines/reference/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc +++ b/tests/baselines/reference/declarationMapsGoToDefinitionRelativeSourceRoot.baseline.jsonc @@ -6,14 +6,7 @@ // otherMethod() { // if (Math.random() > 0.5) { // return {x: 42}; -// } -// return {y: "yes"}; -// } -// } -// -// export interface SomeType { -// member: number; -// } +// --- (line: 7) skipped --- // === /tests/cases/fourslash/server/mymodule.ts === // import * as mod from "./out/indexdef"; diff --git a/tests/baselines/reference/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc b/tests/baselines/reference/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc index 36ca3cb7ade8b..f1c2ac5a373a5 100644 --- a/tests/baselines/reference/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc +++ b/tests/baselines/reference/declarationMapsGoToDefinitionSameNameDifferentDirectory.baseline.jsonc @@ -4,9 +4,7 @@ // constructor(){ // return; // } -// /** this is a super var */ -// public myVar: boolean | 'yeah' = true; -// } +// --- (line: 5) skipped --- // === /tests/cases/fourslash/server/buttonClass/Source.ts === // // I cannot F12 navigate to Control @@ -15,13 +13,7 @@ // public myFunction() { // // I cannot F12 navigate to myVar // // vvvvv -// if (typeof this.myVar === 'boolean') { -// this.myVar; -// } else { -// this.myVar.toLocaleUpperCase(); -// } -// } -// } +// --- (line: 7) skipped --- // === Details === [ @@ -46,9 +38,7 @@ // } // === /tests/cases/fourslash/server/buttonClass/Source.ts === -// // I cannot F12 navigate to Control -// // vvvvvvv -// class Button extends Control { +// --- (line: 3) skipped --- // public myFunction() { // // I cannot F12 navigate to myVar // // vvvvv @@ -56,9 +46,7 @@ // this.myVar; // } else { // this.myVar.toLocaleUpperCase(); -// } -// } -// } +// --- (line: 11) skipped --- // === Details === [ diff --git a/tests/baselines/reference/documentHighlightAtInheritedProperties6.baseline.jsonc b/tests/baselines/reference/documentHighlightAtInheritedProperties6.baseline.jsonc index f91a7134daffe..a4cd6bcd876e2 100644 --- a/tests/baselines/reference/documentHighlightAtInheritedProperties6.baseline.jsonc +++ b/tests/baselines/reference/documentHighlightAtInheritedProperties6.baseline.jsonc @@ -5,13 +5,7 @@ // prop1: string; // } // -// class D extends C { -// prop0: string; -// prop1: string; -// } -// -// var d: D; -// d.prop1; +// --- (line: 6) skipped --- @@ -23,20 +17,13 @@ // } // // class D extends C { -// prop0: string; -// prop1: string; -// } -// -// var d: D; -// d.prop1; +// --- (line: 7) skipped --- // === documentHighlights === // === /tests/cases/fourslash/file1.ts === -// class C extends D { -// prop0: string; -// prop1: string; +// --- (line: 3) skipped --- // } // // class D extends C { @@ -51,10 +38,7 @@ // === documentHighlights === // === /tests/cases/fourslash/file1.ts === -// class C extends D { -// prop0: string; -// prop1: string; -// } +// --- (line: 4) skipped --- // // class D extends C { // prop0: string; @@ -68,10 +52,7 @@ // === documentHighlights === // === /tests/cases/fourslash/file1.ts === -// class C extends D { -// prop0: string; -// prop1: string; -// } +// --- (line: 4) skipped --- // // class D extends C { // prop0: string; diff --git a/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc b/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc index de21c1469831d..612cd3e3bbe04 100644 --- a/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc +++ b/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration1.baseline.jsonc @@ -10,11 +10,7 @@ // // let localPublic = publicParam; // this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- @@ -70,11 +66,7 @@ // // let localPublic = publicParam; // this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- @@ -90,11 +82,7 @@ // // let localPublic = publicParam; // this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- diff --git a/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc b/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc index e70a192ff17f7..a4b92164404b0 100644 --- a/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc +++ b/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration2.baseline.jsonc @@ -10,12 +10,7 @@ // this.privateParam += 10; // // let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- @@ -34,9 +29,7 @@ // this.publicParam += " Hello!"; // // let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 14) skipped --- @@ -73,12 +66,7 @@ // this.privateParam += 10; // // let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- @@ -97,9 +85,7 @@ // this.publicParam += " Hello!"; // // let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 14) skipped --- diff --git a/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc b/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc index ef62f61f1e4c6..7fd70db65886f 100644 --- a/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc +++ b/tests/baselines/reference/documentHighlightAtParameterPropertyDeclaration3.baseline.jsonc @@ -10,12 +10,7 @@ // this.privateParam += 10; // // let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- @@ -34,9 +29,7 @@ // this.publicParam += " Hello!"; // // let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 14) skipped --- @@ -73,12 +66,7 @@ // this.privateParam += 10; // // let localPublic = publicParam; -// this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- @@ -97,9 +85,7 @@ // this.publicParam += " Hello!"; // // let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 14) skipped --- diff --git a/tests/baselines/reference/documentHighlightInKeyword.baseline.jsonc b/tests/baselines/reference/documentHighlightInKeyword.baseline.jsonc index 43eb97ae986ef..d63825a768669 100644 --- a/tests/baselines/reference/documentHighlightInKeyword.baseline.jsonc +++ b/tests/baselines/reference/documentHighlightInKeyword.baseline.jsonc @@ -24,9 +24,7 @@ // === documentHighlights === // === /tests/cases/fourslash/documentHighlightInKeyword.ts === -// export type Foo = { -// [K in keyof T]: any; -// } +// --- (line: 3) skipped --- // // "a" in {}; // diff --git a/tests/baselines/reference/documentHighlightTemplateStrings.baseline.jsonc b/tests/baselines/reference/documentHighlightTemplateStrings.baseline.jsonc index 9994ec48239a1..77387986e149d 100644 --- a/tests/baselines/reference/documentHighlightTemplateStrings.baseline.jsonc +++ b/tests/baselines/reference/documentHighlightTemplateStrings.baseline.jsonc @@ -10,6 +10,4 @@ // return 1; // case "b": // return 2; -// } -// } -// } \ No newline at end of file +// --- (line: 11) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/documentHighlightsInvalidModifierLocations.baseline.jsonc b/tests/baselines/reference/documentHighlightsInvalidModifierLocations.baseline.jsonc index 1dc76a9c9a553..62694d0bf33f9 100644 --- a/tests/baselines/reference/documentHighlightsInvalidModifierLocations.baseline.jsonc +++ b/tests/baselines/reference/documentHighlightsInvalidModifierLocations.baseline.jsonc @@ -5,10 +5,7 @@ // } // function f(readonly p) {} // -// class D { -// m(public p) {} -// } -// function g(public p) {} +// --- (line: 6) skipped --- @@ -28,9 +25,7 @@ // === documentHighlights === // === /tests/cases/fourslash/documentHighlightsInvalidModifierLocations.ts === -// class C { -// m(readonly p) {} -// } +// --- (line: 3) skipped --- // function f(readonly p) {} // // class D { @@ -42,11 +37,7 @@ // === documentHighlights === // === /tests/cases/fourslash/documentHighlightsInvalidModifierLocations.ts === -// class C { -// m(readonly p) {} -// } -// function f(readonly p) {} -// +// --- (line: 5) skipped --- // class D { // m(public p) {} // } diff --git a/tests/baselines/reference/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc b/tests/baselines/reference/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc index c492ad835fe23..ee5f6e0454123 100644 --- a/tests/baselines/reference/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc +++ b/tests/baselines/reference/findAllReferencesJsOverloadedFunctionParameter.baseline.jsonc @@ -1,11 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/foo.js === -// /** -// * @overload -// * @param {number} x -// * @returns {number} -// * -// * @overload +// --- (line: 6) skipped --- // * @param {string} x // * @returns {string} // * @@ -18,15 +13,7 @@ // === Definitions === // === /tests/cases/fourslash/foo.js === - // /** - // * @overload - // * @param {number} x - // * @returns {number} - // * - // * @overload - // * @param {string} x - // * @returns {string} - // * + // --- (line: 9) skipped --- // * @param {unknown} x // * @returns {unknown} // */ diff --git a/tests/baselines/reference/findAllReferencesLinkTag1.baseline.jsonc b/tests/baselines/reference/findAllReferencesLinkTag1.baseline.jsonc index 4e48274a0b2bd..c3029a3166971 100644 --- a/tests/baselines/reference/findAllReferencesLinkTag1.baseline.jsonc +++ b/tests/baselines/reference/findAllReferencesLinkTag1.baseline.jsonc @@ -16,53 +16,7 @@ // */ // 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() { } -// } -// -// interface I { -// a() -// b: 1 -// /** -// * {@link a} -// * @see {a} -// * {@link I.a} -// * @see {I.a} -// * {@link I#a} -// * @see {I#a} -// */ -// c() -// /** -// * {@link b} -// * @see {b} -// * {@link I.b} -// * @see {I.b} -// */ -// d() -// } -// -// function nestor() { -// /** {@link r2} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2() { } -// } +// --- (line: 17) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === @@ -71,64 +25,7 @@ // 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() { } - // } - // - // interface I { - // a() - // b: 1 - // /** - // * {@link a} - // * @see {a} - // * {@link I.a} - // * @see {I.a} - // * {@link I#a} - // * @see {I#a} - // */ - // c() - // /** - // * {@link b} - // * @see {b} - // * {@link I.b} - // * @see {I.b} - // */ - // d() - // } - // - // function nestor() { - // /** {@link r2} */ - // function ref() { } - // /** @see {r2} */ - // function d3() { } - // function r2() { } - // } + // --- (line: 6) skipped --- // === Details === [ @@ -200,13 +97,9 @@ // 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} +// --- (line: 7) skipped --- + +// --- (line: 13) skipped --- // */ // p() { } // /** @@ -221,42 +114,7 @@ // */ // q() { } // /** -// * {@link s} -// * @see {s} -// * {@link C.s} -// * @see {C.s} -// */ -// r() { } -// } -// -// interface I { -// a() -// b: 1 -// /** -// * {@link a} -// * @see {a} -// * {@link I.a} -// * @see {I.a} -// * {@link I#a} -// * @see {I#a} -// */ -// c() -// /** -// * {@link b} -// * @see {b} -// * {@link I.b} -// * @see {I.b} -// */ -// d() -// } -// -// function nestor() { -// /** {@link r2} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2() { } -// } +// --- (line: 28) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === @@ -266,63 +124,7 @@ // 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() { } - // } - // - // interface I { - // a() - // b: 1 - // /** - // * {@link a} - // * @see {a} - // * {@link I.a} - // * @see {I.a} - // * {@link I#a} - // * @see {I#a} - // */ - // c() - // /** - // * {@link b} - // * @see {b} - // * {@link I.b} - // * @see {I.b} - // */ - // d() - // } - // - // function nestor() { - // /** {@link r2} */ - // function ref() { } - // /** @see {r2} */ - // function d3() { } - // function r2() { } - // } + // --- (line: 7) skipped --- // === Details === [ @@ -387,23 +189,9 @@ // /** // * {@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} +// --- (line: 8) skipped --- + +// --- (line: 24) skipped --- // */ // q() { } // /** @@ -414,35 +202,7 @@ // */ // r() { } // } -// -// interface I { -// a() -// b: 1 -// /** -// * {@link a} -// * @see {a} -// * {@link I.a} -// * @see {I.a} -// * {@link I#a} -// * @see {I#a} -// */ -// c() -// /** -// * {@link b} -// * @see {b} -// * {@link I.b} -// * @see {I.b} -// */ -// d() -// } -// -// function nestor() { -// /** {@link r2} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2() { } -// } +// --- (line: 35) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === @@ -453,62 +213,7 @@ // /** // * {@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() { } - // } - // - // interface I { - // a() - // b: 1 - // /** - // * {@link a} - // * @see {a} - // * {@link I.a} - // * @see {I.a} - // * {@link I#a} - // * @see {I#a} - // */ - // c() - // /** - // * {@link b} - // * @see {b} - // * {@link I.b} - // * @see {I.b} - // */ - // d() - // } - // - // function nestor() { - // /** {@link r2} */ - // function ref() { } - // /** @see {r2} */ - // function d3() { } - // function r2() { } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -574,39 +279,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === -// class 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: 33) skipped --- // } // // interface I { @@ -622,57 +295,11 @@ // */ // c() // /** -// * {@link b} -// * @see {b} -// * {@link I.b} -// * @see {I.b} -// */ -// d() -// } -// -// function nestor() { -// /** {@link r2} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2() { } -// } +// --- (line: 49) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === - // class 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: 33) skipped --- // } // // interface I { @@ -680,29 +307,7 @@ // b: 1 // /** // * {@link a} - // * @see {a} - // * {@link I.a} - // * @see {I.a} - // * {@link I#a} - // * @see {I#a} - // */ - // c() - // /** - // * {@link b} - // * @see {b} - // * {@link I.b} - // * @see {I.b} - // */ - // d() - // } - // - // function nestor() { - // /** {@link r2} */ - // function ref() { } - // /** @see {r2} */ - // function d3() { } - // function r2() { } - // } + // --- (line: 41) skipped --- // === Details === [ @@ -766,42 +371,9 @@ -// === findAllReferences === -// === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === -// class 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() { } -// } +// === findAllReferences === +// === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === +// --- (line: 34) skipped --- // // interface I { // a() @@ -809,10 +381,9 @@ // /** // * {@link a} // * @see {a} -// * {@link I.a} -// * @see {I.a} -// * {@link I#a} -// * @see {I#a} +// --- (line: 42) skipped --- + +// --- (line: 45) skipped --- // */ // c() // /** @@ -823,51 +394,11 @@ // */ // d() // } -// -// function nestor() { -// /** {@link r2} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2() { } -// } +// --- (line: 56) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === - // class 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 --- // // interface I { // a() @@ -875,28 +406,7 @@ // /** // * {@link a} // * @see {a} - // * {@link I.a} - // * @see {I.a} - // * {@link I#a} - // * @see {I#a} - // */ - // c() - // /** - // * {@link b} - // * @see {b} - // * {@link I.b} - // * @see {I.b} - // */ - // d() - // } - // - // function nestor() { - // /** {@link r2} */ - // function ref() { } - // /** @see {r2} */ - // function d3() { } - // function r2() { } - // } + // --- (line: 42) skipped --- // === Details === [ @@ -954,60 +464,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === -// class 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() { } -// } -// -// interface I { -// a() -// b: 1 -// /** -// * {@link a} -// * @see {a} -// * {@link I.a} -// * @see {I.a} -// * {@link I#a} -// * @see {I#a} -// */ -// c() -// /** -// * {@link b} -// * @see {b} -// * {@link I.b} -// * @see {I.b} -// */ -// d() +// --- (line: 54) skipped --- // } // // function nestor() { @@ -1020,64 +477,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === - // class 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() { } - // } - // - // interface I { - // a() - // b: 1 - // /** - // * {@link a} - // * @see {a} - // * {@link I.a} - // * @see {I.a} - // * {@link I#a} - // * @see {I#a} - // */ - // c() - // /** - // * {@link b} - // * @see {b} - // * {@link I.b} - // * @see {I.b} - // */ - // d() - // } - // - // function nestor() { - // /** {@link r2} */ + // --- (line: 58) skipped --- // function ref() { } // /** @see {r2} */ // function d3() { } @@ -1177,32 +577,7 @@ // // interface I { // a() -// b: 1 -// /** -// * {@link a} -// * @see {a} -// * {@link I.a} -// * @see {I.a} -// * {@link I#a} -// * @see {I#a} -// */ -// c() -// /** -// * {@link b} -// * @see {b} -// * {@link I.b} -// * @see {I.b} -// */ -// d() -// } -// -// function nestor() { -// /** {@link r2} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2() { } -// } +// --- (line: 38) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === @@ -1243,32 +618,7 @@ // // interface I { // a() - // b: 1 - // /** - // * {@link a} - // * @see {a} - // * {@link I.a} - // * @see {I.a} - // * {@link I#a} - // * @see {I#a} - // */ - // c() - // /** - // * {@link b} - // * @see {b} - // * {@link I.b} - // * @see {I.b} - // */ - // d() - // } - // - // function nestor() { - // /** {@link r2} */ - // function ref() { } - // /** @see {r2} */ - // function d3() { } - // function r2() { } - // } + // --- (line: 38) skipped --- // === Details === [ @@ -1298,38 +648,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === -// class 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} -// */ +// --- (line: 32) skipped --- // r() { } // } // @@ -1356,46 +675,11 @@ // // function nestor() { // /** {@link r2} */ -// function ref() { } -// /** @see {r2} */ -// function d3() { } -// function r2() { } -// } +// --- (line: 59) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag1.ts === - // class 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} - // */ + // --- (line: 32) skipped --- // r() { } // } // @@ -1422,11 +706,7 @@ // // function nestor() { // /** {@link r2} */ - // function ref() { } - // /** @see {r2} */ - // function d3() { } - // function r2() { } - // } + // --- (line: 59) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllReferencesLinkTag2.baseline.jsonc b/tests/baselines/reference/findAllReferencesLinkTag2.baseline.jsonc index 87aa64c4e5da9..b7eb566e4b741 100644 --- a/tests/baselines/reference/findAllReferencesLinkTag2.baseline.jsonc +++ b/tests/baselines/reference/findAllReferencesLinkTag2.baseline.jsonc @@ -13,19 +13,7 @@ // * @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() { } +// --- (line: 14) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag2.ts === @@ -38,23 +26,7 @@ // } // /** // * @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() { } + // --- (line: 10) skipped --- // === Details === [ @@ -164,25 +136,7 @@ // } // 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() { } + // --- (line: 8) skipped --- // === Details === [ @@ -285,24 +239,7 @@ // 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() { } + // --- (line: 9) skipped --- // === Details === [ @@ -415,22 +352,7 @@ // /** // * @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() { } + // --- (line: 11) skipped --- // === Details === [ @@ -472,11 +394,9 @@ // export class Consider { // This = class { // show() { } -// } -// m() { } -// } -// /** -// * @see {Consider.prototype.m} +// --- (line: 5) skipped --- + +// --- (line: 9) skipped --- // * {@link Consider#m} // * @see {Consider#This#show} // * {@link Consider.This.show} @@ -519,10 +439,7 @@ // /** // * {@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() { } + // --- (line: 23) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllReferencesLinkTag3.baseline.jsonc b/tests/baselines/reference/findAllReferencesLinkTag3.baseline.jsonc index 9c639d7a2f440..6f1e9b0a4c903 100644 --- a/tests/baselines/reference/findAllReferencesLinkTag3.baseline.jsonc +++ b/tests/baselines/reference/findAllReferencesLinkTag3.baseline.jsonc @@ -13,19 +13,7 @@ // * {@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() { } +// --- (line: 14) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllReferencesLinkTag3.ts === @@ -38,23 +26,7 @@ // } // /** // * {@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() { } + // --- (line: 10) skipped --- // === Details === [ @@ -164,25 +136,7 @@ // } // 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() { } + // --- (line: 8) skipped --- // === Details === [ @@ -285,24 +239,7 @@ // 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() { } + // --- (line: 9) skipped --- // === Details === [ @@ -415,22 +352,7 @@ // /** // * {@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() { } + // --- (line: 11) skipped --- // === Details === [ @@ -472,11 +394,9 @@ // export class Consider { // This = class { // show() { } -// } -// m() { } -// } -// /** -// * {@linkcode Consider.prototype.m} +// --- (line: 5) skipped --- + +// --- (line: 9) skipped --- // * {@linkplain Consider#m} // * {@linkcode Consider#This#show} // * {@linkplain Consider.This.show} @@ -519,10 +439,7 @@ // /** // * {@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() { } + // --- (line: 23) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllReferencesOfConstructor.baseline.jsonc b/tests/baselines/reference/findAllReferencesOfConstructor.baseline.jsonc index 708648bf98ed8..4037d49c51844 100644 --- a/tests/baselines/reference/findAllReferencesOfConstructor.baseline.jsonc +++ b/tests/baselines/reference/findAllReferencesOfConstructor.baseline.jsonc @@ -30,10 +30,7 @@ // super.method(); // } // method() { super(); } -// } -// class E implements C { -// constructor() { super(); } -// } +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/a.ts === @@ -59,13 +56,7 @@ // class D extends C { // constructor() { // super(); - // super.method(); - // } - // method() { super(); } - // } - // class E implements C { - // constructor() { super(); } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -232,10 +223,7 @@ // super.method(); // } // method() { super(); } -// } -// class E implements C { -// constructor() { super(); } -// } +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/a.ts === @@ -261,13 +249,7 @@ // class D extends C { // constructor() { // super(); - // super.method(); - // } - // method() { super(); } - // } - // class E implements C { - // constructor() { super(); } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -434,10 +416,7 @@ // super.method(); // } // method() { super(); } -// } -// class E implements C { -// constructor() { super(); } -// } +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/a.ts === @@ -463,13 +442,7 @@ // class D extends C { // constructor() { // super(); - // super.method(); - // } - // method() { super(); } - // } - // class E implements C { - // constructor() { super(); } - // } + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsClassStaticBlocks.baseline.jsonc b/tests/baselines/reference/findAllRefsClassStaticBlocks.baseline.jsonc index 2cc95bda59feb..8e27617238bff 100644 --- a/tests/baselines/reference/findAllRefsClassStaticBlocks.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsClassStaticBlocks.baseline.jsonc @@ -80,9 +80,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsClassStaticBlocks.ts === -// class ClassStaticBocks { -// static x; -// static {} +// --- (line: 3) skipped --- // static y; // static {} // static y; @@ -91,9 +89,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsClassStaticBlocks.ts === - // class ClassStaticBocks { - // static x; - // static {} + // --- (line: 3) skipped --- // static y; // static {} // static y; diff --git a/tests/baselines/reference/findAllRefsClassWithStaticThisAccess.baseline.jsonc b/tests/baselines/reference/findAllRefsClassWithStaticThisAccess.baseline.jsonc index 37bb3ca3f06fb..e77c5a8cec786 100644 --- a/tests/baselines/reference/findAllRefsClassWithStaticThisAccess.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsClassWithStaticThisAccess.baseline.jsonc @@ -74,11 +74,7 @@ // } // static get f() { // return this; - // - // function inner() { this; } - // class Inner { x = this; } - // } - // } + // --- (line: 7) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsForDefaultExport02.baseline.jsonc b/tests/baselines/reference/findAllRefsForDefaultExport02.baseline.jsonc index a3f81ae3f2028..c48bed0df7c8b 100644 --- a/tests/baselines/reference/findAllRefsForDefaultExport02.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForDefaultExport02.baseline.jsonc @@ -19,10 +19,7 @@ // // var x: typeof DefaultExportedFunction; // - // var y = DefaultExportedFunction(); - // - // namespace DefaultExportedFunction { - // } + // --- (line: 7) skipped --- // === Details === [ @@ -119,10 +116,7 @@ // // var x: typeof DefaultExportedFunction; // - // var y = DefaultExportedFunction(); - // - // namespace DefaultExportedFunction { - // } + // --- (line: 7) skipped --- // === Details === [ @@ -219,10 +213,7 @@ // // var x: typeof DefaultExportedFunction; // - // var y = DefaultExportedFunction(); - // - // namespace DefaultExportedFunction { - // } + // --- (line: 7) skipped --- // === Details === [ @@ -500,11 +491,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForDefaultExport02.ts === -// export default function DefaultExportedFunction() { -// return DefaultExportedFunction; -// } -// -// var x: typeof DefaultExportedFunction; +// --- (line: 5) skipped --- // // var y = DefaultExportedFunction(); // @@ -552,11 +539,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForDefaultExport02.ts === -// export default function DefaultExportedFunction() { -// return DefaultExportedFunction; -// } -// -// var x: typeof DefaultExportedFunction; +// --- (line: 5) skipped --- // // var y = DefaultExportedFunction(); // diff --git a/tests/baselines/reference/findAllRefsForDefaultExport03.baseline.jsonc b/tests/baselines/reference/findAllRefsForDefaultExport03.baseline.jsonc index 40c33fa2a5c9e..5f4f5ea34bee5 100644 --- a/tests/baselines/reference/findAllRefsForDefaultExport03.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForDefaultExport03.baseline.jsonc @@ -22,13 +22,7 @@ // // export default f; // - // var x: typeof f; - // - // var y = f(); - // - // namespace f { - // var local = 100; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -116,13 +110,7 @@ // // export default f; // - // var x: typeof f; - // - // var y = f(); - // - // namespace f { - // var local = 100; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -212,11 +200,7 @@ // // var x: typeof f; // - // var y = f(); - // - // namespace f { - // var local = 100; - // } + // --- (line: 9) skipped --- // === Details === [ @@ -306,11 +290,7 @@ // // var x: typeof f; // - // var y = f(); - // - // namespace f { - // var local = 100; - // } + // --- (line: 9) skipped --- // === Details === [ @@ -402,9 +382,7 @@ // // var y = f(); // - // namespace f { - // var local = 100; - // } + // --- (line: 11) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsForDefaultExport08.baseline.jsonc b/tests/baselines/reference/findAllRefsForDefaultExport08.baseline.jsonc index b604361c04d41..6517a020c918d 100644 --- a/tests/baselines/reference/findAllRefsForDefaultExport08.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForDefaultExport08.baseline.jsonc @@ -1,9 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForDefaultExport08.ts === -// export default class DefaultExportedClass { -// } -// -// var x: DefaultExportedClass; +// --- (line: 4) skipped --- // // var y = new DefaultExportedClass; // diff --git a/tests/baselines/reference/findAllRefsForDefaultExport09.baseline.jsonc b/tests/baselines/reference/findAllRefsForDefaultExport09.baseline.jsonc index f06a5eef94203..d282b90c31ef5 100644 --- a/tests/baselines/reference/findAllRefsForDefaultExport09.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForDefaultExport09.baseline.jsonc @@ -4,11 +4,7 @@ // import aDefault from "./a.js" // import * as b from "./b.js" // import bDefault from "./b.js" -// -// import * as c from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import dDefault from "./d" +// --- (line: 5) skipped --- // === Definitions === // === /foo.ts === @@ -16,11 +12,7 @@ // import aDefault from "./a.js" // import * as b from "./b.js" // import bDefault from "./b.js" - // - // import * as c from "./c" - // import cDefault from "./c" - // import * as d from "./d" - // import dDefault from "./d" + // --- (line: 5) skipped --- // === Details === [ @@ -55,10 +47,7 @@ // import * as b from "./b.js" // import bDefault from "./b.js" // -// import * as c from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import dDefault from "./d" +// --- (line: 6) skipped --- // === Definitions === // === /foo.ts === @@ -67,10 +56,7 @@ // import * as b from "./b.js" // import bDefault from "./b.js" // - // import * as c from "./c" - // import cDefault from "./c" - // import * as d from "./d" - // import dDefault from "./d" + // --- (line: 6) skipped --- // === Details === [ @@ -106,9 +92,7 @@ // import bDefault from "./b.js" // // import * as c from "./c" -// import cDefault from "./c" -// import * as d from "./d" -// import dDefault from "./d" +// --- (line: 7) skipped --- // === Definitions === // === /foo.ts === @@ -118,9 +102,7 @@ // import bDefault from "./b.js" // // import * as c from "./c" - // import cDefault from "./c" - // import * as d from "./d" - // import dDefault from "./d" + // --- (line: 7) skipped --- // === Details === [ @@ -250,9 +232,7 @@ // === findAllReferences === // === /foo.ts === -// import * as a from "./a.js" -// import aDefault from "./a.js" -// import * as b from "./b.js" +// --- (line: 3) skipped --- // import bDefault from "./b.js" // // import * as c from "./c" @@ -262,9 +242,7 @@ // === Definitions === // === /foo.ts === - // import * as a from "./a.js" - // import aDefault from "./a.js" - // import * as b from "./b.js" + // --- (line: 3) skipped --- // import bDefault from "./b.js" // // import * as c from "./c" @@ -300,10 +278,7 @@ // === 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" +// --- (line: 4) skipped --- // // import * as c from "./c" // import cDefault from "./c" @@ -312,10 +287,7 @@ // === Definitions === // === /foo.ts === - // import * as a from "./a.js" - // import aDefault from "./a.js" - // import * as b from "./b.js" - // import bDefault from "./b.js" + // --- (line: 4) skipped --- // // import * as c from "./c" // import cDefault from "./c" @@ -350,11 +322,7 @@ // === 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" -// +// --- (line: 5) skipped --- // import * as c from "./c" // import cDefault from "./c" // import * as d from "./d" @@ -362,11 +330,7 @@ // === Definitions === // === /foo.ts === - // import * as a from "./a.js" - // import aDefault from "./a.js" - // import * as b from "./b.js" - // import bDefault from "./b.js" - // + // --- (line: 5) skipped --- // import * as c from "./c" // import cDefault from "./c" // import * as d from "./d" diff --git a/tests/baselines/reference/findAllRefsForDefaultKeyword.baseline.jsonc b/tests/baselines/reference/findAllRefsForDefaultKeyword.baseline.jsonc index 7c6c8c88bbd62..3c4487a2a944a 100644 --- a/tests/baselines/reference/findAllRefsForDefaultKeyword.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForDefaultKeyword.baseline.jsonc @@ -4,13 +4,7 @@ // // const default = 1; // -// function default() {} -// -// class default {} -// -// const foo = { -// default: 1 -// } +// --- (line: 5) skipped --- @@ -22,11 +16,7 @@ // // function default() {} // -// class default {} -// -// const foo = { -// default: 1 -// } +// --- (line: 7) skipped --- @@ -40,17 +30,13 @@ // // class default {} // -// const foo = { -// default: 1 -// } +// --- (line: 9) skipped --- // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForDefaultKeyword.ts === -// function f(value: string, default: string) {} -// -// const default = 1; +// --- (line: 3) skipped --- // // function default() {} // @@ -64,12 +50,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForDefaultKeyword.ts === -// function f(value: string, default: string) {} -// -// const default = 1; -// -// function default() {} -// +// --- (line: 6) skipped --- // class default {} // // const foo = { @@ -78,12 +59,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsForDefaultKeyword.ts === - // function f(value: string, default: string) {} - // - // const default = 1; - // - // function default() {} - // + // --- (line: 6) skipped --- // class default {} // // const foo = { diff --git a/tests/baselines/reference/findAllRefsForObjectLiteralProperties.baseline.jsonc b/tests/baselines/reference/findAllRefsForObjectLiteralProperties.baseline.jsonc index 81acdd6790346..6e1fe2d8ad6c4 100644 --- a/tests/baselines/reference/findAllRefsForObjectLiteralProperties.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForObjectLiteralProperties.baseline.jsonc @@ -140,9 +140,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForObjectLiteralProperties.ts === -// var x = { -// property: {} -// }; +// --- (line: 3) skipped --- // // x.property; // diff --git a/tests/baselines/reference/findAllRefsForObjectSpread.baseline.jsonc b/tests/baselines/reference/findAllRefsForObjectSpread.baseline.jsonc index 239e6e66391d1..74284070faa79 100644 --- a/tests/baselines/reference/findAllRefsForObjectSpread.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForObjectSpread.baseline.jsonc @@ -14,9 +14,7 @@ // interface A2 { a?: number }; // let a1: A1; // let a2: A2; - // let a12 = { ...a1, ...a2 }; - // a12.a; - // a1.a; + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc b/tests/baselines/reference/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc index 951939f3d1570..7ac717d94980f 100644 --- a/tests/baselines/reference/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForStaticInstanceMethodInheritance.baseline.jsonc @@ -38,13 +38,7 @@ // } // // const x = new X(); - // const y = new Y(); - // const z = new Z(); - // x.foo(); - // y.foo(); - // z.foo(); - // Y.foo(); - // Z.foo(); + // --- (line: 15) skipped --- // === Details === [ @@ -177,13 +171,9 @@ // } // // class Z extends Y{ -// static foo(): void{} -// foo(): void{} -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); +// --- (line: 10) skipped --- + +// --- (line: 16) skipped --- // x.foo(); // y.foo(); // z.foo(); @@ -201,18 +191,7 @@ // } // // 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(); + // --- (line: 10) skipped --- // === Details === [ @@ -278,12 +257,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForStaticInstanceMethodInheritance.ts === -// class X{ -// foo(): void{} -// } -// -// class Y extends X{ -// static foo(): void{} +// --- (line: 6) skipped --- // } // // class Z extends Y{ @@ -291,10 +265,9 @@ // foo(): void{} // } // -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.foo(); +// --- (line: 14) skipped --- + +// --- (line: 17) skipped --- // y.foo(); // z.foo(); // Y.foo(); @@ -302,12 +275,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsForStaticInstanceMethodInheritance.ts === - // class X{ - // foo(): void{} - // } - // - // class Y extends X{ - // static foo(): void{} + // --- (line: 6) skipped --- // } // // class Z extends Y{ @@ -315,14 +283,7 @@ // foo(): void{} // } // - // const x = new X(); - // const y = new Y(); - // const z = new Z(); - // x.foo(); - // y.foo(); - // z.foo(); - // Y.foo(); - // Z.foo(); + // --- (line: 14) skipped --- // === Details === [ @@ -426,13 +387,7 @@ // } // // const x = new X(); - // const y = new Y(); - // const z = new Z(); - // x.foo(); - // y.foo(); - // z.foo(); - // Y.foo(); - // Z.foo(); + // --- (line: 15) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc b/tests/baselines/reference/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc index 6f85a33100445..87de7876b0dc5 100644 --- a/tests/baselines/reference/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForStaticInstancePropertyInheritance.baseline.jsonc @@ -38,13 +38,7 @@ // } // // const x = new X(); - // const y = new Y(); - // const z = new Z(); - // x.foo; - // y.foo; - // z.foo; - // Y.foo; - // Z.foo; + // --- (line: 15) skipped --- // === Details === [ @@ -161,13 +155,9 @@ // } // // class Z extends Y{ -// static foo:any -// foo:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); +// --- (line: 10) skipped --- + +// --- (line: 16) skipped --- // x.foo; // y.foo; // z.foo; @@ -185,18 +175,7 @@ // } // // 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; + // --- (line: 10) skipped --- // === Details === [ @@ -254,12 +233,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// foo:any -// } -// -// class Y extends X{ -// static foo:any +// --- (line: 6) skipped --- // } // // class Z extends Y{ @@ -267,10 +241,9 @@ // foo:any // } // -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.foo; +// --- (line: 14) skipped --- + +// --- (line: 17) skipped --- // y.foo; // z.foo; // Y.foo; @@ -278,12 +251,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ - // foo:any - // } - // - // class Y extends X{ - // static foo:any + // --- (line: 6) skipped --- // } // // class Z extends Y{ @@ -291,14 +259,7 @@ // foo:any // } // - // const x = new X(); - // const y = new Y(); - // const z = new Z(); - // x.foo; - // y.foo; - // z.foo; - // Y.foo; - // Z.foo; + // --- (line: 14) skipped --- // === Details === [ @@ -394,13 +355,7 @@ // } // // const x = new X(); - // const y = new Y(); - // const z = new Z(); - // x.foo; - // y.foo; - // z.foo; - // Y.foo; - // Z.foo; + // --- (line: 15) skipped --- // === Details === [ @@ -973,13 +928,9 @@ // } // // class Z extends Y{ -// static foo:any -// foo:any -// } -// -// const x = new X(); -// const y = new Y(); -// const z = new Z(); +// --- (line: 10) skipped --- + +// --- (line: 16) skipped --- // x.foo; // y.foo; // z.foo; @@ -997,13 +948,9 @@ // } // // class Z extends Y{ - // static foo:any - // foo:any - // } - // - // const x = new X(); - // const y = new Y(); - // const z = new Z(); + // --- (line: 10) skipped --- + + // --- (line: 16) skipped --- // x.foo; // y.foo; // z.foo; @@ -1066,12 +1013,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsForStaticInstancePropertyInheritance.ts === -// class X{ -// foo:any -// } -// -// class Y extends X{ -// static foo:any +// --- (line: 6) skipped --- // } // // class Z extends Y{ @@ -1079,10 +1021,9 @@ // foo:any // } // -// const x = new X(); -// const y = new Y(); -// const z = new Z(); -// x.foo; +// --- (line: 14) skipped --- + +// --- (line: 17) skipped --- // y.foo; // z.foo; // Y.foo; @@ -1090,12 +1031,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsForStaticInstancePropertyInheritance.ts === - // class X{ - // foo:any - // } - // - // class Y extends X{ - // static foo:any + // --- (line: 6) skipped --- // } // // class Z extends Y{ @@ -1103,10 +1039,9 @@ // foo:any // } // - // const x = new X(); - // const y = new Y(); - // const z = new Z(); - // x.foo; + // --- (line: 14) skipped --- + + // --- (line: 17) skipped --- // y.foo; // z.foo; // Y.foo; diff --git a/tests/baselines/reference/findAllRefsForStringLiteral.baseline.jsonc b/tests/baselines/reference/findAllRefsForStringLiteral.baseline.jsonc index 53247f721aafc..50c2b5298b565 100644 --- a/tests/baselines/reference/findAllRefsForStringLiteral.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsForStringLiteral.baseline.jsonc @@ -17,10 +17,7 @@ // } // /** // * @type {{ property: "foo"}} - // */ - // const obj: Foo = { - // property: "foo", - // } + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsIndexedAccessTypes.baseline.jsonc b/tests/baselines/reference/findAllRefsIndexedAccessTypes.baseline.jsonc index 5ffc5300aaca4..f41ee63fc2811 100644 --- a/tests/baselines/reference/findAllRefsIndexedAccessTypes.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsIndexedAccessTypes.baseline.jsonc @@ -16,9 +16,7 @@ // s: string; // } // interface J { - // a: I[0], - // b: I["s"], - // } + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsInheritedProperties1.baseline.jsonc b/tests/baselines/reference/findAllRefsInheritedProperties1.baseline.jsonc index faf714d5aa07f..ab7aeda52c4bb 100644 --- a/tests/baselines/reference/findAllRefsInheritedProperties1.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsInheritedProperties1.baseline.jsonc @@ -16,9 +16,7 @@ // propName: string; // } // - // var v: class1; - // v.doStuff(); - // v.propName; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsInheritedProperties2.baseline.jsonc b/tests/baselines/reference/findAllRefsInheritedProperties2.baseline.jsonc index 99b598b46e776..9709d41c423b9 100644 --- a/tests/baselines/reference/findAllRefsInheritedProperties2.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsInheritedProperties2.baseline.jsonc @@ -16,9 +16,7 @@ // propName: string; // r1 // } // - // var v: interface1; - // v.doStuff(); // r2 - // v.propName; // r3 + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsInheritedProperties3.baseline.jsonc b/tests/baselines/reference/findAllRefsInheritedProperties3.baseline.jsonc index 34f98d19cfc64..9df01e0cbe8f7 100644 --- a/tests/baselines/reference/findAllRefsInheritedProperties3.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsInheritedProperties3.baseline.jsonc @@ -32,9 +32,7 @@ // propName: string; // } // - // var v: class2; - // v.doStuff(); - // v.propName; + // --- (line: 14) skipped --- // === Details === [ @@ -332,9 +330,7 @@ // propName: string; // } // - // var v: class2; - // v.doStuff(); - // v.propName; + // --- (line: 14) skipped --- // === Details === [ @@ -458,9 +454,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts === -// class class1 extends class1 { -// doStuff() { } -// propName: string; +// --- (line: 3) skipped --- // } // interface interface1 extends interface1 { // doStuff(): void; @@ -477,9 +471,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts === - // class class1 extends class1 { - // doStuff() { } - // propName: string; + // --- (line: 3) skipped --- // } // interface interface1 extends interface1 { // doStuff(): void; @@ -632,9 +624,7 @@ // propName: string; // } // - // var v: class2; - // v.doStuff(); - // v.propName; + // --- (line: 14) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsInheritedProperties4.baseline.jsonc b/tests/baselines/reference/findAllRefsInheritedProperties4.baseline.jsonc index e73ecc81db9e2..7016c7101a5c7 100644 --- a/tests/baselines/reference/findAllRefsInheritedProperties4.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsInheritedProperties4.baseline.jsonc @@ -408,12 +408,7 @@ // } // // interface D extends C { -// prop0: string; -// } -// -// var d: D; -// d.prop0; -// d.prop1; +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsInheritedProperties4.ts === @@ -423,12 +418,7 @@ // } // // interface D extends C { - // prop0: string; - // } - // - // var d: D; - // d.prop0; - // d.prop1; + // --- (line: 7) skipped --- // === Details === [ @@ -486,14 +476,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsInheritedProperties4.ts === -// interface C extends D { -// prop0: string; -// prop1: number; -// } -// -// interface D extends C { -// prop0: string; -// } +// --- (line: 8) skipped --- // // var d: D; // d.prop0; diff --git a/tests/baselines/reference/findAllRefsInheritedProperties5.baseline.jsonc b/tests/baselines/reference/findAllRefsInheritedProperties5.baseline.jsonc index 76e16265c09ba..218baa55a9453 100644 --- a/tests/baselines/reference/findAllRefsInheritedProperties5.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsInheritedProperties5.baseline.jsonc @@ -5,13 +5,7 @@ // prop1: number; // } // -// class D extends C { -// prop0: string; -// } -// -// var d: D; -// d.prop0; -// d.prop1; +// --- (line: 6) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsInheritedProperties5.ts === @@ -20,13 +14,7 @@ // prop1: number; // } // - // class D extends C { - // prop0: string; - // } - // - // var d: D; - // d.prop0; - // d.prop1; + // --- (line: 6) skipped --- // === Details === [ @@ -90,12 +78,7 @@ // } // // class D extends C { -// prop0: string; -// } -// -// var d: D; -// d.prop0; -// d.prop1; +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsInheritedProperties5.ts === @@ -105,12 +88,7 @@ // } // // class D extends C { - // prop0: string; - // } - // - // var d: D; - // d.prop0; - // d.prop1; + // --- (line: 7) skipped --- // === Details === [ @@ -168,9 +146,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsInheritedProperties5.ts === -// class C extends D { -// prop0: string; -// prop1: number; +// --- (line: 3) skipped --- // } // // class D extends C { @@ -183,9 +159,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsInheritedProperties5.ts === - // class C extends D { - // prop0: string; - // prop1: number; + // --- (line: 3) skipped --- // } // // class D extends C { @@ -252,9 +226,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsInheritedProperties5.ts === -// class C extends D { -// prop0: string; -// prop1: number; +// --- (line: 3) skipped --- // } // // class D extends C { @@ -267,9 +239,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsInheritedProperties5.ts === - // class C extends D { - // prop0: string; - // prop1: number; + // --- (line: 3) skipped --- // } // // class D extends C { @@ -336,14 +306,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsInheritedProperties5.ts === -// class C extends D { -// prop0: string; -// prop1: number; -// } -// -// class D extends C { -// prop0: string; -// } +// --- (line: 8) skipped --- // // var d: D; // d.prop0; diff --git a/tests/baselines/reference/findAllRefsInsideWithBlock.baseline.jsonc b/tests/baselines/reference/findAllRefsInsideWithBlock.baseline.jsonc index 6193d20a11210..8957d441ce60d 100644 --- a/tests/baselines/reference/findAllRefsInsideWithBlock.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsInsideWithBlock.baseline.jsonc @@ -15,10 +15,7 @@ // // with ({}) { // var y = x; // Reference of x here should not be picked - // y++; // also reference for y should be ignored - // } - // - // x = x + 1; + // --- (line: 5) skipped --- // === Details === [ @@ -75,10 +72,7 @@ // // with ({}) { // var y = x; // Reference of x here should not be picked - // y++; // also reference for y should be ignored - // } - // - // x = x + 1; + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsIsDefinition.baseline.jsonc b/tests/baselines/reference/findAllRefsIsDefinition.baseline.jsonc index 0ce6163a14e78..b1defed2df2f1 100644 --- a/tests/baselines/reference/findAllRefsIsDefinition.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsIsDefinition.baseline.jsonc @@ -14,17 +14,7 @@ // // export const bar = 123; // console.log({ bar }); -// -// interface IFoo { -// foo(): void; -// } -// class Foo implements IFoo { -// constructor(n: number) -// constructor() -// constructor(n: number?) { } -// foo(): void { } -// static init() { return new this() } -// } +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsIsDefinition.ts === @@ -34,25 +24,7 @@ // // 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 }); - // - // interface IFoo { - // foo(): void; - // } - // class Foo implements IFoo { - // constructor(n: number) - // constructor() - // constructor(n: number?) { } - // foo(): void { } - // static init() { return new this() } - // } + // --- (line: 7) skipped --- // === Details === [ @@ -160,17 +132,7 @@ // // export const bar = 123; // console.log({ bar }); -// -// interface IFoo { -// foo(): void; -// } -// class Foo implements IFoo { -// constructor(n: number) -// constructor() -// constructor(n: number?) { } -// foo(): void { } -// static init() { return new this() } -// } +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsIsDefinition.ts === @@ -184,21 +146,7 @@ // return a // } // - // foo; foon; - // - // export const bar = 123; - // console.log({ bar }); - // - // interface IFoo { - // foo(): void; - // } - // class Foo implements IFoo { - // constructor(n: number) - // constructor() - // constructor(n: number?) { } - // foo(): void { } - // static init() { return new this() } - // } + // --- (line: 11) skipped --- // === Details === [ @@ -292,15 +240,7 @@ // === findAllReferences === // === /tests/cases/fourslash/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(a: string | number): string | number { -// return a -// } +// --- (line: 9) skipped --- // // foo; foon; // @@ -309,26 +249,11 @@ // // interface IFoo { // foo(): void; -// } -// class Foo implements IFoo { -// constructor(n: number) -// constructor() -// constructor(n: number?) { } -// foo(): void { } -// static init() { return new this() } -// } +// --- (line: 18) skipped --- // === Definitions === // === /tests/cases/fourslash/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(a: string | number): string | number { - // return a - // } + // --- (line: 9) skipped --- // // foo; foon; // @@ -336,15 +261,7 @@ // console.log({ bar }); // // interface IFoo { - // foo(): void; - // } - // class Foo implements IFoo { - // constructor(n: number) - // constructor() - // constructor(n: number?) { } - // foo(): void { } - // static init() { return new this() } - // } + // --- (line: 17) skipped --- // === Details === [ @@ -386,19 +303,7 @@ // === findAllReferences === // === /tests/cases/fourslash/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(a: string | number): string | number { -// return a -// } -// -// foo; foon; -// -// export const bar = 123; +// --- (line: 13) skipped --- // console.log({ bar }); // // interface IFoo { @@ -414,19 +319,7 @@ // === Definitions === // === /tests/cases/fourslash/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(a: string | number): string | number { - // return a - // } - // - // foo; foon; - // - // export const bar = 123; + // --- (line: 13) skipped --- // console.log({ bar }); // // interface IFoo { @@ -562,22 +455,7 @@ // === findAllReferences === // === /tests/cases/fourslash/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(a: string | number): string | number { -// return a -// } -// -// foo; foon; -// -// export const bar = 123; -// console.log({ bar }); -// -// interface IFoo { +// --- (line: 16) skipped --- // foo(): void; // } // class Foo implements IFoo { @@ -590,21 +468,7 @@ // === Definitions === // === /tests/cases/fourslash/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(a: string | number): string | number { - // return a - // } - // - // foo; foon; - // - // export const bar = 123; - // console.log({ bar }); - // + // --- (line: 15) skipped --- // interface IFoo { // foo(): void; // } @@ -644,19 +508,7 @@ // === findAllReferences === // === /tests/cases/fourslash/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(a: string | number): string | number { -// return a -// } -// -// foo; foon; -// -// export const bar = 123; +// --- (line: 13) skipped --- // console.log({ bar }); // // interface IFoo { @@ -672,19 +524,7 @@ // === Definitions === // === /tests/cases/fourslash/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(a: string | number): string | number { - // return a - // } - // - // foo; foon; - // - // export const bar = 123; + // --- (line: 13) skipped --- // console.log({ bar }); // // interface IFoo { diff --git a/tests/baselines/reference/findAllRefsJsDocTemplateTag_class_js.baseline.jsonc b/tests/baselines/reference/findAllRefsJsDocTemplateTag_class_js.baseline.jsonc index 1b94f599f3d80..556a43ef47873 100644 --- a/tests/baselines/reference/findAllRefsJsDocTemplateTag_class_js.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsJsDocTemplateTag_class_js.baseline.jsonc @@ -14,9 +14,7 @@ // class C { // constructor() { // /** @type {T} */ - // this.x = null; - // } - // } + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsJsDocTypeDef_js.baseline.jsonc b/tests/baselines/reference/findAllRefsJsDocTypeDef_js.baseline.jsonc index 0612098235f6a..730b4f0545178 100644 --- a/tests/baselines/reference/findAllRefsJsDocTypeDef_js.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsJsDocTypeDef_js.baseline.jsonc @@ -4,13 +4,7 @@ // // /** // * @return {T} -// */ -// function f(obj) { return 0; } -// -// /** -// * @return {T} -// */ -// function f2(obj) { return 0; } +// --- (line: 5) skipped --- @@ -34,13 +28,7 @@ // // /** // * @return {T} - // */ - // function f(obj) { return 0; } - // - // /** - // * @return {T} - // */ - // function f2(obj) { return 0; } + // --- (line: 5) skipped --- // === Details === [ @@ -107,10 +95,7 @@ // */ // function f(obj) { return 0; } // - // /** - // * @return {T} - // */ - // function f2(obj) { return 0; } + // --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc index af63cf287e11c..246c7a25694c7 100644 --- a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName01.baseline.jsonc @@ -74,9 +74,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsObjectBindingElementPropertyName01.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // // var foo: I; diff --git a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc index d19a2dc76b0c8..9751ae645f4d0 100644 --- a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName02.baseline.jsonc @@ -74,9 +74,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsObjectBindingElementPropertyName02.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // // var foo: I; diff --git a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc index 87282714cb5cc..a87d501c3016a 100644 --- a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName04.baseline.jsonc @@ -19,12 +19,7 @@ // property2: string; // } // - // function f({ property1: p1 }: I, - // { property1 }: I, - // { property1: p2 }) { - // - // return property1 + 1; - // } + // --- (line: 6) skipped --- // === Details === [ @@ -288,9 +283,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsObjectBindingElementPropertyName04.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // // function f({ property1: p1 }: I, @@ -302,9 +295,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsObjectBindingElementPropertyName04.ts === - // interface I { - // property1: number; - // property2: string; + // --- (line: 3) skipped --- // } // // function f({ property1: p1 }: I, diff --git a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc index 03a9a95ceef24..5051e0492a750 100644 --- a/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsObjectBindingElementPropertyName06.baseline.jsonc @@ -23,16 +23,7 @@ // 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) { - // } + // --- (line: 6) skipped --- // === Details === [ @@ -118,11 +109,7 @@ // } // for (let { property1 } of elems) { // } - // for (var { property1: p1 } of elems) { - // } - // var p2; - // for ({ property1 : p2 } of elems) { - // } + // --- (line: 11) skipped --- // === Details === [ @@ -293,11 +280,9 @@ // property2: string; // } // - // var elems: I[]; - // for (let { property1: p } of elems) { - // } - // for (let { property1 } of elems) { - // } + // --- (line: 6) skipped --- + + // --- (line: 10) skipped --- // for (var { property1: p1 } of elems) { // } // var p2; @@ -390,9 +375,7 @@ // } // for (var { property1: p1 } of elems) { // } - // var p2; - // for ({ property1 : p2 } of elems) { - // } + // --- (line: 13) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsOfConstructor.baseline.jsonc b/tests/baselines/reference/findAllRefsOfConstructor.baseline.jsonc index 52ca1cefe0c99..58d2c99cdb13d 100644 --- a/tests/baselines/reference/findAllRefsOfConstructor.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsOfConstructor.baseline.jsonc @@ -32,9 +32,7 @@ // class E implements A { } // const a = new A("a"); // const b = new B("b"); - // const c = new C(); - // const d = new D("d"); - // const e = new E(); + // --- (line: 14) skipped --- // === Details === [ @@ -138,10 +136,7 @@ // class D extends B { } // class E implements A { } // const a = new A("a"); - // const b = new B("b"); - // const c = new C(); - // const d = new D("d"); - // const e = new E(); + // --- (line: 13) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsOfConstructor2.baseline.jsonc b/tests/baselines/reference/findAllRefsOfConstructor2.baseline.jsonc index 08f9ae9cc6536..373a911b5720c 100644 --- a/tests/baselines/reference/findAllRefsOfConstructor2.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsOfConstructor2.baseline.jsonc @@ -25,16 +25,7 @@ // class B extends A { // constructor() { super(""); } // } - // class C extends B { - // constructor() { - // super(); - // } - // } - // class D extends B { } - // const a = new A("a"); - // const b = new B(); - // const c = new C(); - // const d = new D(); + // --- (line: 7) skipped --- // === Details === [ @@ -150,10 +141,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsOfConstructor2.ts === -// class A { -// constructor(s: string) {} -// } -// class B extends A { +// --- (line: 4) skipped --- // constructor() { super(""); } // } // class C extends B { @@ -169,9 +157,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsOfConstructor2.ts === - // class A { - // constructor(s: string) {} - // } + // --- (line: 3) skipped --- // class B extends A { // constructor() { super(""); } // } diff --git a/tests/baselines/reference/findAllRefsOnDefinition.baseline.jsonc b/tests/baselines/reference/findAllRefsOnDefinition.baseline.jsonc index 368110b749730..0d80b3f7faadf 100644 --- a/tests/baselines/reference/findAllRefsOnDefinition.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsOnDefinition.baseline.jsonc @@ -1,8 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -24,9 +22,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // @@ -103,9 +99,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -127,9 +121,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // @@ -206,9 +198,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -230,9 +220,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // diff --git a/tests/baselines/reference/findAllRefsOnPrivateParameterProperty1.baseline.jsonc b/tests/baselines/reference/findAllRefsOnPrivateParameterProperty1.baseline.jsonc index db3225d5271cd..d15e4a591b631 100644 --- a/tests/baselines/reference/findAllRefsOnPrivateParameterProperty1.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsOnPrivateParameterProperty1.baseline.jsonc @@ -16,9 +16,7 @@ // } // // func() { - // return this.z; - // } - // } + // --- (line: 6) skipped --- // === Details === [ @@ -92,9 +90,7 @@ // } // // func() { - // return this.z; - // } - // } + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc b/tests/baselines/reference/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc index 6075fe268c30d..adbfaa41b7577 100644 --- a/tests/baselines/reference/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsParameterPropertyDeclaration_inheritance.baseline.jsonc @@ -177,10 +177,7 @@ // } // } // class D extends C { -// constructor(public x: string) { -// super(x); -// } -// } +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.ts === @@ -190,10 +187,7 @@ // } // } // class D extends C { - // constructor(public x: string) { - // super(x); - // } - // } + // --- (line: 7) skipped --- // === Details === [ @@ -464,9 +458,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.ts === -// class C { -// constructor(public x: string) { -// x; +// --- (line: 3) skipped --- // } // } // class D extends C { @@ -477,9 +469,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsParameterPropertyDeclaration_inheritance.ts === - // class C { - // constructor(public x: string) { - // x; + // --- (line: 3) skipped --- // } // } // class D extends C { diff --git a/tests/baselines/reference/findAllRefsPrefixSuffixPreference.baseline.jsonc b/tests/baselines/reference/findAllRefsPrefixSuffixPreference.baseline.jsonc index 97e03bdbc7d41..567ce55c4e1ab 100644 --- a/tests/baselines/reference/findAllRefsPrefixSuffixPreference.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsPrefixSuffixPreference.baseline.jsonc @@ -21,9 +21,7 @@ // export { q }; // const x = { // z: 'value' - // } - // const { z } = x; - // log(z); + // --- (line: 6) skipped --- // === /file2.ts === // declare function log(s: string | number): void; @@ -298,9 +296,7 @@ // export { q }; // const x = { // z: 'value' - // } - // const { z } = x; - // log(z); + // --- (line: 6) skipped --- // === Details === [ @@ -434,9 +430,7 @@ // export { q }; // const x = { // z: 'value' - // } - // const { z } = x; - // log(z); + // --- (line: 6) skipped --- // === Details === [ @@ -714,9 +708,7 @@ // === findAllReferences === // === /file1.ts === -// declare function log(s: string | number): void; -// const q = 1; -// export { q }; +// --- (line: 3) skipped --- // const x = { // z: 'value' // } @@ -725,9 +717,7 @@ // === Definitions === // === /file1.ts === - // declare function log(s: string | number): void; - // const q = 1; - // export { q }; + // --- (line: 3) skipped --- // const x = { // z: 'value' // } @@ -926,9 +916,7 @@ // @providePrefixAndSuffixTextForRename: true // === /file1.ts === -// declare function log(s: string | number): void; -// const q = 1; -// export { q }; +// --- (line: 3) skipped --- // const x = { // z: 'value' // } @@ -941,9 +929,7 @@ // @providePrefixAndSuffixTextForRename: true // === /file1.ts === -// declare function log(s: string | number): void; -// const q = 1; -// export { q }; +// --- (line: 3) skipped --- // const x = { // z: 'value' // } diff --git a/tests/baselines/reference/findAllRefsPrimitive.baseline.jsonc b/tests/baselines/reference/findAllRefsPrimitive.baseline.jsonc index 5e4dcf15b44fe..e14aed4c2079b 100644 --- a/tests/baselines/reference/findAllRefsPrimitive.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsPrimitive.baseline.jsonc @@ -6,10 +6,7 @@ // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; -// function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 7) skipped --- // === /tests/cases/fourslash/b.ts === // const z: [|any|] = 0; @@ -20,12 +17,7 @@ // const any = 2; // const y: any = any; // function f(b: boolean): boolean; - // type T = never; type U = never; - // function n(x: number): number; - // function o(x: object): object; - // function s(x: string): string; - // function sy(s: symbol): symbol; - // function v(v: void): void; + // --- (line: 5) skipped --- // === Details === [ @@ -53,10 +45,7 @@ // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; -// function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 7) skipped --- // === /tests/cases/fourslash/b.ts === // const z: [|any|] = 0; @@ -69,10 +58,7 @@ // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; - // function o(x: object): object; - // function s(x: string): string; - // function sy(s: symbol): symbol; - // function v(v: void): void; + // --- (line: 7) skipped --- // === Details === [ @@ -101,9 +87,7 @@ // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/a.ts === @@ -114,9 +98,7 @@ // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; - // function s(x: string): string; - // function sy(s: symbol): symbol; - // function v(v: void): void; + // --- (line: 8) skipped --- // === Details === [ @@ -145,9 +127,7 @@ // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/a.ts === @@ -158,9 +138,7 @@ // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; - // function s(x: string): string; - // function sy(s: symbol): symbol; - // function v(v: void): void; + // --- (line: 8) skipped --- // === Details === [ @@ -358,9 +336,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; +// --- (line: 3) skipped --- // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; @@ -371,9 +347,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; + // --- (line: 3) skipped --- // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; @@ -402,9 +376,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; +// --- (line: 3) skipped --- // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; @@ -415,9 +387,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; + // --- (line: 3) skipped --- // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; @@ -446,10 +416,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; +// --- (line: 4) skipped --- // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; @@ -459,10 +426,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; - // function f(b: boolean): boolean; + // --- (line: 4) skipped --- // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; @@ -490,10 +454,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; +// --- (line: 4) skipped --- // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; @@ -503,10 +464,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; - // function f(b: boolean): boolean; + // --- (line: 4) skipped --- // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; @@ -534,11 +492,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; +// --- (line: 5) skipped --- // function n(x: number): number; // function o(x: object): object; // function s(x: string): string; @@ -547,11 +501,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; - // function f(b: boolean): boolean; - // type T = never; type U = never; + // --- (line: 5) skipped --- // function n(x: number): number; // function o(x: object): object; // function s(x: string): string; @@ -578,11 +528,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; +// --- (line: 5) skipped --- // function n(x: number): number; // function o(x: object): object; // function s(x: string): string; @@ -591,11 +537,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; - // function f(b: boolean): boolean; - // type T = never; type U = never; + // --- (line: 5) skipped --- // function n(x: number): number; // function o(x: object): object; // function s(x: string): string; @@ -622,12 +564,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; -// function n(x: number): number; +// --- (line: 6) skipped --- // function o(x: object): object; // function s(x: string): string; // function sy(s: symbol): symbol; @@ -635,12 +572,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; - // function f(b: boolean): boolean; - // type T = never; type U = never; - // function n(x: number): number; + // --- (line: 6) skipped --- // function o(x: object): object; // function s(x: string): string; // function sy(s: symbol): symbol; @@ -666,12 +598,7 @@ // === findAllReferences === // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; -// function n(x: number): number; +// --- (line: 6) skipped --- // function o(x: object): object; // function s(x: string): string; // function sy(s: symbol): symbol; @@ -679,12 +606,7 @@ // === Definitions === // === /tests/cases/fourslash/a.ts === - // const x: any = 0; - // const any = 2; - // const y: any = any; - // function f(b: boolean): boolean; - // type T = never; type U = never; - // function n(x: number): number; + // --- (line: 6) skipped --- // function o(x: object): object; // function s(x: string): string; // function sy(s: symbol): symbol; @@ -716,10 +638,7 @@ // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; -// function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 7) skipped --- // === /tests/cases/fourslash/b.ts === // const z: /*FIND ALL REFS*/[|any|] = 0; @@ -730,12 +649,7 @@ // const any = 2; // const y: any = any; // function f(b: boolean): boolean; - // type T = never; type U = never; - // function n(x: number): number; - // function o(x: object): object; - // function s(x: string): string; - // function sy(s: symbol): symbol; - // function v(v: void): void; + // --- (line: 5) skipped --- // === Details === [ @@ -767,10 +681,7 @@ // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; -// function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 7) skipped --- // === /tests/cases/fourslash/b.ts === // const z: [|{| kind: "reference" |}any|] = 0; @@ -789,10 +700,7 @@ // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; -// function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 7) skipped --- // === /tests/cases/fourslash/b.ts === // const z: [|{| kind: "reference" |}any|] = 0; @@ -812,9 +720,7 @@ // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 8) skipped --- @@ -831,9 +737,7 @@ // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 8) skipped --- @@ -919,9 +823,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; +// --- (line: 3) skipped --- // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; @@ -938,9 +840,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; +// --- (line: 3) skipped --- // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; @@ -957,10 +857,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; +// --- (line: 4) skipped --- // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; @@ -976,10 +873,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; +// --- (line: 4) skipped --- // type T = never; type U = never; // function n(x: number): number; // function o(x: object): object; @@ -995,11 +889,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; +// --- (line: 5) skipped --- // function n(x: number): number; // function o(x: object): object; // function s(x: string): string; @@ -1014,11 +904,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; +// --- (line: 5) skipped --- // function n(x: number): number; // function o(x: object): object; // function s(x: string): string; @@ -1033,12 +919,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; -// function n(x: number): number; +// --- (line: 6) skipped --- // function o(x: object): object; // function s(x: string): string; // function sy(s: symbol): symbol; @@ -1052,12 +933,7 @@ // b.ts // === /tests/cases/fourslash/a.ts === -// const x: any = 0; -// const any = 2; -// const y: any = any; -// function f(b: boolean): boolean; -// type T = never; type U = never; -// function n(x: number): number; +// --- (line: 6) skipped --- // function o(x: object): object; // function s(x: string): string; // function sy(s: symbol): symbol; @@ -1077,10 +953,7 @@ // function f(b: boolean): boolean; // type T = never; type U = never; // function n(x: number): number; -// function o(x: object): object; -// function s(x: string): string; -// function sy(s: symbol): symbol; -// function v(v: void): void; +// --- (line: 7) skipped --- // === /tests/cases/fourslash/b.ts === // const z: /*HIGHLIGHTS*/[|{| kind: "reference" |}any|] = 0; \ No newline at end of file diff --git a/tests/baselines/reference/findAllRefsPrivateNameAccessors.baseline.jsonc b/tests/baselines/reference/findAllRefsPrivateNameAccessors.baseline.jsonc index 00feffaa53780..80674ab1fd7ee 100644 --- a/tests/baselines/reference/findAllRefsPrivateNameAccessors.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsPrivateNameAccessors.baseline.jsonc @@ -8,18 +8,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === @@ -28,21 +17,7 @@ // set #foo(value: number){ } // constructor() { // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } + // --- (line: 6) skipped --- // === Details === [ @@ -108,18 +83,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === @@ -128,21 +92,7 @@ // set #foo(value: number){ } // constructor() { // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } + // --- (line: 6) skipped --- // === Details === [ @@ -208,18 +158,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === @@ -229,20 +168,7 @@ // constructor() { // this.#foo(); // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } + // --- (line: 7) skipped --- // === Details === [ @@ -308,18 +234,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === @@ -329,20 +244,7 @@ // constructor() { // this.#foo(); // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } + // --- (line: 7) skipped --- // === Details === [ @@ -408,18 +310,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === @@ -431,18 +322,7 @@ // } // } // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } + // --- (line: 9) skipped --- // === Details === [ @@ -500,17 +380,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === -// class C { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 11) skipped --- // } // } // class E { @@ -523,17 +393,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === - // class C { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 11) skipped --- // } // } // class E { @@ -600,17 +460,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === -// class C { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 11) skipped --- // } // } // class E { @@ -623,17 +473,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === - // class C { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 11) skipped --- // } // } // class E { @@ -700,17 +540,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === -// class C { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 11) skipped --- // } // } // class E { @@ -723,17 +553,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === - // class C { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 11) skipped --- // } // } // class E { @@ -800,17 +620,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === -// class C { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 11) skipped --- // } // } // class E { @@ -823,17 +633,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === - // class C { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 11) skipped --- // } // } // class E { @@ -900,17 +700,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === -// class C { -// get #foo(){ return 1; } -// set #foo(value: number){ } -// constructor() { -// this.#foo(); -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 11) skipped --- // } // } // class E { @@ -923,17 +713,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameAccessors.ts === - // class C { - // get #foo(){ return 1; } - // set #foo(value: number){ } - // constructor() { - // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 11) skipped --- // } // } // class E { diff --git a/tests/baselines/reference/findAllRefsPrivateNameMethods.baseline.jsonc b/tests/baselines/reference/findAllRefsPrivateNameMethods.baseline.jsonc index 6c3c499cc49c3..9afbd4afeaa52 100644 --- a/tests/baselines/reference/findAllRefsPrivateNameMethods.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsPrivateNameMethods.baseline.jsonc @@ -7,17 +7,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// #foo(){ } -// constructor() { -// this.#foo(); -// } -// } +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameMethods.ts === @@ -26,19 +16,7 @@ // constructor() { // this.#foo(); // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // #foo(){ } - // constructor() { - // this.#foo(); - // } - // } + // --- (line: 6) skipped --- // === Details === [ @@ -111,17 +89,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// #foo(){ } -// constructor() { -// this.#foo(); -// } -// } +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameMethods.ts === @@ -132,17 +100,7 @@ // } // } // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // #foo(){ } - // constructor() { - // this.#foo(); - // } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -208,16 +166,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameMethods.ts === -// class C { -// #foo(){ } -// constructor() { -// this.#foo(); -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 10) skipped --- // } // } // class E { @@ -229,16 +178,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameMethods.ts === - // class C { - // #foo(){ } - // constructor() { - // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 10) skipped --- // } // } // class E { @@ -312,16 +252,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameMethods.ts === -// class C { -// #foo(){ } -// constructor() { -// this.#foo(); -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 10) skipped --- // } // } // class E { @@ -333,16 +264,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameMethods.ts === - // class C { - // #foo(){ } - // constructor() { - // this.#foo(); - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 10) skipped --- // } // } // class E { diff --git a/tests/baselines/reference/findAllRefsPrivateNameProperties.baseline.jsonc b/tests/baselines/reference/findAllRefsPrivateNameProperties.baseline.jsonc index 3614618947809..78f3a65fc4a26 100644 --- a/tests/baselines/reference/findAllRefsPrivateNameProperties.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsPrivateNameProperties.baseline.jsonc @@ -8,17 +8,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// #foo: number; -// constructor() { -// this.#foo = 20; -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameProperties.ts === @@ -27,20 +17,7 @@ // constructor() { // this.#foo = 20; // #foo in this; - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // #foo: number; - // constructor() { - // this.#foo = 20; - // } - // } + // --- (line: 6) skipped --- // === Details === [ @@ -106,17 +83,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// #foo: number; -// constructor() { -// this.#foo = 20; -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameProperties.ts === @@ -127,18 +94,7 @@ // #foo in this; // } // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // #foo: number; - // constructor() { - // this.#foo = 20; - // } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -204,17 +160,7 @@ // } // } // class D extends C { -// constructor() { -// super() -// this.#foo = 20; -// } -// } -// class E { -// #foo: number; -// constructor() { -// this.#foo = 20; -// } -// } +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameProperties.ts === @@ -226,17 +172,7 @@ // } // } // class D extends C { - // constructor() { - // super() - // this.#foo = 20; - // } - // } - // class E { - // #foo: number; - // constructor() { - // this.#foo = 20; - // } - // } + // --- (line: 9) skipped --- // === Details === [ @@ -294,17 +230,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameProperties.ts === -// class C { -// #foo = 10; -// constructor() { -// this.#foo = 20; -// #foo in this; -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 11) skipped --- // } // } // class E { @@ -316,17 +242,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameProperties.ts === - // class C { - // #foo = 10; - // constructor() { - // this.#foo = 20; - // #foo in this; - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 11) skipped --- // } // } // class E { @@ -392,17 +308,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsPrivateNameProperties.ts === -// class C { -// #foo = 10; -// constructor() { -// this.#foo = 20; -// #foo in this; -// } -// } -// class D extends C { -// constructor() { -// super() -// this.#foo = 20; +// --- (line: 11) skipped --- // } // } // class E { @@ -414,17 +320,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsPrivateNameProperties.ts === - // class C { - // #foo = 10; - // constructor() { - // this.#foo = 20; - // #foo in this; - // } - // } - // class D extends C { - // constructor() { - // super() - // this.#foo = 20; + // --- (line: 11) skipped --- // } // } // class E { diff --git a/tests/baselines/reference/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc b/tests/baselines/reference/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc index 12a807dcf9282..cd0feb174636e 100644 --- a/tests/baselines/reference/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsPropertyContextuallyTypedByTypeParam01.baseline.jsonc @@ -24,17 +24,7 @@ // } // class C { // method() { - // var x: T = { - // a: "" - // }; - // x.a; - // } - // } - // - // - // var x: IFoo = { - // a: "ss" - // }; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsThisKeyword.baseline.jsonc b/tests/baselines/reference/findAllRefsThisKeyword.baseline.jsonc index af55d4aa52429..b54fc0cb990bb 100644 --- a/tests/baselines/reference/findAllRefsThisKeyword.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsThisKeyword.baseline.jsonc @@ -4,24 +4,7 @@ // function f(this) { // return this; // function g(this) { return this; } -// } -// class C { -// static x() { -// this; -// } -// static y() { -// () => this; -// } -// constructor() { -// this; -// } -// method() { -// () => this; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; +// --- (line: 5) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === @@ -29,24 +12,7 @@ // function f(this) { // return this; // function g(this) { return this; } - // } - // class C { - // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 5) skipped --- // === Details === [ @@ -94,22 +60,7 @@ // function g(this) { return this; } // } // class C { -// static x() { -// this; -// } -// static y() { -// () => this; -// } -// constructor() { -// this; -// } -// method() { -// () => this; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === @@ -118,23 +69,7 @@ // return this; // function g(this) { return this; } // } - // class C { - // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 6) skipped --- // === Details === [ @@ -190,22 +125,7 @@ // function g(this) { return this; } // } // class C { -// static x() { -// this; -// } -// static y() { -// () => this; -// } -// constructor() { -// this; -// } -// method() { -// () => this; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === @@ -215,22 +135,7 @@ // function g(this) { return this; } // } // class C { - // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 7) skipped --- // === Details === [ @@ -287,21 +192,7 @@ // } // class C { // static x() { -// this; -// } -// static y() { -// () => this; -// } -// constructor() { -// this; -// } -// method() { -// () => this; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === @@ -312,21 +203,7 @@ // } // class C { // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 8) skipped --- // === Details === [ @@ -383,21 +260,7 @@ // } // class C { // static x() { -// this; -// } -// static y() { -// () => this; -// } -// constructor() { -// this; -// } -// method() { -// () => this; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === @@ -408,21 +271,7 @@ // } // class C { // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 8) skipped --- // === Details === [ @@ -472,10 +321,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g(this) { return this; } +// --- (line: 4) skipped --- // } // class C { // static x() { @@ -486,21 +332,11 @@ // } // constructor() { // this; -// } -// method() { -// () => this; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === - // this; - // function f(this) { - // return this; - // function g(this) { return this; } + // --- (line: 4) skipped --- // } // class C { // static x() { @@ -508,17 +344,7 @@ // } // static y() { // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 12) skipped --- // === Details === [ @@ -560,10 +386,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g(this) { return this; } +// --- (line: 4) skipped --- // } // class C { // static x() { @@ -574,24 +397,11 @@ // } // constructor() { // this; -// } -// method() { -// () => this; -// } -// } -// // These are *not* real uses of the 'this' keyword, they are identifiers. -// const x = { this: 0 } -// x.this; +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === - // this; - // function f(this) { - // return this; - // function g(this) { return this; } - // } - // class C { - // static x() { + // --- (line: 7) skipped --- // this; // } // static y() { @@ -599,14 +409,7 @@ // } // constructor() { // this; - // } - // method() { - // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 15) skipped --- // === Details === [ @@ -648,16 +451,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g(this) { return this; } -// } -// class C { -// static x() { -// this; -// } -// static y() { +// --- (line: 10) skipped --- // () => this; // } // constructor() { @@ -673,16 +467,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === - // this; - // function f(this) { - // return this; - // function g(this) { return this; } - // } - // class C { - // static x() { - // this; - // } - // static y() { + // --- (line: 10) skipped --- // () => this; // } // constructor() { @@ -690,11 +475,7 @@ // } // method() { // () => this; - // } - // } - // // These are *not* real uses of the 'this' keyword, they are identifiers. - // const x = { this: 0 } - // x.this; + // --- (line: 18) skipped --- // === Details === [ @@ -728,16 +509,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g(this) { return this; } -// } -// class C { -// static x() { -// this; -// } -// static y() { +// --- (line: 10) skipped --- // () => this; // } // constructor() { @@ -753,19 +525,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === - // this; - // function f(this) { - // return this; - // function g(this) { return this; } - // } - // class C { - // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { + // --- (line: 13) skipped --- // this; // } // method() { @@ -808,23 +568,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g(this) { return this; } -// } -// class C { -// static x() { -// this; -// } -// static y() { -// () => this; -// } -// constructor() { -// this; -// } -// method() { -// () => this; +// --- (line: 17) skipped --- // } // } // // These are *not* real uses of the 'this' keyword, they are identifiers. @@ -833,23 +577,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === - // this; - // function f(this) { - // return this; - // function g(this) { return this; } - // } - // class C { - // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; + // --- (line: 17) skipped --- // } // } // // These are *not* real uses of the 'this' keyword, they are identifiers. @@ -904,23 +632,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === -// this; -// function f(this) { -// return this; -// function g(this) { return this; } -// } -// class C { -// static x() { -// this; -// } -// static y() { -// () => this; -// } -// constructor() { -// this; -// } -// method() { -// () => this; +// --- (line: 17) skipped --- // } // } // // These are *not* real uses of the 'this' keyword, they are identifiers. @@ -929,23 +641,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsThisKeyword.ts === - // this; - // function f(this) { - // return this; - // function g(this) { return this; } - // } - // class C { - // static x() { - // this; - // } - // static y() { - // () => this; - // } - // constructor() { - // this; - // } - // method() { - // () => this; + // --- (line: 17) skipped --- // } // } // // These are *not* real uses of the 'this' keyword, they are identifiers. diff --git a/tests/baselines/reference/findAllRefsUnionProperty.baseline.jsonc b/tests/baselines/reference/findAllRefsUnionProperty.baseline.jsonc index b2b1ccfed396f..a7c5e9f0ec0f6 100644 --- a/tests/baselines/reference/findAllRefsUnionProperty.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsUnionProperty.baseline.jsonc @@ -22,13 +22,7 @@ // const tt: T = { // type: "a", // prop: 0, - // }; - // declare const t: T; - // if (t.type === "a") { - // t.type; - // } else { - // t.type; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -199,13 +193,7 @@ // const tt: T = { // type: "a", // prop: 0, - // }; - // declare const t: T; - // if (t.type === "a") { - // t.type; - // } else { - // t.type; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -909,11 +897,7 @@ // prop: 0, // }; // declare const t: T; - // if (t.type === "a") { - // t.type; - // } else { - // t.type; - // } + // --- (line: 9) skipped --- // === Details === [ @@ -1030,10 +1014,7 @@ // }; // declare const t: T; // if (t.type === "a") { -// t.type; -// } else { -// t.type; -// } +// --- (line: 10) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsUnionProperty.ts === @@ -1043,13 +1024,7 @@ // const tt: T = { // type: "a", // prop: 0, - // }; - // declare const t: T; - // if (t.type === "a") { - // t.type; - // } else { - // t.type; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -1150,10 +1125,7 @@ // }; // declare const t: T; // if (t.type === "a") { -// t.type; -// } else { -// t.type; -// } +// --- (line: 10) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsUnionProperty.ts === @@ -1163,13 +1135,7 @@ // const tt: T = { // type: "a", // prop: 0, - // }; - // declare const t: T; - // if (t.type === "a") { - // t.type; - // } else { - // t.type; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -1270,10 +1236,7 @@ // }; // declare const t: T; // if (t.type === "a") { -// t.type; -// } else { -// t.type; -// } +// --- (line: 10) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsUnionProperty.ts === @@ -1286,10 +1249,7 @@ // }; // declare const t: T; // if (t.type === "a") { - // t.type; - // } else { - // t.type; - // } + // --- (line: 10) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsUnresolvedSymbols2.baseline.jsonc b/tests/baselines/reference/findAllRefsUnresolvedSymbols2.baseline.jsonc index bc4ad3b98c43f..93257b9957d31 100644 --- a/tests/baselines/reference/findAllRefsUnresolvedSymbols2.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsUnresolvedSymbols2.baseline.jsonc @@ -15,10 +15,7 @@ // // let a: Bar; // let b: Bar; - // let c: Bar; - // let d: Bar.X; - // let e: Bar.X; - // let f: Bar.X.Y; + // --- (line: 5) skipped --- // === Details === [ @@ -427,9 +424,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols2.ts === - // import { Bar } from "does-not-exist"; - // - // let a: Bar; + // --- (line: 3) skipped --- // let b: Bar; // let c: Bar; // let d: Bar.X; @@ -496,10 +491,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols2.ts === -// import { Bar } from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; +// --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; @@ -507,10 +499,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols2.ts === - // import { Bar } from "does-not-exist"; - // - // let a: Bar; - // let b: Bar; + // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; @@ -531,10 +520,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols2.ts === -// import { Bar } from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; +// --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; @@ -542,10 +528,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols2.ts === - // import { Bar } from "does-not-exist"; - // - // let a: Bar; - // let b: Bar; + // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; diff --git a/tests/baselines/reference/findAllRefsUnresolvedSymbols3.baseline.jsonc b/tests/baselines/reference/findAllRefsUnresolvedSymbols3.baseline.jsonc index 6eee5e1933ec0..2259fcde0615f 100644 --- a/tests/baselines/reference/findAllRefsUnresolvedSymbols3.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsUnresolvedSymbols3.baseline.jsonc @@ -15,10 +15,7 @@ // // let a: Bar; // let b: Bar; - // let c: Bar; - // let d: Bar.X; - // let e: Bar.X; - // let f: Bar.X.Y; + // --- (line: 5) skipped --- // === Details === [ @@ -427,9 +424,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols3.ts === - // import * as Bar from "does-not-exist"; - // - // let a: Bar; + // --- (line: 3) skipped --- // let b: Bar; // let c: Bar; // let d: Bar.X; @@ -496,10 +491,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols3.ts === -// import * as Bar from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; +// --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; @@ -507,10 +499,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols3.ts === - // import * as Bar from "does-not-exist"; - // - // let a: Bar; - // let b: Bar; + // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; @@ -531,10 +520,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols3.ts === -// import * as Bar from "does-not-exist"; -// -// let a: Bar; -// let b: Bar; +// --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; @@ -542,10 +528,7 @@ // === Definitions === // === /tests/cases/fourslash/findAllRefsUnresolvedSymbols3.ts === - // import * as Bar from "does-not-exist"; - // - // let a: Bar; - // let b: Bar; + // --- (line: 4) skipped --- // let c: Bar; // let d: Bar.X; // let e: Bar.X; diff --git a/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc b/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc index 330cbb8ee43f3..ed164a59e8b1f 100644 --- a/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames5.baseline.jsonc @@ -22,11 +22,7 @@ // public ____bar; // } // - // var x: Foo; - // x._bar; - // x.__bar; - // x.___bar; - // x.____bar; + // --- (line: 8) skipped --- // === Details === [ @@ -106,11 +102,7 @@ // public ____bar; // } // - // var x: Foo; - // x._bar; - // x.__bar; - // x.___bar; - // x.____bar; + // --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc b/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc index 30255cc2aada8..008e7a7fc5d83 100644 --- a/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsWithLeadingUnderscoreNames6.baseline.jsonc @@ -21,12 +21,7 @@ // public ___bar; // public ____bar; // } - // - // var x: Foo; - // x._bar; - // x.__bar; - // x.___bar; - // x.____bar; + // --- (line: 7) skipped --- // === Details === [ @@ -105,12 +100,7 @@ // public ___bar; // public ____bar; // } - // - // var x: Foo; - // x._bar; - // x.__bar; - // x.___bar; - // x.____bar; + // --- (line: 7) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc b/tests/baselines/reference/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc index c3451b3e6c31d..5bfb067748d7f 100644 --- a/tests/baselines/reference/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsWithShorthandPropertyAssignment2.baseline.jsonc @@ -4,10 +4,7 @@ // // module M { export var dx; } // module M { -// var z = 100; -// export var y = { dx, z }; -// } -// M.y.dx; +// --- (line: 5) skipped --- // === Definitions === // === /tests/cases/fourslash/findAllRefsWithShorthandPropertyAssignment2.ts === @@ -15,10 +12,7 @@ // // module M { export var dx; } // module M { - // var z = 100; - // export var y = { dx, z }; - // } - // M.y.dx; + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findAllRefsWriteAccess.baseline.jsonc b/tests/baselines/reference/findAllRefsWriteAccess.baseline.jsonc index 31bd93875deb6..6b1ec114b84a8 100644 --- a/tests/baselines/reference/findAllRefsWriteAccess.baseline.jsonc +++ b/tests/baselines/reference/findAllRefsWriteAccess.baseline.jsonc @@ -25,18 +25,7 @@ // } // // let o: Obj = { - // [`num`]: 0 - // }; - // - // o = { - // ['num']: 1 - // }; - // - // o['num'] = 2; - // o[`num`] = 3; - // - // o['num']; - // o[`num`]; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/findReferencesDefinitionDisplayParts.baseline.jsonc b/tests/baselines/reference/findReferencesDefinitionDisplayParts.baseline.jsonc index ba23995c276d3..8d032b31e569a 100644 --- a/tests/baselines/reference/findReferencesDefinitionDisplayParts.baseline.jsonc +++ b/tests/baselines/reference/findReferencesDefinitionDisplayParts.baseline.jsonc @@ -6,9 +6,7 @@ // // type Options = "option 1" | "option 2"; // let myOption: Options = "option 1"; -// -// someLabel: -// break someLabel; +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/findReferencesDefinitionDisplayParts.ts === @@ -18,9 +16,7 @@ // // type Options = "option 1" | "option 2"; // let myOption: Options = "option 1"; - // - // someLabel: - // break someLabel; + // --- (line: 7) skipped --- // === Details === [ @@ -55,10 +51,7 @@ // } // // type Options = "option 1" | "option 2"; -// let myOption: Options = "option 1"; -// -// someLabel: -// break someLabel; +// --- (line: 6) skipped --- // === Definitions === // === /tests/cases/fourslash/findReferencesDefinitionDisplayParts.ts === @@ -67,10 +60,7 @@ // } // // type Options = "option 1" | "option 2"; - // let myOption: Options = "option 1"; - // - // someLabel: - // break someLabel; + // --- (line: 6) skipped --- // === Details === [ @@ -146,10 +136,7 @@ // === findAllReferences === // === /tests/cases/fourslash/findReferencesDefinitionDisplayParts.ts === -// class Greeter { -// someFunction() { this; } -// } -// +// --- (line: 4) skipped --- // type Options = "option 1" | "option 2"; // let myOption: Options = "option 1"; // @@ -158,10 +145,7 @@ // === Definitions === // === /tests/cases/fourslash/findReferencesDefinitionDisplayParts.ts === - // class Greeter { - // someFunction() { this; } - // } - // + // --- (line: 4) skipped --- // type Options = "option 1" | "option 2"; // let myOption: Options = "option 1"; // diff --git a/tests/baselines/reference/findReferencesJSXTagName3.baseline.jsonc b/tests/baselines/reference/findReferencesJSXTagName3.baseline.jsonc index d68b8ef85d043..7776dae1eea87 100644 --- a/tests/baselines/reference/findReferencesJSXTagName3.baseline.jsonc +++ b/tests/baselines/reference/findReferencesJSXTagName3.baseline.jsonc @@ -26,15 +26,7 @@ // } // } // - // const Comp = () => - //
- // Some content - //
More content
- //
; - // - // const x = - // Content - // ; + // --- (line: 8) skipped --- // === Details === [ @@ -131,10 +123,7 @@ // Some content //
More content
// ; - // - // const x = - // Content - // ; + // --- (line: 13) skipped --- // === Details === [ @@ -500,10 +489,7 @@ // === findAllReferences === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; +// --- (line: 4) skipped --- // } // } // @@ -519,10 +505,7 @@ // === Definitions === // === /a.tsx === - // namespace JSX { - // export interface Element { } - // export interface IntrinsicElements { - // div: any; + // --- (line: 4) skipped --- // } // } // @@ -604,10 +587,7 @@ // === findAllReferences === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; +// --- (line: 4) skipped --- // } // } // @@ -623,10 +603,7 @@ // === Definitions === // === /a.tsx === - // namespace JSX { - // export interface Element { } - // export interface IntrinsicElements { - // div: any; + // --- (line: 4) skipped --- // } // } // @@ -708,10 +685,7 @@ // === findAllReferences === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; +// --- (line: 4) skipped --- // } // } // @@ -727,10 +701,7 @@ // === Definitions === // === /a.tsx === - // namespace JSX { - // export interface Element { } - // export interface IntrinsicElements { - // div: any; + // --- (line: 4) skipped --- // } // } // @@ -833,11 +804,7 @@ // === documentHighlights === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; -// } +// --- (line: 5) skipped --- // } // // const Comp = () => @@ -854,13 +821,7 @@ // === documentHighlights === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; -// } -// } -// +// --- (line: 7) skipped --- // const Comp = () => //
// Some content @@ -875,13 +836,7 @@ // === documentHighlights === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; -// } -// } -// +// --- (line: 7) skipped --- // const Comp = () => //
// Some content @@ -896,11 +851,7 @@ // === documentHighlights === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; -// } +// --- (line: 5) skipped --- // } // // const Comp = () => @@ -917,10 +868,7 @@ // === documentHighlights === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; +// --- (line: 4) skipped --- // } // } // @@ -938,16 +886,7 @@ // === documentHighlights === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; -// } -// } -// -// const Comp = () => -//
-// Some content +// --- (line: 10) skipped --- //
More content
//
; // @@ -959,16 +898,7 @@ // === documentHighlights === // === /a.tsx === -// namespace JSX { -// export interface Element { } -// export interface IntrinsicElements { -// div: any; -// } -// } -// -// const Comp = () => -//
-// Some content +// --- (line: 10) skipped --- //
More content
//
; // diff --git a/tests/baselines/reference/getImplementationAtPosition-pp.baseline.jsonc b/tests/baselines/reference/getImplementationAtPosition-pp.baseline.jsonc index 0c6e15e1007b8..59455d0af283a 100644 --- a/tests/baselines/reference/getImplementationAtPosition-pp.baseline.jsonc +++ b/tests/baselines/reference/getImplementationAtPosition-pp.baseline.jsonc @@ -12,13 +12,7 @@ // // var x = new Bar(); // -// x.hello(); -// -// class SomeClass { -// someMethod() { -// this.someMethod(); -// } -// } +// --- (line: 5) skipped --- // === Details === [ @@ -59,11 +53,7 @@ // // x.hello(); // -// class SomeClass { -// someMethod() { -// this.someMethod(); -// } -// } +// --- (line: 7) skipped --- // === Details === [ @@ -106,9 +96,7 @@ // // class SomeClass { // someMethod() { -// this.someMethod(); -// } -// } +// --- (line: 9) skipped --- // === Details === [ @@ -171,9 +159,7 @@ // === goToImplementation === // === /tests/cases/fourslash/shims-pp/goToImplementationDifferentFile_Consumption.ts === -// interface Foo {} -// -// var x = new Bar(); +// --- (line: 3) skipped --- // // x.hello(); // diff --git a/tests/baselines/reference/getImplementationAtPosition-shims.baseline.jsonc b/tests/baselines/reference/getImplementationAtPosition-shims.baseline.jsonc index 8900f3366822e..bdb65a3f75ced 100644 --- a/tests/baselines/reference/getImplementationAtPosition-shims.baseline.jsonc +++ b/tests/baselines/reference/getImplementationAtPosition-shims.baseline.jsonc @@ -12,13 +12,7 @@ // // var x = new Bar(); // -// x.hello(); -// -// class SomeClass { -// someMethod() { -// this.someMethod(); -// } -// } +// --- (line: 5) skipped --- // === Details === [ @@ -59,11 +53,7 @@ // // x.hello(); // -// class SomeClass { -// someMethod() { -// this.someMethod(); -// } -// } +// --- (line: 7) skipped --- // === Details === [ @@ -106,9 +96,7 @@ // // class SomeClass { // someMethod() { -// this.someMethod(); -// } -// } +// --- (line: 9) skipped --- // === Details === [ @@ -171,9 +159,7 @@ // === goToImplementation === // === /tests/cases/fourslash/shims/goToImplementationDifferentFile_Consumption.ts === -// interface Foo {} -// -// var x = new Bar(); +// --- (line: 3) skipped --- // // x.hello(); // diff --git a/tests/baselines/reference/getOccurrencesAbstract01.baseline.jsonc b/tests/baselines/reference/getOccurrencesAbstract01.baseline.jsonc index ca81d65ce926e..100f87637e450 100644 --- a/tests/baselines/reference/getOccurrencesAbstract01.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesAbstract01.baseline.jsonc @@ -8,9 +8,7 @@ // } // // Abstract class below should not get highlighted // abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } +// --- (line: 9) skipped --- @@ -24,9 +22,7 @@ // } // // Abstract class below should not get highlighted // abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } +// --- (line: 9) skipped --- @@ -40,9 +36,7 @@ // } // // Abstract class below should not get highlighted // abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } +// --- (line: 9) skipped --- @@ -56,9 +50,7 @@ // } // // Abstract class below should not get highlighted // abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } +// --- (line: 9) skipped --- @@ -72,6 +64,4 @@ // } // // Abstract class below should not get highlighted // abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } \ No newline at end of file +// --- (line: 9) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesAbstract02.baseline.jsonc b/tests/baselines/reference/getOccurrencesAbstract02.baseline.jsonc index ae12f4dd02a9a..b9f744eeda90e 100644 --- a/tests/baselines/reference/getOccurrencesAbstract02.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesAbstract02.baseline.jsonc @@ -1,8 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesAbstract02.ts === -// // Not valid TS (abstract methods can only appear in abstract classes) -// class Animal { -// abstract walk(): void; +// --- (line: 3) skipped --- // abstract makeSound(): void; // } // // abstract cannot appear here, won't get highlighted @@ -15,10 +13,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesAbstract02.ts === -// // Not valid TS (abstract methods can only appear in abstract classes) -// class Animal { -// abstract walk(): void; -// abstract makeSound(): void; +// --- (line: 4) skipped --- // } // // abstract cannot appear here, won't get highlighted // let c = abstract class Foo { @@ -37,9 +32,7 @@ // } // // abstract cannot appear here, won't get highlighted // let c = abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } +// --- (line: 8) skipped --- @@ -52,6 +45,4 @@ // } // // abstract cannot appear here, won't get highlighted // let c = abstract class Foo { -// abstract foo(): void; -// abstract bar(): void; -// } \ No newline at end of file +// --- (line: 8) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesAbstract03.baseline.jsonc b/tests/baselines/reference/getOccurrencesAbstract03.baseline.jsonc index be1c29974f66f..ff9b183e1746a 100644 --- a/tests/baselines/reference/getOccurrencesAbstract03.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesAbstract03.baseline.jsonc @@ -6,12 +6,7 @@ // } // abstract class B {} // } -// switch (0) { -// case 0: -// abstract class A { abstract m(): void; } -// default: -// abstract class B { abstract m(): void; } -// } +// --- (line: 7) skipped --- @@ -23,22 +18,13 @@ // } // abstract class B {} // } -// switch (0) { -// case 0: -// abstract class A { abstract m(): void; } -// default: -// abstract class B { abstract m(): void; } -// } +// --- (line: 7) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesAbstract03.ts === -// function f() { -// abstract class A { -// abstract m(): void; -// } -// abstract class B {} +// --- (line: 5) skipped --- // } // switch (0) { // case 0: @@ -51,11 +37,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesAbstract03.ts === -// function f() { -// abstract class A { -// abstract m(): void; -// } -// abstract class B {} +// --- (line: 5) skipped --- // } // switch (0) { // case 0: @@ -68,13 +50,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesAbstract03.ts === -// function f() { -// abstract class A { -// abstract m(): void; -// } -// abstract class B {} -// } -// switch (0) { +// --- (line: 7) skipped --- // case 0: // abstract class A { abstract m(): void; } // default: @@ -85,13 +61,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesAbstract03.ts === -// function f() { -// abstract class A { -// abstract m(): void; -// } -// abstract class B {} -// } -// switch (0) { +// --- (line: 7) skipped --- // case 0: // abstract class A { abstract m(): void; } // default: diff --git a/tests/baselines/reference/getOccurrencesAsyncAwait.baseline.jsonc b/tests/baselines/reference/getOccurrencesAsyncAwait.baseline.jsonc index e5c2b09776cca..b692ee7c4fc08 100644 --- a/tests/baselines/reference/getOccurrencesAsyncAwait.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesAsyncAwait.baseline.jsonc @@ -12,12 +12,7 @@ // await 300; // } // } -// async function g() { -// await 300; -// async function f() { -// await 400; -// } -// } +// --- (line: 13) skipped --- @@ -35,12 +30,7 @@ // await 300; // } // } -// async function g() { -// await 300; -// async function f() { -// await 400; -// } -// } +// --- (line: 13) skipped --- @@ -58,12 +48,7 @@ // await 300; // } // } -// async function g() { -// await 300; -// async function f() { -// await 400; -// } -// } +// --- (line: 13) skipped --- @@ -81,12 +66,7 @@ // await 300; // } // } -// async function g() { -// await 300; -// async function f() { -// await 400; -// } -// } +// --- (line: 13) skipped --- @@ -104,9 +84,4 @@ // await 300; // } // } -// async function g() { -// await 300; -// async function f() { -// await 400; -// } -// } \ No newline at end of file +// --- (line: 13) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesClassExpressionConstructor.baseline.jsonc b/tests/baselines/reference/getOccurrencesClassExpressionConstructor.baseline.jsonc index 2f1ba03217940..895bada10048e 100644 --- a/tests/baselines/reference/getOccurrencesClassExpressionConstructor.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesClassExpressionConstructor.baseline.jsonc @@ -9,9 +9,7 @@ // } // // let B = class D { -// constructor(x: number) { -// } -// } +// --- (line: 10) skipped --- @@ -26,9 +24,7 @@ // } // // let B = class D { -// constructor(x: number) { -// } -// } +// --- (line: 10) skipped --- @@ -43,9 +39,7 @@ // } // // let B = class D { -// constructor(x: number) { -// } -// } +// --- (line: 10) skipped --- @@ -60,6 +54,4 @@ // } // // let B = class D { -// constructor(x: number) { -// } -// } \ No newline at end of file +// --- (line: 10) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesClassExpressionPrivate.baseline.jsonc b/tests/baselines/reference/getOccurrencesClassExpressionPrivate.baseline.jsonc index e8105de0f342d..f40884adc52b4 100644 --- a/tests/baselines/reference/getOccurrencesClassExpressionPrivate.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesClassExpressionPrivate.baseline.jsonc @@ -11,11 +11,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -32,11 +28,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -53,11 +45,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -74,11 +62,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -95,8 +79,4 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } \ No newline at end of file +// --- (line: 12) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesClassExpressionPublic.baseline.jsonc b/tests/baselines/reference/getOccurrencesClassExpressionPublic.baseline.jsonc index bd2b233105b92..5e1cc6e6854bf 100644 --- a/tests/baselines/reference/getOccurrencesClassExpressionPublic.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesClassExpressionPublic.baseline.jsonc @@ -11,11 +11,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -32,11 +28,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -53,11 +45,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -74,11 +62,7 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } +// --- (line: 12) skipped --- @@ -95,8 +79,4 @@ // } // // let B = class D { -// constructor(private x: number) { -// } -// private test() {} -// public test2() {} -// } \ No newline at end of file +// --- (line: 12) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesClassExpressionStatic.baseline.jsonc b/tests/baselines/reference/getOccurrencesClassExpressionStatic.baseline.jsonc index 5f90bac4d72c5..5d64978b153f9 100644 --- a/tests/baselines/reference/getOccurrencesClassExpressionStatic.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesClassExpressionStatic.baseline.jsonc @@ -12,12 +12,7 @@ // } // // let B = class D { -// static a; -// constructor(private x: number) { -// } -// private static test() {} -// public static test2() {} -// } +// --- (line: 13) skipped --- @@ -35,12 +30,7 @@ // } // // let B = class D { -// static a; -// constructor(private x: number) { -// } -// private static test() {} -// public static test2() {} -// } +// --- (line: 13) skipped --- @@ -58,12 +48,7 @@ // } // // let B = class D { -// static a; -// constructor(private x: number) { -// } -// private static test() {} -// public static test2() {} -// } +// --- (line: 13) skipped --- @@ -81,9 +66,4 @@ // } // // let B = class D { -// static a; -// constructor(private x: number) { -// } -// private static test() {} -// public static test2() {} -// } \ No newline at end of file +// --- (line: 13) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesClassExpressionStaticThis.baseline.jsonc b/tests/baselines/reference/getOccurrencesClassExpressionStaticThis.baseline.jsonc index 333637861d2bb..8f8a93ab2fb57 100644 --- a/tests/baselines/reference/getOccurrencesClassExpressionStaticThis.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesClassExpressionStaticThis.baseline.jsonc @@ -1,31 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesClassExpressionStaticThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// public staticX; -// constructor() { -// this; -// this.x; -// this.y; -// this.z; -// } -// foo() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return this.x; +// --- (line: 26) skipped --- // } // // static bar() { @@ -38,44 +13,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 39) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesClassExpressionStaticThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// public staticX; -// constructor() { -// this; -// this.x; -// this.y; -// this.z; -// } -// foo() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return this.x; +// --- (line: 26) skipped --- // } // // static bar() { @@ -88,44 +32,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 39) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesClassExpressionStaticThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// public staticX; -// constructor() { -// this; -// this.x; -// this.y; -// this.z; -// } -// foo() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return this.x; +// --- (line: 26) skipped --- // } // // static bar() { @@ -138,44 +51,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 39) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesClassExpressionStaticThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// public staticX; -// constructor() { -// this; -// this.x; -// this.y; -// this.z; -// } -// foo() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return this.x; +// --- (line: 26) skipped --- // } // // static bar() { @@ -188,44 +70,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 39) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesClassExpressionStaticThis.ts === -// var x = class C { -// public x; -// public y; -// public z; -// public staticX; -// constructor() { -// this; -// this.x; -// this.y; -// this.z; -// } -// foo() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// return this.x; +// --- (line: 26) skipped --- // } // // static bar() { @@ -238,10 +89,4 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } \ No newline at end of file +// --- (line: 39) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesClassExpressionThis.baseline.jsonc b/tests/baselines/reference/getOccurrencesClassExpressionThis.baseline.jsonc index bb8244d48dc7b..c0144d2429c36 100644 --- a/tests/baselines/reference/getOccurrencesClassExpressionThis.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesClassExpressionThis.baseline.jsonc @@ -28,21 +28,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -76,21 +62,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -124,21 +96,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -172,21 +130,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -220,21 +164,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -268,21 +198,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -316,21 +232,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -364,21 +266,7 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } +// --- (line: 29) skipped --- @@ -412,18 +300,4 @@ // } // // static bar() { -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } \ No newline at end of file +// --- (line: 29) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesConst02.baseline.jsonc b/tests/baselines/reference/getOccurrencesConst02.baseline.jsonc index 1d52f130a8007..6e0f0fa9cf2fc 100644 --- a/tests/baselines/reference/getOccurrencesConst02.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesConst02.baseline.jsonc @@ -6,18 +6,13 @@ // } // } // -// declare const x; -// declare const enum E { -// } +// --- (line: 7) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesConst02.ts === -// module m { -// declare const x; -// declare const enum E { -// } +// --- (line: 4) skipped --- // } // // declare const x; @@ -33,18 +28,13 @@ // declare const enum E { // } // } -// -// declare const x; -// declare const enum E { -// } +// --- (line: 6) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesConst02.ts === -// module m { -// declare const x; -// declare const enum E { +// --- (line: 3) skipped --- // } // } // diff --git a/tests/baselines/reference/getOccurrencesConst03.baseline.jsonc b/tests/baselines/reference/getOccurrencesConst03.baseline.jsonc index 8d53f6fa2fa62..9ed27fd0bb3ea 100644 --- a/tests/baselines/reference/getOccurrencesConst03.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesConst03.baseline.jsonc @@ -6,18 +6,13 @@ // } // } // -// export const x; -// export const enum E { -// } +// --- (line: 7) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesConst03.ts === -// module m { -// export const x; -// export const enum E { -// } +// --- (line: 4) skipped --- // } // // export const x; @@ -33,18 +28,13 @@ // export const enum E { // } // } -// -// export const x; -// export const enum E { -// } +// --- (line: 6) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesConst03.ts === -// module m { -// export const x; -// export const enum E { +// --- (line: 3) skipped --- // } // } // diff --git a/tests/baselines/reference/getOccurrencesConstructor.baseline.jsonc b/tests/baselines/reference/getOccurrencesConstructor.baseline.jsonc index 98d66225d3aae..afe78365c6c94 100644 --- a/tests/baselines/reference/getOccurrencesConstructor.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesConstructor.baseline.jsonc @@ -14,9 +14,7 @@ // } // // class D { -// constructor(public x: number, public y: number) { -// } -// } +// --- (line: 15) skipped --- @@ -36,9 +34,7 @@ // } // // class D { -// constructor(public x: number, public y: number) { -// } -// } +// --- (line: 15) skipped --- @@ -58,9 +54,7 @@ // } // // class D { -// constructor(public x: number, public y: number) { -// } -// } +// --- (line: 15) skipped --- @@ -80,6 +74,4 @@ // } // // class D { -// constructor(public x: number, public y: number) { -// } -// } \ No newline at end of file +// --- (line: 15) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesConstructor2.baseline.jsonc b/tests/baselines/reference/getOccurrencesConstructor2.baseline.jsonc index 696419c5c32b7..f10efc9435f0c 100644 --- a/tests/baselines/reference/getOccurrencesConstructor2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesConstructor2.baseline.jsonc @@ -1,16 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesConstructor2.ts === -// class C { -// constructor(); -// constructor(x: number); -// constructor(y: string, x: number); -// constructor(a?: any, ...r: any[]) { -// if (a === undefined && r.length === 0) { -// return; -// } -// -// return; -// } +// --- (line: 11) skipped --- // } // // class D { diff --git a/tests/baselines/reference/getOccurrencesDeclare1.baseline.jsonc b/tests/baselines/reference/getOccurrencesDeclare1.baseline.jsonc index 979bd69d6302f..5006fc0f8f0c1 100644 --- a/tests/baselines/reference/getOccurrencesDeclare1.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesDeclare1.baseline.jsonc @@ -1,32 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesDeclare1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// +// --- (line: 27) skipped --- // export interface I1 { // } // @@ -34,17 +8,9 @@ // interface I2 { // } // } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } +// --- (line: 35) skipped --- + +// --- (line: 45) skipped --- // } // } // @@ -57,33 +23,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesDeclare1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// +// --- (line: 27) skipped --- // export interface I1 { // } // @@ -91,17 +31,9 @@ // interface I2 { // } // } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } +// --- (line: 35) skipped --- + +// --- (line: 45) skipped --- // } // } // @@ -114,33 +46,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesDeclare1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// +// --- (line: 27) skipped --- // export interface I1 { // } // @@ -148,17 +54,9 @@ // interface I2 { // } // } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } +// --- (line: 35) skipped --- + +// --- (line: 45) skipped --- // } // } // diff --git a/tests/baselines/reference/getOccurrencesDeclare2.baseline.jsonc b/tests/baselines/reference/getOccurrencesDeclare2.baseline.jsonc index 98f268faf55a7..f17fddb2088a8 100644 --- a/tests/baselines/reference/getOccurrencesDeclare2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesDeclare2.baseline.jsonc @@ -1,38 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesDeclare2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } +// --- (line: 33) skipped --- // } // // export module mb.m1.m2.m3 { @@ -40,16 +8,4 @@ // // export class C2 { // public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 41) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesDeclare3.baseline.jsonc b/tests/baselines/reference/getOccurrencesDeclare3.baseline.jsonc index 44fbce8967014..cc52bd9b608de 100644 --- a/tests/baselines/reference/getOccurrencesDeclare3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesDeclare3.baseline.jsonc @@ -6,54 +6,9 @@ // // module m { // export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; +// --- (line: 7) skipped --- + +// --- (line: 54) skipped --- // declare function foo(): string; // } // @@ -71,54 +26,9 @@ // // module m { // export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; +// --- (line: 7) skipped --- + +// --- (line: 54) skipped --- // declare function foo(): string; // } // @@ -136,54 +46,9 @@ // // module m { // export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; +// --- (line: 7) skipped --- + +// --- (line: 54) skipped --- // declare function foo(): string; // } // @@ -201,54 +66,9 @@ // // module m { // export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; +// --- (line: 7) skipped --- + +// --- (line: 54) skipped --- // declare function foo(): string; // } // diff --git a/tests/baselines/reference/getOccurrencesExport1.baseline.jsonc b/tests/baselines/reference/getOccurrencesExport1.baseline.jsonc index 4c7631f111fe7..b2afee677c5d3 100644 --- a/tests/baselines/reference/getOccurrencesExport1.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesExport1.baseline.jsonc @@ -5,25 +5,9 @@ // public pub1; // public pub2; // private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; +// --- (line: 6) skipped --- + +// --- (line: 24) skipped --- // protected static statProt; // } // @@ -39,13 +23,9 @@ // declare var foo; // // export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } +// --- (line: 40) skipped --- + +// --- (line: 46) skipped --- // } // // declare var ambientThing: number; @@ -62,25 +42,9 @@ // public pub1; // public pub2; // private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; +// --- (line: 6) skipped --- + +// --- (line: 24) skipped --- // protected static statProt; // } // @@ -96,13 +60,9 @@ // declare var foo; // // export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } +// --- (line: 40) skipped --- + +// --- (line: 46) skipped --- // } // // declare var ambientThing: number; @@ -119,25 +79,9 @@ // public pub1; // public pub2; // private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; +// --- (line: 6) skipped --- + +// --- (line: 24) skipped --- // protected static statProt; // } // @@ -153,13 +97,9 @@ // declare var foo; // // export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } +// --- (line: 40) skipped --- + +// --- (line: 46) skipped --- // } // // declare var ambientThing: number; @@ -176,25 +116,9 @@ // public pub1; // public pub2; // private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; +// --- (line: 6) skipped --- + +// --- (line: 24) skipped --- // protected static statProt; // } // @@ -210,13 +134,9 @@ // declare var foo; // // export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } +// --- (line: 40) skipped --- + +// --- (line: 46) skipped --- // } // // declare var ambientThing: number; @@ -233,25 +153,9 @@ // public pub1; // public pub2; // private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; +// --- (line: 6) skipped --- + +// --- (line: 24) skipped --- // protected static statProt; // } // @@ -267,13 +171,9 @@ // declare var foo; // // export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } +// --- (line: 40) skipped --- + +// --- (line: 46) skipped --- // } // // declare var ambientThing: number; diff --git a/tests/baselines/reference/getOccurrencesExport2.baseline.jsonc b/tests/baselines/reference/getOccurrencesExport2.baseline.jsonc index 540f9262b4a08..8f9718857981e 100644 --- a/tests/baselines/reference/getOccurrencesExport2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesExport2.baseline.jsonc @@ -1,40 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesExport2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// +// --- (line: 35) skipped --- // export module mb.m1.m2.m3 { // declare var foo; // @@ -42,14 +8,4 @@ // public pub1; // private priv1; // protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 43) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesExport3.baseline.jsonc b/tests/baselines/reference/getOccurrencesExport3.baseline.jsonc index 6f95d47876ce0..115f23f8aaf31 100644 --- a/tests/baselines/reference/getOccurrencesExport3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesExport3.baseline.jsonc @@ -6,54 +6,9 @@ // // module m { // export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; +// --- (line: 7) skipped --- + +// --- (line: 54) skipped --- // declare function foo(): string; // } // @@ -71,54 +26,9 @@ // // module m { // export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; +// --- (line: 7) skipped --- + +// --- (line: 54) skipped --- // declare function foo(): string; // } // @@ -136,54 +46,9 @@ // // module m { // export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; +// --- (line: 7) skipped --- + +// --- (line: 54) skipped --- // declare function foo(): string; // } // diff --git a/tests/baselines/reference/getOccurrencesIfElse.baseline.jsonc b/tests/baselines/reference/getOccurrencesIfElse.baseline.jsonc index 51df059f24f23..356412acf96c5 100644 --- a/tests/baselines/reference/getOccurrencesIfElse.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesIfElse.baseline.jsonc @@ -4,12 +4,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -30,12 +27,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -56,12 +50,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -82,12 +73,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -108,12 +96,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -134,12 +119,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -160,12 +142,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } diff --git a/tests/baselines/reference/getOccurrencesIfElse2.baseline.jsonc b/tests/baselines/reference/getOccurrencesIfElse2.baseline.jsonc index 392f95a5da589..620c2abed4bf2 100644 --- a/tests/baselines/reference/getOccurrencesIfElse2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesIfElse2.baseline.jsonc @@ -7,20 +7,7 @@ // } // if (true) { // } -// else { -// if (false) -// if (true) -// var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 8) skipped --- @@ -33,17 +20,4 @@ // } // if (true) { // } -// else { -// if (false) -// if (true) -// var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } \ No newline at end of file +// --- (line: 8) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesIfElse3.baseline.jsonc b/tests/baselines/reference/getOccurrencesIfElse3.baseline.jsonc index a34f4d73ecd44..739be94b4e82c 100644 --- a/tests/baselines/reference/getOccurrencesIfElse3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesIfElse3.baseline.jsonc @@ -11,16 +11,7 @@ // if (false) // if (true) // var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 12) skipped --- @@ -37,13 +28,4 @@ // if (false) // if (true) // var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } \ No newline at end of file +// --- (line: 12) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesIfElse4.baseline.jsonc b/tests/baselines/reference/getOccurrencesIfElse4.baseline.jsonc index 7d61eab1cd479..fcae4a7442ae4 100644 --- a/tests/baselines/reference/getOccurrencesIfElse4.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesIfElse4.baseline.jsonc @@ -1,10 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesIfElse4.ts === -// if (true) { -// if (false) { -// } -// else { -// } +// --- (line: 5) skipped --- // if (true) { // } // else { @@ -12,26 +8,13 @@ // if (true) // var x = undefined; // } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesIfElse4.ts === -// if (true) { -// if (false) { -// } -// else { -// } -// if (true) { +// --- (line: 6) skipped --- // } // else { // if (false) @@ -39,25 +22,13 @@ // var x = undefined; // } // } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 14) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesIfElse4.ts === -// if (true) { -// if (false) { -// } -// else { -// } -// if (true) { +// --- (line: 6) skipped --- // } // else { // if (false) @@ -65,11 +36,4 @@ // var x = undefined; // } // } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } \ No newline at end of file +// --- (line: 14) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesIfElse5.baseline.jsonc b/tests/baselines/reference/getOccurrencesIfElse5.baseline.jsonc index 1f47d70529860..1d966637a2c4b 100644 --- a/tests/baselines/reference/getOccurrencesIfElse5.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesIfElse5.baseline.jsonc @@ -4,12 +4,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -33,20 +30,7 @@ // } // if (true) { // } -// else { -// if (false) -// if (true) -// var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 8) skipped --- @@ -59,20 +43,7 @@ // } // if (true) { // } -// else { -// if (false) -// if (true) -// var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 8) skipped --- @@ -89,16 +60,7 @@ // if (false) // if (true) // var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 12) skipped --- @@ -115,26 +77,13 @@ // if (false) // if (true) // var x = undefined; -// } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 12) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesIfElse5.ts === -// if (true) { -// if (false) { -// } -// else { -// } +// --- (line: 5) skipped --- // if (true) { // } // else { @@ -142,26 +91,13 @@ // if (true) // var x = undefined; // } -// } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesIfElse5.ts === -// if (true) { -// if (false) { -// } -// else { -// } -// if (true) { +// --- (line: 6) skipped --- // } // else { // if (false) @@ -169,14 +105,7 @@ // var x = undefined; // } // } -// else if (null) { -// } -// else /* whar garbl */ if (undefined) { -// } -// else -// if (false) { -// } -// else { } +// --- (line: 14) skipped --- @@ -186,12 +115,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -212,12 +138,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -238,12 +161,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -264,12 +184,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -290,12 +207,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } @@ -316,12 +230,9 @@ // if (false) { // } // else { -// } -// if (true) { -// } -// else { -// if (false) -// if (true) +// --- (line: 5) skipped --- + +// --- (line: 10) skipped --- // var x = undefined; // } // } diff --git a/tests/baselines/reference/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc b/tests/baselines/reference/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc index 76cdf0796a416..094ac4cc2c687 100644 --- a/tests/baselines/reference/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesIsDefinitionOfInterfaceClassMerge.baseline.jsonc @@ -22,13 +22,7 @@ // 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); + // --- (line: 7) skipped --- // === Details === [ @@ -96,13 +90,7 @@ // 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); + // --- (line: 7) skipped --- // === Details === [ @@ -171,12 +159,7 @@ // 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); + // --- (line: 8) skipped --- // === Details === [ @@ -245,12 +228,7 @@ // 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); + // --- (line: 8) skipped --- // === Details === [ @@ -322,9 +300,7 @@ // f(n: number) { // return this.p + this.m + n; // } - // } - // let i: Numbers = new Numbers(); - // let x = i.f(i.p + i.m); + // --- (line: 11) skipped --- // === Details === [ @@ -396,9 +372,7 @@ // f(n: number) { // return this.p + this.m + n; // } - // } - // let i: Numbers = new Numbers(); - // let x = i.f(i.p + i.m); + // --- (line: 11) skipped --- // === Details === [ diff --git a/tests/baselines/reference/getOccurrencesIsDefinitionOfVariable.baseline.jsonc b/tests/baselines/reference/getOccurrencesIsDefinitionOfVariable.baseline.jsonc index 02ce3cabb3353..251990dc25ae6 100644 --- a/tests/baselines/reference/getOccurrencesIsDefinitionOfVariable.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesIsDefinitionOfVariable.baseline.jsonc @@ -24,19 +24,7 @@ // 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; + // --- (line: 5) skipped --- // === Details === [ @@ -102,19 +90,7 @@ // 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; + // --- (line: 5) skipped --- // === Details === [ @@ -181,18 +157,7 @@ // 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; + // --- (line: 6) skipped --- // === Details === [ @@ -260,17 +225,7 @@ // // 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; + // --- (line: 7) skipped --- // === Details === [ @@ -340,15 +295,7 @@ // x = x + x; // // x == 1; - // x <= 1; - // - // var preIncrement = ++x; - // var postIncrement = x++; - // var preDecrement = --x; - // var postDecrement = x--; - // - // x += 1; - // x <<= 1; + // --- (line: 9) skipped --- // === Details === [ @@ -419,14 +366,7 @@ // // x == 1; // x <= 1; - // - // var preIncrement = ++x; - // var postIncrement = x++; - // var preDecrement = --x; - // var postDecrement = x--; - // - // x += 1; - // x <<= 1; + // --- (line: 10) skipped --- // === Details === [ @@ -497,14 +437,7 @@ // // x == 1; // x <= 1; - // - // var preIncrement = ++x; - // var postIncrement = x++; - // var preDecrement = --x; - // var postDecrement = x--; - // - // x += 1; - // x <<= 1; + // --- (line: 10) skipped --- // === Details === [ @@ -575,14 +508,7 @@ // // x == 1; // x <= 1; - // - // var preIncrement = ++x; - // var postIncrement = x++; - // var preDecrement = --x; - // var postDecrement = x--; - // - // x += 1; - // x <<= 1; + // --- (line: 10) skipped --- // === Details === [ @@ -655,12 +581,7 @@ // x <= 1; // // var preIncrement = ++x; - // var postIncrement = x++; - // var preDecrement = --x; - // var postDecrement = x--; - // - // x += 1; - // x <<= 1; + // --- (line: 12) skipped --- // === Details === [ @@ -734,11 +655,7 @@ // // var preIncrement = ++x; // var postIncrement = x++; - // var preDecrement = --x; - // var postDecrement = x--; - // - // x += 1; - // x <<= 1; + // --- (line: 13) skipped --- // === Details === [ @@ -814,9 +731,7 @@ // var postIncrement = x++; // var preDecrement = --x; // var postDecrement = x--; - // - // x += 1; - // x <<= 1; + // --- (line: 15) skipped --- // === Details === [ @@ -882,10 +797,9 @@ // var assignmentRightHandSide = x; // var assignmentRightHandSide2 = 1 + x; // - // x = 1; - // x = x + x; - // - // x == 1; + // --- (line: 5) skipped --- + + // --- (line: 8) skipped --- // x <= 1; // // var preIncrement = ++x; @@ -960,11 +874,9 @@ // var assignmentRightHandSide = x; // var assignmentRightHandSide2 = 1 + x; // - // x = 1; - // x = x + x; - // - // x == 1; - // x <= 1; + // --- (line: 5) skipped --- + + // --- (line: 9) skipped --- // // var preIncrement = ++x; // var postIncrement = x++; @@ -1038,12 +950,9 @@ // var assignmentRightHandSide = x; // var assignmentRightHandSide2 = 1 + x; // - // x = 1; - // x = x + x; - // - // x == 1; - // x <= 1; - // + // --- (line: 5) skipped --- + + // --- (line: 10) skipped --- // var preIncrement = ++x; // var postIncrement = x++; // var preDecrement = --x; @@ -1116,14 +1025,9 @@ // var assignmentRightHandSide = x; // var assignmentRightHandSide2 = 1 + x; // - // x = 1; - // x = x + x; - // - // x == 1; - // x <= 1; - // - // var preIncrement = ++x; - // var postIncrement = x++; + // --- (line: 5) skipped --- + + // --- (line: 12) skipped --- // var preDecrement = --x; // var postDecrement = x--; // @@ -1194,15 +1098,9 @@ // 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; + // --- (line: 5) skipped --- + + // --- (line: 13) skipped --- // var postDecrement = x--; // // x += 1; diff --git a/tests/baselines/reference/getOccurrencesLoopBreakContinue.baseline.jsonc b/tests/baselines/reference/getOccurrencesLoopBreakContinue.baseline.jsonc index aea27bcb5b9cc..c8cd9930b60d7 100644 --- a/tests/baselines/reference/getOccurrencesLoopBreakContinue.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesLoopBreakContinue.baseline.jsonc @@ -13,55 +13,7 @@ // // break; // continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 14) skipped --- @@ -80,55 +32,7 @@ // // break; // continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 14) skipped --- @@ -147,55 +51,7 @@ // // break; // continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 14) skipped --- @@ -214,55 +70,7 @@ // // break; // continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 14) skipped --- @@ -281,55 +89,7 @@ // // break; // continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 14) skipped --- @@ -348,55 +108,7 @@ // // break; // continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 14) skipped --- @@ -415,52 +127,4 @@ // // break; // continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; \ No newline at end of file +// --- (line: 14) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesLoopBreakContinue2.baseline.jsonc b/tests/baselines/reference/getOccurrencesLoopBreakContinue2.baseline.jsonc index 64f974d749a80..ae88396b8a4d8 100644 --- a/tests/baselines/reference/getOccurrencesLoopBreakContinue2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesLoopBreakContinue2.baseline.jsonc @@ -1,9 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue2.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; +// --- (line: 4) skipped --- // break label1; // continue label1; // @@ -18,59 +15,13 @@ // // function foo() { // label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 19) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue2.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; +// --- (line: 4) skipped --- // break label1; // continue label1; // @@ -85,59 +36,13 @@ // // function foo() { // label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 19) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue2.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; +// --- (line: 4) skipped --- // break label1; // continue label1; // @@ -152,59 +57,13 @@ // // function foo() { // label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 19) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue2.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; +// --- (line: 4) skipped --- // break label1; // continue label1; // @@ -219,59 +78,13 @@ // // function foo() { // label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 19) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue2.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; +// --- (line: 4) skipped --- // break label1; // continue label1; // @@ -286,47 +99,4 @@ // // function foo() { // label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; \ No newline at end of file +// --- (line: 19) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesLoopBreakContinue3.baseline.jsonc b/tests/baselines/reference/getOccurrencesLoopBreakContinue3.baseline.jsonc index f30581860e5f6..5bb5d3ebb68eb 100644 --- a/tests/baselines/reference/getOccurrencesLoopBreakContinue3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesLoopBreakContinue3.baseline.jsonc @@ -1,19 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue3.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; +// --- (line: 14) skipped --- // continue label2; // // function foo() { @@ -25,13 +12,9 @@ // // // these cross function boundaries // break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; +// --- (line: 26) skipped --- + +// --- (line: 32) skipped --- // break label4; // continue label4; // @@ -40,47 +23,13 @@ // // switch (10) { // case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 41) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue3.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; +// --- (line: 14) skipped --- // continue label2; // // function foo() { @@ -92,13 +41,9 @@ // // // these cross function boundaries // break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; +// --- (line: 26) skipped --- + +// --- (line: 32) skipped --- // break label4; // continue label4; // @@ -107,47 +52,13 @@ // // switch (10) { // case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 41) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue3.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; +// --- (line: 14) skipped --- // continue label2; // // function foo() { @@ -159,13 +70,9 @@ // // // these cross function boundaries // break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; +// --- (line: 26) skipped --- + +// --- (line: 32) skipped --- // break label4; // continue label4; // @@ -174,47 +81,13 @@ // // switch (10) { // case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 41) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue3.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; +// --- (line: 14) skipped --- // continue label2; // // function foo() { @@ -226,13 +99,9 @@ // // // these cross function boundaries // break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; +// --- (line: 26) skipped --- + +// --- (line: 32) skipped --- // break label4; // continue label4; // @@ -241,47 +110,13 @@ // // switch (10) { // case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 41) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue3.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; +// --- (line: 14) skipped --- // continue label2; // // function foo() { @@ -293,13 +128,9 @@ // // // these cross function boundaries // break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; +// --- (line: 26) skipped --- + +// --- (line: 32) skipped --- // break label4; // continue label4; // @@ -308,47 +139,13 @@ // // switch (10) { // case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 41) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue3.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; +// --- (line: 14) skipped --- // continue label2; // // function foo() { @@ -360,13 +157,9 @@ // // // these cross function boundaries // break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; +// --- (line: 26) skipped --- + +// --- (line: 32) skipped --- // break label4; // continue label4; // @@ -375,47 +168,13 @@ // // switch (10) { // case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 41) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue3.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; +// --- (line: 14) skipped --- // continue label2; // // function foo() { @@ -427,13 +186,9 @@ // // // these cross function boundaries // break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; +// --- (line: 26) skipped --- + +// --- (line: 32) skipped --- // break label4; // continue label4; // @@ -442,25 +197,4 @@ // // switch (10) { // case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; \ No newline at end of file +// --- (line: 41) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesLoopBreakContinue4.baseline.jsonc b/tests/baselines/reference/getOccurrencesLoopBreakContinue4.baseline.jsonc index 49f655ff24da7..023874442e776 100644 --- a/tests/baselines/reference/getOccurrencesLoopBreakContinue4.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesLoopBreakContinue4.baseline.jsonc @@ -1,31 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -57,42 +32,13 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 58) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -124,42 +70,13 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 58) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -191,42 +108,13 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 58) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -258,42 +146,13 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 58) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -325,42 +184,13 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 58) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -392,42 +222,13 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 58) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -459,42 +260,13 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 58) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue4.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; +// --- (line: 26) skipped --- // break label2; // continue label2; // @@ -526,8 +298,4 @@ // } // } // } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; \ No newline at end of file +// --- (line: 58) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesLoopBreakContinue5.baseline.jsonc b/tests/baselines/reference/getOccurrencesLoopBreakContinue5.baseline.jsonc index 348c6e8ebd63e..0fc40ee0d4781 100644 --- a/tests/baselines/reference/getOccurrencesLoopBreakContinue5.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesLoopBreakContinue5.baseline.jsonc @@ -1,61 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue5.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } +// --- (line: 56) skipped --- // } // } // @@ -67,62 +12,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue5.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } +// --- (line: 56) skipped --- // } // } // diff --git a/tests/baselines/reference/getOccurrencesLoopBreakContinue6.baseline.jsonc b/tests/baselines/reference/getOccurrencesLoopBreakContinue6.baseline.jsonc index 959948f24554d..16063522ab54d 100644 --- a/tests/baselines/reference/getOccurrencesLoopBreakContinue6.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesLoopBreakContinue6.baseline.jsonc @@ -1,26 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; +// --- (line: 21) skipped --- // continue label3; // // // these cross function boundaries @@ -28,67 +8,13 @@ // continue label1; // break label2; // continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; +// --- (line: 22) skipped --- // // // these cross function boundaries // break label1; @@ -96,67 +22,13 @@ // break label2; // continue label2; // -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 30) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// +// --- (line: 23) skipped --- // // these cross function boundaries // break label1; // continue label1; @@ -164,67 +36,13 @@ // continue label2; // // label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 31) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries +// --- (line: 24) skipped --- // break label1; // continue label1; // break label2; @@ -232,87 +50,13 @@ // // label4: do { // break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 32) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; +// --- (line: 45) skipped --- // } // // // these cross function boundaries @@ -320,67 +64,13 @@ // continue label1; // break label2; // continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 53) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } +// --- (line: 46) skipped --- // // // these cross function boundaries // break label1; @@ -388,67 +78,13 @@ // break label2; // continue label2; // () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 54) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// +// --- (line: 47) skipped --- // // these cross function boundaries // break label1; // continue label1; @@ -456,67 +92,13 @@ // continue label2; // () => { break; } // } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 55) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries +// --- (line: 48) skipped --- // break label1; // continue label1; // break label2; @@ -524,67 +106,13 @@ // () => { break; } // } while (true) // } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 56) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; +// --- (line: 49) skipped --- // continue label1; // break label2; // continue label2; @@ -592,75 +120,13 @@ // } while (true) // } // } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 57) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinue6.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } +// --- (line: 58) skipped --- // // label5: while (true) break label5; // diff --git a/tests/baselines/reference/getOccurrencesLoopBreakContinueNegatives.baseline.jsonc b/tests/baselines/reference/getOccurrencesLoopBreakContinueNegatives.baseline.jsonc index 2d7bf15101c9f..bed0a35c4117f 100644 --- a/tests/baselines/reference/getOccurrencesLoopBreakContinueNegatives.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesLoopBreakContinueNegatives.baseline.jsonc @@ -1,26 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; +// --- (line: 21) skipped --- // continue label3; // // // these cross function boundaries @@ -28,67 +8,13 @@ // continue label1; // break label2; // continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; +// --- (line: 22) skipped --- // // // these cross function boundaries // break label1; @@ -96,67 +22,13 @@ // break label2; // continue label2; // -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 30) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// +// --- (line: 23) skipped --- // // these cross function boundaries // break label1; // continue label1; @@ -164,67 +36,13 @@ // continue label2; // // label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 31) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries +// --- (line: 24) skipped --- // break label1; // continue label1; // break label2; @@ -232,87 +50,13 @@ // // label4: do { // break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 32) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; +// --- (line: 45) skipped --- // } // // // these cross function boundaries @@ -320,67 +64,13 @@ // continue label1; // break label2; // continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 53) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } +// --- (line: 46) skipped --- // // // these cross function boundaries // break label1; @@ -388,67 +78,13 @@ // break label2; // continue label2; // () => { break; } -// } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 54) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// +// --- (line: 47) skipped --- // // these cross function boundaries // break label1; // continue label1; @@ -456,67 +92,13 @@ // continue label2; // () => { break; } // } while (true) -// } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 55) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries +// --- (line: 48) skipped --- // break label1; // continue label1; // break label2; @@ -524,67 +106,13 @@ // () => { break; } // } while (true) // } -// } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 56) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; +// --- (line: 49) skipped --- // continue label1; // break label2; // continue label2; @@ -592,75 +120,13 @@ // } while (true) // } // } -// } -// } -// -// label5: while (true) break label5; -// -// label7: while (true) continue label5; +// --- (line: 57) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesLoopBreakContinueNegatives.ts === -// var arr = [1, 2, 3, 4]; -// label1: for (var n in arr) { -// break; -// continue; -// break label1; -// continue label1; -// -// label2: for (var i = 0; i < arr[n]; i++) { -// break label1; -// continue label1; -// -// break; -// continue; -// break label2; -// continue label2; -// -// function foo() { -// label3: while (true) { -// break; -// continue; -// break label3; -// continue label3; -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// -// label4: do { -// break; -// continue; -// break label4; -// continue label4; -// -// break label3; -// continue label3; -// -// switch (10) { -// case 1: -// case 2: -// break; -// break label4; -// default: -// continue; -// } -// -// // these cross function boundaries -// break label1; -// continue label1; -// break label2; -// continue label2; -// () => { break; } -// } while (true) -// } -// } -// } -// } +// --- (line: 58) skipped --- // // label5: while (true) break label5; // diff --git a/tests/baselines/reference/getOccurrencesModifiersNegatives1.baseline.jsonc b/tests/baselines/reference/getOccurrencesModifiersNegatives1.baseline.jsonc index cd12ff351b950..528707fe21df2 100644 --- a/tests/baselines/reference/getOccurrencesModifiersNegatives1.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesModifiersNegatives1.baseline.jsonc @@ -8,31 +8,7 @@ // // constructor(export conFoo, // declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 9) skipped --- @@ -46,31 +22,7 @@ // // constructor(export conFoo, // declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 9) skipped --- @@ -84,31 +36,7 @@ // // constructor(export conFoo, // declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 9) skipped --- @@ -122,31 +50,7 @@ // // constructor(export conFoo, // declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 9) skipped --- @@ -160,31 +64,7 @@ // // constructor(export conFoo, // declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 9) skipped --- @@ -198,31 +78,7 @@ // // constructor(export conFoo, // declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 9) skipped --- @@ -245,22 +101,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -283,22 +124,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -321,22 +147,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -359,22 +170,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -397,22 +193,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -435,34 +216,13 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, +// --- (line: 7) skipped --- // declare conBar, // export declare conFooBar, // declare export conBarFoo, @@ -473,34 +233,13 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, +// --- (line: 7) skipped --- // declare conBar, // export declare conFooBar, // declare export conBarFoo, @@ -511,22 +250,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -549,22 +273,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -587,34 +296,13 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, +// --- (line: 7) skipped --- // declare conBar, // export declare conFooBar, // declare export conBarFoo, @@ -625,22 +313,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -663,22 +336,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -701,22 +359,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -739,34 +382,13 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, +// --- (line: 7) skipped --- // declare conBar, // export declare conFooBar, // declare export conBarFoo, @@ -777,22 +399,7 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- @@ -815,42 +422,13 @@ // } // } // -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 18) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } +// --- (line: 15) skipped --- // } // // module m { @@ -858,38 +436,13 @@ // public b; // private c; // protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 23) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } +// --- (line: 16) skipped --- // // module m { // static a; @@ -897,38 +450,13 @@ // private c; // protected d; // static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 24) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// +// --- (line: 17) skipped --- // module m { // static a; // public b; @@ -936,38 +464,13 @@ // protected d; // static public private protected e; // public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 25) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { +// --- (line: 18) skipped --- // static a; // public b; // private c; @@ -975,38 +478,13 @@ // static public private protected e; // public static protected private f; // protected static public g; -// } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 26) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; +// --- (line: 19) skipped --- // public b; // private c; // protected d; @@ -1014,37 +492,13 @@ // public static protected private f; // protected static public g; // } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 27) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; +// --- (line: 19) skipped --- // public b; // private c; // protected d; @@ -1052,37 +506,13 @@ // public static protected private f; // protected static public g; // } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 27) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; +// --- (line: 19) skipped --- // public b; // private c; // protected d; @@ -1090,37 +520,13 @@ // public static protected private f; // protected static public g; // } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 27) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; +// --- (line: 19) skipped --- // public b; // private c; // protected d; @@ -1128,38 +534,13 @@ // public static protected private f; // protected static public g; // } -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 27) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; +// --- (line: 20) skipped --- // private c; // protected d; // static public private protected e; @@ -1167,37 +548,13 @@ // protected static public g; // } // static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 28) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; +// --- (line: 20) skipped --- // private c; // protected d; // static public private protected e; @@ -1205,37 +562,13 @@ // protected static public g; // } // static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 28) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; +// --- (line: 20) skipped --- // private c; // protected d; // static public private protected e; @@ -1243,37 +576,13 @@ // protected static public g; // } // static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 28) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; +// --- (line: 20) skipped --- // private c; // protected d; // static public private protected e; @@ -1281,38 +590,13 @@ // protected static public g; // } // static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 28) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; +// --- (line: 21) skipped --- // protected d; // static public private protected e; // public static protected private f; @@ -1320,37 +604,13 @@ // } // static a; // public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; +// --- (line: 21) skipped --- // protected d; // static public private protected e; // public static protected private f; @@ -1358,37 +618,13 @@ // } // static a; // public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; +// --- (line: 21) skipped --- // protected d; // static public private protected e; // public static protected private f; @@ -1396,39 +632,13 @@ // } // static a; // public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; +// --- (line: 23) skipped --- // public static protected private f; // protected static public g; // } @@ -1436,38 +646,13 @@ // public b; // private c; // protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 31) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; +// --- (line: 24) skipped --- // protected static public g; // } // static a; @@ -1482,31 +667,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; +// --- (line: 25) skipped --- // } // static a; // public b; @@ -1520,32 +681,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } +// --- (line: 26) skipped --- // static a; // public b; // private c; @@ -1558,33 +694,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; +// --- (line: 27) skipped --- // public b; // private c; // protected d; @@ -1596,33 +706,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; +// --- (line: 27) skipped --- // public b; // private c; // protected d; @@ -1634,33 +718,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; +// --- (line: 27) skipped --- // public b; // private c; // protected d; @@ -1672,33 +730,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; +// --- (line: 27) skipped --- // public b; // private c; // protected d; @@ -1710,34 +742,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; +// --- (line: 28) skipped --- // private c; // protected d; // static public private protected e; @@ -1748,34 +753,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; +// --- (line: 28) skipped --- // private c; // protected d; // static public private protected e; @@ -1786,34 +764,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; +// --- (line: 28) skipped --- // private c; // protected d; // static public private protected e; @@ -1824,34 +775,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; +// --- (line: 28) skipped --- // private c; // protected d; // static public private protected e; @@ -1862,35 +786,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; +// --- (line: 29) skipped --- // protected d; // static public private protected e; // public static protected private f; @@ -1900,35 +796,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; +// --- (line: 29) skipped --- // protected d; // static public private protected e; // public static protected private f; @@ -1938,35 +806,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesModifiersNegatives1.ts === -// class C { -// export foo; -// declare bar; -// export declare foobar; -// declare export barfoo; -// -// constructor(export conFoo, -// declare conBar, -// export declare conFooBar, -// declare export conBarFoo, -// static sue, -// static export declare sueFooBar, -// static declare export sueBarFoo, -// declare static export barSueFoo) { -// } -// } -// -// module m { -// static a; -// public b; -// private c; -// protected d; -// static public private protected e; -// public static protected private f; -// protected static public g; -// } -// static a; -// public b; -// private c; +// --- (line: 29) skipped --- // protected d; // static public private protected e; // public static protected private f; diff --git a/tests/baselines/reference/getOccurrencesOfUndefinedSymbol.baseline.jsonc b/tests/baselines/reference/getOccurrencesOfUndefinedSymbol.baseline.jsonc index 2aa7fedc1ecc0..053466c7dae21 100644 --- a/tests/baselines/reference/getOccurrencesOfUndefinedSymbol.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesOfUndefinedSymbol.baseline.jsonc @@ -1,12 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesOfUndefinedSymbol.ts === -// var obj1: { -// (bar: any): any; -// new (bar: any): any; -// [bar: any]: any; -// bar: any; -// foob(bar: any): any; -// }; +// --- (line: 7) skipped --- // // class cls3 { // property zeFunc() { diff --git a/tests/baselines/reference/getOccurrencesPrivate1.baseline.jsonc b/tests/baselines/reference/getOccurrencesPrivate1.baseline.jsonc index fe31b4fc0d72a..03dcc8ecc75d4 100644 --- a/tests/baselines/reference/getOccurrencesPrivate1.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesPrivate1.baseline.jsonc @@ -27,32 +27,7 @@ // protected static statProt; // } // -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 28) skipped --- @@ -85,32 +60,7 @@ // protected static statProt; // } // -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 28) skipped --- @@ -143,32 +93,7 @@ // protected static statProt; // } // -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 28) skipped --- @@ -201,32 +126,7 @@ // protected static statProt; // } // -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 28) skipped --- @@ -259,32 +159,7 @@ // protected static statProt; // } // -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 28) skipped --- @@ -317,29 +192,4 @@ // protected static statProt; // } // -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 28) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesPrivate2.baseline.jsonc b/tests/baselines/reference/getOccurrencesPrivate2.baseline.jsonc index 91d2d8b91b0ba..032958a642617 100644 --- a/tests/baselines/reference/getOccurrencesPrivate2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesPrivate2.baseline.jsonc @@ -1,42 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesPrivate2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; +// --- (line: 37) skipped --- // // export class C2 { // public pub1; @@ -47,54 +11,13 @@ // public = private = protected; // } // } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 48) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesPrivate2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; +// --- (line: 37) skipped --- // // export class C2 { // public pub1; @@ -105,9 +28,4 @@ // public = private = protected; // } // } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 48) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesProtected1.baseline.jsonc b/tests/baselines/reference/getOccurrencesProtected1.baseline.jsonc index a0c0e2f929845..99e93ddc25faf 100644 --- a/tests/baselines/reference/getOccurrencesProtected1.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesProtected1.baseline.jsonc @@ -1,8 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected1.ts === -// module m { -// export class C1 { -// public pub1; +// --- (line: 3) skipped --- // public pub2; // private priv1; // private priv2; @@ -17,10 +15,9 @@ // this.public = 10; // this.private = 10; // this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } +// --- (line: 18) skipped --- + +// --- (line: 21) skipped --- // // public static statPub; // private static statPriv; @@ -28,39 +25,13 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected1.ts === -// module m { -// export class C1 { -// public pub1; +// --- (line: 3) skipped --- // public pub2; // private priv1; // private priv2; @@ -75,10 +46,9 @@ // this.public = 10; // this.private = 10; // this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } +// --- (line: 18) skipped --- + +// --- (line: 21) skipped --- // // public static statPub; // private static statPriv; @@ -86,39 +56,13 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected1.ts === -// module m { -// export class C1 { -// public pub1; +// --- (line: 3) skipped --- // public pub2; // private priv1; // private priv2; @@ -133,10 +77,9 @@ // this.public = 10; // this.private = 10; // this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } +// --- (line: 18) skipped --- + +// --- (line: 21) skipped --- // // public static statPub; // private static statPriv; @@ -144,39 +87,13 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected1.ts === -// module m { -// export class C1 { -// public pub1; +// --- (line: 3) skipped --- // public pub2; // private priv1; // private priv2; @@ -191,10 +108,9 @@ // this.public = 10; // this.private = 10; // this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } +// --- (line: 18) skipped --- + +// --- (line: 21) skipped --- // // public static statPub; // private static statPriv; @@ -202,39 +118,13 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected1.ts === -// module m { -// export class C1 { -// public pub1; +// --- (line: 3) skipped --- // public pub2; // private priv1; // private priv2; @@ -249,10 +139,9 @@ // this.public = 10; // this.private = 10; // this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } +// --- (line: 18) skipped --- + +// --- (line: 21) skipped --- // // public static statPub; // private static statPriv; @@ -260,39 +149,13 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected1.ts === -// module m { -// export class C1 { -// public pub1; +// --- (line: 3) skipped --- // public pub2; // private priv1; // private priv2; @@ -307,10 +170,9 @@ // this.public = 10; // this.private = 10; // this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } +// --- (line: 18) skipped --- + +// --- (line: 21) skipped --- // // public static statPub; // private static statPriv; @@ -318,28 +180,4 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 29) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesProtected2.baseline.jsonc b/tests/baselines/reference/getOccurrencesProtected2.baseline.jsonc index 62b719d41a618..7945aa4a1ead9 100644 --- a/tests/baselines/reference/getOccurrencesProtected2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesProtected2.baseline.jsonc @@ -1,43 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// +// --- (line: 38) skipped --- // export class C2 { // public pub1; // private priv1; @@ -47,55 +10,13 @@ // public = private = protected; // } // } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 48) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// +// --- (line: 38) skipped --- // export class C2 { // public pub1; // private priv1; @@ -105,55 +26,13 @@ // public = private = protected; // } // } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 48) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesProtected2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// +// --- (line: 38) skipped --- // export class C2 { // public pub1; // private priv1; @@ -163,9 +42,4 @@ // public = private = protected; // } // } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 48) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesPublic1.baseline.jsonc b/tests/baselines/reference/getOccurrencesPublic1.baseline.jsonc index 726c3d3353501..a20613a025202 100644 --- a/tests/baselines/reference/getOccurrencesPublic1.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesPublic1.baseline.jsonc @@ -26,33 +26,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -84,33 +58,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -142,33 +90,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -200,33 +122,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -258,33 +154,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -316,33 +186,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -374,33 +218,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -432,33 +250,7 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 27) skipped --- @@ -490,30 +282,4 @@ // private static statPriv; // protected static statProt; // } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 27) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesPublic2.baseline.jsonc b/tests/baselines/reference/getOccurrencesPublic2.baseline.jsonc index a16b7ed597bf6..9196a64a6a196 100644 --- a/tests/baselines/reference/getOccurrencesPublic2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesPublic2.baseline.jsonc @@ -1,41 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesPublic2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { +// --- (line: 36) skipped --- // declare var foo; // // export class C2 { @@ -47,53 +12,13 @@ // public = private = protected; // } // } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 48) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesPublic2.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// -// public get x() { return 10; } -// public set x(value) { } -// -// public static statPub; -// private static statPriv; -// protected static statProt; -// } -// -// export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { +// --- (line: 36) skipped --- // declare var foo; // // export class C2 { @@ -105,9 +30,4 @@ // public = private = protected; // } // } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 48) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesReadonly3.baseline.jsonc b/tests/baselines/reference/getOccurrencesReadonly3.baseline.jsonc index 8f08ba3eeb069..9b9e45b56b75a 100644 --- a/tests/baselines/reference/getOccurrencesReadonly3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesReadonly3.baseline.jsonc @@ -31,6 +31,4 @@ // constructor(readonly prop2: string) { // class D { // readonly prop: string = ""; -// } -// } -// } \ No newline at end of file +// --- (line: 6) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesReturn.baseline.jsonc b/tests/baselines/reference/getOccurrencesReturn.baseline.jsonc index c1d6f9fe6dbeb..138aa54abf6c7 100644 --- a/tests/baselines/reference/getOccurrencesReturn.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesReturn.baseline.jsonc @@ -6,12 +6,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// })() || true; -// } +// --- (line: 7) skipped --- + +// --- (line: 12) skipped --- // // var unusued = [1, 2, 3, 4].map(x => { return 4 }) // @@ -29,12 +26,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// })() || true; -// } +// --- (line: 7) skipped --- + +// --- (line: 12) skipped --- // // var unusued = [1, 2, 3, 4].map(x => { return 4 }) // @@ -52,12 +46,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// })() || true; -// } +// --- (line: 7) skipped --- + +// --- (line: 12) skipped --- // // var unusued = [1, 2, 3, 4].map(x => { return 4 }) // diff --git a/tests/baselines/reference/getOccurrencesReturn2.baseline.jsonc b/tests/baselines/reference/getOccurrencesReturn2.baseline.jsonc index 79edd1abe2791..4f84215467dbe 100644 --- a/tests/baselines/reference/getOccurrencesReturn2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesReturn2.baseline.jsonc @@ -12,12 +12,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } +// --- (line: 13) skipped --- @@ -35,12 +30,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } +// --- (line: 13) skipped --- @@ -58,12 +48,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } +// --- (line: 13) skipped --- @@ -81,9 +66,4 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } \ No newline at end of file +// --- (line: 13) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesReturn3.baseline.jsonc b/tests/baselines/reference/getOccurrencesReturn3.baseline.jsonc index e8e5529d2e180..1917f50bb9aca 100644 --- a/tests/baselines/reference/getOccurrencesReturn3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesReturn3.baseline.jsonc @@ -1,15 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesReturn3.ts === -// function f(a: number) { -// if (a > 0) { -// return (function () { -// return; -// return; -// return; -// -// if (false) { -// return true; -// } +// --- (line: 10) skipped --- // })() || true; // } // diff --git a/tests/baselines/reference/getOccurrencesReturn4.baseline.jsonc b/tests/baselines/reference/getOccurrencesReturn4.baseline.jsonc index 02d7a831d3371..309cf9a6cb491 100644 --- a/tests/baselines/reference/getOccurrencesReturn4.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesReturn4.baseline.jsonc @@ -12,12 +12,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } +// --- (line: 13) skipped --- @@ -35,12 +30,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } +// --- (line: 13) skipped --- @@ -58,12 +48,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } +// --- (line: 13) skipped --- @@ -81,27 +66,13 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesReturn4.ts === -// function f(a: number) { -// if (a > 0) { -// return (function () { -// return; -// return; -// return; -// -// if (false) { -// return true; -// } +// --- (line: 10) skipped --- // })() || true; // } // @@ -121,12 +92,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// })() || true; -// } +// --- (line: 7) skipped --- + +// --- (line: 12) skipped --- // // var unusued = [1, 2, 3, 4].map(x => { return 4 }) // @@ -144,12 +112,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// })() || true; -// } +// --- (line: 7) skipped --- + +// --- (line: 12) skipped --- // // var unusued = [1, 2, 3, 4].map(x => { return 4 }) // diff --git a/tests/baselines/reference/getOccurrencesReturnBroken.baseline.jsonc b/tests/baselines/reference/getOccurrencesReturnBroken.baseline.jsonc index a28bd7ae3b690..638dcc807507d 100644 --- a/tests/baselines/reference/getOccurrencesReturnBroken.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesReturnBroken.baseline.jsonc @@ -14,17 +14,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } -// -// class A { -// return; -// return 8675309; -// } +// --- (line: 15) skipped --- @@ -44,17 +34,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } -// -// class A { -// return; -// return 8675309; -// } +// --- (line: 15) skipped --- @@ -74,17 +54,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } -// -// class A { -// return; -// return 8675309; -// } +// --- (line: 15) skipped --- @@ -104,17 +74,7 @@ // } // })() || true; // } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } -// -// class A { -// return; -// return 8675309; -// } +// --- (line: 15) skipped --- @@ -124,27 +84,7 @@ // return; // function f(a: number) { // if (a > 0) { -// return (function () { -// () => return; -// return; -// return; -// -// if (false) { -// return true; -// } -// })() || true; -// } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } -// -// class A { -// return; -// return 8675309; -// } +// --- (line: 5) skipped --- @@ -155,50 +95,13 @@ // function f(a: number) { // if (a > 0) { // return (function () { -// () => return; -// return; -// return; -// -// if (false) { -// return true; -// } -// })() || true; -// } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; -// } -// -// class A { -// return; -// return 8675309; -// } +// --- (line: 6) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesReturnBroken.ts === -// return; -// return; -// function f(a: number) { -// if (a > 0) { -// return (function () { -// () => return; -// return; -// return; -// -// if (false) { -// return true; -// } -// })() || true; -// } -// -// var unusued = [1, 2, 3, 4].map(x => { return 4 }) -// -// return; -// return true; +// --- (line: 19) skipped --- // } // // class A { @@ -218,12 +121,9 @@ // () => return; // return; // return; -// -// if (false) { -// return true; -// } -// })() || true; -// } +// --- (line: 9) skipped --- + +// --- (line: 14) skipped --- // // var unusued = [1, 2, 3, 4].map(x => { return 4 }) // diff --git a/tests/baselines/reference/getOccurrencesSetAndGet.baseline.jsonc b/tests/baselines/reference/getOccurrencesSetAndGet.baseline.jsonc index 8524e8b160a42..a824a24533314 100644 --- a/tests/baselines/reference/getOccurrencesSetAndGet.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSetAndGet.baseline.jsonc @@ -8,20 +8,7 @@ // return undefined; // } // -// public set set(s: any) { -// } -// -// public get set(): any { -// return undefined; -// } -// -// public set get(g: any) { -// } -// -// public get get(): any { -// return undefined; -// } -// } +// --- (line: 9) skipped --- @@ -35,17 +22,4 @@ // return undefined; // } // -// public set set(s: any) { -// } -// -// public get set(): any { -// return undefined; -// } -// -// public set get(g: any) { -// } -// -// public get get(): any { -// return undefined; -// } -// } \ No newline at end of file +// --- (line: 9) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesSetAndGet2.baseline.jsonc b/tests/baselines/reference/getOccurrencesSetAndGet2.baseline.jsonc index 76a11ad0f4ecd..70401e38f9b1e 100644 --- a/tests/baselines/reference/getOccurrencesSetAndGet2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSetAndGet2.baseline.jsonc @@ -1,10 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSetAndGet2.ts === -// class Foo { -// set bar(b: any) { -// } -// -// public get bar(): any { +// --- (line: 5) skipped --- // return undefined; // } // @@ -15,23 +11,13 @@ // return undefined; // } // -// public set get(g: any) { -// } -// -// public get get(): any { -// return undefined; -// } -// } +// --- (line: 16) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSetAndGet2.ts === -// class Foo { -// set bar(b: any) { -// } -// -// public get bar(): any { +// --- (line: 5) skipped --- // return undefined; // } // @@ -42,10 +28,4 @@ // return undefined; // } // -// public set get(g: any) { -// } -// -// public get get(): any { -// return undefined; -// } -// } \ No newline at end of file +// --- (line: 16) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesSetAndGet3.baseline.jsonc b/tests/baselines/reference/getOccurrencesSetAndGet3.baseline.jsonc index 19b58bde11941..300b9d1e093eb 100644 --- a/tests/baselines/reference/getOccurrencesSetAndGet3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSetAndGet3.baseline.jsonc @@ -1,17 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSetAndGet3.ts === -// class Foo { -// set bar(b: any) { -// } -// -// public get bar(): any { -// return undefined; -// } -// -// public set set(s: any) { -// } -// -// public get set(): any { +// --- (line: 12) skipped --- // return undefined; // } // @@ -27,18 +16,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSetAndGet3.ts === -// class Foo { -// set bar(b: any) { -// } -// -// public get bar(): any { -// return undefined; -// } -// -// public set set(s: any) { -// } -// -// public get set(): any { +// --- (line: 12) skipped --- // return undefined; // } // diff --git a/tests/baselines/reference/getOccurrencesStatic1.baseline.jsonc b/tests/baselines/reference/getOccurrencesStatic1.baseline.jsonc index 3c2ebd50fbe74..58e8cacfbe84e 100644 --- a/tests/baselines/reference/getOccurrencesStatic1.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesStatic1.baseline.jsonc @@ -1,24 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesStatic1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// +// --- (line: 19) skipped --- // public get x() { return 10; } // public set x(value) { } // @@ -28,55 +10,13 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesStatic1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// +// --- (line: 19) skipped --- // public get x() { return 10; } // public set x(value) { } // @@ -86,55 +26,13 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } +// --- (line: 29) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesStatic1.ts === -// module m { -// export class C1 { -// public pub1; -// public pub2; -// private priv1; -// private priv2; -// protected prot1; -// protected prot2; -// -// public public; -// private private; -// protected protected; -// -// public constructor(public a, private b, protected c, public d, private e, protected f) { -// this.public = 10; -// this.private = 10; -// this.protected = 10; -// } -// +// --- (line: 19) skipped --- // public get x() { return 10; } // public set x(value) { } // @@ -144,28 +42,4 @@ // } // // export interface I1 { -// } -// -// export declare module ma.m1.m2.m3 { -// interface I2 { -// } -// } -// -// export module mb.m1.m2.m3 { -// declare var foo; -// -// export class C2 { -// public pub1; -// private priv1; -// protected prot1; -// -// protected constructor(public public, protected protected, private private) { -// public = private = protected; -// } -// } -// } -// -// declare var ambientThing: number; -// export var exportedThing = 10; -// declare function foo(): string; -// } \ No newline at end of file +// --- (line: 29) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesSuper.baseline.jsonc b/tests/baselines/reference/getOccurrencesSuper.baseline.jsonc index b8101c8635194..108b0d151b55d 100644 --- a/tests/baselines/reference/getOccurrencesSuper.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSuper.baseline.jsonc @@ -1,12 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } +// --- (line: 7) skipped --- // } // // class SubType extends SuperType { @@ -34,33 +28,13 @@ // } // } // -// // Bad but still gets highlighted. -// public static statProp1 = super.superStaticMethod; -// -// public static staticMethod1() { -// return super.superStaticMethod(); -// } -// -// private static staticMethod2() { -// return super.superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 35) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } +// --- (line: 7) skipped --- // } // // class SubType extends SuperType { @@ -88,33 +62,13 @@ // } // } // -// // Bad but still gets highlighted. -// public static statProp1 = super.superStaticMethod; -// -// public static staticMethod1() { -// return super.superStaticMethod(); -// } -// -// private static staticMethod2() { -// return super.superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 35) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } +// --- (line: 7) skipped --- // } // // class SubType extends SuperType { @@ -142,33 +96,13 @@ // } // } // -// // Bad but still gets highlighted. -// public static statProp1 = super.superStaticMethod; -// -// public static staticMethod1() { -// return super.superStaticMethod(); -// } -// -// private static staticMethod2() { -// return super.superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 35) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } +// --- (line: 7) skipped --- // } // // class SubType extends SuperType { @@ -196,33 +130,13 @@ // } // } // -// // Bad but still gets highlighted. -// public static statProp1 = super.superStaticMethod; -// -// public static staticMethod1() { -// return super.superStaticMethod(); -// } -// -// private static staticMethod2() { -// return super.superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 35) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } +// --- (line: 7) skipped --- // } // // class SubType extends SuperType { @@ -250,33 +164,13 @@ // } // } // -// // Bad but still gets highlighted. -// public static statProp1 = super.superStaticMethod; -// -// public static staticMethod1() { -// return super.superStaticMethod(); -// } -// -// private static staticMethod2() { -// return super.superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 35) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } +// --- (line: 7) skipped --- // } // // class SubType extends SuperType { @@ -304,33 +198,13 @@ // } // } // -// // Bad but still gets highlighted. -// public static statProp1 = super.superStaticMethod; -// -// public static staticMethod1() { -// return super.superStaticMethod(); -// } -// -// private static staticMethod2() { -// return super.superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 35) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } +// --- (line: 7) skipped --- // } // // class SubType extends SuperType { @@ -358,18 +232,4 @@ // } // } // -// // Bad but still gets highlighted. -// public static statProp1 = super.superStaticMethod; -// -// public static staticMethod1() { -// return super.superStaticMethod(); -// } -// -// private static staticMethod2() { -// return super.superStaticMethod(); -// } -// -// // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } \ No newline at end of file +// --- (line: 35) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesSuper2.baseline.jsonc b/tests/baselines/reference/getOccurrencesSuper2.baseline.jsonc index 95b1176b1dafa..692cd573456cd 100644 --- a/tests/baselines/reference/getOccurrencesSuper2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSuper2.baseline.jsonc @@ -1,37 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper2.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } -// } -// -// class SubType extends SuperType { -// public prop1 = super.superMethod; -// private prop2 = super.superMethod; -// -// constructor() { -// super(); -// } -// -// public method1() { -// return super.superMethod(); -// } -// -// private method2() { -// return super.superMethod(); -// } -// -// public method3() { -// var x = () => super.superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// super.superMethod(); -// } +// --- (line: 32) skipped --- // } // // // Bad but still gets highlighted. @@ -46,46 +15,13 @@ // } // // // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 47) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper2.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } -// } -// -// class SubType extends SuperType { -// public prop1 = super.superMethod; -// private prop2 = super.superMethod; -// -// constructor() { -// super(); -// } -// -// public method1() { -// return super.superMethod(); -// } -// -// private method2() { -// return super.superMethod(); -// } -// -// public method3() { -// var x = () => super.superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// super.superMethod(); -// } +// --- (line: 32) skipped --- // } // // // Bad but still gets highlighted. @@ -100,46 +36,13 @@ // } // // // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } +// --- (line: 47) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper2.ts === -// class SuperType { -// superMethod() { -// } -// -// static superStaticMethod() { -// return 10; -// } -// } -// -// class SubType extends SuperType { -// public prop1 = super.superMethod; -// private prop2 = super.superMethod; -// -// constructor() { -// super(); -// } -// -// public method1() { -// return super.superMethod(); -// } -// -// private method2() { -// return super.superMethod(); -// } -// -// public method3() { -// var x = () => super.superMethod(); -// -// // Bad but still gets highlighted -// function f() { -// super.superMethod(); -// } +// --- (line: 32) skipped --- // } // // // Bad but still gets highlighted. @@ -154,6 +57,4 @@ // } // // // Are not actually 'super' keywords. -// super = 10; -// static super = 20; -// } \ No newline at end of file +// --- (line: 47) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesSuper3.baseline.jsonc b/tests/baselines/reference/getOccurrencesSuper3.baseline.jsonc index 5dfd85bae6523..0fae2f775e981 100644 --- a/tests/baselines/reference/getOccurrencesSuper3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSuper3.baseline.jsonc @@ -9,9 +9,7 @@ // }, // c: function () { // return super.a(); -// } -// d: () => super.b(); -// } +// --- (line: 10) skipped --- @@ -26,19 +24,13 @@ // }, // c: function () { // return super.a(); -// } -// d: () => super.b(); -// } +// --- (line: 10) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper3.ts === -// let x = { -// a() { -// return super.b(); -// }, -// b() { +// --- (line: 5) skipped --- // return super.a(); // }, // c: function () { @@ -51,13 +43,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuper3.ts === -// let x = { -// a() { -// return super.b(); -// }, -// b() { -// return super.a(); -// }, +// --- (line: 7) skipped --- // c: function () { // return super.a(); // } diff --git a/tests/baselines/reference/getOccurrencesSuperNegatives.baseline.jsonc b/tests/baselines/reference/getOccurrencesSuperNegatives.baseline.jsonc index 87d30ec39b6f1..becf477c3ced2 100644 --- a/tests/baselines/reference/getOccurrencesSuperNegatives.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSuperNegatives.baseline.jsonc @@ -4,21 +4,7 @@ // super; // } // -// module M { -// super; -// function f(x = super) { -// super; -// } -// -// class A { -// } -// -// class B extends A { -// constructor() { -// super(); -// } -// } -// } +// --- (line: 5) skipped --- @@ -29,20 +15,7 @@ // } // // module M { -// super; -// function f(x = super) { -// super; -// } -// -// class A { -// } -// -// class B extends A { -// constructor() { -// super(); -// } -// } -// } +// --- (line: 6) skipped --- @@ -57,24 +30,13 @@ // function f(x = super) { // super; // } -// -// class A { -// } -// -// class B extends A { -// constructor() { -// super(); -// } -// } -// } +// --- (line: 10) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuperNegatives.ts === -// function f(x = super) { -// super; -// } +// --- (line: 3) skipped --- // // module M { // super; @@ -82,24 +44,13 @@ // super; // } // -// class A { -// } -// -// class B extends A { -// constructor() { -// super(); -// } -// } -// } +// --- (line: 11) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSuperNegatives.ts === -// function f(x = super) { -// super; -// } -// +// --- (line: 4) skipped --- // module M { // super; // function f(x = super) { @@ -107,11 +58,4 @@ // } // // class A { -// } -// -// class B extends A { -// constructor() { -// super(); -// } -// } -// } \ No newline at end of file +// --- (line: 12) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesSwitchCaseDefault2.baseline.jsonc b/tests/baselines/reference/getOccurrencesSwitchCaseDefault2.baseline.jsonc index 84fdbff7103dd..1bc666038acbb 100644 --- a/tests/baselines/reference/getOccurrencesSwitchCaseDefault2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSwitchCaseDefault2.baseline.jsonc @@ -14,9 +14,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -36,9 +34,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -58,9 +54,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -80,9 +74,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -102,9 +94,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -124,6 +114,4 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } \ No newline at end of file +// --- (line: 15) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesSwitchCaseDefault4.baseline.jsonc b/tests/baselines/reference/getOccurrencesSwitchCaseDefault4.baseline.jsonc index c64740e5e42e2..bf64d4d039212 100644 --- a/tests/baselines/reference/getOccurrencesSwitchCaseDefault4.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSwitchCaseDefault4.baseline.jsonc @@ -84,9 +84,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefault4.ts === -// foo: switch (10) { -// case 1: -// case 2: +// --- (line: 3) skipped --- // case 3: // break; // break foo; @@ -98,10 +96,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefault4.ts === -// foo: switch (10) { -// case 1: -// case 2: -// case 3: +// --- (line: 4) skipped --- // break; // break foo; // continue; diff --git a/tests/baselines/reference/getOccurrencesSwitchCaseDefault5.baseline.jsonc b/tests/baselines/reference/getOccurrencesSwitchCaseDefault5.baseline.jsonc index 27a8bd79c70ca..c0a125202b320 100644 --- a/tests/baselines/reference/getOccurrencesSwitchCaseDefault5.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSwitchCaseDefault5.baseline.jsonc @@ -124,9 +124,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -146,9 +144,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -168,9 +164,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -190,9 +184,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -212,9 +204,7 @@ // } // case 0xBEEF: // default: -// break; -// case 16: -// } +// --- (line: 15) skipped --- @@ -286,18 +276,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefault5.ts === -// switch (10) { -// case 1: -// case 2: -// case 4: -// case 8: -// foo: switch (20) { -// case 1: -// case 2: -// break; -// default: -// break foo; -// } +// --- (line: 12) skipped --- // case 0xBEEF: // default: // break; diff --git a/tests/baselines/reference/getOccurrencesSwitchCaseDefaultBroken.baseline.jsonc b/tests/baselines/reference/getOccurrencesSwitchCaseDefaultBroken.baseline.jsonc index 0f4f33d517423..c3aefffd2761b 100644 --- a/tests/baselines/reference/getOccurrencesSwitchCaseDefaultBroken.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesSwitchCaseDefaultBroken.baseline.jsonc @@ -13,21 +13,7 @@ // function f() { // break; // break; -// } -// } -// -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: -// case 0xBEEF: -// break; -// case 16: -// () => break; -// } +// --- (line: 14) skipped --- @@ -46,29 +32,13 @@ // function f() { // break; // break; -// } -// } -// -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: -// case 0xBEEF: -// break; -// case 16: -// () => break; -// } +// --- (line: 14) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: +// --- (line: 3) skipped --- // case 4: // case 8: // case 0xBEEF: @@ -77,33 +47,13 @@ // cas 16: // case 12: // function f() { -// break; -// break; -// } -// } -// -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: -// case 0xBEEF: -// break; -// case 16: -// () => break; -// } +// --- (line: 12) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: +// --- (line: 5) skipped --- // case 0xBEEF: // defult: // break; @@ -111,22 +61,7 @@ // case 12: // function f() { // break; -// break; -// } -// } -// -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: -// case 0xBEEF: -// break; -// case 16: -// () => break; -// } +// --- (line: 13) skipped --- @@ -145,34 +80,13 @@ // function f() { // break; // break; -// } -// } -// -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: -// case 0xBEEF: -// break; -// case 16: -// () => break; -// } +// --- (line: 14) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: -// case 0xBEEF: -// defult: -// break; +// --- (line: 8) skipped --- // cas 16: // case 12: // function f() { @@ -180,33 +94,13 @@ // break; // } // } -// -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: -// case 0xBEEF: -// break; -// case 16: -// () => break; -// } +// --- (line: 16) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: -// case 0xBEEF: -// defult: -// break; -// cas 16: +// --- (line: 9) skipped --- // case 12: // function f() { // break; @@ -214,36 +108,13 @@ // } // } // -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: -// case 0xBEEF: -// break; -// case 16: -// () => break; -// } +// --- (line: 17) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: -// case 0xBEEF: -// defult: -// break; -// cas 16: -// case 12: -// function f() { -// break; -// break; +// --- (line: 13) skipped --- // } // } // @@ -264,19 +135,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: -// case 0xBEEF: -// defult: -// break; -// cas 16: -// case 12: -// function f() { -// break; -// break; +// --- (line: 13) skipped --- // } // } // @@ -297,24 +156,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: -// case 0xBEEF: -// defult: -// break; -// cas 16: -// case 12: -// function f() { -// break; -// break; -// } -// } -// -// switch (10) { -// default +// --- (line: 18) skipped --- // case 1: // case 2 // @@ -322,27 +164,13 @@ // case 8: // case 0xBEEF: // break; -// case 16: -// () => break; -// } +// --- (line: 26) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: -// case 0xBEEF: -// defult: -// break; -// cas 16: -// case 12: -// function f() { -// break; -// break; +// --- (line: 13) skipped --- // } // } // @@ -363,29 +191,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesSwitchCaseDefaultBroken.ts === -// switch(10) { -// case 1: -// case 2: -// case 4: -// case 8: -// case 0xBEEF: -// defult: -// break; -// cas 16: -// case 12: -// function f() { -// break; -// break; -// } -// } -// -// switch (10) { -// default -// case 1: -// case 2 -// -// cose 4: -// case 8: +// --- (line: 23) skipped --- // case 0xBEEF: // break; // case 16: diff --git a/tests/baselines/reference/getOccurrencesThis.baseline.jsonc b/tests/baselines/reference/getOccurrencesThis.baseline.jsonc index f1ba528c68ace..35513cdbdbad0 100644 --- a/tests/baselines/reference/getOccurrencesThis.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThis.baseline.jsonc @@ -5,140 +5,7 @@ // // function f() { // this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 6) skipped --- @@ -149,137 +16,4 @@ // // function f() { // this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } \ No newline at end of file +// --- (line: 6) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThis2.baseline.jsonc b/tests/baselines/reference/getOccurrencesThis2.baseline.jsonc index f4dfca6525d5d..70d5354f621ab 100644 --- a/tests/baselines/reference/getOccurrencesThis2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThis2.baseline.jsonc @@ -16,129 +16,7 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 17) skipped --- @@ -160,129 +38,7 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 17) skipped --- @@ -304,129 +60,7 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 17) skipped --- @@ -448,129 +82,7 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 17) skipped --- @@ -592,129 +104,7 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 17) skipped --- @@ -736,126 +126,4 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } \ No newline at end of file +// --- (line: 17) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThis3.baseline.jsonc b/tests/baselines/reference/getOccurrencesThis3.baseline.jsonc index 8a0c9c68b6a68..c5dc42679a4e7 100644 --- a/tests/baselines/reference/getOccurrencesThis3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThis3.baseline.jsonc @@ -1,18 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis3.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; +// --- (line: 13) skipped --- // } // } // function inside() { @@ -23,140 +11,13 @@ // } // } // -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 24) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis3.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; +// --- (line: 13) skipped --- // } // } // function inside() { @@ -167,119 +28,4 @@ // } // } // -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } \ No newline at end of file +// --- (line: 24) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThis4.baseline.jsonc b/tests/baselines/reference/getOccurrencesThis4.baseline.jsonc index e8258c3e486c2..6a484c4577fe3 100644 --- a/tests/baselines/reference/getOccurrencesThis4.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThis4.baseline.jsonc @@ -1,48 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 43) skipped --- // } // // class A { @@ -61,11 +19,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // // private method2() { @@ -81,112 +37,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 82) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 43) skipped --- // } // // class A { @@ -205,11 +62,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // // private method2() { @@ -225,112 +80,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 82) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 43) skipped --- // } // // class A { @@ -349,155 +105,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 62) skipped --- - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = [|{| kind: "reference" |}this|].method1; -// -// public method1() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 66) skipped --- // } // // private method2() { @@ -513,688 +123,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = [|{| kind: "reference" |}this|].method1; -// -// public method1() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if (/*HIGHLIGHTS*/[|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = [|{| kind: "reference" |}this|].method1; -// -// public method1() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = [|{| kind: "reference" |}this|].method1; -// -// public method1() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = [|{| kind: "reference" |}this|].method1; -// -// public method1() { -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis4.ts === +// --- (line: 43) skipped --- // } // // class A { @@ -1203,7 +138,7 @@ // public method1() { // [|{| kind: "reference" |}this|]; // [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; +// () => /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; // () => { // if ([|{| kind: "reference" |}this|]) { // [|{| kind: "reference" |}this|]; @@ -1213,16 +148,14 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // // private method2() { // [|{| kind: "reference" |}this|]; -// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; // () => [|{| kind: "reference" |}this|]; // () => { // if ([|{| kind: "reference" |}this|]) { @@ -1233,112 +166,56 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } // -// public static staticB = this.staticMethod1; +// class A { +// public b = [|{| kind: "reference" |}this|].method1; // -// public static staticMethod1() { -// this; -// this; -// () => this; +// public method1() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if (/*HIGHLIGHTS*/[|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // -// private static staticMethod2() { -// this; -// this; -// () => this; +// private method2() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 82) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 43) skipped --- // } // // class A { @@ -1350,24 +227,22 @@ // () => [|{| kind: "reference" |}this|]; // () => { // if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; +// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; // } // else { // [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // // private method2() { // [|{| kind: "reference" |}this|]; // [|{| kind: "reference" |}this|]; -// () => /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { // if ([|{| kind: "reference" |}this|]) { // [|{| kind: "reference" |}this|]; @@ -1377,112 +252,56 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } // -// public static staticB = this.staticMethod1; +// class A { +// public b = [|{| kind: "reference" |}this|].method1; // -// public static staticMethod1() { -// this; -// this; -// () => this; +// public method1() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // -// private static staticMethod2() { -// this; -// this; -// () => this; +// private method2() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 82) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 43) skipped --- // } // // class A { @@ -1501,19 +320,17 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // // private method2() { -// [|{| kind: "reference" |}this|]; +// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; // [|{| kind: "reference" |}this|]; // () => [|{| kind: "reference" |}this|]; // () => { -// if (/*HIGHLIGHTS*/[|{| kind: "reference" |}this|]) { +// if ([|{| kind: "reference" |}this|]) { // [|{| kind: "reference" |}this|]; // } // else { @@ -1521,112 +338,56 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } // -// public static staticB = this.staticMethod1; +// class A { +// public b = [|{| kind: "reference" |}this|].method1; // -// public static staticMethod1() { -// this; -// this; -// () => this; +// public method1() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // -// private static staticMethod2() { -// this; -// this; -// () => this; +// private method2() { +// [|{| kind: "reference" |}this|]; +// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 82) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 43) skipped --- // } // // class A { @@ -1645,132 +406,74 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // // private method2() { // [|{| kind: "reference" |}this|]; // [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; +// () => /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; // () => { // if ([|{| kind: "reference" |}this|]) { -// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; // } // else { // [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } // -// public static staticB = this.staticMethod1; +// class A { +// public b = [|{| kind: "reference" |}this|].method1; // -// public static staticMethod1() { -// this; -// this; -// () => this; +// public method1() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // -// private static staticMethod2() { -// this; -// this; -// () => this; +// private method2() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if (/*HIGHLIGHTS*/[|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 82) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis4.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 43) skipped --- // } // // class A { @@ -1789,11 +492,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // // private method2() { @@ -1802,68 +503,54 @@ // () => [|{| kind: "reference" |}this|]; // () => { // if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; +// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; // } // else { -// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|].this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 82) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis4.ts === +// --- (line: 43) skipped --- +// } // -// public static staticB = this.staticMethod1; +// class A { +// public b = [|{| kind: "reference" |}this|].method1; // -// public static staticMethod1() { -// this; -// this; -// () => this; +// public method1() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 62) skipped --- + +// --- (line: 66) skipped --- // } // -// private static staticMethod2() { -// this; -// this; -// () => this; +// private method2() { +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } \ No newline at end of file +// --- (line: 82) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThis5.baseline.jsonc b/tests/baselines/reference/getOccurrencesThis5.baseline.jsonc index 7354672e6b509..c200f13f342e8 100644 --- a/tests/baselines/reference/getOccurrencesThis5.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThis5.baseline.jsonc @@ -1,90 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -103,11 +19,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -123,112 +37,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -247,11 +62,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -267,112 +80,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -391,11 +105,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -411,112 +123,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -535,11 +148,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -555,112 +166,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -679,11 +191,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -699,112 +209,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -823,11 +234,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -843,112 +252,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -967,11 +277,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -987,112 +295,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -1111,11 +320,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -1131,112 +338,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -1255,11 +363,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -1275,112 +381,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -1399,11 +406,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -1419,112 +424,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -1543,11 +449,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -1563,112 +467,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -1687,11 +492,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -1707,112 +510,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 124) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis5.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// --- (line: 85) skipped --- // } // } // @@ -1831,11 +535,9 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 104) skipped --- + +// --- (line: 108) skipped --- // } // // private static staticMethod2() { @@ -1851,19 +553,4 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } \ No newline at end of file +// --- (line: 124) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThis6.baseline.jsonc b/tests/baselines/reference/getOccurrencesThis6.baseline.jsonc index e3a5774badf51..5e072cdcdc33e 100644 --- a/tests/baselines/reference/getOccurrencesThis6.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThis6.baseline.jsonc @@ -5,1051 +5,22 @@ // // function f() { // this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// var x = this; -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// a: [|{| kind: "reference" |}this|], -// -// f() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// -// g() { -// this; -// }, -// -// get h() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// return; -// }, -// -// set h(foo: any) { -// this; -// }, -// -// l: () => { -// [|{| kind: "reference" |}this|]; -// function foo() { -// this; -// } -// const bar = () => { -// [|{| kind: "reference" |}this|]; -// } -// }, -// }; -// - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis6.ts === -// this; -// this; -// -// function f() { -// [|{| kind: "reference" |}this|]/*HIGHLIGHTS*/; -// [|{| kind: "reference" |}this|]; -// () => [|{| kind: "reference" |}this|]; -// () => { -// if ([|{| kind: "reference" |}this|]) { -// [|{| kind: "reference" |}this|]; -// } -// else { -// [|{| kind: "reference" |}this|].this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// var x = this; -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// a: this, -// -// f() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// -// g() { -// this; -// }, -// -// get h() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// return; -// }, -// -// set h(foo: any) { -// this; -// }, -// -// l: () => { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// }; -// - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis6.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// var x = th/*HIGHLIGHTS*/is; -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// a: this, -// -// f() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// -// g() { -// this; -// }, -// -// get h() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// return; -// }, -// -// set h(foo: any) { -// this; -// }, -// -// l: () => { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// }; -// - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis6.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// var x = this; -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// [|{| kind: "reference" |}this|]/*HIGHLIGHTS*/; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// a: this, -// -// f() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// -// g() { -// this; -// }, -// -// get h() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// return; -// }, -// -// set h(foo: any) { -// this; -// }, -// -// l: () => { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// }; -// - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis6.ts === -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// var x = this; -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// a: /*HIGHLIGHTS*/[|{| kind: "reference" |}this|], -// -// f() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// -// g() { -// this; -// }, -// -// get h() { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// return; -// }, -// -// set h(foo: any) { -// this; -// }, -// -// l: () => { -// [|{| kind: "reference" |}this|]; -// function foo() { -// this; -// } -// const bar = () => { -// [|{| kind: "reference" |}this|]; -// } -// }, -// }; -// - - - -// === documentHighlights === -// === /tests/cases/fourslash/getOccurrencesThis6.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// var x = this; -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// --- (line: 6) skipped --- + +// --- (line: 130) skipped --- // } // // var x = { -// a: this, +// a: [|{| kind: "reference" |}this|], // // f() { -// [|{| kind: "reference" |}this|]/*HIGHLIGHTS*/; -// function foo() { -// this; -// } -// const bar = () => { -// [|{| kind: "reference" |}this|]; -// } -// }, -// -// g() { -// [|{| kind: "reference" |}this|]; +// this; +// --- (line: 138) skipped --- + +// --- (line: 162) skipped --- // }, // -// get h() { +// l: () => { // [|{| kind: "reference" |}this|]; // function foo() { // this; @@ -1057,21 +28,6 @@ // const bar = () => { // [|{| kind: "reference" |}this|]; // } -// return; -// }, -// -// set h(foo: any) { -// [|{| kind: "reference" |}this|]; -// }, -// -// l: () => { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } // }, // }; // @@ -1084,139 +40,93 @@ // this; // // function f() { -// this; -// this; -// () => this; +// [|{| kind: "reference" |}this|]/*HIGHLIGHTS*/; +// [|{| kind: "reference" |}this|]; +// () => [|{| kind: "reference" |}this|]; // () => { -// if (this) { -// this; +// if ([|{| kind: "reference" |}this|]) { +// [|{| kind: "reference" |}this|]; // } // else { -// this.this; +// [|{| kind: "reference" |}this|].this; // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } +// --- (line: 17) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis6.ts === +// --- (line: 21) skipped --- // } // // module m { -// var x = this; +// var x = th/*HIGHLIGHTS*/is; // function f() { // this; // this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } +// --- (line: 29) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis6.ts === +// --- (line: 61) skipped --- // function inside() { // this; // (function (_) { -// this; +// [|{| kind: "reference" |}this|]/*HIGHLIGHTS*/; // })(this); // } // } -// } +// --- (line: 69) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis6.ts === +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; // -// class A { -// public b = this.method1; +// function f() { +// this; +// --- (line: 6) skipped --- + +// --- (line: 130) skipped --- +// } // -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } +// var x = { +// a: /*HIGHLIGHTS*/[|{| kind: "reference" |}this|], // -// private method2() { -// this; +// f() { // this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; +// --- (line: 138) skipped --- + +// --- (line: 162) skipped --- +// }, // -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { +// l: () => { +// [|{| kind: "reference" |}this|]; +// function foo() { // this; -// (function (_) { -// this; -// })(this); // } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); +// const bar = () => { +// [|{| kind: "reference" |}this|]; // } -// } -// } +// }, +// }; // -// var x = { + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis6.ts === +// --- (line: 133) skipped --- // a: this, // // f() { -// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]/*HIGHLIGHTS*/; // function foo() { // this; // } @@ -1230,7 +140,7 @@ // }, // // get h() { -// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; // function foo() { // this; // } @@ -1245,183 +155,69 @@ // }, // // l: () => { -// this; -// function foo() { -// this; -// } -// const bar = () => { -// this; -// } -// }, -// }; -// +// --- (line: 166) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThis6.ts === -// [|{| kind: "reference" |}this|]; -// [|{| kind: "reference" |}this|]; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// var x = this; -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// a: [|{| kind: "reference" |}this|], +// --- (line: 133) skipped --- +// a: this, // // f() { -// this; +// [|{| kind: "reference" |}this|]; // function foo() { // this; // } // const bar = () => { -// this; +// [|{| kind: "reference" |}this|]; // } // }, // // g() { -// this; +// [|{| kind: "reference" |}this|]; // }, // // get h() { -// this; +// /*HIGHLIGHTS*/[|{| kind: "reference" |}this|]; // function foo() { // this; // } // const bar = () => { -// this; +// [|{| kind: "reference" |}this|]; // } // return; // }, // // set h(foo: any) { +// [|{| kind: "reference" |}this|]; +// }, +// +// l: () => { +// --- (line: 166) skipped --- + + + +// === documentHighlights === +// === /tests/cases/fourslash/getOccurrencesThis6.ts === +// [|{| kind: "reference" |}this|]; +// [|{| kind: "reference" |}this|]; +// +// function f() { +// this; +// --- (line: 6) skipped --- + +// --- (line: 130) skipped --- +// } +// +// var x = { +// a: [|{| kind: "reference" |}this|], +// +// f() { // this; +// --- (line: 138) skipped --- + +// --- (line: 162) skipped --- // }, // // l: () => { diff --git a/tests/baselines/reference/getOccurrencesThisNegatives2.baseline.jsonc b/tests/baselines/reference/getOccurrencesThisNegatives2.baseline.jsonc index 1604af6d7fdac..5a58c6df68014 100644 --- a/tests/baselines/reference/getOccurrencesThisNegatives2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThisNegatives2.baseline.jsonc @@ -1,14 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThisNegatives2.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { +// --- (line: 9) skipped --- // this; // } // else { @@ -16,164 +8,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 17) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThisNegatives2.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { +// --- (line: 30) skipped --- // this; // } // else { @@ -181,167 +22,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 38) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThisNegatives2.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { +// --- (line: 54) skipped --- // this; // } // else { @@ -349,163 +36,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 62) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThisNegatives2.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { +// --- (line: 74) skipped --- // this; // } // else { @@ -513,165 +50,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 82) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThisNegatives2.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { +// --- (line: 96) skipped --- // this; // } // else { @@ -679,163 +64,13 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } +// --- (line: 104) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThisNegatives2.ts === -// this; -// this; -// -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// module m { -// function f() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// class A { -// public b = this.method1; -// -// public method1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private method2() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// public static staticB = this.staticMethod1; -// -// public static staticMethod1() { -// this; -// this; -// () => this; -// () => { -// if (this) { -// this; -// } -// else { -// this.this; -// } -// } -// function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// -// private static staticMethod2() { -// this; -// this; -// () => this; -// () => { -// if (this) { +// --- (line: 116) skipped --- // this; // } // else { @@ -843,19 +78,4 @@ // } // } // function inside() { -// this; -// (function (_) { -// this; -// })(this); -// } -// } -// } -// -// var x = { -// f() { -// this; -// }, -// g() { -// this; -// } -// } \ No newline at end of file +// --- (line: 124) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThrow.baseline.jsonc b/tests/baselines/reference/getOccurrencesThrow.baseline.jsonc index 573211c88bf26..9ea4cb15b7ad7 100644 --- a/tests/baselines/reference/getOccurrencesThrow.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThrow.baseline.jsonc @@ -1,10 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -25,11 +21,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // @@ -46,11 +40,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -71,11 +61,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // @@ -92,11 +80,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -117,11 +101,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // @@ -138,11 +120,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -163,11 +141,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // @@ -184,11 +160,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -209,11 +181,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // @@ -230,11 +200,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -255,11 +221,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // @@ -276,11 +240,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -301,11 +261,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // @@ -322,11 +280,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { +// --- (line: 5) skipped --- // throw 10; // } // catch (x) { @@ -347,11 +301,9 @@ // return; // return; // return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; +// --- (line: 26) skipped --- + +// --- (line: 30) skipped --- // })() || true; // } // diff --git a/tests/baselines/reference/getOccurrencesThrow2.baseline.jsonc b/tests/baselines/reference/getOccurrencesThrow2.baseline.jsonc index f45fdee624223..3bca45a75bd0c 100644 --- a/tests/baselines/reference/getOccurrencesThrow2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThrow2.baseline.jsonc @@ -9,35 +9,4 @@ // } // catch (x) { // return 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; -// } -// if (a > 0) { -// return (function () { -// return; -// return; -// return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; -// })() || true; -// } -// -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } \ No newline at end of file +// --- (line: 10) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThrow3.baseline.jsonc b/tests/baselines/reference/getOccurrencesThrow3.baseline.jsonc index 53ef365815e81..5323d3eca8ca4 100644 --- a/tests/baselines/reference/getOccurrencesThrow3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThrow3.baseline.jsonc @@ -15,32 +15,7 @@ // } // } // catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; -// } -// if (a > 0) { -// return (function () { -// return; -// return; -// return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; -// })() || true; -// } -// -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } +// --- (line: 16) skipped --- @@ -61,29 +36,4 @@ // } // } // catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; -// } -// if (a > 0) { -// return (function () { -// return; -// return; -// return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; -// })() || true; -// } -// -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } \ No newline at end of file +// --- (line: 16) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThrow4.baseline.jsonc b/tests/baselines/reference/getOccurrencesThrow4.baseline.jsonc index c08f7ebf8df81..34bd35a28bf1e 100644 --- a/tests/baselines/reference/getOccurrencesThrow4.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThrow4.baseline.jsonc @@ -1,24 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow4.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; +// --- (line: 19) skipped --- // } // if (a > 0) { // return (function () { @@ -33,38 +15,13 @@ // })() || true; // } // -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } +// --- (line: 34) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow4.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; +// --- (line: 19) skipped --- // } // if (a > 0) { // return (function () { @@ -79,38 +36,13 @@ // })() || true; // } // -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } +// --- (line: 34) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow4.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; +// --- (line: 19) skipped --- // } // if (a > 0) { // return (function () { @@ -125,38 +57,13 @@ // })() || true; // } // -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } +// --- (line: 34) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow4.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; +// --- (line: 19) skipped --- // } // if (a > 0) { // return (function () { @@ -171,38 +78,13 @@ // })() || true; // } // -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } +// --- (line: 34) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow4.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; +// --- (line: 19) skipped --- // } // if (a > 0) { // return (function () { @@ -217,11 +99,4 @@ // })() || true; // } // -// throw 10; -// -// var unusued = [1, 2, 3, 4].map(x => { throw 4 }) -// -// return; -// return true; -// throw false; -// } \ No newline at end of file +// --- (line: 34) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesThrow5.baseline.jsonc b/tests/baselines/reference/getOccurrencesThrow5.baseline.jsonc index aaa9fe56c9ab2..d02d0668bf101 100644 --- a/tests/baselines/reference/getOccurrencesThrow5.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThrow5.baseline.jsonc @@ -1,37 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesThrow5.ts === -// function f(a: number) { -// try { -// throw "Hello"; -// -// try { -// throw 10; -// } -// catch (x) { -// return 100; -// } -// finally { -// throw 10; -// } -// } -// catch (x) { -// throw "Something"; -// } -// finally { -// throw "Also something"; -// } -// if (a > 0) { -// return (function () { -// return; -// return; -// return; -// -// if (false) { -// return true; -// } -// throw "Hello!"; -// })() || true; -// } +// --- (line: 32) skipped --- // // throw 10; // diff --git a/tests/baselines/reference/getOccurrencesThrow8.baseline.jsonc b/tests/baselines/reference/getOccurrencesThrow8.baseline.jsonc index 4e1dd61c8449b..4502edb51a4c4 100644 --- a/tests/baselines/reference/getOccurrencesThrow8.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesThrow8.baseline.jsonc @@ -8,13 +8,4 @@ // } // catch (x) { // throw 10; -// } -// finally { -// throw 10; -// } -// } -// finally { -// throw 10; -// } -// -// throw 10; \ No newline at end of file +// --- (line: 9) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesTryCatchFinally.baseline.jsonc b/tests/baselines/reference/getOccurrencesTryCatchFinally.baseline.jsonc index 1e800ae04e9aa..321f7a54bf63c 100644 --- a/tests/baselines/reference/getOccurrencesTryCatchFinally.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesTryCatchFinally.baseline.jsonc @@ -4,10 +4,9 @@ // try { // } // catch (x) { -// } -// -// try { -// } +// --- (line: 5) skipped --- + +// --- (line: 8) skipped --- // finally { // } // } @@ -24,10 +23,9 @@ // try { // } // catch (x) { -// } -// -// try { -// } +// --- (line: 5) skipped --- + +// --- (line: 8) skipped --- // finally { // } // } @@ -44,10 +42,9 @@ // try { // } // catch (x) { -// } -// -// try { -// } +// --- (line: 5) skipped --- + +// --- (line: 8) skipped --- // finally { // } // } diff --git a/tests/baselines/reference/getOccurrencesTryCatchFinally2.baseline.jsonc b/tests/baselines/reference/getOccurrencesTryCatchFinally2.baseline.jsonc index ea412ca7b0626..bb26121cd2ce2 100644 --- a/tests/baselines/reference/getOccurrencesTryCatchFinally2.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesTryCatchFinally2.baseline.jsonc @@ -7,14 +7,7 @@ // } // // try { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } +// --- (line: 8) skipped --- @@ -27,14 +20,7 @@ // } // // try { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } +// --- (line: 8) skipped --- @@ -47,11 +33,4 @@ // } // // try { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } \ No newline at end of file +// --- (line: 8) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesTryCatchFinally3.baseline.jsonc b/tests/baselines/reference/getOccurrencesTryCatchFinally3.baseline.jsonc index 418fa4aa49c59..5d84cd58611c9 100644 --- a/tests/baselines/reference/getOccurrencesTryCatchFinally3.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesTryCatchFinally3.baseline.jsonc @@ -1,8 +1,6 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinally3.ts === -// try { -// try { -// } +// --- (line: 3) skipped --- // catch (x) { // } // @@ -12,17 +10,13 @@ // } // } // catch (e) { -// } -// finally { -// } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinally3.ts === -// try { -// try { -// } +// --- (line: 3) skipped --- // catch (x) { // } // @@ -32,17 +26,13 @@ // } // } // catch (e) { -// } -// finally { -// } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinally3.ts === -// try { -// try { -// } +// --- (line: 3) skipped --- // catch (x) { // } // @@ -52,6 +42,4 @@ // } // } // catch (e) { -// } -// finally { -// } \ No newline at end of file +// --- (line: 13) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getOccurrencesTryCatchFinally4.baseline.jsonc b/tests/baselines/reference/getOccurrencesTryCatchFinally4.baseline.jsonc index e1cd7548f0ffd..e0f4d4d49d6a5 100644 --- a/tests/baselines/reference/getOccurrencesTryCatchFinally4.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesTryCatchFinally4.baseline.jsonc @@ -4,10 +4,9 @@ // try { // } // catch (x) { -// } -// -// try { -// } +// --- (line: 5) skipped --- + +// --- (line: 8) skipped --- // finally { // } // } @@ -27,14 +26,7 @@ // } // // try { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } +// --- (line: 8) skipped --- @@ -47,22 +39,13 @@ // } // // try { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } +// --- (line: 8) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinally4.ts === -// try { -// try { -// } +// --- (line: 3) skipped --- // catch (x) { // } // @@ -72,17 +55,13 @@ // } // } // catch (e) { -// } -// finally { -// } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinally4.ts === -// try { -// try { -// } +// --- (line: 3) skipped --- // catch (x) { // } // @@ -92,19 +71,13 @@ // } // } // catch (e) { -// } -// finally { -// } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinally4.ts === -// try { -// try { -// } -// catch (x) { -// } +// --- (line: 5) skipped --- // // try { // } @@ -112,9 +85,7 @@ // } // } // catch (e) { -// } -// finally { -// } +// --- (line: 13) skipped --- @@ -124,10 +95,9 @@ // try { // } // catch (x) { -// } -// -// try { -// } +// --- (line: 5) skipped --- + +// --- (line: 8) skipped --- // finally { // } // } @@ -144,10 +114,9 @@ // try { // } // catch (x) { -// } -// -// try { -// } +// --- (line: 5) skipped --- + +// --- (line: 8) skipped --- // finally { // } // } diff --git a/tests/baselines/reference/getOccurrencesTryCatchFinallyBroken.baseline.jsonc b/tests/baselines/reference/getOccurrencesTryCatchFinallyBroken.baseline.jsonc index 2db466d8b67fa..f33adda4af049 100644 --- a/tests/baselines/reference/getOccurrencesTryCatchFinallyBroken.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesTryCatchFinallyBroken.baseline.jsonc @@ -4,31 +4,7 @@ // try { // } // ctch (x) { -// } -// -// tr { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } -// -// // Missing catch variable -// try { -// } -// catch { -// } -// finally { -// } -// -// // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 5) skipped --- @@ -39,40 +15,13 @@ // } // ctch (x) { // } -// -// tr { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } -// -// // Missing catch variable -// try { -// } -// catch { -// } -// finally { -// } -// -// // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 6) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } +// --- (line: 5) skipped --- // // tr { // } @@ -80,36 +29,13 @@ // } // } // catch (e) { -// } -// finally { -// } -// -// // Missing catch variable -// try { -// } -// catch { -// } -// finally { -// } -// -// // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 13) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } -// -// tr { -// } +// --- (line: 8) skipped --- // finally { // } // } @@ -119,31 +45,13 @@ // } // // // Missing catch variable -// try { -// } -// catch { -// } -// finally { -// } -// -// // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 18) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } -// -// tr { -// } +// --- (line: 8) skipped --- // finally { // } // } @@ -153,37 +61,13 @@ // } // // // Missing catch variable -// try { -// } -// catch { -// } -// finally { -// } -// -// // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 18) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } -// -// tr { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { +// --- (line: 14) skipped --- // } // // // Missing catch variable @@ -195,29 +79,13 @@ // } // // // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 26) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } -// -// tr { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { +// --- (line: 14) skipped --- // } // // // Missing catch variable @@ -229,29 +97,13 @@ // } // // // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 26) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } -// -// tr { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { +// --- (line: 14) skipped --- // } // // // Missing catch variable @@ -263,37 +115,13 @@ // } // // // Missing try entirely -// catch (x) { -// } -// finally { -// } +// --- (line: 26) skipped --- // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } -// -// tr { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } -// -// // Missing catch variable -// try { -// } -// catch { -// } -// finally { +// --- (line: 22) skipped --- // } // // // Missing try entirely @@ -306,28 +134,7 @@ // === documentHighlights === // === /tests/cases/fourslash/getOccurrencesTryCatchFinallyBroken.ts === -// t ry { -// try { -// } -// ctch (x) { -// } -// -// tr { -// } -// finally { -// } -// } -// catch (e) { -// } -// finally { -// } -// -// // Missing catch variable -// try { -// } -// catch { -// } -// finally { +// --- (line: 22) skipped --- // } // // // Missing try entirely diff --git a/tests/baselines/reference/getOccurrencesYield.baseline.jsonc b/tests/baselines/reference/getOccurrencesYield.baseline.jsonc index 9ed1934ab08a7..0126bfbdace89 100644 --- a/tests/baselines/reference/getOccurrencesYield.baseline.jsonc +++ b/tests/baselines/reference/getOccurrencesYield.baseline.jsonc @@ -6,12 +6,7 @@ // class Foo { // *memberFunction() { // return yield 1; -// } -// } -// return function* g() { -// yield 1; -// } -// } +// --- (line: 7) skipped --- @@ -23,12 +18,7 @@ // class Foo { // *memberFunction() { // return yield 1; -// } -// } -// return function* g() { -// yield 1; -// } -// } +// --- (line: 7) skipped --- @@ -40,9 +30,4 @@ // class Foo { // *memberFunction() { // return yield 1; -// } -// } -// return function* g() { -// yield 1; -// } -// } \ No newline at end of file +// --- (line: 7) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/getReferencesAtPosition-pp.baseline.jsonc b/tests/baselines/reference/getReferencesAtPosition-pp.baseline.jsonc index cddc523973f84..a3f63d1df51eb 100644 --- a/tests/baselines/reference/getReferencesAtPosition-pp.baseline.jsonc +++ b/tests/baselines/reference/getReferencesAtPosition-pp.baseline.jsonc @@ -1,8 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/shims-pp/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -24,9 +22,7 @@ // === Definitions === // === /tests/cases/fourslash/shims-pp/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // @@ -103,9 +99,7 @@ // === findAllReferences === // === /tests/cases/fourslash/shims-pp/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -127,9 +121,7 @@ // === Definitions === // === /tests/cases/fourslash/shims-pp/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // @@ -206,9 +198,7 @@ // === findAllReferences === // === /tests/cases/fourslash/shims-pp/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -230,9 +220,7 @@ // === Definitions === // === /tests/cases/fourslash/shims-pp/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // diff --git a/tests/baselines/reference/getReferencesAtPosition.baseline.jsonc b/tests/baselines/reference/getReferencesAtPosition.baseline.jsonc index 023c2097e666c..1c54db331e01f 100644 --- a/tests/baselines/reference/getReferencesAtPosition.baseline.jsonc +++ b/tests/baselines/reference/getReferencesAtPosition.baseline.jsonc @@ -1,8 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/shims/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -24,9 +22,7 @@ // === Definitions === // === /tests/cases/fourslash/shims/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // @@ -103,9 +99,7 @@ // === findAllReferences === // === /tests/cases/fourslash/shims/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -127,9 +121,7 @@ // === Definitions === // === /tests/cases/fourslash/shims/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // @@ -206,9 +198,7 @@ // === findAllReferences === // === /tests/cases/fourslash/shims/findAllRefsOnDefinition-import.ts === -// export class Test{ -// -// constructor(){ +// --- (line: 3) skipped --- // // } // @@ -230,9 +220,7 @@ // === Definitions === // === /tests/cases/fourslash/shims/findAllRefsOnDefinition-import.ts === - // export class Test{ - // - // constructor(){ + // --- (line: 3) skipped --- // // } // diff --git a/tests/baselines/reference/goToDefinitionAwait3.baseline.jsonc b/tests/baselines/reference/goToDefinitionAwait3.baseline.jsonc index b9c43e65ee5ac..2815a6c96ce9f 100644 --- a/tests/baselines/reference/goToDefinitionAwait3.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionAwait3.baseline.jsonc @@ -6,9 +6,7 @@ // } // // async foo() { -// await Promise.resolve(0); -// } -// } +// --- (line: 7) skipped --- diff --git a/tests/baselines/reference/goToDefinitionFunctionOverloadsInClass.baseline.jsonc b/tests/baselines/reference/goToDefinitionFunctionOverloadsInClass.baseline.jsonc index c72c37097f17a..55018fa06b819 100644 --- a/tests/baselines/reference/goToDefinitionFunctionOverloadsInClass.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionFunctionOverloadsInClass.baseline.jsonc @@ -7,9 +7,7 @@ // public fnOverload(): any; // public fnOverload(foo: string); // public fnOverload(foo: any) { return "foo" } -// -// constructor() { } -// } +// --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/goToDefinitionFunctionType.baseline.jsonc b/tests/baselines/reference/goToDefinitionFunctionType.baseline.jsonc index 9470149e9a137..f2a863ba2ae9f 100644 --- a/tests/baselines/reference/goToDefinitionFunctionType.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionFunctionType.baseline.jsonc @@ -5,12 +5,7 @@ // function test(cb: () => void) { // cb(); // } -// class C { -// prop: () => void; -// m() { -// this.prop(); -// } -// } +// --- (line: 6) skipped --- // === Details === [ @@ -36,10 +31,7 @@ // } // class C { // prop: () => void; -// m() { -// this.prop(); -// } -// } +// --- (line: 8) skipped --- // === Details === [ @@ -58,9 +50,7 @@ // === getDefinitionAtPosition === // === /tests/cases/fourslash/goToDefinitionFunctionType.ts === -// const c: () => void; -// c(); -// function test(cb: () => void) { +// --- (line: 3) skipped --- // cb(); // } // class C { diff --git a/tests/baselines/reference/goToDefinitionInMemberDeclaration.baseline.jsonc b/tests/baselines/reference/goToDefinitionInMemberDeclaration.baseline.jsonc index 26becbd8e796d..b4eb2363e5ed4 100644 --- a/tests/baselines/reference/goToDefinitionInMemberDeclaration.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionInMemberDeclaration.baseline.jsonc @@ -13,11 +13,7 @@ // public _class: Foo = new Foo(); // public _list: IFoo[]=[]; // public _enum: Enum = Enum.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFoo) { -// } -// } +// --- (line: 14) skipped --- // === Details === [ @@ -40,10 +36,9 @@ // // class Foo implements IFoo { // public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// +// --- (line: 5) skipped --- + +// --- (line: 8) skipped --- // class Bar { // public _interface: IFoo = new Foo(); // public _class: Foo = new Foo(); @@ -51,9 +46,7 @@ // public _enum: Enum = Enum.value1; // public _self: Bar; // -// constructor(public _inConstructor: IFoo) { -// } -// } +// --- (line: 16) skipped --- // === Details === [ @@ -76,14 +69,9 @@ // // class Foo implements IFoo { // public method1(): number { return 0; } -// } -// -// enum Enum { value1, value2 }; -// -// class Bar { -// public _interface: IFoo = new Foo(); -// public _class: Foo = new Foo(); -// public _list: IFoo[]=[]; +// --- (line: 5) skipped --- + +// --- (line: 12) skipped --- // public _enum: Enum = Enum.value1; // public _self: Bar; // @@ -122,10 +110,7 @@ // public _list: IFoo[]=[]; // public _enum: Enum = Enum.value1; // public _self: Bar; -// -// constructor(public _inConstructor: IFoo) { -// } -// } +// --- (line: 15) skipped --- // === Details === [ @@ -157,11 +142,7 @@ // public _class: Foo = new Foo(); // public _list: IFoo[]=[]; // public _enum: Enum = Enum.value1; -// public _self: Bar; -// -// constructor(public _inConstructor: IFoo) { -// } -// } +// --- (line: 14) skipped --- // === Details === [ @@ -180,9 +161,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinitionInMemberDeclaration.ts === -// interface IFoo { method1(): number; } -// -// class Foo implements IFoo { +// --- (line: 3) skipped --- // public method1(): number { return 0; } // } // @@ -216,9 +195,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinitionInMemberDeclaration.ts === -// interface IFoo { method1(): number; } -// -// class Foo implements IFoo { +// --- (line: 3) skipped --- // public method1(): number { return 0; } // } // @@ -252,11 +229,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinitionInMemberDeclaration.ts === -// interface IFoo { method1(): number; } -// -// class Foo implements IFoo { -// public method1(): number { return 0; } -// } +// --- (line: 5) skipped --- // // enum Enum { value1, value2 }; // diff --git a/tests/baselines/reference/goToDefinitionIndexSignature.baseline.jsonc b/tests/baselines/reference/goToDefinitionIndexSignature.baseline.jsonc index 46e66c2928c1e..d1cac55e62a3c 100644 --- a/tests/baselines/reference/goToDefinitionIndexSignature.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionIndexSignature.baseline.jsonc @@ -15,9 +15,7 @@ // declare const ij: I | J; // ij.foo; // declare const k: K; -// k.a; -// k.b; -// k.ab; +// --- (line: 16) skipped --- // === Details === [ @@ -81,10 +79,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinitionIndexSignature.ts === -// interface I { -// [x: string]: boolean; -// } -// interface J { +// --- (line: 4) skipped --- // [x: string]: number; // } // interface K { @@ -117,11 +112,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinitionIndexSignature.ts === -// interface I { -// [x: string]: boolean; -// } -// interface J { -// [x: string]: number; +// --- (line: 5) skipped --- // } // interface K { // [x: `a${string}`]: string; @@ -153,10 +144,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinitionIndexSignature.ts === -// interface I { -// [x: string]: boolean; -// } -// interface J { +// --- (line: 4) skipped --- // [x: string]: number; // } // interface K { diff --git a/tests/baselines/reference/goToDefinitionMethodOverloads.baseline.jsonc b/tests/baselines/reference/goToDefinitionMethodOverloads.baseline.jsonc index c859b14616676..6006043bbeac4 100644 --- a/tests/baselines/reference/goToDefinitionMethodOverloads.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionMethodOverloads.baseline.jsonc @@ -139,14 +139,7 @@ // 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.method("456"); +// --- (line: 8) skipped --- // === Details === [ @@ -173,11 +166,7 @@ // } // // static method // MethodOverload.method(); -// MethodOverload.method("123"); -// // instance method -// var methodOverload = new MethodOverload(); -// methodOverload.method(); -// methodOverload.method("456"); +// --- (line: 11) skipped --- // === Details === [ diff --git a/tests/baselines/reference/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc b/tests/baselines/reference/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc index f26bb5b52e756..ed9405e3bfe50 100644 --- a/tests/baselines/reference/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionNewExpressionTargetNotClass.baseline.jsonc @@ -38,9 +38,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinitionNewExpressionTargetNotClass.ts === -// class C2 { -// } -// let I: { +// --- (line: 3) skipped --- // new(): C2; // }; // new I(); diff --git a/tests/baselines/reference/goToDefinitionOverriddenMember16.baseline.jsonc b/tests/baselines/reference/goToDefinitionOverriddenMember16.baseline.jsonc index a4d8c6e600f2c..90a18affc0bbd 100644 --- a/tests/baselines/reference/goToDefinitionOverriddenMember16.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionOverriddenMember16.baseline.jsonc @@ -6,6 +6,4 @@ // * @returns {{}} // */ // static foo() { -// return {} -// } -// } \ No newline at end of file +// --- (line: 7) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/goToDefinitionSignatureAlias.baseline.jsonc b/tests/baselines/reference/goToDefinitionSignatureAlias.baseline.jsonc index 0ef3c6de3ef39..278791552ac33 100644 --- a/tests/baselines/reference/goToDefinitionSignatureAlias.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionSignatureAlias.baseline.jsonc @@ -7,30 +7,7 @@ // g(); // h(); // const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 8) skipped --- // === Details === [ @@ -57,29 +34,7 @@ // h(); // const i = () => 0; // const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 9) skipped --- // === Details === [ @@ -118,28 +73,7 @@ // const i = () => 0; // const iFn = function () { return 0; }; // const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 10) skipped --- // === Details === [ @@ -169,9 +103,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; +// --- (line: 3) skipped --- // f(); // g(); // h(); @@ -182,24 +114,7 @@ // iFn(); // j(); // const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 14) skipped --- // === Details === [ @@ -218,10 +133,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); +// --- (line: 4) skipped --- // g(); // h(); // const i = () => 0; @@ -232,23 +144,7 @@ // j(); // const o = { m: () => 0 }; // o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 15) skipped --- // === Details === [ @@ -267,9 +163,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; +// --- (line: 3) skipped --- // f(); // g(); // h(); @@ -282,22 +176,7 @@ // const o = { m: () => 0 }; // o.m(); // const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 16) skipped --- // === Details === [ @@ -327,15 +206,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; +// --- (line: 9) skipped --- // i(); // iFn(); // j(); @@ -344,20 +215,7 @@ // const oFn = { mFn: function () { return 0; } }; // oFn.mFn(); // class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 18) skipped --- // === Details === [ @@ -376,17 +234,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); +// --- (line: 11) skipped --- // j(); // const o = { m: () => 0 }; // o.m(); @@ -395,18 +243,7 @@ // class Component { constructor(props: {}) {} } // type ComponentClass = new () => Component; // interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 20) skipped --- // === Details === [ @@ -425,23 +262,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } +// --- (line: 17) skipped --- // type ComponentClass = new () => Component; // interface ComponentClass2 { new(): Component; } // @@ -450,12 +271,7 @@ // new MyComponent({}); // // declare const MyComponent2: ComponentClass; -// ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 26) skipped --- // === Details === [ @@ -474,19 +290,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; +// --- (line: 13) skipped --- // o.m(); // const oFn = { mFn: function () { return 0; } }; // oFn.mFn(); @@ -500,11 +304,7 @@ // // declare const MyComponent2: ComponentClass; // ; -// new MyComponent2(); -// -// declare const MyComponent3: ComponentClass2; -// ; -// new MyComponent3(); +// --- (line: 27) skipped --- // === Details === [ @@ -534,27 +334,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} +// --- (line: 21) skipped --- // ; // new MyComponent({}); // @@ -583,20 +363,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); +// --- (line: 14) skipped --- // const oFn = { mFn: function () { return 0; } }; // oFn.mFn(); // class Component { constructor(props: {}) {} } @@ -643,31 +410,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; -// oFn.mFn(); -// class Component { constructor(props: {}) {} } -// type ComponentClass = new () => Component; -// interface ComponentClass2 { new(): Component; } -// -// class MyComponent extends Component {} -// ; -// new MyComponent({}); -// -// declare const MyComponent2: ComponentClass; +// --- (line: 25) skipped --- // ; // new MyComponent2(); // @@ -692,21 +435,7 @@ // === goToDefinition === // === /a.tsx === -// function f() {} -// const g = f; -// const h = g; -// f(); -// g(); -// h(); -// const i = () => 0; -// const iFn = function () { return 0; }; -// const j = i; -// i(); -// iFn(); -// j(); -// const o = { m: () => 0 }; -// o.m(); -// const oFn = { mFn: function () { return 0; } }; +// --- (line: 15) skipped --- // oFn.mFn(); // class Component { constructor(props: {}) {} } // type ComponentClass = new () => Component; diff --git a/tests/baselines/reference/goToDefinitionSourceUnit.baseline.jsonc b/tests/baselines/reference/goToDefinitionSourceUnit.baseline.jsonc index a0df5c690fa18..74f07afac3ac6 100644 --- a/tests/baselines/reference/goToDefinitionSourceUnit.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionSourceUnit.baseline.jsonc @@ -6,11 +6,7 @@ // /// // // class clsInOverload { -// static fnOverload(); -// static fnOverload(foo: string); -// static fnOverload(foo: any) { } -// } -// +// --- (line: 7) skipped --- @@ -26,10 +22,7 @@ // // class clsInOverload { // static fnOverload(); -// static fnOverload(foo: string); -// static fnOverload(foo: any) { } -// } -// +// --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc b/tests/baselines/reference/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc index 104f51c3b93b7..4fcc201c0a95a 100644 --- a/tests/baselines/reference/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionUnionTypeProperty_discriminated.baseline.jsonc @@ -17,9 +17,7 @@ // prop: 0, // }; // const u2: U = { -// kind: "bogus", -// prop: 0, -// }; +// --- (line: 18) skipped --- // === Details === [ diff --git a/tests/baselines/reference/goToDefinitionYield3.baseline.jsonc b/tests/baselines/reference/goToDefinitionYield3.baseline.jsonc index 0c42700d27f76..16eb5a704adca 100644 --- a/tests/baselines/reference/goToDefinitionYield3.baseline.jsonc +++ b/tests/baselines/reference/goToDefinitionYield3.baseline.jsonc @@ -6,9 +6,7 @@ // } // // foo*() { -// yield 0; -// } -// } +// --- (line: 7) skipped --- diff --git a/tests/baselines/reference/goToDefinition_filteringGenericMappedType.baseline.jsonc b/tests/baselines/reference/goToDefinition_filteringGenericMappedType.baseline.jsonc index eb95d9f403e4f..6e54ed057ed67 100644 --- a/tests/baselines/reference/goToDefinition_filteringGenericMappedType.baseline.jsonc +++ b/tests/baselines/reference/goToDefinition_filteringGenericMappedType.baseline.jsonc @@ -7,16 +7,9 @@ // name: "test", // }; // -// type Omit2 = { -// [K in keyof T as Exclude]: T[K]; -// }; -// -// declare function omit2( -// obj: O, -// mask: Mask -// ): Omit2; -// -// const obj2 = omit2(obj, { +// --- (line: 8) skipped --- + +// --- (line: 17) skipped --- // name: true, // }); // diff --git a/tests/baselines/reference/goToDefinition_super.baseline.jsonc b/tests/baselines/reference/goToDefinition_super.baseline.jsonc index 19f5c5b1494c4..70c7bfdb47ae3 100644 --- a/tests/baselines/reference/goToDefinition_super.baseline.jsonc +++ b/tests/baselines/reference/goToDefinition_super.baseline.jsonc @@ -11,13 +11,7 @@ // } // method() { // super.x(); -// } -// } -// class D { -// constructor() { -// super(); -// } -// } +// --- (line: 12) skipped --- // === Details === [ @@ -61,10 +55,7 @@ // } // } // class D { -// constructor() { -// super(); -// } -// } +// --- (line: 15) skipped --- // === Details === [ @@ -83,18 +74,7 @@ // === goToDefinition === // === /tests/cases/fourslash/goToDefinition_super.ts === -// class A { -// constructor() {} -// x() {} -// } -// class B extends A {} -// class C extends B { -// constructor() { -// super(); -// } -// method() { -// super.x(); -// } +// --- (line: 12) skipped --- // } // class D { // constructor() { diff --git a/tests/baselines/reference/goToImplementationInterfaceMethod_01.baseline.jsonc b/tests/baselines/reference/goToImplementationInterfaceMethod_01.baseline.jsonc index e6ae40f1db08c..f0c09e291529f 100644 --- a/tests/baselines/reference/goToImplementationInterfaceMethod_01.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterfaceMethod_01.baseline.jsonc @@ -1,8 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterfaceMethod_01.ts === -// interface Foo { -// hello(): void; -// okay?: number; +// --- (line: 3) skipped --- // } // // class Bar implements Foo { @@ -87,11 +85,7 @@ // public sure() {} // } // -// function whatever(a: Foo) { -// a.hello(); -// } -// -// whatever(new Bar()); +// --- (line: 11) skipped --- // === Details === [ diff --git a/tests/baselines/reference/goToImplementationInterfaceMethod_02.baseline.jsonc b/tests/baselines/reference/goToImplementationInterfaceMethod_02.baseline.jsonc index d9d1a1e6f758d..9cf5d7216a18a 100644 --- a/tests/baselines/reference/goToImplementationInterfaceMethod_02.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterfaceMethod_02.baseline.jsonc @@ -1,11 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterfaceMethod_02.ts === -// interface Foo { -// hello(): void -// } -// -// abstract class AbstractBar implements Foo { -// abstract hello(): void; +// --- (line: 6) skipped --- // } // // class Bar extends AbstractBar { diff --git a/tests/baselines/reference/goToImplementationInterfaceMethod_03.baseline.jsonc b/tests/baselines/reference/goToImplementationInterfaceMethod_03.baseline.jsonc index fa9e3dcbe9312..9c4dae2099e8b 100644 --- a/tests/baselines/reference/goToImplementationInterfaceMethod_03.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterfaceMethod_03.baseline.jsonc @@ -9,10 +9,9 @@ // } // // class SuperBar implements Foo { -// hello() {} // should not show up -// } -// -// class OtherBar implements Foo { +// --- (line: 10) skipped --- + +// --- (line: 13) skipped --- // hello() {} // should not show up // } // diff --git a/tests/baselines/reference/goToImplementationInterfaceMethod_05.baseline.jsonc b/tests/baselines/reference/goToImplementationInterfaceMethod_05.baseline.jsonc index e056b5bb54449..f71b4b0d7debf 100644 --- a/tests/baselines/reference/goToImplementationInterfaceMethod_05.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterfaceMethod_05.baseline.jsonc @@ -9,23 +9,9 @@ // } // // class Bar extends SuperBar { -// hello2() {} -// } -// -// class OtherBar extends SuperBar { -// hello() {} -// hello2() {} -// hello3() {} -// } -// -// class NotRelatedToBar { -// hello() {} // Equivalent to last case, but shares no common ancestors with Bar and so is not returned -// hello2() {} -// hello3() {} -// } -// -// class NotBar extends SuperBar { -// hello() {} // Should not be returned because it is not structurally equivalent to Bar +// --- (line: 10) skipped --- + +// --- (line: 26) skipped --- // } // // function whatever(x: Bar) { diff --git a/tests/baselines/reference/goToImplementationInterfaceMethod_06.baseline.jsonc b/tests/baselines/reference/goToImplementationInterfaceMethod_06.baseline.jsonc index ed8be40bc4973..dd7f0b7d404df 100644 --- a/tests/baselines/reference/goToImplementationInterfaceMethod_06.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterfaceMethod_06.baseline.jsonc @@ -1,11 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterfaceMethod_06.ts === -// interface SuperFoo { -// hello (): void; -// } -// -// interface Foo extends SuperFoo { -// someOtherFunction(): void; +// --- (line: 6) skipped --- // } // // class Bar implements Foo { @@ -25,18 +20,9 @@ // someOtherFunction() {} // }; // -// class FooLike implements SuperFoo { -// hello() {} -// someOtherFunction() {} -// } -// -// class NotRelatedToFoo { -// hello() {} // This case is equivalent to the last case, but is not returned because it does not share a common ancestor with Foo -// someOtherFunction() {} -// } -// -// class NotFoo implements SuperFoo { -// hello() {} // We only want implementations of Foo, even though the function is declared in SuperFoo +// --- (line: 26) skipped --- + +// --- (line: 37) skipped --- // } // // function (x: Foo) { diff --git a/tests/baselines/reference/goToImplementationInterfaceMethod_09.baseline.jsonc b/tests/baselines/reference/goToImplementationInterfaceMethod_09.baseline.jsonc index 089b32e6a74cf..56bb4a330348c 100644 --- a/tests/baselines/reference/goToImplementationInterfaceMethod_09.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterfaceMethod_09.baseline.jsonc @@ -1,14 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterfaceMethod_09.ts === -// interface Foo { -// hello (): void; -// } -// -// class SubBar extends Bar { -// hello() {} -// } -// -// class Bar extends SuperBar { +// --- (line: 9) skipped --- // hello() {} // // whatever() { @@ -86,16 +78,7 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterfaceMethod_09.ts === -// interface Foo { -// hello (): void; -// } -// -// class SubBar extends Bar { -// hello() {} -// } -// -// class Bar extends SuperBar { -// hello() {} +// --- (line: 10) skipped --- // // whatever() { // super.hello(); diff --git a/tests/baselines/reference/goToImplementationInterfaceMethod_10.baseline.jsonc b/tests/baselines/reference/goToImplementationInterfaceMethod_10.baseline.jsonc index 16799eaea3a42..eef6755aab281 100644 --- a/tests/baselines/reference/goToImplementationInterfaceMethod_10.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterfaceMethod_10.baseline.jsonc @@ -1,16 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterfaceMethod_10.ts === -// interface BaseFoo { -// hello(): void; -// } -// -// interface Foo extends BaseFoo { -// aloha(): void; -// } -// -// interface Bar { -// hello(): void; -// goodbye(): void; +// --- (line: 11) skipped --- // } // // class FooImpl implements Foo { @@ -211,17 +201,7 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterfaceMethod_10.ts === -// interface BaseFoo { -// hello(): void; -// } -// -// interface Foo extends BaseFoo { -// aloha(): void; -// } -// -// interface Bar { -// hello(): void; -// goodbye(): void; +// --- (line: 11) skipped --- // } // // class FooImpl implements Foo { diff --git a/tests/baselines/reference/goToImplementationInterface_02.baseline.jsonc b/tests/baselines/reference/goToImplementationInterface_02.baseline.jsonc index 738e60c540331..1018dcc2bba1e 100644 --- a/tests/baselines/reference/goToImplementationInterface_02.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterface_02.baseline.jsonc @@ -19,9 +19,7 @@ // // function createFooLike() { // return { -// hello() {} -// }; -// } +// --- (line: 20) skipped --- // === Details === [ diff --git a/tests/baselines/reference/goToImplementationInterface_08.baseline.jsonc b/tests/baselines/reference/goToImplementationInterface_08.baseline.jsonc index 80f5688c3e9ff..4c5a6bd3d8bb7 100644 --- a/tests/baselines/reference/goToImplementationInterface_08.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationInterface_08.baseline.jsonc @@ -1,11 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationInterface_08.ts === -// interface Base { -// hello (): void; -// } -// -// interface A extends Base {} -// interface B extends C, A {} +// --- (line: 6) skipped --- // interface C extends B, A {} // // class X implements B { diff --git a/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_00.baseline.jsonc b/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_00.baseline.jsonc index aa6144838e4bf..92c557e93e0a7 100644 --- a/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_00.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_00.baseline.jsonc @@ -1,14 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationShorthandPropertyAssignment_00.ts === -// interface Foo { -// someFunction(): void; -// } -// -// interface FooConstructor { -// new (): Foo -// } -// -// interface Bar { +// --- (line: 9) skipped --- // Foo: FooConstructor; // } // @@ -24,13 +16,7 @@ // // class Foo { // -// } -// -// function createBarUsingClassDeclaration(): Bar { -// return { -// Foo -// }; -// } +// --- (line: 25) skipped --- // === Details === [ @@ -65,25 +51,7 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationShorthandPropertyAssignment_00.ts === -// interface Foo { -// someFunction(): void; -// } -// -// interface FooConstructor { -// new (): Foo -// } -// -// interface Bar { -// Foo: FooConstructor; -// } -// -// var x = class Foo { -// createBarInClassExpression(): Bar { -// return { -// Foo -// }; -// } -// +// --- (line: 19) skipped --- // someFunction() {} // } // diff --git a/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_01.baseline.jsonc b/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_01.baseline.jsonc index 513d577621748..18c2c75b0d7e5 100644 --- a/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_01.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_01.baseline.jsonc @@ -1,15 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationShorthandPropertyAssignment_01.ts === -// interface Foo { -// someFunction(): void; -// } -// -// interface FooConstructor { -// new (): Foo -// } -// -// interface Bar { -// Foo: FooConstructor; +// --- (line: 10) skipped --- // } // // // Class expression that gets used in a bar implementation @@ -31,12 +22,9 @@ // // function createBarUsingClassDeclaration(): Bar { // return { -// Foo -// }; -// } -// -// // Class expression that does not get used in a bar implementation -// var y = class Foo { +// --- (line: 32) skipped --- + +// --- (line: 37) skipped --- // someFunction() {} // }; // diff --git a/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_02.baseline.jsonc b/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_02.baseline.jsonc index f14537ced3bb3..37a6e74153177 100644 --- a/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_02.baseline.jsonc +++ b/tests/baselines/reference/goToImplementationShorthandPropertyAssignment_02.baseline.jsonc @@ -1,11 +1,6 @@ // === goToImplementation === // === /tests/cases/fourslash/goToImplementationShorthandPropertyAssignment_02.ts === -// interface Foo { -// hello(): void; -// } -// -// function createFoo(): Foo { -// return { +// --- (line: 6) skipped --- // hello // }; // diff --git a/tests/baselines/reference/goToSource10_mapFromAtTypes3.baseline.jsonc b/tests/baselines/reference/goToSource10_mapFromAtTypes3.baseline.jsonc index 47530f16cb428..288916324f3fc 100644 --- a/tests/baselines/reference/goToSource10_mapFromAtTypes3.baseline.jsonc +++ b/tests/baselines/reference/goToSource10_mapFromAtTypes3.baseline.jsonc @@ -1,18 +1,6 @@ // === goToSourceDefinition === // === /node_modules/lodash/lodash.js === -// ;(function() { -// /** -// * Adds two numbers. -// * -// * @static -// * @memberOf _ -// * @since 3.4.0 -// * @category Math -// * @param {number} augend The first number in an addition. -// * @param {number} addend The second number in an addition. -// * @returns {number} Returns the total. -// * @example -// * +// --- (line: 13) skipped --- // * _.add(6, 4); // * // => 10 // */ @@ -25,25 +13,7 @@ // // /** Detect free variable `global` from Node.js. */ // var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; -// /** Detect free variable `self`. */ -// var freeSelf = typeof self == 'object' && self && self.Object === Object && self; -// /** Used as a reference to the global object. */ -// var root = freeGlobal || freeSelf || Function('return this')(); -// /** Detect free variable `exports`. */ -// var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// -// /** Detect free variable `module`. */ -// var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; -// if (freeModule) { -// // Export for Node.js. -// (freeModule.exports = _)._ = _; -// // Export for CommonJS support. -// freeExports._ = _; -// } -// else { -// // Export to the global object. -// root._ = _; -// } -// }.call(this)); +// --- (line: 26) skipped --- // === /index.ts === // import { /*GOTO SOURCE DEF*/add } from 'lodash'; diff --git a/tests/baselines/reference/goToSource8_mapFromAtTypes.baseline.jsonc b/tests/baselines/reference/goToSource8_mapFromAtTypes.baseline.jsonc index 47530f16cb428..288916324f3fc 100644 --- a/tests/baselines/reference/goToSource8_mapFromAtTypes.baseline.jsonc +++ b/tests/baselines/reference/goToSource8_mapFromAtTypes.baseline.jsonc @@ -1,18 +1,6 @@ // === goToSourceDefinition === // === /node_modules/lodash/lodash.js === -// ;(function() { -// /** -// * Adds two numbers. -// * -// * @static -// * @memberOf _ -// * @since 3.4.0 -// * @category Math -// * @param {number} augend The first number in an addition. -// * @param {number} addend The second number in an addition. -// * @returns {number} Returns the total. -// * @example -// * +// --- (line: 13) skipped --- // * _.add(6, 4); // * // => 10 // */ @@ -25,25 +13,7 @@ // // /** Detect free variable `global` from Node.js. */ // var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; -// /** Detect free variable `self`. */ -// var freeSelf = typeof self == 'object' && self && self.Object === Object && self; -// /** Used as a reference to the global object. */ -// var root = freeGlobal || freeSelf || Function('return this')(); -// /** Detect free variable `exports`. */ -// var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// -// /** Detect free variable `module`. */ -// var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; -// if (freeModule) { -// // Export for Node.js. -// (freeModule.exports = _)._ = _; -// // Export for CommonJS support. -// freeExports._ = _; -// } -// else { -// // Export to the global object. -// root._ = _; -// } -// }.call(this)); +// --- (line: 26) skipped --- // === /index.ts === // import { /*GOTO SOURCE DEF*/add } from 'lodash'; diff --git a/tests/baselines/reference/goToSource9_mapFromAtTypes2.baseline.jsonc b/tests/baselines/reference/goToSource9_mapFromAtTypes2.baseline.jsonc index 9fd7f7357cd38..4ca19bb1f3c11 100644 --- a/tests/baselines/reference/goToSource9_mapFromAtTypes2.baseline.jsonc +++ b/tests/baselines/reference/goToSource9_mapFromAtTypes2.baseline.jsonc @@ -4,46 +4,7 @@ // /** // * Adds two numbers. // * -// * @static -// * @memberOf _ -// * @since 3.4.0 -// * @category Math -// * @param {number} augend The first number in an addition. -// * @param {number} addend The second number in an addition. -// * @returns {number} Returns the total. -// * @example -// * -// * _.add(6, 4); -// * // => 10 -// */ -// var add = createMathOperation(function(augend, addend) { -// return augend + addend; -// }, 0); -// -// function lodash(value) {} -// lodash.add = add; -// -// /** Detect free variable `global` from Node.js. */ -// var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; -// /** Detect free variable `self`. */ -// var freeSelf = typeof self == 'object' && self && self.Object === Object && self; -// /** Used as a reference to the global object. */ -// var root = freeGlobal || freeSelf || Function('return this')(); -// /** Detect free variable `exports`. */ -// var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// -// /** Detect free variable `module`. */ -// var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; -// if (freeModule) { -// // Export for Node.js. -// (freeModule.exports = _)._ = _; -// // Export for CommonJS support. -// freeExports._ = _; -// } -// else { -// // Export to the global object. -// root._ = _; -// } -// }.call(this)); +// --- (line: 5) skipped --- // === /index.ts === // import /*GOTO SOURCE DEF*/_, { foo } from 'lodash'; @@ -68,46 +29,7 @@ // /** // * Adds two numbers. // * -// * @static -// * @memberOf _ -// * @since 3.4.0 -// * @category Math -// * @param {number} augend The first number in an addition. -// * @param {number} addend The second number in an addition. -// * @returns {number} Returns the total. -// * @example -// * -// * _.add(6, 4); -// * // => 10 -// */ -// var add = createMathOperation(function(augend, addend) { -// return augend + addend; -// }, 0); -// -// function lodash(value) {} -// lodash.add = add; -// -// /** Detect free variable `global` from Node.js. */ -// var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; -// /** Detect free variable `self`. */ -// var freeSelf = typeof self == 'object' && self && self.Object === Object && self; -// /** Used as a reference to the global object. */ -// var root = freeGlobal || freeSelf || Function('return this')(); -// /** Detect free variable `exports`. */ -// var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// -// /** Detect free variable `module`. */ -// var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; -// if (freeModule) { -// // Export for Node.js. -// (freeModule.exports = _)._ = _; -// // Export for CommonJS support. -// freeExports._ = _; -// } -// else { -// // Export to the global object. -// root._ = _; -// } -// }.call(this)); +// --- (line: 5) skipped --- // === /index.ts === // import _, { /*GOTO SOURCE DEF*/foo } from 'lodash'; @@ -132,46 +54,7 @@ // /** // * Adds two numbers. // * -// * @static -// * @memberOf _ -// * @since 3.4.0 -// * @category Math -// * @param {number} augend The first number in an addition. -// * @param {number} addend The second number in an addition. -// * @returns {number} Returns the total. -// * @example -// * -// * _.add(6, 4); -// * // => 10 -// */ -// var add = createMathOperation(function(augend, addend) { -// return augend + addend; -// }, 0); -// -// function lodash(value) {} -// lodash.add = add; -// -// /** Detect free variable `global` from Node.js. */ -// var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; -// /** Detect free variable `self`. */ -// var freeSelf = typeof self == 'object' && self && self.Object === Object && self; -// /** Used as a reference to the global object. */ -// var root = freeGlobal || freeSelf || Function('return this')(); -// /** Detect free variable `exports`. */ -// var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;//// -// /** Detect free variable `module`. */ -// var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; -// if (freeModule) { -// // Export for Node.js. -// (freeModule.exports = _)._ = _; -// // Export for CommonJS support. -// freeExports._ = _; -// } -// else { -// // Export to the global object. -// root._ = _; -// } -// }.call(this)); +// --- (line: 5) skipped --- // === /index.ts === // import _, { foo } from /*GOTO SOURCE DEF*/'lodash'; diff --git a/tests/baselines/reference/goToTypeDefinition_returnType.baseline.jsonc b/tests/baselines/reference/goToTypeDefinition_returnType.baseline.jsonc index da482a0522d5a..f4dcb9eb658ad 100644 --- a/tests/baselines/reference/goToTypeDefinition_returnType.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinition_returnType.baseline.jsonc @@ -4,23 +4,9 @@ // interface J { y: number; } // // function f0(): I { return { x: 0 }; } -// -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; -// -// function f8(i: I): I; +// --- (line: 5) skipped --- + +// --- (line: 21) skipped --- // function f8(j: J): J; // function f8(ij: any): any { return ij; } // @@ -28,11 +14,7 @@ // f1(); // f2(); // f3(); -// f4(); -// f5(); -// f6(); -// f7(); -// f8(); +// --- (line: 29) skipped --- // === Details === [ @@ -60,19 +42,9 @@ // const f1: T = i => ({ x: i.x + 1 }); // // const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; -// -// function f8(i: I): I; -// function f8(j: J): J; +// --- (line: 10) skipped --- + +// --- (line: 22) skipped --- // function f8(ij: any): any { return ij; } // // f0(); @@ -80,10 +52,7 @@ // f2(); // f3(); // f4(); -// f5(); -// f6(); -// f7(); -// f8(); +// --- (line: 30) skipped --- // === Details === [ @@ -106,25 +75,9 @@ // interface J { y: number; } // // function f0(): I { return { x: 0 }; } -// -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; -// -// function f8(i: I): I; -// function f8(j: J): J; -// function f8(ij: any): any { return ij; } +// --- (line: 5) skipped --- + +// --- (line: 23) skipped --- // // f0(); // f1(); @@ -132,9 +85,7 @@ // f3(); // f4(); // f5(); -// f6(); -// f7(); -// f8(); +// --- (line: 31) skipped --- // === Details === [ @@ -153,13 +104,7 @@ // === goToType === // === /tests/cases/fourslash/goToTypeDefinition_returnType.ts === -// interface I { x: number; } -// interface J { y: number; } -// -// function f0(): I { return { x: 0 }; } -// -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); +// --- (line: 7) skipped --- // // const f2 = (i: I): I => ({ x: i.x + 1 }); // @@ -167,16 +112,9 @@ // // const f4 = (i: I) => i; // -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; -// -// function f8(i: I): I; -// function f8(j: J): J; -// function f8(ij: any): any { return ij; } -// +// --- (line: 15) skipped --- + +// --- (line: 24) skipped --- // f0(); // f1(); // f2(); @@ -208,27 +146,9 @@ // interface J { y: number; } // // function f0(): I { return { x: 0 }; } -// -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; -// -// function f8(i: I): I; -// function f8(j: J): J; -// function f8(ij: any): any { return ij; } -// -// f0(); +// --- (line: 5) skipped --- + +// --- (line: 25) skipped --- // f1(); // f2(); // f3(); @@ -260,27 +180,9 @@ // // function f0(): I { return { x: 0 }; } // -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; -// -// function f8(i: I): I; -// function f8(j: J): J; -// function f8(ij: any): any { return ij; } -// -// f0(); -// f1(); +// --- (line: 6) skipped --- + +// --- (line: 26) skipped --- // f2(); // f3(); // f4(); @@ -322,28 +224,9 @@ // // function f0(): I { return { x: 0 }; } // -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; -// -// function f8(i: I): I; -// function f8(j: J): J; -// function f8(ij: any): any { return ij; } -// -// f0(); -// f1(); -// f2(); +// --- (line: 6) skipped --- + +// --- (line: 27) skipped --- // f3(); // f4(); // f5(); @@ -379,21 +262,7 @@ // === goToType === // === /tests/cases/fourslash/goToTypeDefinition_returnType.ts === -// interface I { x: number; } -// interface J { y: number; } -// -// function f0(): I { return { x: 0 }; } -// -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); +// --- (line: 15) skipped --- // // const f6 = (i: I, j: J, b: boolean) => b ? i : j; // @@ -401,12 +270,9 @@ // // function f8(i: I): I; // function f8(j: J): J; -// function f8(ij: any): any { return ij; } -// -// f0(); -// f1(); -// f2(); -// f3(); +// --- (line: 23) skipped --- + +// --- (line: 28) skipped --- // f4(); // f5(); // f6(); @@ -428,25 +294,7 @@ // === goToType === // === /tests/cases/fourslash/goToTypeDefinition_returnType.ts === -// interface I { x: number; } -// interface J { y: number; } -// -// function f0(): I { return { x: 0 }; } -// -// type T = (i: I) => I; -// const f1: T = i => ({ x: i.x + 1 }); -// -// const f2 = (i: I): I => ({ x: i.x + 1 }); -// -// const f3 = (i: I) => ({ x: i.x + 1 }); -// -// const f4 = (i: I) => i; -// -// const f5 = (i: I): I | J => ({ x: i.x + 1 }); -// -// const f6 = (i: I, j: J, b: boolean) => b ? i : j; -// -// const f7 = (i: I) => {}; +// --- (line: 19) skipped --- // // function f8(i: I): I; // function f8(j: J): J; diff --git a/tests/baselines/reference/gotoDefinitionLinkTag1.baseline.jsonc b/tests/baselines/reference/gotoDefinitionLinkTag1.baseline.jsonc index f559176cdf0a1..5c7c81cc6d9ca 100644 --- a/tests/baselines/reference/gotoDefinitionLinkTag1.baseline.jsonc +++ b/tests/baselines/reference/gotoDefinitionLinkTag1.baseline.jsonc @@ -12,14 +12,7 @@ // const a = "" // /** {@link NS.Bar} ns.bar*/ // const b = "" -// /** {@link Foo f1}*/ -// const c = "" -// /** {@link NS.Bar ns.bar}*/ -// const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } +// --- (line: 13) skipped --- // === Details === [ @@ -52,12 +45,7 @@ // const b = "" // /** {@link Foo f1}*/ // const c = "" -// /** {@link NS.Bar ns.bar}*/ -// const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } +// --- (line: 15) skipped --- // === Details === [ @@ -92,10 +80,7 @@ // const c = "" // /** {@link NS.Bar ns.bar}*/ // const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } +// --- (line: 17) skipped --- // === Details === [ @@ -152,18 +137,7 @@ // === getDefinitionAtPosition === // === /tests/cases/fourslash/foo.ts === -// interface Foo { -// foo: string -// } -// namespace NS { -// export interface Bar { -// baz: Foo -// } -// } -// /** {@link Foo} foooo*/ -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" +// --- (line: 12) skipped --- // /** {@link Foo f1}*/ // const c = "" // /** {@link NS.Bar ns.bar}*/ @@ -196,15 +170,9 @@ // namespace NS { // export interface Bar { // baz: Foo -// } -// } -// /** {@link Foo} foooo*/ -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" -// /** {@link Foo f1}*/ -// const c = "" -// /** {@link NS.Bar ns.bar}*/ +// --- (line: 7) skipped --- + +// --- (line: 15) skipped --- // const d = "" // /** {@link d }dd*/ // const e = "" @@ -234,20 +202,7 @@ // namespace NS { // export interface Bar { // baz: Foo -// } -// } -// /** {@link Foo} foooo*/ -// const a = "" -// /** {@link NS.Bar} ns.bar*/ -// const b = "" -// /** {@link Foo f1}*/ -// const c = "" -// /** {@link NS.Bar ns.bar}*/ -// const d = "" -// /** {@link d }dd*/ -// const e = "" -// /** @param x {@link Foo} */ -// function foo(x) { } +// --- (line: 7) skipped --- // === /tests/cases/fourslash/bar.ts === // /** {@link /*GOTO DEF POS*/Foo }dd*/ diff --git a/tests/baselines/reference/isDefinitionAcrossGlobalProjects.baseline.jsonc b/tests/baselines/reference/isDefinitionAcrossGlobalProjects.baseline.jsonc index 90d50057a71d7..4ec4301902621 100644 --- a/tests/baselines/reference/isDefinitionAcrossGlobalProjects.baseline.jsonc +++ b/tests/baselines/reference/isDefinitionAcrossGlobalProjects.baseline.jsonc @@ -7,14 +7,7 @@ // } // // interface I { -// FA(); -// } -// -// const ia: I = { -// FA() { }, -// FB() { }, -// FC() { }, -// }; +// --- (line: 8) skipped --- // === Definitions === // === /a/index.ts === @@ -25,14 +18,7 @@ // } // // interface I { - // FA(); - // } - // - // const ia: I = { - // FA() { }, - // FB() { }, - // FC() { }, - // }; + // --- (line: 8) skipped --- // === Details === [ @@ -112,9 +98,7 @@ // const ic: [|I|] = { FC() {} }; // === /a/index.ts === -// namespace NS { -// export function FA() { -// FB(); +// --- (line: 3) skipped --- // } // } // @@ -168,10 +152,7 @@ // === findAllReferences === // === /a/index.ts === -// namespace NS { -// export function FA() { -// FB(); -// } +// --- (line: 4) skipped --- // } // // interface I { @@ -186,10 +167,7 @@ // === Definitions === // === /a/index.ts === - // namespace NS { - // export function FA() { - // FB(); - // } + // --- (line: 4) skipped --- // } // // interface I { @@ -197,10 +175,7 @@ // } // // const ia: I = { - // FA() { }, - // FB() { }, - // FC() { }, - // }; + // --- (line: 12) skipped --- // === Details === [ @@ -271,10 +246,7 @@ // } // // interface I { -// FB(); -// } -// -// const ib: I = { FB() {} }; +// --- (line: 6) skipped --- // === /a/index.ts === // namespace NS { @@ -283,15 +255,7 @@ // } // } // -// interface I { -// FA(); -// } -// -// const ia: I = { -// FA() { }, -// FB() { }, -// FC() { }, -// }; +// --- (line: 7) skipped --- // === Definitions === // === /b/index.ts === @@ -300,10 +264,7 @@ // } // // interface I { - // FB(); - // } - // - // const ib: I = { FB() {} }; + // --- (line: 6) skipped --- // === Details === [ @@ -383,9 +344,7 @@ // const ic: [|I|] = { FC() {} }; // === /a/index.ts === -// namespace NS { -// export function FA() { -// FB(); +// --- (line: 3) skipped --- // } // } // @@ -450,15 +409,7 @@ // const ib: I = { <|[|{| isWriteAccess: true |}FB|]() {}|> }; // === /a/index.ts === -// namespace NS { -// export function FA() { -// FB(); -// } -// } -// -// interface I { -// FA(); -// } +// --- (line: 9) skipped --- // // const ia: I = { // FA() { }, @@ -547,10 +498,7 @@ // } // // interface I { -// FC(); -// } -// -// const ic: I = { FC() {} }; +// --- (line: 6) skipped --- // === Definitions === // === /c/index.ts === @@ -559,10 +507,7 @@ // } // // interface I { - // FC(); - // } - // - // const ic: I = { FC() {} }; + // --- (line: 6) skipped --- // === Details === [ @@ -642,9 +587,7 @@ // const ib: [|{| defId: 1 |}I|] = { FB() {} }; // === /a/index.ts === -// namespace NS { -// export function FA() { -// FB(); +// --- (line: 3) skipped --- // } // } // @@ -742,16 +685,7 @@ // const ic: I = { <|[|{| isWriteAccess: true |}FC|]() {}|> }; // === /a/index.ts === -// namespace NS { -// export function FA() { -// FB(); -// } -// } -// -// interface I { -// FA(); -// } -// +// --- (line: 10) skipped --- // const ia: I = { // FA() { }, // FB() { }, diff --git a/tests/baselines/reference/isDefinitionAcrossModuleProjects.baseline.jsonc b/tests/baselines/reference/isDefinitionAcrossModuleProjects.baseline.jsonc index 12a43b8fa755f..ba0023217e8da 100644 --- a/tests/baselines/reference/isDefinitionAcrossModuleProjects.baseline.jsonc +++ b/tests/baselines/reference/isDefinitionAcrossModuleProjects.baseline.jsonc @@ -9,10 +9,9 @@ // } // } // -// declare module "../c" { -// export interface I { -// FA(); -// } +// --- (line: 10) skipped --- + +// --- (line: 13) skipped --- // } // // const ia: I = { @@ -31,16 +30,7 @@ // } // } // - // declare module "../c" { - // export interface I { - // FA(); - // } - // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 10) skipped --- // === Details === [ @@ -177,11 +167,7 @@ // FA(); // } // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 15) skipped --- // === /a2/index.ts === // import { NS } from "../b"; @@ -189,20 +175,7 @@ // // declare module "../b" { // export namespace NS { - // export function FA(); - // } - // } - // - // declare module "../c" { - // export interface I { - // FA(); - // } - // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 6) skipped --- // === Details === [ @@ -339,14 +312,7 @@ // === findAllReferences === // === /a/index.ts === -// import { NS } from "../b"; -// import { I } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function FA(); -// } -// } +// --- (line: 8) skipped --- // // declare module "../c" { // export interface I { @@ -361,14 +327,7 @@ // === Definitions === // === /a/index.ts === - // import { NS } from "../b"; - // import { I } from "../c"; - // - // declare module "../b" { - // export namespace NS { - // export function FA(); - // } - // } + // --- (line: 8) skipped --- // // declare module "../c" { // export interface I { @@ -376,10 +335,7 @@ // } // } // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 16) skipped --- // === Details === [ @@ -454,10 +410,9 @@ // } // } // -// declare module "../c" { -// export interface I { -// FA(); -// } +// --- (line: 10) skipped --- + +// --- (line: 13) skipped --- // } // // const ia: I = { @@ -476,16 +431,7 @@ // } // } // - // declare module "../c" { - // export interface I { - // FA(); - // } - // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 10) skipped --- // === Details === [ @@ -622,11 +568,7 @@ // FA(); // } // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 15) skipped --- // === /a/index.ts === // import { NS } from "../b"; @@ -634,20 +576,7 @@ // // declare module "../b" { // export namespace NS { - // export function FA(); - // } - // } - // - // declare module "../c" { - // export interface I { - // FA(); - // } - // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 6) skipped --- // === Details === [ @@ -784,14 +713,7 @@ // === findAllReferences === // === /a2/index.ts === -// import { NS } from "../b"; -// import { I } from "../c"; -// -// declare module "../b" { -// export namespace NS { -// export function FA(); -// } -// } +// --- (line: 8) skipped --- // // declare module "../c" { // export interface I { @@ -806,14 +728,7 @@ // === Definitions === // === /a2/index.ts === - // import { NS } from "../b"; - // import { I } from "../c"; - // - // declare module "../b" { - // export namespace NS { - // export function FA(); - // } - // } + // --- (line: 8) skipped --- // // declare module "../c" { // export interface I { @@ -821,10 +736,7 @@ // } // } // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 16) skipped --- // === Details === [ @@ -895,10 +807,7 @@ // } // // export interface I { -// FB(); -// } -// -// const ib: I = { FB() {} }; +// --- (line: 6) skipped --- // === Definitions === // === /b/index.ts === @@ -907,10 +816,7 @@ // } // // export interface I { - // FB(); - // } - // - // const ib: I = { FB() {} }; + // --- (line: 6) skipped --- // === Details === [ @@ -1109,10 +1015,7 @@ // } // // export interface I { -// FC(); -// } -// -// const ic: I = { FC() {} }; +// --- (line: 6) skipped --- // === Definitions === // === /c/index.ts === @@ -1121,10 +1024,7 @@ // } // // export interface I { - // FC(); - // } - // - // const ic: I = { FC() {} }; + // --- (line: 6) skipped --- // === Details === [ @@ -1252,20 +1152,7 @@ // // declare module "../b" { // export namespace NS { - // export function FA(); - // } - // } - // - // declare module "../c" { - // export interface I { - // FA(); - // } - // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 6) skipped --- // === /a2/index.ts === // import { NS } from "../b"; @@ -1273,20 +1160,7 @@ // // declare module "../b" { // export namespace NS { - // export function FA(); - // } - // } - // - // declare module "../c" { - // export interface I { - // FA(); - // } - // } - // - // const ia: I = { - // FA: NS.FA, - // FC() { }, - // }; + // --- (line: 6) skipped --- // === Details === [ @@ -1434,20 +1308,7 @@ // const ic: I = { <|[|{| isWriteAccess: true |}FC|]() {}|> }; // === /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 I { -// FA(); -// } -// } +// --- (line: 14) skipped --- // // const ia: I = { // FA: NS.FA, @@ -1455,20 +1316,7 @@ // }; // === /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 I { -// FA(); -// } -// } +// --- (line: 14) skipped --- // // const ia: I = { // FA: NS.FA, diff --git a/tests/baselines/reference/jsDocSee1.baseline.jsonc b/tests/baselines/reference/jsDocSee1.baseline.jsonc index 1998c8e3301a9..0949087591720 100644 --- a/tests/baselines/reference/jsDocSee1.baseline.jsonc +++ b/tests/baselines/reference/jsDocSee1.baseline.jsonc @@ -12,12 +12,7 @@ // const a = "" // /** @see {NS.Bar} ns.bar*/ // const b = "" -// /** @see Foo f1*/ -// const c = "" -// /** @see NS.Bar ns.bar*/ -// const d = "" -// /** @see d dd*/ -// const e = "" +// --- (line: 13) skipped --- // === Details === [ @@ -50,10 +45,7 @@ // const b = "" // /** @see Foo f1*/ // const c = "" -// /** @see NS.Bar ns.bar*/ -// const d = "" -// /** @see d dd*/ -// const e = "" +// --- (line: 15) skipped --- // === Details === [ @@ -144,18 +136,7 @@ // === getDefinitionAtPosition === // === /tests/cases/fourslash/jsDocSee1.ts === -// interface Foo { -// foo: string -// } -// namespace NS { -// export interface Bar { -// baz: Foo -// } -// } -// /** @see {Foo} foooo*/ -// const a = "" -// /** @see {NS.Bar} ns.bar*/ -// const b = "" +// --- (line: 12) skipped --- // /** @see Foo f1*/ // const c = "" // /** @see NS.Bar ns.bar*/ diff --git a/tests/baselines/reference/jsDocSee2.baseline.jsonc b/tests/baselines/reference/jsDocSee2.baseline.jsonc index 75288fe162a4c..290ababe7e5cf 100644 --- a/tests/baselines/reference/jsDocSee2.baseline.jsonc +++ b/tests/baselines/reference/jsDocSee2.baseline.jsonc @@ -4,16 +4,7 @@ // const a = "" // /** @see {@bar} invalid tag*/ // const b = "" -// /** @see foooo unknown reference without brace*/ -// const c = "" -// /** @see @bar invalid tag without brace*/ -// const d = "" -// /** @see {d@fff} partial reference */ -// const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" +// --- (line: 5) skipped --- @@ -25,14 +16,7 @@ // const b = "" // /** @see foooo unknown reference without brace*/ // const c = "" -// /** @see @bar invalid tag without brace*/ -// const d = "" -// /** @see {d@fff} partial reference */ -// const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" +// --- (line: 7) skipped --- @@ -46,20 +30,13 @@ // const c = "" // /** @see @bar invalid tag without brace*/ // const d = "" -// /** @see {d@fff} partial reference */ -// const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" +// --- (line: 9) skipped --- // === goToDefinition === // === /tests/cases/fourslash/jsDocSee2.ts === -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ +// --- (line: 3) skipped --- // const b = "" // /** @see foooo unknown reference without brace*/ // const c = "" @@ -67,19 +44,13 @@ // const d = "" // /** @see {d@fff} partial reference */ // const e = "" -// /** @see @@@@@@ total invalid tag*/ -// const f = "" -// /** @see d@{fff} partial reference */ -// const g = "" +// --- (line: 11) skipped --- // === goToDefinition === // === /tests/cases/fourslash/jsDocSee2.ts === -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ -// const b = "" +// --- (line: 4) skipped --- // /** @see foooo unknown reference without brace*/ // const c = "" // /** @see @bar invalid tag without brace*/ @@ -108,13 +79,7 @@ // === goToDefinition === // === /tests/cases/fourslash/jsDocSee2.ts === -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ -// const b = "" -// /** @see foooo unknown reference without brace*/ -// const c = "" -// /** @see @bar invalid tag without brace*/ +// --- (line: 7) skipped --- // const d = "" // /** @see {d@fff} partial reference */ // const e = "" @@ -127,15 +92,7 @@ // === goToDefinition === // === /tests/cases/fourslash/jsDocSee2.ts === -// /** @see {foooo} unknown reference*/ -// const a = "" -// /** @see {@bar} invalid tag*/ -// const b = "" -// /** @see foooo unknown reference without brace*/ -// const c = "" -// /** @see @bar invalid tag without brace*/ -// const d = "" -// /** @see {d@fff} partial reference */ +// --- (line: 9) skipped --- // const e = "" // /** @see @@@@@@ total invalid tag*/ // const f = "" diff --git a/tests/baselines/reference/jsDocSee4.baseline.jsonc b/tests/baselines/reference/jsDocSee4.baseline.jsonc index 930e6bab7803b..20328b4c3db9d 100644 --- a/tests/baselines/reference/jsDocSee4.baseline.jsonc +++ b/tests/baselines/reference/jsDocSee4.baseline.jsonc @@ -9,13 +9,7 @@ // */ // const t1 = 1 // /** -// * @see {a.foo()} -// */ -// const t2 = 1 -// /** -// * @see {@link a.foo()} -// */ -// const t3 = 1 +// --- (line: 10) skipped --- // === Details === [ @@ -47,9 +41,7 @@ // */ // const t2 = 1 // /** -// * @see {@link a.foo()} -// */ -// const t3 = 1 +// --- (line: 14) skipped --- // === Details === [ diff --git a/tests/baselines/reference/jsdocTypedefTagGoToDefinition.baseline.jsonc b/tests/baselines/reference/jsdocTypedefTagGoToDefinition.baseline.jsonc index b3106294b173e..5ec67405e5289 100644 --- a/tests/baselines/reference/jsdocTypedefTagGoToDefinition.baseline.jsonc +++ b/tests/baselines/reference/jsdocTypedefTagGoToDefinition.baseline.jsonc @@ -30,10 +30,7 @@ // === goToDefinition === // === /tests/cases/fourslash/server/jsdocCompletion_typedef.js === -// /** -// * @typedef {Object} Person -// * @property {string} personName -// * @property {number} personAge +// --- (line: 4) skipped --- // */ // // /** diff --git a/tests/baselines/reference/jsxSpreadReference.baseline.jsonc b/tests/baselines/reference/jsxSpreadReference.baseline.jsonc index f42aa96386503..7928a03309de7 100644 --- a/tests/baselines/reference/jsxSpreadReference.baseline.jsonc +++ b/tests/baselines/reference/jsxSpreadReference.baseline.jsonc @@ -1,15 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } -// } -// class MyClass { -// props: { -// name?: string; -// size?: number; +// --- (line: 10) skipped --- // } // } // @@ -20,16 +11,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } -// } -// class MyClass { -// props: { -// name?: string; -// size?: number; +// --- (line: 10) skipped --- // } // } // @@ -40,16 +22,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } -// } -// class MyClass { -// props: { -// name?: string; -// size?: number; +// --- (line: 10) skipped --- // } // } // diff --git a/tests/baselines/reference/localGetReferences.baseline.jsonc b/tests/baselines/reference/localGetReferences.baseline.jsonc index 3add629082864..5fed5f6ed3564 100644 --- a/tests/baselines/reference/localGetReferences.baseline.jsonc +++ b/tests/baselines/reference/localGetReferences.baseline.jsonc @@ -16,15 +16,9 @@ // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; @@ -32,12 +26,9 @@ // modTest.modVar++; // fnVar++; // -// //Return -// return x++; -// } -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments @@ -45,11 +36,9 @@ // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- // static boo = foo; // // //Increments @@ -57,14 +46,9 @@ // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. @@ -82,48 +66,7 @@ // // References to illegal assignment. // foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === @@ -133,124 +76,7 @@ // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 7) skipped --- // === Details === [ @@ -308,15 +134,9 @@ // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; @@ -324,12 +144,9 @@ // modTest.modVar++; // fnVar++; // -// //Return -// return x++; -// } -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments @@ -337,11 +154,9 @@ // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- // static boo = foo; // // //Increments @@ -349,14 +164,9 @@ // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. @@ -374,48 +184,7 @@ // // References to illegal assignment. // foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === @@ -425,124 +194,7 @@ // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 7) skipped --- // === Details === [ @@ -584,9 +236,7 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; +// --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. @@ -602,12 +252,9 @@ // // References to a class parameter. // this.clsParam++; // modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. +// --- (line: 19) skipped --- + +// --- (line: 24) skipped --- // var fnVar = 1; // // //Increments @@ -615,14 +262,9 @@ // globalVar++; // modTest.modVar++; // fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; +// --- (line: 32) skipped --- + +// --- (line: 39) skipped --- // // //Increments // globalVar++; @@ -630,11 +272,9 @@ // modVar++; // // class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; +// --- (line: 47) skipped --- + +// --- (line: 51) skipped --- // // //Increments // globalVar++; @@ -642,18 +282,9 @@ // modVar++; // } // -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. +// --- (line: 59) skipped --- + +// --- (line: 70) skipped --- // foo(globalVar); // // //Increments @@ -661,59 +292,11 @@ // modTest.modVar++; // globalVar = globalVar + globalVar; // -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 78) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; + // --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. @@ -721,120 +304,7 @@ // // References to a variable declared in a class. // clsVar = 1; // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 11) skipped --- // === Details === [ @@ -892,9 +362,7 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; +// --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. @@ -910,12 +378,9 @@ // // References to a class parameter. // this.clsParam++; // modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. +// --- (line: 19) skipped --- + +// --- (line: 24) skipped --- // var fnVar = 1; // // //Increments @@ -923,14 +388,9 @@ // globalVar++; // modTest.modVar++; // fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; +// --- (line: 32) skipped --- + +// --- (line: 39) skipped --- // // //Increments // globalVar++; @@ -938,11 +398,9 @@ // modVar++; // // class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; +// --- (line: 47) skipped --- + +// --- (line: 51) skipped --- // // //Increments // globalVar++; @@ -950,18 +408,9 @@ // modVar++; // } // -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. +// --- (line: 59) skipped --- + +// --- (line: 70) skipped --- // foo(globalVar); // // //Increments @@ -969,59 +418,11 @@ // modTest.modVar++; // globalVar = globalVar + globalVar; // -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 78) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; + // --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. @@ -1029,120 +430,7 @@ // // References to a variable declared in a class. // clsVar = 1; // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 11) skipped --- // === Details === [ @@ -1200,11 +488,7 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { +// --- (line: 5) skipped --- // // References to static variable declared in a class. // static clsSVar = 1; // // References to a variable declared in a class. @@ -1217,121 +501,11 @@ // fooCls.clsSVar++; // // References to a class parameter. // this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 18) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { + // --- (line: 5) skipped --- // // References to static variable declared in a class. // static clsSVar = 1; // // References to a variable declared in a class. @@ -1339,118 +513,7 @@ // // constructor (public clsParam: number) { // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 13) skipped --- // === Details === [ @@ -1508,13 +571,7 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; +// --- (line: 7) skipped --- // // References to a variable declared in a class. // clsVar = 1; // @@ -1528,237 +585,103 @@ // modTest.modVar++; // } // } +// --- (line: 21) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 7) skipped --- + // // References to a variable declared in a class. + // clsVar = 1; + // + // constructor (/*FIND ALL REFS*/<|public [|clsParam|]: number|>) { + // //Increments + // globalVar++; + // this.clsVar++; + // --- (line: 15) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "property", + "name": "(property) fooCls.clsParam: number", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "fooCls", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "clsParam", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 7) skipped --- +// // References to a variable declared in a class. +// clsVar = 1; // -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// +// constructor (<|public /*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}clsParam|]: number|>) { // //Increments // globalVar++; +// this.clsVar++; // fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; +// // References to a class parameter. +// this.[|{| isWriteAccess: true |}clsParam|]++; +// modTest.modVar++; // } // } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 21) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; + // --- (line: 7) skipped --- // // References to a variable declared in a class. // clsVar = 1; // - // constructor (/*FIND ALL REFS*/<|public [|clsParam|]: number|>) { + // constructor (<|public /*FIND ALL REFS*/[|clsParam|]: number|>) { // //Increments // globalVar++; // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 15) skipped --- // === Details === [ @@ -1818,7 +741,7 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. @@ -1826,126 +749,69 @@ // // References to a variable declared in a class. // clsVar = 1; // -// constructor (<|public /*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}clsParam|]: number|>) { +// constructor (public clsParam: number) { // //Increments -// globalVar++; +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.[|{| isWriteAccess: true |}clsParam|]++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // modTest.modVar++; // fnVar++; // -// //Return -// return x++; -// } -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- // static boo = foo; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. -// clsTest = new fooCls(globalVar); +// clsTest = new fooCls([|globalVar|]); // // References to a function argument. -// foo(globalVar); +// foo([|globalVar|]); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// globalVar = globalVar + globalVar; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; // // //ETC - Other cases -// globalVar = 3; +// [|{| isWriteAccess: true |}globalVar|] = 3; // // References to illegal assignment. // foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. - // var globalVar: number = 2; + // <|var [|globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. @@ -1953,120 +819,85 @@ // // References to a variable declared in a class. // clsVar = 1; // - // constructor (<|public /*FIND ALL REFS*/[|clsParam|]: number|>) { + // constructor (public clsParam: number) { // //Increments - // globalVar++; + // /*FIND ALL REFS*/globalVar++; // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 17) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "var", + "name": "var globalVar: number", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalVar", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 5) skipped --- +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// <|[|{| isWriteAccess: true |}clsVar|] = 1;|> +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsVar|]++; +// fooCls.clsSVar++; +// // References to a class parameter. +// this.clsParam++; +// --- (line: 18) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 5) skipped --- + // // References to static variable declared in a class. + // static clsSVar = 1; + // // References to a variable declared in a class. + // <|[|clsVar|] = 1;|> + // + // constructor (public clsParam: number) { + // //Increments + // globalVar++; + // this./*FIND ALL REFS*/clsVar++; + // fooCls.clsSVar++; + // // References to a class parameter. + // this.clsParam++; + // --- (line: 18) skipped --- // === Details === [ @@ -2074,7 +905,7 @@ "containerKind": "", "containerName": "", "kind": "property", - "name": "(property) fooCls.clsParam: number", + "name": "(property) fooCls.clsVar: number", "displayParts": [ { "text": "(", @@ -2101,7 +932,7 @@ "kind": "punctuation" }, { - "text": "clsParam", + "text": "clsVar", "kind": "propertyName" }, { @@ -2124,277 +955,209 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> +// --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. -// static clsSVar = 1; +// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // // constructor (public clsParam: number) { // //Increments -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; +// globalVar++; // this.clsVar++; -// fooCls.clsSVar++; +// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; // // References to a class parameter. // this.clsParam++; // modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. +// --- (line: 19) skipped --- + +// --- (line: 24) skipped --- // var fnVar = 1; // // //Increments -// fooCls.clsSVar++; -// [|{| isWriteAccess: true |}globalVar|]++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// globalVar++; // modTest.modVar++; // fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; +// --- (line: 32) skipped --- + +// --- (line: 39) skipped --- // // //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; +// globalVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // // class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; +// --- (line: 47) skipped --- + +// --- (line: 51) skipped --- // // //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; +// globalVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // } // -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); +// --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); // // //Increments -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; +// globalVar = globalVar + globalVar; // -// }); +// --- (line: 78) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> + // --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; + // <|static [|clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // // constructor (public clsParam: number) { // //Increments - // /*FIND ALL REFS*/globalVar++; + // globalVar++; // this.clsVar++; - // fooCls.clsSVar++; + // fooCls./*FIND ALL REFS*/clsSVar++; // // References to a class parameter. // this.clsParam++; // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; + // --- (line: 19) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "property", + "name": "(property) fooCls.clsSVar: number", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "fooCls", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "clsSVar", + "kind": "propertyName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 7) skipped --- +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (<|public [|{| isWriteAccess: true |}clsParam|]: number|>) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// this./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsParam|]++; +// modTest.modVar++; +// } +// } +// --- (line: 21) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 7) skipped --- + // // References to a variable declared in a class. + // clsVar = 1; // + // constructor (<|public [|clsParam|]: number|>) { // //Increments // globalVar++; + // this.clsVar++; // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; + // // References to a class parameter. + // this./*FIND ALL REFS*/clsParam++; + // modTest.modVar++; // } // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 21) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "var", - "name": "var globalVar: number", + "kind": "property", + "name": "(property) fooCls.clsParam: number", "displayParts": [ { - "text": "var", - "kind": "keyword" + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" }, { "text": " ", "kind": "space" }, { - "text": "globalVar", - "kind": "localName" + "text": "fooCls", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "clsParam", + "kind": "propertyName" }, { "text": ":", @@ -2416,29 +1179,11 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// <|[|{| isWriteAccess: true |}clsVar|] = 1;|> -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsVar|]++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } +// --- (line: 19) skipped --- // } // // // References to a function parameter. -// function foo(x: number) { +// /*FIND ALL REFS*/<|function [|{| isWriteAccess: true, isDefinition: true |}foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // @@ -2450,23 +1195,21 @@ // // //Return // return x++; -// } +// }|> // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { -// static boo = foo; +// static boo = [|foo|]; // } // // function testFn(){ -// static boo = foo; +// static boo = [|foo|]; // // //Increments // globalVar++; @@ -2475,18 +1218,17 @@ // } // // module testMod { -// var boo = foo; +// var boo = [|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. -// foo(globalVar); +// [|foo|](globalVar); // // //Increments // fooCls.clsSVar++; @@ -2496,76 +1238,19 @@ // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. -// foo = foo + 1; +// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // <|[|clsVar|] = 1;|> - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this./*FIND ALL REFS*/clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // /*FIND ALL REFS*/<|function [|foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // @@ -2577,115 +1262,42 @@ // // //Return // return x++; - // } + // }|> // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 39) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "property", - "name": "(property) fooCls.clsVar: number", + "kind": "function", + "name": "function foo(x: number): number", "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "functionName" + }, { "text": "(", "kind": "punctuation" }, { - "text": "property", - "kind": "text" + "text": "x", + "kind": "parameterName" }, { - "text": ")", + "text": ":", "kind": "punctuation" }, { @@ -2693,17 +1305,13 @@ "kind": "space" }, { - "text": "fooCls", - "kind": "className" + "text": "number", + "kind": "keyword" }, { - "text": ".", + "text": ")", "kind": "punctuation" }, - { - "text": "clsVar", - "kind": "propertyName" - }, { "text": ":", "kind": "punctuation" @@ -2724,156 +1332,78 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } +// --- (line: 19) skipped --- // } // // // References to a function parameter. -// function foo(x: number) { +// <|function /*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; -// } +// }|> // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { -// static boo = foo; +// static boo = [|foo|]; // } // // function testFn(){ -// static boo = foo; +// static boo = [|foo|]; // // //Increments // globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modVar++; // } // // module testMod { -// var boo = foo; +// var boo = [|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. -// foo(globalVar); +// [|foo|](globalVar); // // //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modTest.modVar++; // globalVar = globalVar + globalVar; // // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. -// foo = foo + 1; +// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // <|static [|clsSVar|] = 1;|> - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls./*FIND ALL REFS*/clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // <|function /*FIND ALL REFS*/[|foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // @@ -2885,115 +1415,42 @@ // // //Return // return x++; - // } + // }|> // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 39) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "property", - "name": "(property) fooCls.clsSVar: number", + "kind": "function", + "name": "function foo(x: number): number", "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "functionName" + }, { "text": "(", "kind": "punctuation" }, { - "text": "property", - "kind": "text" + "text": "x", + "kind": "parameterName" }, { - "text": ")", + "text": ":", "kind": "punctuation" }, { @@ -3001,17 +1458,13 @@ "kind": "space" }, { - "text": "fooCls", - "kind": "className" + "text": "number", + "kind": "keyword" }, { - "text": ".", + "text": ")", "kind": "punctuation" }, - { - "text": "clsSVar", - "kind": "propertyName" - }, { "text": ":", "kind": "punctuation" @@ -3032,272 +1485,52 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; +// --- (line: 19) skipped --- +// } // -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; +// // References to a function parameter. +// function foo(/*FIND ALL REFS*/<|[|{| isWriteAccess: true, isDefinition: true |}x|]: number|>) { +// // References to a variable declared in a function. +// var fnVar = 1; // -// constructor (<|public [|{| isWriteAccess: true |}clsParam|]: number|>) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsParam|]++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; +// --- (line: 27) skipped --- + +// --- (line: 30) skipped --- // fnVar++; // // //Return -// return x++; +// return [|{| isWriteAccess: true |}x|]++; // } // // module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 38) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (<|public [|clsParam|]: number|>) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this./*FIND ALL REFS*/clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // function foo(/*FIND ALL REFS*/<|[|x|]: number|>) { // // References to a variable declared in a function. // var fnVar = 1; // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 27) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "property", - "name": "(property) fooCls.clsParam: number", + "kind": "parameter", + "name": "(parameter) x: number", "displayParts": [ { "text": "(", "kind": "punctuation" }, { - "text": "property", + "text": "parameter", "kind": "text" }, { @@ -3309,16 +1542,8 @@ "kind": "space" }, { - "text": "fooCls", - "kind": "className" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "clsParam", - "kind": "propertyName" + "text": "x", + "kind": "parameterName" }, { "text": ":", @@ -3340,285 +1565,61 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// +// --- (line: 21) skipped --- // // References to a function parameter. -// /*FIND ALL REFS*/<|function [|{| isWriteAccess: true, isDefinition: true |}foo|](x: number) { +// function foo(x: number) { // // References to a variable declared in a function. -// var fnVar = 1; +// /*FIND ALL REFS*/<|var [|{| isWriteAccess: true, isDefinition: true |}fnVar|] = 1;|> // // //Increments // fooCls.clsSVar++; // globalVar++; // modTest.modVar++; -// fnVar++; +// [|{| isWriteAccess: true |}fnVar|]++; // // //Return // return x++; -// }|> -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 35) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // + // --- (line: 21) skipped --- // // References to a function parameter. - // /*FIND ALL REFS*/<|function [|foo|](x: number) { + // function foo(x: number) { // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // }|> - // - // module modTest { - // //Declare - // export var modVar:number; + // /*FIND ALL REFS*/<|var [|fnVar|] = 1;|> // // //Increments - // globalVar++; // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 29) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "function", - "name": "function foo(x: number): number", + "kind": "local var", + "name": "(local var) fnVar: number", "displayParts": [ { - "text": "function", - "kind": "keyword" + "text": "(", + "kind": "punctuation" }, { - "text": " ", - "kind": "space" + "text": "local var", + "kind": "text" }, { - "text": "foo", - "kind": "functionName" + "text": ")", + "kind": "punctuation" }, { - "text": "(", - "kind": "punctuation" + "text": " ", + "kind": "space" }, { - "text": "x", - "kind": "parameterName" + "text": "fnVar", + "kind": "localName" }, { "text": ":", @@ -3631,11 +1632,71 @@ { "text": "number", "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 21) skipped --- +// // References to a function parameter. +// function foo(x: number) { +// // References to a variable declared in a function. +// <|var /*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}fnVar|] = 1;|> +// +// //Increments +// fooCls.clsSVar++; +// globalVar++; +// modTest.modVar++; +// [|{| isWriteAccess: true |}fnVar|]++; +// +// //Return +// return x++; +// --- (line: 35) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 21) skipped --- + // // References to a function parameter. + // function foo(x: number) { + // // References to a variable declared in a function. + // <|var /*FIND ALL REFS*/[|fnVar|] = 1;|> + // + // //Increments + // fooCls.clsSVar++; + // --- (line: 29) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "local var", + "name": "(local var) fnVar: number", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "local var", + "kind": "text" }, { "text": ")", "kind": "punctuation" }, + { + "text": " ", + "kind": "space" + }, + { + "text": "fnVar", + "kind": "localName" + }, { "text": ":", "kind": "punctuation" @@ -3656,13 +1717,11 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; +// --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. -// static clsSVar = 1; +// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // @@ -3670,274 +1729,92 @@ // //Increments // globalVar++; // this.clsVar++; -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // // References to a class parameter. // this.clsParam++; // modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// <|function /*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}foo|](x: number) { -// // References to a variable declared in a function. +// --- (line: 19) skipped --- + +// --- (line: 24) skipped --- // var fnVar = 1; // // //Increments -// fooCls.clsSVar++; +// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; // globalVar++; // modTest.modVar++; // fnVar++; -// -// //Return -// return x++; -// }|> -// -// module modTest { -// //Declare -// export var modVar:number; +// --- (line: 32) skipped --- + +// --- (line: 39) skipped --- // // //Increments // globalVar++; -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // // class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; +// --- (line: 47) skipped --- + +// --- (line: 51) skipped --- // // //Increments // globalVar++; -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // } // -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); +// --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); // // //Increments -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modTest.modVar++; // globalVar = globalVar + globalVar; // -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 78) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; + // --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; + // <|static [|clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // <|function /*FIND ALL REFS*/[|foo|](x: number) { - // // References to a variable declared in a function. + // --- (line: 11) skipped --- + + // --- (line: 24) skipped --- // var fnVar = 1; // // //Increments - // fooCls.clsSVar++; + // fooCls./*FIND ALL REFS*/clsSVar++; // globalVar++; // modTest.modVar++; // fnVar++; - // - // //Return - // return x++; - // }|> - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 32) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "function", - "name": "function foo(x: number): number", + "kind": "property", + "name": "(property) fooCls.clsSVar: number", "displayParts": [ - { - "text": "function", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "foo", - "kind": "functionName" - }, { "text": "(", "kind": "punctuation" }, { - "text": "x", - "kind": "parameterName" + "text": "property", + "kind": "text" }, { - "text": ":", + "text": ")", "kind": "punctuation" }, { @@ -3945,13 +1822,17 @@ "kind": "space" }, { - "text": "number", - "kind": "keyword" + "text": "fooCls", + "kind": "className" }, { - "text": ")", + "text": ".", "kind": "punctuation" }, + { + "text": "clsSVar", + "kind": "propertyName" + }, { "text": ":", "kind": "punctuation" @@ -3974,7 +1855,7 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. @@ -3984,245 +1865,245 @@ // // constructor (public clsParam: number) { // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(/*FIND ALL REFS*/<|[|{| isWriteAccess: true, isDefinition: true |}x|]: number|>) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; -// globalVar++; +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; // modTest.modVar++; // fnVar++; // -// //Return -// return [|{| isWriteAccess: true |}x|]++; -// } -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- // static boo = foo; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. -// clsTest = new fooCls(globalVar); +// clsTest = new fooCls([|globalVar|]); // // References to a function argument. -// foo(globalVar); +// foo([|globalVar|]); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// globalVar = globalVar + globalVar; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; // // //ETC - Other cases -// globalVar = 3; +// [|{| isWriteAccess: true |}globalVar|] = 3; // // References to illegal assignment. // foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. - // var globalVar: number = 2; + // <|var [|globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; + // --- (line: 7) skipped --- + + // --- (line: 25) skipped --- // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } + // //Increments + // fooCls.clsSVar++; + // /*FIND ALL REFS*/globalVar++; + // modTest.modVar++; + // fnVar++; // + // --- (line: 33) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "var", + "name": "var globalVar: number", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalVar", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 21) skipped --- +// // References to a function parameter. +// function foo(x: number) { +// // References to a variable declared in a function. +// <|var [|{| isWriteAccess: true |}fnVar|] = 1;|> +// +// //Increments +// fooCls.clsSVar++; +// globalVar++; +// modTest.modVar++; +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}fnVar|]++; +// +// //Return +// return x++; +// --- (line: 35) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 21) skipped --- // // References to a function parameter. - // function foo(/*FIND ALL REFS*/<|[|x|]: number|>) { + // function foo(x: number) { // // References to a variable declared in a function. - // var fnVar = 1; + // <|var [|fnVar|] = 1;|> // // //Increments // fooCls.clsSVar++; // globalVar++; // modTest.modVar++; - // fnVar++; + // /*FIND ALL REFS*/fnVar++; // // //Return // return x++; + // --- (line: 35) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "local var", + "name": "(local var) fnVar: number", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "local var", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "fnVar", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 19) skipped --- +// } +// +// // References to a function parameter. +// function foo(<|[|{| isWriteAccess: true |}x|]: number|>) { +// // References to a variable declared in a function. +// var fnVar = 1; +// +// --- (line: 27) skipped --- + +// --- (line: 30) skipped --- +// fnVar++; +// +// //Return +// return /*FIND ALL REFS*/[|{| isWriteAccess: true |}x|]++; +// } +// +// module modTest { +// --- (line: 38) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 19) skipped --- // } // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; + // // References to a function parameter. + // function foo(<|[|x|]: number|>) { + // // References to a variable declared in a function. + // var fnVar = 1; // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; + // --- (line: 27) skipped --- + + // --- (line: 30) skipped --- + // fnVar++; // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; + // //Return + // return /*FIND ALL REFS*/x++; // } // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // module modTest { + // --- (line: 38) skipped --- // === Details === [ @@ -4274,7 +2155,7 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. @@ -4284,272 +2165,100 @@ // // constructor (public clsParam: number) { // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// /*FIND ALL REFS*/<|var [|{| isWriteAccess: true, isDefinition: true |}fnVar|] = 1;|> +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // modTest.modVar++; -// [|{| isWriteAccess: true |}fnVar|]++; +// fnVar++; // -// //Return -// return x++; -// } -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments -// globalVar++; +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- // static boo = foo; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. -// clsTest = new fooCls(globalVar); +// clsTest = new fooCls([|globalVar|]); // // References to a function argument. -// foo(globalVar); +// foo([|globalVar|]); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// globalVar = globalVar + globalVar; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; // // //ETC - Other cases -// globalVar = 3; +// [|{| isWriteAccess: true |}globalVar|] = 3; // // References to illegal assignment. // foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. - // var globalVar: number = 2; + // <|var [|globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // /*FIND ALL REFS*/<|var [|fnVar|] = 1;|> - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare + // --- (line: 7) skipped --- + + // --- (line: 38) skipped --- // export var modVar:number; // // //Increments - // globalVar++; + // /*FIND ALL REFS*/globalVar++; // fooCls.clsSVar++; // modVar++; // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 46) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "local var", - "name": "(local var) fnVar: number", + "kind": "var", + "name": "var globalVar: number", "displayParts": [ { - "text": "(", - "kind": "punctuation" - }, - { - "text": "local var", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" + "text": "var", + "kind": "keyword" }, { "text": " ", "kind": "space" }, { - "text": "fnVar", + "text": "globalVar", "kind": "localName" }, { @@ -4572,13 +2281,11 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; +// --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. -// static clsSVar = 1; +// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // @@ -4586,258 +2293,88 @@ // //Increments // globalVar++; // this.clsVar++; -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // // References to a class parameter. // this.clsParam++; // modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// <|var /*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}fnVar|] = 1;|> +// --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; // // //Increments -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // globalVar++; // modTest.modVar++; -// [|{| isWriteAccess: true |}fnVar|]++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; +// fnVar++; +// --- (line: 32) skipped --- + +// --- (line: 39) skipped --- // // //Increments // globalVar++; -// fooCls.clsSVar++; +// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // // class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; +// --- (line: 47) skipped --- + +// --- (line: 51) skipped --- // // //Increments // globalVar++; -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // } // -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. +// --- (line: 59) skipped --- + +// --- (line: 70) skipped --- // foo(globalVar); // // //Increments -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modTest.modVar++; // globalVar = globalVar + globalVar; // -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 78) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; + // --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; + // <|static [|clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // <|var /*FIND ALL REFS*/[|fnVar|] = 1;|> - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; + // --- (line: 11) skipped --- + + // --- (line: 39) skipped --- // // //Increments // globalVar++; - // fooCls.clsSVar++; + // fooCls./*FIND ALL REFS*/clsSVar++; // modVar++; // // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 47) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "local var", - "name": "(local var) fnVar: number", + "kind": "property", + "name": "(property) fooCls.clsSVar: number", "displayParts": [ { "text": "(", "kind": "punctuation" }, { - "text": "local var", + "text": "property", "kind": "text" }, { @@ -4849,8 +2386,16 @@ "kind": "space" }, { - "text": "fnVar", - "kind": "localName" + "text": "fooCls", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "clsSVar", + "kind": "propertyName" }, { "text": ":", @@ -4872,276 +2417,135 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } +// --- (line: 19) skipped --- // } // // // References to a function parameter. -// function foo(x: number) { +// <|function [|{| isWriteAccess: true |}foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments -// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; -// } +// }|> // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { -// static boo = foo; +// static boo = /*FIND ALL REFS*/[|foo|]; // } // // function testFn(){ -// static boo = foo; +// static boo = [|foo|]; // // //Increments // globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modVar++; // } // // module testMod { -// var boo = foo; +// var boo = [|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. -// foo(globalVar); +// [|foo|](globalVar); // // //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modTest.modVar++; // globalVar = globalVar + globalVar; // // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. -// foo = foo + 1; +// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // <|static [|clsSVar|] = 1;|> - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // <|function [|foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments - // fooCls./*FIND ALL REFS*/clsSVar++; + // fooCls.clsSVar++; // globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; - // } + // }|> // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; + // --- (line: 39) skipped --- + + // --- (line: 43) skipped --- // modVar++; // // class testCls { - // static boo = foo; + // static boo = /*FIND ALL REFS*/foo; // } // // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 51) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "property", - "name": "(property) fooCls.clsSVar: number", + "kind": "function", + "name": "function foo(x: number): number", "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "functionName" + }, { "text": "(", "kind": "punctuation" }, { - "text": "property", - "kind": "text" + "text": "x", + "kind": "parameterName" }, { - "text": ")", + "text": ":", "kind": "punctuation" }, { @@ -5149,17 +2553,13 @@ "kind": "space" }, { - "text": "fooCls", - "kind": "className" + "text": "number", + "kind": "keyword" }, { - "text": ".", + "text": ")", "kind": "punctuation" }, - { - "text": "clsSVar", - "kind": "propertyName" - }, { "text": ":", "kind": "punctuation" @@ -5180,268 +2580,115 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } +// --- (line: 19) skipped --- // } // // // References to a function parameter. -// function foo(x: number) { +// <|function [|{| isWriteAccess: true |}foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments // fooCls.clsSVar++; -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; +// globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; -// } +// }|> // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { -// static boo = foo; +// static boo = [|foo|]; // } // // function testFn(){ -// static boo = foo; +// static boo = /*FIND ALL REFS*/[|foo|]; // // //Increments -// [|{| isWriteAccess: true |}globalVar|]++; +// globalVar++; // fooCls.clsSVar++; // modVar++; // } // // module testMod { -// var boo = foo; +// var boo = [|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. -// clsTest = new fooCls([|globalVar|]); +// clsTest = new fooCls(globalVar); // // References to a function argument. -// foo([|globalVar|]); +// [|foo|](globalVar); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; +// globalVar = globalVar + globalVar; // // //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; +// globalVar = 3; // // References to illegal assignment. -// foo = foo + 1; +// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // <|function [|foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments // fooCls.clsSVar++; - // /*FIND ALL REFS*/globalVar++; + // globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; - // } + // }|> // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; + // --- (line: 39) skipped --- + + // --- (line: 47) skipped --- // } // // function testFn(){ - // static boo = foo; + // static boo = /*FIND ALL REFS*/foo; // // //Increments // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 55) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "var", - "name": "var globalVar: number", + "kind": "function", + "name": "function foo(x: number): number", "displayParts": [ { - "text": "var", + "text": "function", "kind": "keyword" }, { @@ -5449,8 +2696,32 @@ "kind": "space" }, { - "text": "globalVar", - "kind": "localName" + "text": "foo", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "x", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" }, { "text": ":", @@ -5474,7 +2745,7 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. @@ -5484,272 +2755,100 @@ // // constructor (public clsParam: number) { // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// <|var [|{| isWriteAccess: true |}fnVar|] = 1;|> +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // modTest.modVar++; -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}fnVar|]++; -// -// //Return -// return x++; -// } +// fnVar++; // -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- // static boo = foo; // // //Increments -// globalVar++; +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. -// clsTest = new fooCls(globalVar); +// clsTest = new fooCls([|globalVar|]); // // References to a function argument. -// foo(globalVar); +// foo([|globalVar|]); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// globalVar = globalVar + globalVar; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; // // //ETC - Other cases -// globalVar = 3; +// [|{| isWriteAccess: true |}globalVar|] = 3; // // References to illegal assignment. // foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. - // var globalVar: number = 2; + // <|var [|globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // <|var [|fnVar|] = 1;|> - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // /*FIND ALL REFS*/fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ + // --- (line: 7) skipped --- + + // --- (line: 50) skipped --- // static boo = foo; // // //Increments - // globalVar++; + // /*FIND ALL REFS*/globalVar++; // fooCls.clsSVar++; // modVar++; // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 58) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "local var", - "name": "(local var) fnVar: number", + "kind": "var", + "name": "var globalVar: number", "displayParts": [ { - "text": "(", - "kind": "punctuation" - }, - { - "text": "local var", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" + "text": "var", + "kind": "keyword" }, { "text": " ", "kind": "space" }, { - "text": "fnVar", + "text": "globalVar", "kind": "localName" }, { @@ -5772,13 +2871,11 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; +// --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. -// static clsSVar = 1; +// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // @@ -5786,258 +2883,88 @@ // //Increments // globalVar++; // this.clsVar++; -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // // References to a class parameter. // this.clsParam++; // modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(<|[|{| isWriteAccess: true |}x|]: number|>) { -// // References to a variable declared in a function. +// --- (line: 19) skipped --- + +// --- (line: 24) skipped --- // var fnVar = 1; // // //Increments -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // globalVar++; // modTest.modVar++; // fnVar++; -// -// //Return -// return /*FIND ALL REFS*/[|{| isWriteAccess: true |}x|]++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; +// --- (line: 32) skipped --- + +// --- (line: 39) skipped --- // // //Increments // globalVar++; -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // // class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; +// --- (line: 47) skipped --- + +// --- (line: 51) skipped --- // // //Increments // globalVar++; -// fooCls.clsSVar++; +// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; // modVar++; // } // -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. +// --- (line: 59) skipped --- + +// --- (line: 70) skipped --- // foo(globalVar); // // //Increments -// fooCls.clsSVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; // modTest.modVar++; // globalVar = globalVar + globalVar; // -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 78) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; + // --- (line: 3) skipped --- // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; + // <|static [|clsSVar|] = 1;|> // // References to a variable declared in a class. // clsVar = 1; // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(<|[|x|]: number|>) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return /*FIND ALL REFS*/x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; + // --- (line: 11) skipped --- + + // --- (line: 51) skipped --- // // //Increments // globalVar++; - // fooCls.clsSVar++; + // fooCls./*FIND ALL REFS*/clsSVar++; // modVar++; // } // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 59) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "parameter", - "name": "(parameter) x: number", + "kind": "property", + "name": "(property) fooCls.clsSVar: number", "displayParts": [ { "text": "(", "kind": "punctuation" }, { - "text": "parameter", + "text": "property", "kind": "text" }, { @@ -6049,8 +2976,16 @@ "kind": "space" }, { - "text": "x", - "kind": "parameterName" + "text": "fooCls", + "kind": "className" + }, + { + "text": ".", + "kind": "punctuation" + }, + { + "text": "clsSVar", + "kind": "propertyName" }, { "text": ":", @@ -6072,156 +3007,78 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } +// --- (line: 19) skipped --- // } // // // References to a function parameter. -// function foo(x: number) { +// <|function [|{| isWriteAccess: true |}foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments // fooCls.clsSVar++; -// [|{| isWriteAccess: true |}globalVar|]++; +// globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; -// } +// }|> // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { -// static boo = foo; +// static boo = [|foo|]; // } // // function testFn(){ -// static boo = foo; +// static boo = [|foo|]; // // //Increments -// [|{| isWriteAccess: true |}globalVar|]++; +// globalVar++; // fooCls.clsSVar++; // modVar++; // } // // module testMod { -// var boo = foo; +// var boo = /*FIND ALL REFS*/[|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. -// clsTest = new fooCls([|globalVar|]); +// clsTest = new fooCls(globalVar); // // References to a function argument. -// foo([|globalVar|]); +// [|foo|](globalVar); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; +// globalVar = globalVar + globalVar; // // //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; +// globalVar = 3; // // References to illegal assignment. -// foo = foo + 1; +// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // <|function [|foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // @@ -6233,107 +3090,32 @@ // // //Return // return x++; - // } + // }|> // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // /*FIND ALL REFS*/globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; + // --- (line: 39) skipped --- + + // --- (line: 56) skipped --- // } // // module testMod { - // var boo = foo; + // var boo = /*FIND ALL REFS*/foo; // } // } // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 64) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "var", - "name": "var globalVar: number", + "kind": "function", + "name": "function foo(x: number): number", "displayParts": [ { - "text": "var", + "text": "function", "kind": "keyword" }, { @@ -6341,8 +3123,32 @@ "kind": "space" }, { - "text": "globalVar", - "kind": "localName" + "text": "foo", + "kind": "functionName" + }, + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "x", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + }, + { + "text": ")", + "kind": "punctuation" }, { "text": ":", @@ -6366,154 +3172,204 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. -// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> +// static clsSVar = 1; // // References to a variable declared in a class. // clsVar = 1; // // constructor (public clsParam: number) { // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|{| isWriteAccess: true |}globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|{| isWriteAccess: true |}globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|{| isWriteAccess: true |}globalVar|]++; +// fooCls.clsSVar++; +// modVar++; // } +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls(/*FIND ALL REFS*/[|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|{| isWriteAccess: true |}globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// --- (line: 83) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // // Comment Refence Test: globalVar + // // References to a variable declared in global. + // <|var [|globalVar|]: number = 2;|> + // + // class fooCls { + // // References to static variable declared in a class. + // --- (line: 7) skipped --- + + // --- (line: 65) skipped --- + // + // //Arguments + // // References to a class argument. + // clsTest = new fooCls(/*FIND ALL REFS*/globalVar); + // // References to a function argument. + // foo(globalVar); + // + // --- (line: 73) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "var", + "name": "var globalVar: number", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalVar", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 19) skipped --- // } // // // References to a function parameter. -// function foo(x: number) { +// <|function [|{| isWriteAccess: true |}foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; -// } +// }|> // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { -// static boo = foo; +// static boo = [|foo|]; // } // // function testFn(){ -// static boo = foo; +// static boo = [|foo|]; // // //Increments // globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modVar++; // } // // module testMod { -// var boo = foo; +// var boo = [|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. -// foo(globalVar); +// /*FIND ALL REFS*/[|foo|](globalVar); // // //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modTest.modVar++; // globalVar = globalVar + globalVar; // // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. -// foo = foo + 1; +// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // <|static [|clsSVar|] = 1;|> - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // <|function [|foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // @@ -6525,115 +3381,52 @@ // // //Return // return x++; - // } + // }|> // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls./*FIND ALL REFS*/clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments + // --- (line: 39) skipped --- + + // --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. - // foo(globalVar); + // /*FIND ALL REFS*/foo(globalVar); // // //Increments // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 75) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "property", - "name": "(property) fooCls.clsSVar: number", + "kind": "function", + "name": "function foo(x: number): number", "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "functionName" + }, { "text": "(", "kind": "punctuation" }, { - "text": "property", - "kind": "text" + "text": "x", + "kind": "parameterName" }, { - "text": ")", + "text": ":", "kind": "punctuation" }, { @@ -6641,17 +3434,13 @@ "kind": "space" }, { - "text": "fooCls", - "kind": "className" + "text": "number", + "kind": "keyword" }, { - "text": ".", + "text": ")", "kind": "punctuation" }, - { - "text": "clsSVar", - "kind": "propertyName" - }, { "text": ":", "kind": "punctuation" @@ -6674,7 +3463,7 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. @@ -6684,256 +3473,92 @@ // // constructor (public clsParam: number) { // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// <|function [|{| isWriteAccess: true |}foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // modTest.modVar++; // fnVar++; // -// //Return -// return x++; -// }|> -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = /*FIND ALL REFS*/[|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. -// clsTest = new fooCls(globalVar); +// clsTest = new fooCls([|globalVar|]); // // References to a function argument. -// [|foo|](globalVar); +// foo(/*FIND ALL REFS*/[|globalVar|]); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// globalVar = globalVar + globalVar; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; // // //ETC - Other cases -// globalVar = 3; +// [|{| isWriteAccess: true |}globalVar|] = 3; // // References to illegal assignment. -// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; +// foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. - // var globalVar: number = 2; + // <|var [|globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // <|function [|foo|](x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // }|> - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = /*FIND ALL REFS*/foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments + // --- (line: 7) skipped --- + + // --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. - // foo(globalVar); + // foo(/*FIND ALL REFS*/globalVar); // // //Increments // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 75) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "function", - "name": "function foo(x: number): number", + "kind": "var", + "name": "var globalVar: number", "displayParts": [ { - "text": "function", + "text": "var", "kind": "keyword" }, { @@ -6941,19 +3566,127 @@ "kind": "space" }, { - "text": "foo", - "kind": "functionName" + "text": "globalVar", + "kind": "localName" }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 3) skipped --- +// +// class fooCls { +// // References to static variable declared in a class. +// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// globalVar++; +// this.clsVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// // References to a class parameter. +// this.clsParam++; +// modTest.modVar++; +// --- (line: 19) skipped --- + +// --- (line: 24) skipped --- +// var fnVar = 1; +// +// //Increments +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// globalVar++; +// modTest.modVar++; +// fnVar++; +// --- (line: 32) skipped --- + +// --- (line: 39) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// modVar++; +// +// class testCls { +// --- (line: 47) skipped --- + +// --- (line: 51) skipped --- +// +// //Increments +// globalVar++; +// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// modVar++; +// } +// +// --- (line: 59) skipped --- + +// --- (line: 70) skipped --- +// foo(globalVar); +// +// //Increments +// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; +// modTest.modVar++; +// globalVar = globalVar + globalVar; +// +// --- (line: 78) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 3) skipped --- + // + // class fooCls { + // // References to static variable declared in a class. + // <|static [|clsSVar|] = 1;|> + // // References to a variable declared in a class. + // clsVar = 1; + // + // --- (line: 11) skipped --- + + // --- (line: 70) skipped --- + // foo(globalVar); + // + // //Increments + // fooCls./*FIND ALL REFS*/clsSVar++; + // modTest.modVar++; + // globalVar = globalVar + globalVar; + // + // --- (line: 78) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "property", + "name": "(property) fooCls.clsSVar: number", + "displayParts": [ { "text": "(", "kind": "punctuation" }, { - "text": "x", - "kind": "parameterName" + "text": "property", + "kind": "text" }, { - "text": ":", + "text": ")", "kind": "punctuation" }, { @@ -6961,13 +3694,17 @@ "kind": "space" }, { - "text": "number", - "kind": "keyword" + "text": "fooCls", + "kind": "className" }, { - "text": ")", + "text": ".", "kind": "punctuation" }, + { + "text": "clsSVar", + "kind": "propertyName" + }, { "text": ":", "kind": "punctuation" @@ -6990,7 +3727,7 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. @@ -7000,256 +3737,92 @@ // // constructor (public clsParam: number) { // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// <|function [|{| isWriteAccess: true |}foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // modTest.modVar++; // fnVar++; // -// //Return -// return x++; -// }|> -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = /*FIND ALL REFS*/[|foo|]; +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; // // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. -// clsTest = new fooCls(globalVar); +// clsTest = new fooCls([|globalVar|]); // // References to a function argument. -// [|foo|](globalVar); +// foo([|globalVar|]); // // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// globalVar = globalVar + globalVar; +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; // // //ETC - Other cases -// globalVar = 3; +// [|{| isWriteAccess: true |}globalVar|] = 3; // // References to illegal assignment. -// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; +// foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. - // var globalVar: number = 2; + // <|var [|globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // <|function [|foo|](x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // }|> - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = /*FIND ALL REFS*/foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; + // --- (line: 7) skipped --- + + // --- (line: 72) skipped --- + // //Increments + // fooCls.clsSVar++; + // modTest.modVar++; + // /*FIND ALL REFS*/globalVar = globalVar + globalVar; // // //ETC - Other cases // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 80) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "function", - "name": "function foo(x: number): number", + "kind": "var", + "name": "var globalVar: number", "displayParts": [ { - "text": "function", + "text": "var", "kind": "keyword" }, { @@ -7257,16 +3830,8 @@ "kind": "space" }, { - "text": "foo", - "kind": "functionName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "x", - "kind": "parameterName" + "text": "globalVar", + "kind": "localName" }, { "text": ":", @@ -7279,10 +3844,122 @@ { "text": "number", "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// // Comment Refence Test: globalVar +// // References to a variable declared in global. +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> +// +// class fooCls { +// // References to static variable declared in a class. +// static clsSVar = 1; +// // References to a variable declared in a class. +// clsVar = 1; +// +// constructor (public clsParam: number) { +// //Increments +// [|{| isWriteAccess: true |}globalVar|]++; +// this.clsVar++; +// fooCls.clsSVar++; +// // References to a class parameter. +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|{| isWriteAccess: true |}globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|{| isWriteAccess: true |}globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|{| isWriteAccess: true |}globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// } +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|{| isWriteAccess: true |}globalVar|] = /*FIND ALL REFS*/[|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// [|{| isWriteAccess: true |}globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// --- (line: 83) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // // Comment Refence Test: globalVar + // // References to a variable declared in global. + // <|var [|globalVar|]: number = 2;|> + // + // class fooCls { + // // References to static variable declared in a class. + // --- (line: 7) skipped --- + + // --- (line: 72) skipped --- + // //Increments + // fooCls.clsSVar++; + // modTest.modVar++; + // globalVar = /*FIND ALL REFS*/globalVar + globalVar; + // + // //ETC - Other cases + // globalVar = 3; + // --- (line: 80) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "var", + "name": "var globalVar: number", + "displayParts": [ + { + "text": "var", + "kind": "keyword" }, { - "text": ")", - "kind": "punctuation" + "text": " ", + "kind": "space" + }, + { + "text": "globalVar", + "kind": "localName" }, { "text": ":", @@ -7320,15 +3997,9 @@ // this.clsVar++; // fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- // // //Increments // fooCls.clsSVar++; @@ -7336,12 +4007,9 @@ // modTest.modVar++; // fnVar++; // -// //Return -// return x++; -// } -// -// module modTest { -// //Declare +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- // export var modVar:number; // // //Increments @@ -7349,26 +4017,19 @@ // fooCls.clsSVar++; // modVar++; // -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- // static boo = foo; // // //Increments -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; +// [|{| isWriteAccess: true |}globalVar|]++; // fooCls.clsSVar++; // modVar++; // } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- // // //Arguments // // References to a class argument. @@ -7379,55 +4040,14 @@ // //Increments // fooCls.clsSVar++; // modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + /*FIND ALL REFS*/[|globalVar|]; // // //ETC - Other cases // [|{| isWriteAccess: true |}globalVar|] = 3; // // References to illegal assignment. // foo = foo + 1; // err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 83) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === @@ -7437,124 +4057,17 @@ // // class fooCls { // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // /*FIND ALL REFS*/globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // + // --- (line: 7) skipped --- + + // --- (line: 72) skipped --- // //Increments // fooCls.clsSVar++; // modTest.modVar++; - // globalVar = globalVar + globalVar; + // globalVar = globalVar + /*FIND ALL REFS*/globalVar; // // //ETC - Other cases // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 80) skipped --- // === Details === [ @@ -7598,154 +4111,204 @@ // === /tests/cases/fourslash/localGetReferences_1.ts === // // Comment Refence Test: globalVar // // References to a variable declared in global. -// var globalVar: number = 2; +// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> // // class fooCls { // // References to static variable declared in a class. -// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> +// static clsSVar = 1; // // References to a variable declared in a class. // clsVar = 1; // // constructor (public clsParam: number) { // //Increments -// globalVar++; +// [|{| isWriteAccess: true |}globalVar|]++; // this.clsVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; +// --- (line: 17) skipped --- + +// --- (line: 25) skipped --- +// +// //Increments +// fooCls.clsSVar++; +// [|{| isWriteAccess: true |}globalVar|]++; +// modTest.modVar++; +// fnVar++; +// +// --- (line: 33) skipped --- + +// --- (line: 38) skipped --- +// export var modVar:number; +// +// //Increments +// [|{| isWriteAccess: true |}globalVar|]++; +// fooCls.clsSVar++; +// modVar++; +// +// --- (line: 46) skipped --- + +// --- (line: 50) skipped --- +// static boo = foo; +// +// //Increments +// [|{| isWriteAccess: true |}globalVar|]++; +// fooCls.clsSVar++; +// modVar++; // } +// --- (line: 58) skipped --- + +// --- (line: 65) skipped --- +// +// //Arguments +// // References to a class argument. +// clsTest = new fooCls([|globalVar|]); +// // References to a function argument. +// foo([|globalVar|]); +// +// //Increments +// fooCls.clsSVar++; +// modTest.modVar++; +// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; +// +// //ETC - Other cases +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|] = 3; +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// --- (line: 83) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // // Comment Refence Test: globalVar + // // References to a variable declared in global. + // <|var [|globalVar|]: number = 2;|> + // + // class fooCls { + // // References to static variable declared in a class. + // --- (line: 7) skipped --- + + // --- (line: 75) skipped --- + // globalVar = globalVar + globalVar; + // + // //ETC - Other cases + // /*FIND ALL REFS*/globalVar = 3; + // // References to illegal assignment. + // foo = foo + 1; + // err = err++; + // --- (line: 83) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "var", + "name": "var globalVar: number", + "displayParts": [ + { + "text": "var", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalVar", + "kind": "localName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 19) skipped --- // } // // // References to a function parameter. -// function foo(x: number) { +// <|function [|{| isWriteAccess: true |}foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // // //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // globalVar++; // modTest.modVar++; // fnVar++; // // //Return // return x++; -// } +// }|> // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { -// static boo = foo; +// static boo = [|foo|]; // } // // function testFn(){ -// static boo = foo; +// static boo = [|foo|]; // // //Increments // globalVar++; -// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modVar++; // } // // module testMod { -// var boo = foo; +// var boo = [|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. -// foo(globalVar); +// [|foo|](globalVar); // // //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; +// fooCls.clsSVar++; // modTest.modVar++; // globalVar = globalVar + globalVar; // // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. -// foo = foo + 1; +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}foo|] = [|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // <|static [|clsSVar|] = 1;|> - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. - // function foo(x: number) { + // <|function [|foo|](x: number) { // // References to a variable declared in a function. // var fnVar = 1; // @@ -7757,115 +4320,52 @@ // // //Return // return x++; - // } + // }|> // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls./*FIND ALL REFS*/clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // + // --- (line: 39) skipped --- + + // --- (line: 77) skipped --- // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. - // foo = foo + 1; + // /*FIND ALL REFS*/foo = foo + 1; // err = err++; // // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 85) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "property", - "name": "(property) fooCls.clsSVar: number", + "kind": "function", + "name": "function foo(x: number): number", "displayParts": [ + { + "text": "function", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "foo", + "kind": "functionName" + }, { "text": "(", "kind": "punctuation" }, { - "text": "property", - "kind": "text" + "text": "x", + "kind": "parameterName" }, { - "text": ")", + "text": ":", "kind": "punctuation" }, { @@ -7873,17 +4373,13 @@ "kind": "space" }, { - "text": "fooCls", - "kind": "className" + "text": "number", + "kind": "keyword" }, { - "text": ".", + "text": ")", "kind": "punctuation" }, - { - "text": "clsSVar", - "kind": "propertyName" - }, { "text": ":", "kind": "punctuation" @@ -7904,25 +4400,7 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } +// --- (line: 19) skipped --- // } // // // References to a function parameter. @@ -7942,11 +4420,9 @@ // // module modTest { // //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // modVar++; // // class testCls { @@ -7963,14 +4439,13 @@ // } // // module testMod { -// var boo = /*FIND ALL REFS*/[|foo|]; +// var boo = [|foo|]; // } // } // -// //Type test -// var clsTest: fooCls; -// -// //Arguments +// --- (line: 64) skipped --- + +// --- (line: 67) skipped --- // // References to a class argument. // clsTest = new fooCls(globalVar); // // References to a function argument. @@ -7984,72 +4459,15 @@ // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. -// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; +// [|{| isWriteAccess: true |}foo|] = /*FIND ALL REFS*/[|foo|] + 1; // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 85) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } + // --- (line: 19) skipped --- // } // // // References to a function parameter. @@ -8069,92 +4487,17 @@ // // module modTest { // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = /*FIND ALL REFS*/foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // + // --- (line: 39) skipped --- + + // --- (line: 77) skipped --- // //ETC - Other cases // globalVar = 3; // // References to illegal assignment. - // foo = foo + 1; + // foo = /*FIND ALL REFS*/foo + 1; // err = err++; // // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 85) skipped --- // === Details === [ @@ -8220,269 +4563,50 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// [|{| isWriteAccess: true |}globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(/*FIND ALL REFS*/[|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; +// --- (line: 81) skipped --- // err = err++; // // //Shadowed fn Parameter -// function shdw(globalVar: number) { +// function shdw(/*FIND ALL REFS*/<|[|{| isWriteAccess: true, isDefinition: true |}globalVar|]: number|>) { // //Increments -// globalVar++; -// return globalVar; +// [|{| isWriteAccess: true |}globalVar|]++; +// return [|globalVar|]; // } // // //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 92) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(/*FIND ALL REFS*/globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; + // --- (line: 81) skipped --- // err = err++; // // //Shadowed fn Parameter - // function shdw(globalVar: number) { + // function shdw(/*FIND ALL REFS*/<|[|globalVar|]: number|>) { // //Increments // globalVar++; // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 89) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "var", - "name": "var globalVar: number", + "kind": "parameter", + "name": "(parameter) globalVar: number", "displayParts": [ { - "text": "var", - "kind": "keyword" + "text": "(", + "kind": "punctuation" + }, + { + "text": "parameter", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" }, { "text": " ", @@ -8490,7 +4614,7 @@ }, { "text": "globalVar", - "kind": "localName" + "kind": "parameterName" }, { "text": ":", @@ -8512,288 +4636,51 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; +// --- (line: 81) skipped --- +// err = err++; // -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// <|function [|{| isWriteAccess: true |}foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// }|> -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// /*FIND ALL REFS*/[|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|{| isWriteAccess: true |}foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; +// //Shadowed fn Parameter +// function shdw(<|[|{| isWriteAccess: true |}globalVar|]: number|>) { +// //Increments +// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; +// return [|globalVar|]; // } // // //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); +// --- (line: 92) skipped --- // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // <|function [|foo|](x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // }|> - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // /*FIND ALL REFS*/foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; + // --- (line: 81) skipped --- // err = err++; // // //Shadowed fn Parameter - // function shdw(globalVar: number) { + // function shdw(<|[|globalVar|]: number|>) { // //Increments - // globalVar++; + // /*FIND ALL REFS*/globalVar++; // return globalVar; // } // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); + // --- (line: 91) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "function", - "name": "function foo(x: number): number", + "kind": "parameter", + "name": "(parameter) globalVar: number", "displayParts": [ - { - "text": "function", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "foo", - "kind": "functionName" - }, { "text": "(", "kind": "punctuation" }, { - "text": "x", - "kind": "parameterName" + "text": "parameter", + "kind": "text" }, { - "text": ":", + "text": ")", "kind": "punctuation" }, { @@ -8801,12 +4688,8 @@ "kind": "space" }, { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" + "text": "globalVar", + "kind": "parameterName" }, { "text": ":", @@ -8828,277 +4711,134 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 81) skipped --- +// err = err++; // +// //Shadowed fn Parameter +// function shdw(<|[|{| isWriteAccess: true |}globalVar|]: number|>) { // //Increments -// fooCls.clsSVar++; // [|{| isWriteAccess: true |}globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo(/*FIND ALL REFS*/[|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; +// return /*FIND ALL REFS*/[|globalVar|]; // } // // //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// +// --- (line: 92) skipped --- + + // === Definitions === + // === /tests/cases/fourslash/localGetReferences_1.ts === + // --- (line: 81) skipped --- + // err = err++; + // + // //Shadowed fn Parameter + // function shdw(<|[|globalVar|]: number|>) { + // //Increments + // globalVar++; + // return /*FIND ALL REFS*/globalVar; + // } + // + // //Remotes + // --- (line: 92) skipped --- + + // === Details === + [ + { + "containerKind": "", + "containerName": "", + "kind": "parameter", + "name": "(parameter) globalVar: number", + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "parameter", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "globalVar", + "kind": "parameterName" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "number", + "kind": "keyword" + } + ] + } + ] + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 113) skipped --- // array.forEach( // // -// function(str) { +// function(/*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}str|]) { // // // // // Reference misses function parameter. -// return str + " "; +// return [|str|] + " "; // // }); // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(/*FIND ALL REFS*/globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // + // --- (line: 113) skipped --- // array.forEach( // // - // function(str) { - // + // function(/*FIND ALL REFS*/[|str|]) { // // - // // Reference misses function parameter. - // return str + " "; // - // }); + // --- (line: 121) skipped --- // === Details === [ { "containerKind": "", "containerName": "", - "kind": "var", - "name": "var globalVar: number", + "kind": "parameter", + "name": "(parameter) str: string", "displayParts": [ { - "text": "var", - "kind": "keyword" + "text": "(", + "kind": "punctuation" + }, + { + "text": "parameter", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" }, { "text": " ", "kind": "space" }, { - "text": "globalVar", - "kind": "localName" + "text": "str", + "kind": "parameterName" }, { "text": ":", @@ -9109,7 +4849,7 @@ "kind": "space" }, { - "text": "number", + "text": "string", "kind": "keyword" } ] @@ -9120,255 +4860,31 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; +// --- (line: 113) skipped --- +// array.forEach( // -// class fooCls { -// // References to static variable declared in a class. -// <|static [|{| isWriteAccess: true |}clsSVar|] = 1;|> -// // References to a variable declared in a class. -// clsVar = 1; // -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.[|{| isWriteAccess: true |}clsSVar|]++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls./*FIND ALL REFS*/[|{| isWriteAccess: true |}clsSVar|]++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { +// function([|{| isWriteAccess: true |}str|]) { // // // // // Reference misses function parameter. -// return str + " "; +// return /*FIND ALL REFS*/[|str|] + " "; // // }); // === Definitions === // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // <|static [|clsSVar|] = 1;|> - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls./*FIND ALL REFS*/clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // + // --- (line: 113) skipped --- // array.forEach( // // - // function(str) { + // function([|str|]) { // // // // // Reference misses function parameter. - // return str + " "; + // return /*FIND ALL REFS*/str + " "; // // }); @@ -9377,15 +4893,15 @@ { "containerKind": "", "containerName": "", - "kind": "property", - "name": "(property) fooCls.clsSVar: number", + "kind": "parameter", + "name": "(parameter) str: string", "displayParts": [ { "text": "(", "kind": "punctuation" }, { - "text": "property", + "text": "parameter", "kind": "text" }, { @@ -9397,16 +4913,8 @@ "kind": "space" }, { - "text": "fooCls", - "kind": "className" - }, - { - "text": ".", - "kind": "punctuation" - }, - { - "text": "clsSVar", - "kind": "propertyName" + "text": "str", + "kind": "parameterName" }, { "text": ":", @@ -9417,7 +4925,7 @@ "kind": "space" }, { - "text": "number", + "text": "string", "kind": "keyword" } ] @@ -9428,3685 +4936,36 @@ // === findAllReferences === // === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar +// // Comment Refence Test: g/*FIND ALL REFS*/lobalVar // // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } +// var globalVar: number = 2; // -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; +// --- (line: 5) skipped --- + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 78) skipped --- +// globalVar = 3; +// // References to illegal assignment. +// foo = foo + 1; +// /*FIND ALL REFS*/err = err++; // +// //Shadowed fn Parameter +// function shdw(globalVar: number) { +// --- (line: 86) skipped --- + + + +// === findAllReferences === +// === /tests/cases/fourslash/localGetReferences_1.ts === +// --- (line: 79) skipped --- +// // References to illegal assignment. +// foo = foo + 1; +// err = err++; +// /*FIND ALL REFS*/ +// //Shadowed fn Parameter +// function shdw(globalVar: number) { // //Increments -// fooCls.clsSVar++; -// [|{| isWriteAccess: true |}globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // /*FIND ALL REFS*/globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "var", - "name": "var globalVar: number", - "displayParts": [ - { - "text": "var", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "globalVar", - "kind": "localName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// [|{| isWriteAccess: true |}globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = /*FIND ALL REFS*/[|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = /*FIND ALL REFS*/globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "var", - "name": "var globalVar: number", - "displayParts": [ - { - "text": "var", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "globalVar", - "kind": "localName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// [|{| isWriteAccess: true |}globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + /*FIND ALL REFS*/[|globalVar|]; -// -// //ETC - Other cases -// [|{| isWriteAccess: true |}globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + /*FIND ALL REFS*/globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "var", - "name": "var globalVar: number", - "displayParts": [ - { - "text": "var", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "globalVar", - "kind": "localName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// <|var [|{| isWriteAccess: true |}globalVar|]: number = 2;|> -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// [|{| isWriteAccess: true |}globalVar|]++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls([|globalVar|]); -// // References to a function argument. -// foo([|globalVar|]); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// [|{| isWriteAccess: true |}globalVar|] = [|globalVar|] + [|globalVar|]; -// -// //ETC - Other cases -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|] = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // <|var [|globalVar|]: number = 2;|> - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // /*FIND ALL REFS*/globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "var", - "name": "var globalVar: number", - "displayParts": [ - { - "text": "var", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "globalVar", - "kind": "localName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// <|function [|{| isWriteAccess: true |}foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// }|> -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}foo|] = [|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // <|function [|foo|](x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // }|> - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // /*FIND ALL REFS*/foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "function", - "name": "function foo(x: number): number", - "displayParts": [ - { - "text": "function", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "foo", - "kind": "functionName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "x", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// <|function [|{| isWriteAccess: true |}foo|](x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// }|> -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = [|foo|]; -// } -// -// function testFn(){ -// static boo = [|foo|]; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = [|foo|]; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// [|foo|](globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// [|{| isWriteAccess: true |}foo|] = /*FIND ALL REFS*/[|foo|] + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // <|function [|foo|](x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // }|> - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = /*FIND ALL REFS*/foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "function", - "name": "function foo(x: number): number", - "displayParts": [ - { - "text": "function", - "kind": "keyword" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "foo", - "kind": "functionName" - }, - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "x", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(/*FIND ALL REFS*/<|[|{| isWriteAccess: true, isDefinition: true |}globalVar|]: number|>) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// return [|globalVar|]; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(/*FIND ALL REFS*/<|[|globalVar|]: number|>) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "parameter", - "name": "(parameter) globalVar: number", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "parameter", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "globalVar", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(<|[|{| isWriteAccess: true |}globalVar|]: number|>) { -// //Increments -// /*FIND ALL REFS*/[|{| isWriteAccess: true |}globalVar|]++; -// return [|globalVar|]; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(<|[|globalVar|]: number|>) { - // //Increments - // /*FIND ALL REFS*/globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "parameter", - "name": "(parameter) globalVar: number", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "parameter", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "globalVar", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(<|[|{| isWriteAccess: true |}globalVar|]: number|>) { -// //Increments -// [|{| isWriteAccess: true |}globalVar|]++; -// return /*FIND ALL REFS*/[|globalVar|]; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(<|[|globalVar|]: number|>) { - // //Increments - // globalVar++; - // return /*FIND ALL REFS*/globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(str) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "parameter", - "name": "(parameter) globalVar: number", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "parameter", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "globalVar", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "number", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(/*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}str|]) { -// -// -// -// // Reference misses function parameter. -// return [|str|] + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function(/*FIND ALL REFS*/[|str|]) { - // - // - // - // // Reference misses function parameter. - // return str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "parameter", - "name": "(parameter) str: string", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "parameter", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "str", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function([|{| isWriteAccess: true |}str|]) { -// -// -// -// // Reference misses function parameter. -// return /*FIND ALL REFS*/[|str|] + " "; -// -// }); - - // === Definitions === - // === /tests/cases/fourslash/localGetReferences_1.ts === - // // Comment Refence Test: globalVar - // // References to a variable declared in global. - // var globalVar: number = 2; - // - // class fooCls { - // // References to static variable declared in a class. - // static clsSVar = 1; - // // References to a variable declared in a class. - // clsVar = 1; - // - // constructor (public clsParam: number) { - // //Increments - // globalVar++; - // this.clsVar++; - // fooCls.clsSVar++; - // // References to a class parameter. - // this.clsParam++; - // modTest.modVar++; - // } - // } - // - // // References to a function parameter. - // function foo(x: number) { - // // References to a variable declared in a function. - // var fnVar = 1; - // - // //Increments - // fooCls.clsSVar++; - // globalVar++; - // modTest.modVar++; - // fnVar++; - // - // //Return - // return x++; - // } - // - // module modTest { - // //Declare - // export var modVar:number; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // - // class testCls { - // static boo = foo; - // } - // - // function testFn(){ - // static boo = foo; - // - // //Increments - // globalVar++; - // fooCls.clsSVar++; - // modVar++; - // } - // - // module testMod { - // var boo = foo; - // } - // } - // - // //Type test - // var clsTest: fooCls; - // - // //Arguments - // // References to a class argument. - // clsTest = new fooCls(globalVar); - // // References to a function argument. - // foo(globalVar); - // - // //Increments - // fooCls.clsSVar++; - // modTest.modVar++; - // globalVar = globalVar + globalVar; - // - // //ETC - Other cases - // globalVar = 3; - // // References to illegal assignment. - // foo = foo + 1; - // err = err++; - // - // //Shadowed fn Parameter - // function shdw(globalVar: number) { - // //Increments - // globalVar++; - // return globalVar; - // } - // - // //Remotes - // //Type test - // 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 - // - // - // - // array = ["f", "o", "o"]; - // - // array.forEach( - // - // - // function([|str|]) { - // - // - // - // // Reference misses function parameter. - // return /*FIND ALL REFS*/str + " "; - // - // }); - - // === Details === - [ - { - "containerKind": "", - "containerName": "", - "kind": "parameter", - "name": "(parameter) str: string", - "displayParts": [ - { - "text": "(", - "kind": "punctuation" - }, - { - "text": "parameter", - "kind": "text" - }, - { - "text": ")", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "str", - "kind": "parameterName" - }, - { - "text": ":", - "kind": "punctuation" - }, - { - "text": " ", - "kind": "space" - }, - { - "text": "string", - "kind": "keyword" - } - ] - } - ] - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: g/*FIND ALL REFS*/lobalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// /*FIND ALL REFS*/err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); - - - -// === findAllReferences === -// === /tests/cases/fourslash/localGetReferences_1.ts === -// // Comment Refence Test: globalVar -// // References to a variable declared in global. -// var globalVar: number = 2; -// -// class fooCls { -// // References to static variable declared in a class. -// static clsSVar = 1; -// // References to a variable declared in a class. -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// // References to a class parameter. -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// // References to a function parameter. -// function foo(x: number) { -// // References to a variable declared in a function. -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// // References to a class argument. -// clsTest = new fooCls(globalVar); -// // References to a function argument. -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// // References to illegal assignment. -// foo = foo + 1; -// err = err++; -// /*FIND ALL REFS*/ -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// 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 -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// // Reference misses function parameter. -// return str + " "; -// -// }); \ No newline at end of file +// --- (line: 87) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/referenceInParameterPropertyDeclaration.baseline.jsonc b/tests/baselines/reference/referenceInParameterPropertyDeclaration.baseline.jsonc index a8d78004921df..2e5101030de68 100644 --- a/tests/baselines/reference/referenceInParameterPropertyDeclaration.baseline.jsonc +++ b/tests/baselines/reference/referenceInParameterPropertyDeclaration.baseline.jsonc @@ -10,11 +10,7 @@ // // let localPublic = publicParam; // this.publicParam += " Hello!"; -// -// let localProtected = protectedParam; -// this.protectedParam = false; -// } -// } +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/file1.ts === @@ -23,16 +19,7 @@ // public publicParam: string, // protected protectedParam: boolean) { // - // let localPrivate = privateParam; - // this.privateParam += 10; - // - // let localPublic = publicParam; - // this.publicParam += " Hello!"; - // - // let localProtected = protectedParam; - // this.protectedParam = false; - // } - // } + // --- (line: 6) skipped --- // === Details === [ @@ -156,15 +143,7 @@ // protected protectedParam: boolean) { // // let localPrivate = privateParam; - // this.privateParam += 10; - // - // let localPublic = publicParam; - // this.publicParam += " Hello!"; - // - // let localProtected = protectedParam; - // this.protectedParam = false; - // } - // } + // --- (line: 7) skipped --- // === Details === [ @@ -289,14 +268,7 @@ // // let localPrivate = privateParam; // this.privateParam += 10; - // - // let localPublic = publicParam; - // this.publicParam += " Hello!"; - // - // let localProtected = protectedParam; - // this.protectedParam = false; - // } - // } + // --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referenceToClass.baseline.jsonc b/tests/baselines/reference/referenceToClass.baseline.jsonc index 255fb4edd3b55..c65e0065915a5 100644 --- a/tests/baselines/reference/referenceToClass.baseline.jsonc +++ b/tests/baselines/reference/referenceToClass.baseline.jsonc @@ -26,12 +26,7 @@ // // class bar { // public n: foo; - // public k = new foo(); - // } - // - // module mod { - // var k: foo = null; - // } + // --- (line: 8) skipped --- // === Details === [ @@ -87,12 +82,7 @@ // // class bar { // public n: foo; - // public k = new foo(); - // } - // - // module mod { - // var k: foo = null; - // } + // --- (line: 8) skipped --- // === Details === [ @@ -151,9 +141,7 @@ // public k = new foo(); // } // - // module mod { - // var k: foo = null; - // } + // --- (line: 11) skipped --- // === Details === [ @@ -331,12 +319,7 @@ // // class bar { // public n: foo; - // public k = new foo(); - // } - // - // module mod { - // var k: foo = null; - // } + // --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForAmbients.baseline.jsonc b/tests/baselines/reference/referencesForAmbients.baseline.jsonc index 63379ed4e1b31..ac4c090940453 100644 --- a/tests/baselines/reference/referencesForAmbients.baseline.jsonc +++ b/tests/baselines/reference/referencesForAmbients.baseline.jsonc @@ -9,10 +9,7 @@ // var f2: typeof foo.f; // } // -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.foo; -// } +// --- (line: 10) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForAmbients.ts === @@ -22,13 +19,7 @@ // // declare module "bar" { // export import foo = require("foo"); - // var f2: typeof foo.f; - // } - // - // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -67,10 +58,7 @@ // var f2: typeof foo.f; // } // -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.foo; -// } +// --- (line: 10) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForAmbients.ts === @@ -80,13 +68,7 @@ // // declare module "bar" { // export import foo = require("foo"); - // var f2: typeof foo.f; - // } - // - // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 7) skipped --- // === Details === [ @@ -126,9 +108,7 @@ // } // // declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.foo; -// } +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForAmbients.ts === @@ -137,14 +117,7 @@ // } // // declare module "bar" { - // export import foo = require("foo"); - // var f2: typeof foo.f; - // } - // - // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 6) skipped --- // === Details === [ @@ -196,9 +169,7 @@ // } // // declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.foo; -// } +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForAmbients.ts === @@ -207,14 +178,7 @@ // } // // declare module "bar" { - // export import foo = require("foo"); - // var f2: typeof foo.f; - // } - // - // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 6) skipped --- // === Details === [ @@ -397,10 +361,7 @@ // var f2: typeof foo.f; // } // - // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 10) skipped --- // === Details === [ @@ -515,10 +476,7 @@ // var f2: typeof foo.f; // } // - // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 10) skipped --- // === Details === [ @@ -617,10 +575,7 @@ // var f2: typeof foo.f; // } // -// declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.foo; -// } +// --- (line: 10) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForAmbients.ts === @@ -633,10 +588,7 @@ // var f2: typeof foo.f; // } // - // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 10) skipped --- // === Details === [ @@ -692,9 +644,7 @@ // } // // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 11) skipped --- // === Details === [ @@ -794,9 +744,7 @@ // } // // declare module "baz" { -// import bar = require("bar"); -// var f2: typeof bar.foo; -// } +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForAmbients.ts === @@ -810,9 +758,7 @@ // } // // declare module "baz" { - // import bar = require("bar"); - // var f2: typeof bar.foo; - // } + // --- (line: 11) skipped --- // === Details === [ @@ -854,13 +800,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForAmbients.ts === -// declare module "foo" { -// var f: number; -// } -// -// declare module "bar" { -// export import foo = require("foo"); -// var f2: typeof foo.f; +// --- (line: 7) skipped --- // } // // declare module "baz" { @@ -870,13 +810,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForAmbients.ts === - // declare module "foo" { - // var f: number; - // } - // - // declare module "bar" { - // export import foo = require("foo"); - // var f2: typeof foo.f; + // --- (line: 7) skipped --- // } // // declare module "baz" { diff --git a/tests/baselines/reference/referencesForClassLocal.baseline.jsonc b/tests/baselines/reference/referencesForClassLocal.baseline.jsonc index b9facd7ff9c4f..58e33aa77d723 100644 --- a/tests/baselines/reference/referencesForClassLocal.baseline.jsonc +++ b/tests/baselines/reference/referencesForClassLocal.baseline.jsonc @@ -14,9 +14,7 @@ // } // // public bar2() { -// var n = 12; -// } -// } +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForClassLocal.ts === @@ -27,16 +25,7 @@ // // public bar() { // this.n = 9; - // } - // - // constructor() { - // this.n = 4; - // } - // - // public bar2() { - // var n = 12; - // } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -108,9 +97,7 @@ // } // // public bar2() { -// var n = 12; -// } -// } +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForClassLocal.ts === @@ -121,16 +108,7 @@ // // public bar() { // this.n = 9; - // } - // - // constructor() { - // this.n = 4; - // } - // - // public bar2() { - // var n = 12; - // } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -202,9 +180,7 @@ // } // // public bar2() { -// var n = 12; -// } -// } +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForClassLocal.ts === @@ -218,13 +194,7 @@ // } // // constructor() { - // this.n = 4; - // } - // - // public bar2() { - // var n = 12; - // } - // } + // --- (line: 11) skipped --- // === Details === [ @@ -296,9 +266,7 @@ // } // // public bar2() { -// var n = 12; -// } -// } +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForClassLocal.ts === @@ -316,9 +284,7 @@ // } // // public bar2() { - // var n = 12; - // } - // } + // --- (line: 15) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForClassMembers.baseline.jsonc b/tests/baselines/reference/referencesForClassMembers.baseline.jsonc index a57232d1beecd..2ab279654a666 100644 --- a/tests/baselines/reference/referencesForClassMembers.baseline.jsonc +++ b/tests/baselines/reference/referencesForClassMembers.baseline.jsonc @@ -24,9 +24,7 @@ // method() { } // } // - // var c: MyClass; - // c.a; - // c.method(); + // --- (line: 10) skipped --- // === Details === [ @@ -158,9 +156,7 @@ // method() { } // } // - // var c: MyClass; - // c.a; - // c.method(); + // --- (line: 10) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForClassMembersExtendingAbstractClass.baseline.jsonc b/tests/baselines/reference/referencesForClassMembersExtendingAbstractClass.baseline.jsonc index 5721067533cf3..b271348bba3d1 100644 --- a/tests/baselines/reference/referencesForClassMembersExtendingAbstractClass.baseline.jsonc +++ b/tests/baselines/reference/referencesForClassMembersExtendingAbstractClass.baseline.jsonc @@ -24,9 +24,7 @@ // method() { } // } // - // var c: MyClass; - // c.a; - // c.method(); + // --- (line: 10) skipped --- // === Details === [ @@ -158,9 +156,7 @@ // method() { } // } // - // var c: MyClass; - // c.a; - // c.method(); + // --- (line: 10) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForClassMembersExtendingGenericClass.baseline.jsonc b/tests/baselines/reference/referencesForClassMembersExtendingGenericClass.baseline.jsonc index a9033e569e1ae..b5879b4713595 100644 --- a/tests/baselines/reference/referencesForClassMembersExtendingGenericClass.baseline.jsonc +++ b/tests/baselines/reference/referencesForClassMembersExtendingGenericClass.baseline.jsonc @@ -24,9 +24,7 @@ // method() { } // } // - // var c: MyClass; - // c.a; - // c.method(); + // --- (line: 10) skipped --- // === Details === [ @@ -170,9 +168,7 @@ // method() { } // } // - // var c: MyClass; - // c.a; - // c.method(); + // --- (line: 10) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForClassParameter.baseline.jsonc b/tests/baselines/reference/referencesForClassParameter.baseline.jsonc index a3e190cfe0d81..cc17e8b0ac832 100644 --- a/tests/baselines/reference/referencesForClassParameter.baseline.jsonc +++ b/tests/baselines/reference/referencesForClassParameter.baseline.jsonc @@ -28,13 +28,7 @@ // } // // public f(p) { - // this.p = p; - // } - // - // } - // - // var n = new foo(undefined); - // n.p = null; + // --- (line: 10) skipped --- // === Details === [ @@ -120,13 +114,7 @@ // } // // public f(p) { - // this.p = p; - // } - // - // } - // - // var n = new foo(undefined); - // n.p = null; + // --- (line: 10) skipped --- // === Details === [ @@ -216,9 +204,7 @@ // } // // } - // - // var n = new foo(undefined); - // n.p = null; + // --- (line: 14) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc b/tests/baselines/reference/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc index 4e2126c34c3b6..a3a5af15b621e 100644 --- a/tests/baselines/reference/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc +++ b/tests/baselines/reference/referencesForContextuallyTypedObjectLiteralProperties.baseline.jsonc @@ -31,26 +31,7 @@ // // // 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 }; + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForContextuallyTypedUnionProperties.baseline.jsonc b/tests/baselines/reference/referencesForContextuallyTypedUnionProperties.baseline.jsonc index 0132c7a413ecc..0303d26cf34f5 100644 --- a/tests/baselines/reference/referencesForContextuallyTypedUnionProperties.baseline.jsonc +++ b/tests/baselines/reference/referencesForContextuallyTypedUnionProperties.baseline.jsonc @@ -42,33 +42,7 @@ // } // // 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 }; + // --- (line: 7) skipped --- // === Details === [ @@ -184,10 +158,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForContextuallyTypedUnionProperties.ts === -// interface A { -// a: number; -// common: string; -// } +// --- (line: 4) skipped --- // // interface B { // b: number; @@ -231,28 +202,7 @@ // } // // // 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 }; + // --- (line: 12) skipped --- // === Details === [ @@ -419,24 +369,7 @@ // 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 }; + // --- (line: 16) skipped --- // === Details === [ @@ -653,23 +586,7 @@ // // // 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 }; + // --- (line: 17) skipped --- // === Details === [ @@ -890,19 +807,7 @@ // // // 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 }; + // --- (line: 21) skipped --- // === Details === [ @@ -1114,11 +1019,9 @@ // } // // // Assignment - // var v1: A | B = { a: 0, common: "" }; - // var v2: A | B = { b: 0, common: 3 }; - // - // // Function call - // function consumer(f: A | B) { } + // --- (line: 12) skipped --- + + // --- (line: 16) skipped --- // consumer({ a: 0, b: 0, common: 1 }); // // // Type cast @@ -1126,16 +1029,7 @@ // // // 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 }; + // --- (line: 24) skipped --- // === Details === [ @@ -1347,14 +1241,9 @@ // } // // // 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 + // --- (line: 12) skipped --- + + // --- (line: 19) skipped --- // var c = { common: 0, b: 0 }; // // // Array literal @@ -1362,13 +1251,7 @@ // // // 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 }; + // --- (line: 27) skipped --- // === Details === [ @@ -1580,14 +1463,9 @@ // } // // // 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 + // --- (line: 12) skipped --- + + // --- (line: 19) skipped --- // var c = { common: 0, b: 0 }; // // // Array literal @@ -1595,13 +1473,7 @@ // // // 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 }; + // --- (line: 27) skipped --- // === Details === [ @@ -1813,17 +1685,9 @@ // } // // // 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 + // --- (line: 12) skipped --- + + // --- (line: 22) skipped --- // var ar: Array = [{ a: 0, common: "" }, { b: 0, common: 0 }]; // // // Nested object literal @@ -1831,10 +1695,7 @@ // // // 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 }; + // --- (line: 30) skipped --- // === Details === [ @@ -2046,20 +1907,9 @@ // } // // // 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 + // --- (line: 12) skipped --- + + // --- (line: 25) skipped --- // var ob: { aorb: A|B } = { aorb: { b: 0, common: 0 } }; // // // Widened type diff --git a/tests/baselines/reference/referencesForContextuallyTypedUnionProperties2.baseline.jsonc b/tests/baselines/reference/referencesForContextuallyTypedUnionProperties2.baseline.jsonc index d4d268aa636ba..fcb347e61d718 100644 --- a/tests/baselines/reference/referencesForContextuallyTypedUnionProperties2.baseline.jsonc +++ b/tests/baselines/reference/referencesForContextuallyTypedUnionProperties2.baseline.jsonc @@ -1,8 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForContextuallyTypedUnionProperties2.ts === -// interface A { -// a: number; -// common: string; +// --- (line: 3) skipped --- // } // // interface B { @@ -36,9 +34,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForContextuallyTypedUnionProperties2.ts === - // interface A { - // a: number; - // common: string; + // --- (line: 3) skipped --- // } // // interface B { @@ -46,29 +42,7 @@ // 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 }; + // --- (line: 11) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForDeclarationKeywords.baseline.jsonc b/tests/baselines/reference/referencesForDeclarationKeywords.baseline.jsonc index 76d3ff680ff77..adb6eac0e038d 100644 --- a/tests/baselines/reference/referencesForDeclarationKeywords.baseline.jsonc +++ b/tests/baselines/reference/referencesForDeclarationKeywords.baseline.jsonc @@ -9,16 +9,7 @@ // interface I1 extends Base { } // type T = { } // enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 10) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === @@ -31,16 +22,7 @@ // interface I1 extends Base { } // type T = { } // enum E { } - // namespace N { } - // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 10) skipped --- // === Details === [ @@ -80,15 +62,7 @@ // type T = { } // enum E { } // namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === @@ -98,19 +72,7 @@ // get e() { return 1; } // set e(v) {} // } - // interface I1 extends Base { } - // type T = { } - // enum E { } - // namespace N { } - // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 7) skipped --- // === Details === [ @@ -146,19 +108,7 @@ // get e() { return 1; } // set e(v) {} // } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === @@ -168,19 +118,7 @@ // get e() { return 1; } // set e(v) {} // } - // interface I1 extends Base { } - // type T = { } - // enum E { } - // namespace N { } - // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 7) skipped --- // === Details === [ @@ -210,20 +148,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; +// --- (line: 14) skipped --- // const z = 1; // interface Implemented2 {} // interface Implemented3 {} @@ -242,17 +167,7 @@ // } // interface I1 extends Base { } // type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === @@ -263,18 +178,7 @@ // set e(v) {} // } // interface I1 extends Base { } - // type T = { } - // enum E { } - // namespace N { } - // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 8) skipped --- // === Details === [ @@ -340,17 +244,7 @@ // } // interface I1 extends Base { } // type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === @@ -362,17 +256,7 @@ // } // interface I1 extends Base { } // type T = { } - // enum E { } - // namespace N { } - // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 9) skipped --- // === Details === [ @@ -430,9 +314,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { +// --- (line: 3) skipped --- // get e() { return 1; } // set e(v) {} // } @@ -440,21 +322,11 @@ // type T = { } // enum E { } // namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { + // --- (line: 3) skipped --- // get e() { return 1; } // set e(v) {} // } @@ -462,15 +334,7 @@ // type T = { } // enum E { } // namespace N { } - // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 11) skipped --- // === Details === [ @@ -510,15 +374,7 @@ // type T = { } // enum E { } // namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === @@ -532,15 +388,7 @@ // type T = { } // enum E { } // namespace N { } - // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 11) skipped --- // === Details === [ @@ -570,21 +418,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 15) skipped --- // interface Implemented2 {} // interface Implemented3 {} // class C2 implements Implemented2, Implemented3 {} @@ -594,10 +428,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } +// --- (line: 4) skipped --- // set e(v) {} // } // interface I1 extends Base { } @@ -605,21 +436,11 @@ // enum E { } // namespace N { } // module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 12) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } + // --- (line: 4) skipped --- // set e(v) {} // } // interface I1 extends Base { } @@ -627,14 +448,7 @@ // enum E { } // namespace N { } // module M { } - // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 12) skipped --- // === Details === [ @@ -684,11 +498,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} +// --- (line: 5) skipped --- // } // interface I1 extends Base { } // type T = { } @@ -696,21 +506,11 @@ // namespace N { } // module M { } // function fn() {} -// var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 13) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} + // --- (line: 5) skipped --- // } // interface I1 extends Base { } // type T = { } @@ -718,13 +518,7 @@ // namespace N { } // module M { } // function fn() {} - // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 13) skipped --- // === Details === [ @@ -754,12 +548,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } +// --- (line: 6) skipped --- // interface I1 extends Base { } // type T = { } // enum E { } @@ -767,21 +556,11 @@ // module M { } // function fn() {} // var x; -// let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 14) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } + // --- (line: 6) skipped --- // interface I1 extends Base { } // type T = { } // enum E { } @@ -789,12 +568,7 @@ // module M { } // function fn() {} // var x; - // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 14) skipped --- // === Details === [ @@ -824,13 +598,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } +// --- (line: 7) skipped --- // type T = { } // enum E { } // namespace N { } @@ -838,21 +606,11 @@ // function fn() {} // var x; // let y; -// const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } - // interface I1 extends Base { } + // --- (line: 7) skipped --- // type T = { } // enum E { } // namespace N { } @@ -860,11 +618,7 @@ // function fn() {} // var x; // let y; - // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 15) skipped --- // === Details === [ @@ -894,14 +648,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } +// --- (line: 8) skipped --- // enum E { } // namespace N { } // module M { } @@ -909,21 +656,11 @@ // var x; // let y; // const z = 1; -// interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 16) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } - // interface I1 extends Base { } - // type T = { } + // --- (line: 8) skipped --- // enum E { } // namespace N { } // module M { } @@ -931,10 +668,7 @@ // var x; // let y; // const z = 1; - // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 16) skipped --- // === Details === [ @@ -984,15 +718,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } +// --- (line: 9) skipped --- // namespace N { } // module M { } // function fn() {} @@ -1000,21 +726,11 @@ // let y; // const z = 1; // interface Implemented2 {} -// interface Implemented3 {} -// class C2 implements Implemented2, Implemented3 {} -// interface I2 extends Implemented2, Implemented3 {} +// --- (line: 17) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } - // interface I1 extends Base { } - // type T = { } - // enum E { } + // --- (line: 9) skipped --- // namespace N { } // module M { } // function fn() {} @@ -1022,9 +738,7 @@ // let y; // const z = 1; // interface Implemented2 {} - // interface Implemented3 {} - // class C2 implements Implemented2, Implemented3 {} - // interface I2 extends Implemented2, Implemented3 {} + // --- (line: 17) skipped --- // === Details === [ @@ -1066,16 +780,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } +// --- (line: 10) skipped --- // module M { } // function fn() {} // var x; @@ -1088,16 +793,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } - // interface I1 extends Base { } - // type T = { } - // enum E { } - // namespace N { } + // --- (line: 10) skipped --- // module M { } // function fn() {} // var x; @@ -1148,17 +844,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// module M { } +// --- (line: 11) skipped --- // function fn() {} // var x; // let y; @@ -1170,17 +856,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForDeclarationKeywords.ts === - // class Base {} - // interface Implemented1 {} - // class C1 extends Base implements Implemented1 { - // get e() { return 1; } - // set e(v) {} - // } - // interface I1 extends Base { } - // type T = { } - // enum E { } - // namespace N { } - // module M { } + // --- (line: 11) skipped --- // function fn() {} // var x; // let y; diff --git a/tests/baselines/reference/referencesForEnums.baseline.jsonc b/tests/baselines/reference/referencesForEnums.baseline.jsonc index cebb6889d560b..988222c4a58f7 100644 --- a/tests/baselines/reference/referencesForEnums.baseline.jsonc +++ b/tests/baselines/reference/referencesForEnums.baseline.jsonc @@ -18,11 +18,7 @@ // "value2" = value1, // 111 = 11 // } - // - // E.value1; - // E["value2"]; - // E.value2; - // E[111]; + // --- (line: 6) skipped --- // === Details === [ @@ -103,10 +99,7 @@ // 111 = 11 // } // - // E.value1; - // E["value2"]; - // E.value2; - // E[111]; + // --- (line: 7) skipped --- // === Details === [ @@ -191,10 +184,7 @@ // 111 = 11 // } // - // E.value1; - // E["value2"]; - // E.value2; - // E[111]; + // --- (line: 7) skipped --- // === Details === [ @@ -279,10 +269,7 @@ // 111 = 11 // } // - // E.value1; - // E["value2"]; - // E.value2; - // E[111]; + // --- (line: 7) skipped --- // === Details === [ @@ -364,9 +351,7 @@ // } // // E.value1; - // E["value2"]; - // E.value2; - // E[111]; + // --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForExportedValues.baseline.jsonc b/tests/baselines/reference/referencesForExportedValues.baseline.jsonc index 1f0dc9970bec3..9af9ebec282df 100644 --- a/tests/baselines/reference/referencesForExportedValues.baseline.jsonc +++ b/tests/baselines/reference/referencesForExportedValues.baseline.jsonc @@ -5,10 +5,7 @@ // // // local use // var x = variable; -// } -// -// // external use -// M.variable +// --- (line: 6) skipped --- @@ -31,10 +28,7 @@ // // // local use // var x = variable; - // } - // - // // external use - // M.variable + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForExpressionKeywords.baseline.jsonc b/tests/baselines/reference/referencesForExpressionKeywords.baseline.jsonc index 307a86d5ab22e..07267bbab5eea 100644 --- a/tests/baselines/reference/referencesForExpressionKeywords.baseline.jsonc +++ b/tests/baselines/reference/referencesForExpressionKeywords.baseline.jsonc @@ -24,13 +24,7 @@ // void C; // typeof C; // delete C.x; - // async function* f() { - // yield C; - // await C; - // } - // "x" in C; - // undefined instanceof C; - // undefined as C; + // --- (line: 8) skipped --- // === Details === [ @@ -85,12 +79,7 @@ // typeof C; // delete C.x; // async function* f() { - // yield C; - // await C; - // } - // "x" in C; - // undefined instanceof C; - // undefined as C; + // --- (line: 9) skipped --- // === Details === [ @@ -146,11 +135,7 @@ // delete C.x; // async function* f() { // yield C; - // await C; - // } - // "x" in C; - // undefined instanceof C; - // undefined as C; + // --- (line: 10) skipped --- // === Details === [ @@ -443,10 +428,9 @@ // new C(); // void C; // typeof C; - // delete C.x; - // async function* f() { - // yield C; - // await C; + // --- (line: 7) skipped --- + + // --- (line: 10) skipped --- // } // "x" in C; // undefined instanceof C; @@ -490,10 +474,7 @@ // async function* f() { // yield C; // await C; -// } -// "x" in C; -// undefined instanceof C; -// undefined as C; +// --- (line: 11) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForExpressionKeywords.ts === @@ -507,10 +488,7 @@ // async function* f() { // yield C; // await C; - // } - // "x" in C; - // undefined instanceof C; - // undefined as C; + // --- (line: 11) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForGlobals.baseline.jsonc b/tests/baselines/reference/referencesForGlobals.baseline.jsonc index 6c90aea3f25b5..3ef46743ca0fe 100644 --- a/tests/baselines/reference/referencesForGlobals.baseline.jsonc +++ b/tests/baselines/reference/referencesForGlobals.baseline.jsonc @@ -28,20 +28,7 @@ // // 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; + // --- (line: 5) skipped --- // === Details === [ @@ -111,20 +98,7 @@ // // 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; + // --- (line: 5) skipped --- // === Details === [ @@ -204,10 +178,7 @@ // // var f = new foo(''); // f.global = ''; - // } - // } - // - // var k = global; + // --- (line: 15) skipped --- // === Details === [ @@ -277,16 +248,9 @@ // // class foo { // constructor (public global) { } - // public f(global) { } - // public f2(global) { } - // } - // - // class bar { - // constructor () { - // var n = global; - // - // var f = new foo(''); - // f.global = ''; + // --- (line: 5) skipped --- + + // --- (line: 14) skipped --- // } // } // @@ -360,20 +324,7 @@ // // 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; + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForGlobalsInExternalModule.baseline.jsonc b/tests/baselines/reference/referencesForGlobalsInExternalModule.baseline.jsonc index 87112d32aa0d2..b862bdf7edb8a 100644 --- a/tests/baselines/reference/referencesForGlobalsInExternalModule.baseline.jsonc +++ b/tests/baselines/reference/referencesForGlobalsInExternalModule.baseline.jsonc @@ -5,16 +5,7 @@ // // class topLevelClass { } // var c = new topLevelClass(); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// module topLevelModule { -// export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 6) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === @@ -22,17 +13,7 @@ // var topLevelVar2 = topLevelVar; // // class topLevelClass { } - // var c = new topLevelClass(); - // - // interface topLevelInterface { } - // var i: topLevelInterface; - // - // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 5) skipped --- // === Details === [ @@ -79,16 +60,7 @@ // // class topLevelClass { } // var c = new topLevelClass(); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// module topLevelModule { -// export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 6) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === @@ -96,17 +68,7 @@ // var topLevelVar2 = topLevelVar; // // class topLevelClass { } - // var c = new topLevelClass(); - // - // interface topLevelInterface { } - // var i: topLevelInterface; - // - // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 5) skipped --- // === Details === [ @@ -153,16 +115,7 @@ // // class topLevelClass { } // var c = new topLevelClass(); -// -// interface topLevelInterface { } -// var i: topLevelInterface; -// -// module topLevelModule { -// export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 6) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === @@ -171,16 +124,7 @@ // // class topLevelClass { } // var c = new topLevelClass(); - // - // interface topLevelInterface { } - // var i: topLevelInterface; - // - // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 6) skipped --- // === Details === [ @@ -230,13 +174,7 @@ // // interface topLevelInterface { } // var i: topLevelInterface; -// -// module topLevelModule { -// export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === @@ -247,14 +185,7 @@ // var c = new topLevelClass(); // // interface topLevelInterface { } - // var i: topLevelInterface; - // - // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 8) skipped --- // === Details === [ @@ -292,13 +223,7 @@ // // interface topLevelInterface { } // var i: topLevelInterface; -// -// module topLevelModule { -// export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === @@ -309,14 +234,7 @@ // var c = new topLevelClass(); // // interface topLevelInterface { } - // var i: topLevelInterface; - // - // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 8) skipped --- // === Details === [ @@ -354,13 +272,7 @@ // // interface topLevelInterface { } // var i: topLevelInterface; -// -// module topLevelModule { -// export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === @@ -372,13 +284,7 @@ // // interface topLevelInterface { } // var i: topLevelInterface; - // - // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 9) skipped --- // === Details === [ @@ -408,9 +314,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// +// --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); // @@ -419,16 +323,11 @@ // // module topLevelModule { // export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 12) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; - // var topLevelVar2 = topLevelVar; - // + // --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); // @@ -436,11 +335,7 @@ // var i: topLevelInterface; // // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 11) skipped --- // === Details === [ @@ -470,9 +365,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// +// --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); // @@ -481,16 +374,11 @@ // // module topLevelModule { // export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 12) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; - // var topLevelVar2 = topLevelVar; - // + // --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); // @@ -498,11 +386,7 @@ // var i: topLevelInterface; // // module topLevelModule { - // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 11) skipped --- // === Details === [ @@ -532,9 +416,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// +// --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); // @@ -543,16 +425,11 @@ // // module topLevelModule { // export var x; -// } -// var x = topLevelModule.x; -// -// export = x; +// --- (line: 12) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; - // var topLevelVar2 = topLevelVar; - // + // --- (line: 3) skipped --- // class topLevelClass { } // var c = new topLevelClass(); // @@ -561,10 +438,7 @@ // // module topLevelModule { // export var x; - // } - // var x = topLevelModule.x; - // - // export = x; + // --- (line: 12) skipped --- // === Details === [ @@ -594,12 +468,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// +// --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; // @@ -612,12 +481,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; - // var topLevelVar2 = topLevelVar; - // - // class topLevelClass { } - // var c = new topLevelClass(); - // + // --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; // @@ -656,12 +520,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// +// --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; // @@ -674,12 +533,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; - // var topLevelVar2 = topLevelVar; - // - // class topLevelClass { } - // var c = new topLevelClass(); - // + // --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; // @@ -718,12 +572,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === -// var topLevelVar = 2; -// var topLevelVar2 = topLevelVar; -// -// class topLevelClass { } -// var c = new topLevelClass(); -// +// --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; // @@ -736,12 +585,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForGlobalsInExternalModule.ts === - // var topLevelVar = 2; - // var topLevelVar2 = topLevelVar; - // - // class topLevelClass { } - // var c = new topLevelClass(); - // + // --- (line: 6) skipped --- // interface topLevelInterface { } // var i: topLevelInterface; // diff --git a/tests/baselines/reference/referencesForImports.baseline.jsonc b/tests/baselines/reference/referencesForImports.baseline.jsonc index aa8257361009c..fc067c051fb62 100644 --- a/tests/baselines/reference/referencesForImports.baseline.jsonc +++ b/tests/baselines/reference/referencesForImports.baseline.jsonc @@ -222,9 +222,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForImports.ts === -// declare module "jquery" { -// function $(s: string): any; -// export = $; +// --- (line: 3) skipped --- // } // import $ = require("jquery"); // $("a"); @@ -232,9 +230,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForImports.ts === - // declare module "jquery" { - // function $(s: string): any; - // export = $; + // --- (line: 3) skipped --- // } // import $ = require("jquery"); // $("a"); @@ -296,9 +292,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForImports.ts === -// declare module "jquery" { -// function $(s: string): any; -// export = $; +// --- (line: 3) skipped --- // } // import $ = require("jquery"); // $("a"); @@ -306,9 +300,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForImports.ts === - // declare module "jquery" { - // function $(s: string): any; - // export = $; + // --- (line: 3) skipped --- // } // import $ = require("jquery"); // $("a"); diff --git a/tests/baselines/reference/referencesForIndexProperty.baseline.jsonc b/tests/baselines/reference/referencesForIndexProperty.baseline.jsonc index 177bddfedfb8a..b74bb2aa2e430 100644 --- a/tests/baselines/reference/referencesForIndexProperty.baseline.jsonc +++ b/tests/baselines/reference/referencesForIndexProperty.baseline.jsonc @@ -16,9 +16,7 @@ // method(): void { } // } // - // var f: Foo; - // f["property"]; - // f["method"]; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForIndexProperty3.baseline.jsonc b/tests/baselines/reference/referencesForIndexProperty3.baseline.jsonc index dca2cbc4f8af0..dcff4906f376a 100644 --- a/tests/baselines/reference/referencesForIndexProperty3.baseline.jsonc +++ b/tests/baselines/reference/referencesForIndexProperty3.baseline.jsonc @@ -17,10 +17,7 @@ // } // // var y: Object; - // y.toMyString(); - // - // var x = {}; - // x["toMyString"](); + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForInheritedProperties.baseline.jsonc b/tests/baselines/reference/referencesForInheritedProperties.baseline.jsonc index a6556c68b6677..3c292da671b59 100644 --- a/tests/baselines/reference/referencesForInheritedProperties.baseline.jsonc +++ b/tests/baselines/reference/referencesForInheritedProperties.baseline.jsonc @@ -38,11 +38,7 @@ // } // // class class2 extends class1 { - // - // } - // - // var v: class2; - // v.doStuff(); + // --- (line: 16) skipped --- // === Details === [ @@ -261,11 +257,7 @@ // } // // class class2 extends class1 { - // - // } - // - // var v: class2; - // v.doStuff(); + // --- (line: 16) skipped --- // === Details === [ @@ -484,11 +476,7 @@ // } // // class class2 extends class1 { - // - // } - // - // var v: class2; - // v.doStuff(); + // --- (line: 16) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForInheritedProperties2.baseline.jsonc b/tests/baselines/reference/referencesForInheritedProperties2.baseline.jsonc index 874cce62cf313..5fa9cc595e30c 100644 --- a/tests/baselines/reference/referencesForInheritedProperties2.baseline.jsonc +++ b/tests/baselines/reference/referencesForInheritedProperties2.baseline.jsonc @@ -44,11 +44,7 @@ // } // // class class2 extends class1 { - // - // } - // - // var v: class2; - // v.doStuff(); + // --- (line: 19) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForInheritedProperties3.baseline.jsonc b/tests/baselines/reference/referencesForInheritedProperties3.baseline.jsonc index 171a307796461..13f1eeeeb1fc7 100644 --- a/tests/baselines/reference/referencesForInheritedProperties3.baseline.jsonc +++ b/tests/baselines/reference/referencesForInheritedProperties3.baseline.jsonc @@ -16,9 +16,7 @@ // propName: string; // } // - // var v: interface1; - // v.propName; - // v.doStuff(); + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForInheritedProperties4.baseline.jsonc b/tests/baselines/reference/referencesForInheritedProperties4.baseline.jsonc index 585f11449d63a..d0b48a806c5fb 100644 --- a/tests/baselines/reference/referencesForInheritedProperties4.baseline.jsonc +++ b/tests/baselines/reference/referencesForInheritedProperties4.baseline.jsonc @@ -16,9 +16,7 @@ // propName: string; // } // - // var c: class1; - // c.doStuff(); - // c.propName; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForInheritedProperties5.baseline.jsonc b/tests/baselines/reference/referencesForInheritedProperties5.baseline.jsonc index 9ddb401089d14..8bcb3f190e1ed 100644 --- a/tests/baselines/reference/referencesForInheritedProperties5.baseline.jsonc +++ b/tests/baselines/reference/referencesForInheritedProperties5.baseline.jsonc @@ -24,9 +24,7 @@ // propName: string; // } // - // var v: interface1; - // v.propName; - // v.doStuff(); + // --- (line: 10) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForInheritedProperties7.baseline.jsonc b/tests/baselines/reference/referencesForInheritedProperties7.baseline.jsonc index 116ed4251b838..eece956bd0a24 100644 --- a/tests/baselines/reference/referencesForInheritedProperties7.baseline.jsonc +++ b/tests/baselines/reference/referencesForInheritedProperties7.baseline.jsonc @@ -32,9 +32,7 @@ // propName: string; // } // - // var v: class2; - // v.doStuff(); - // v.propName; + // --- (line: 14) skipped --- // === Details === [ @@ -332,9 +330,7 @@ // propName: string; // } // - // var v: class2; - // v.doStuff(); - // v.propName; + // --- (line: 14) skipped --- // === Details === [ @@ -458,9 +454,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForInheritedProperties7.ts === -// class class1 extends class1 { -// doStuff() { } -// propName: string; +// --- (line: 3) skipped --- // } // interface interface1 extends interface1 { // doStuff(): void; @@ -477,9 +471,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForInheritedProperties7.ts === - // class class1 extends class1 { - // doStuff() { } - // propName: string; + // --- (line: 3) skipped --- // } // interface interface1 extends interface1 { // doStuff(): void; @@ -632,9 +624,7 @@ // propName: string; // } // - // var v: class2; - // v.doStuff(); - // v.propName; + // --- (line: 14) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForInheritedProperties9.baseline.jsonc b/tests/baselines/reference/referencesForInheritedProperties9.baseline.jsonc index 55d2eba1239ce..ef891b8a68e73 100644 --- a/tests/baselines/reference/referencesForInheritedProperties9.baseline.jsonc +++ b/tests/baselines/reference/referencesForInheritedProperties9.baseline.jsonc @@ -5,11 +5,7 @@ // } // // class C extends D { -// prop1: string; -// } -// -// var c: C; -// c.prop1; +// --- (line: 6) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForInheritedProperties9.ts === @@ -18,11 +14,7 @@ // } // // class C extends D { - // prop1: string; - // } - // - // var c: C; - // c.prop1; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForLabel.baseline.jsonc b/tests/baselines/reference/referencesForLabel.baseline.jsonc index bec409207457b..570e66047db04 100644 --- a/tests/baselines/reference/referencesForLabel.baseline.jsonc +++ b/tests/baselines/reference/referencesForLabel.baseline.jsonc @@ -14,9 +14,7 @@ // if (false) break label; // if (true) continue label; // } - // - // label: while (false) { } - // var label = "label"; + // --- (line: 5) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForLabel5.baseline.jsonc b/tests/baselines/reference/referencesForLabel5.baseline.jsonc index 325f4da155036..1b5d33f649179 100644 --- a/tests/baselines/reference/referencesForLabel5.baseline.jsonc +++ b/tests/baselines/reference/referencesForLabel5.baseline.jsonc @@ -16,11 +16,7 @@ // if (false) break label; // function blah() { // label: while (true) { - // if (false) break label; - // } - // } - // if (false) break label; - // } + // --- (line: 5) skipped --- // === Details === [ @@ -47,10 +43,7 @@ // function blah() { // label: while (true) { // if (false) break label; -// } -// } -// if (false) break label; -// } +// --- (line: 6) skipped --- @@ -73,10 +66,7 @@ // function blah() { // label: while (true) { // if (false) break label; - // } - // } - // if (false) break label; - // } + // --- (line: 6) skipped --- // === Details === [ @@ -196,10 +186,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForLabel5.ts === -// label: while (true) { -// if (false) break label; -// function blah() { -// label: while (true) { +// --- (line: 4) skipped --- // if (false) break label; // } // } diff --git a/tests/baselines/reference/referencesForMergedDeclarations.baseline.jsonc b/tests/baselines/reference/referencesForMergedDeclarations.baseline.jsonc index 1845f31aaa0d9..5da990a62eb01 100644 --- a/tests/baselines/reference/referencesForMergedDeclarations.baseline.jsonc +++ b/tests/baselines/reference/referencesForMergedDeclarations.baseline.jsonc @@ -264,10 +264,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === -// interface Foo { -// } -// -// module Foo { +// --- (line: 4) skipped --- // export interface Bar { } // } // @@ -280,10 +277,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === - // interface Foo { - // } - // - // module Foo { + // --- (line: 4) skipped --- // export interface Bar { } // } // @@ -358,10 +352,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === -// interface Foo { -// } -// -// module Foo { +// --- (line: 4) skipped --- // export interface Bar { } // } // @@ -374,10 +365,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === - // interface Foo { - // } - // - // module Foo { + // --- (line: 4) skipped --- // export interface Bar { } // } // @@ -468,10 +456,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === - // interface Foo { - // } - // - // module Foo { + // --- (line: 4) skipped --- // export interface Bar { } // } // @@ -526,10 +511,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === - // interface Foo { - // } - // - // module Foo { + // --- (line: 4) skipped --- // export interface Bar { } // } // @@ -584,10 +566,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === -// interface Foo { -// } -// -// module Foo { +// --- (line: 4) skipped --- // export interface Bar { } // } // @@ -600,10 +579,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations.ts === - // interface Foo { - // } - // - // module Foo { + // --- (line: 4) skipped --- // export interface Bar { } // } // diff --git a/tests/baselines/reference/referencesForMergedDeclarations2.baseline.jsonc b/tests/baselines/reference/referencesForMergedDeclarations2.baseline.jsonc index 6cd3283d99c92..ff6bff3e6a7cd 100644 --- a/tests/baselines/reference/referencesForMergedDeclarations2.baseline.jsonc +++ b/tests/baselines/reference/referencesForMergedDeclarations2.baseline.jsonc @@ -1,8 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === -// module ATest { -// export interface Bar { } -// } +// --- (line: 3) skipped --- // // function ATest() { } // @@ -13,9 +11,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === - // module ATest { - // export interface Bar { } - // } + // --- (line: 3) skipped --- // // function ATest() { } // @@ -152,9 +148,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === -// module ATest { -// export interface Bar { } -// } +// --- (line: 3) skipped --- // // function ATest() { } // @@ -165,9 +159,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === - // module ATest { - // export interface Bar { } - // } + // --- (line: 3) skipped --- // // function ATest() { } // @@ -304,9 +296,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === -// module ATest { -// export interface Bar { } -// } +// --- (line: 3) skipped --- // // function ATest() { } // @@ -317,9 +307,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === - // module ATest { - // export interface Bar { } - // } + // --- (line: 3) skipped --- // // function ATest() { } // @@ -456,9 +444,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === -// module ATest { -// export interface Bar { } -// } +// --- (line: 3) skipped --- // // function ATest() { } // @@ -469,9 +455,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForMergedDeclarations2.ts === - // module ATest { - // export interface Bar { } - // } + // --- (line: 3) skipped --- // // function ATest() { } // diff --git a/tests/baselines/reference/referencesForMergedDeclarations3.baseline.jsonc b/tests/baselines/reference/referencesForMergedDeclarations3.baseline.jsonc index 2809a3bc87985..357e0d212bf48 100644 --- a/tests/baselines/reference/referencesForMergedDeclarations3.baseline.jsonc +++ b/tests/baselines/reference/referencesForMergedDeclarations3.baseline.jsonc @@ -29,14 +29,7 @@ // export interface Bar { // // } - // } - // - // var c1: testClass; - // var c2: testClass.Bar; - // testClass.staticMethod(); - // testClass.prototype.method(); - // testClass.bind(this); - // new testClass(); + // --- (line: 10) skipped --- // === Details === [ @@ -109,16 +102,7 @@ // // module testClass { // export interface Bar { - // - // } - // } - // - // var c1: testClass; - // var c2: testClass.Bar; - // testClass.staticMethod(); - // testClass.prototype.method(); - // testClass.bind(this); - // new testClass(); + // --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForMergedDeclarations4.baseline.jsonc b/tests/baselines/reference/referencesForMergedDeclarations4.baseline.jsonc index e12282e25b6fd..9746dc4f003fd 100644 --- a/tests/baselines/reference/referencesForMergedDeclarations4.baseline.jsonc +++ b/tests/baselines/reference/referencesForMergedDeclarations4.baseline.jsonc @@ -29,18 +29,7 @@ // // 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(); + // --- (line: 8) skipped --- // === Details === [ @@ -115,18 +104,7 @@ // // 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(); + // --- (line: 8) skipped --- // === Details === [ @@ -203,16 +181,7 @@ // 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(); + // --- (line: 10) skipped --- // === Details === [ @@ -289,16 +258,7 @@ // 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(); + // --- (line: 10) skipped --- // === Details === [ @@ -382,9 +342,7 @@ // var c2: testClass.Bar; // testClass.staticMethod(); // testClass.prototype.method(); - // testClass.bind(this); - // testClass.s; - // new testClass(); + // --- (line: 17) skipped --- // === Details === [ @@ -545,10 +503,9 @@ // // module testClass { // export interface Bar { - // - // } - // export var s = 0; - // } + // --- (line: 8) skipped --- + + // --- (line: 11) skipped --- // // var c1: testClass; // var c2: testClass.Bar; @@ -631,11 +588,9 @@ // // module testClass { // export interface Bar { - // - // } - // export var s = 0; - // } - // + // --- (line: 8) skipped --- + + // --- (line: 12) skipped --- // var c1: testClass; // var c2: testClass.Bar; // testClass.staticMethod(); @@ -717,12 +672,9 @@ // // module testClass { // export interface Bar { - // - // } - // export var s = 0; - // } - // - // var c1: testClass; + // --- (line: 8) skipped --- + + // --- (line: 13) skipped --- // var c2: testClass.Bar; // testClass.staticMethod(); // testClass.prototype.method(); @@ -803,13 +755,9 @@ // // module testClass { // export interface Bar { - // - // } - // export var s = 0; - // } - // - // var c1: testClass; - // var c2: testClass.Bar; + // --- (line: 8) skipped --- + + // --- (line: 14) skipped --- // testClass.staticMethod(); // testClass.prototype.method(); // testClass.bind(this); @@ -889,14 +837,9 @@ // // module testClass { // export interface Bar { - // - // } - // export var s = 0; - // } - // - // var c1: testClass; - // var c2: testClass.Bar; - // testClass.staticMethod(); + // --- (line: 8) skipped --- + + // --- (line: 15) skipped --- // testClass.prototype.method(); // testClass.bind(this); // testClass.s; diff --git a/tests/baselines/reference/referencesForMergedDeclarations6.baseline.jsonc b/tests/baselines/reference/referencesForMergedDeclarations6.baseline.jsonc index 8d46aae9256f3..03ad0114e7690 100644 --- a/tests/baselines/reference/referencesForMergedDeclarations6.baseline.jsonc +++ b/tests/baselines/reference/referencesForMergedDeclarations6.baseline.jsonc @@ -17,10 +17,7 @@ // export interface Bar { } // export module Bar { export interface Baz { } } // export function Bar() { } - // } - // - // // module - // import a1 = Foo; + // --- (line: 6) skipped --- // === Details === [ @@ -67,10 +64,7 @@ // export interface Bar { } // export module Bar { export interface Baz { } } // export function Bar() { } - // } - // - // // module - // import a1 = Foo; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForModifiers.baseline.jsonc b/tests/baselines/reference/referencesForModifiers.baseline.jsonc index 945f32fa5a25d..a60568176613e 100644 --- a/tests/baselines/reference/referencesForModifiers.baseline.jsonc +++ b/tests/baselines/reference/referencesForModifiers.baseline.jsonc @@ -113,12 +113,7 @@ // readonly b; // public c; // protected d; -// private e; -// } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 6) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === @@ -127,12 +122,7 @@ // readonly b; // public c; // protected d; - // private e; - // } - // const enum E { - // } - // async function fn() {} - // export default class C2 {} + // --- (line: 6) skipped --- // === Details === [ @@ -196,11 +186,7 @@ // public c; // protected d; // private e; -// } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 7) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === @@ -210,11 +196,7 @@ // public c; // protected d; // private e; - // } - // const enum E { - // } - // async function fn() {} - // export default class C2 {} + // --- (line: 7) skipped --- // === Details === [ @@ -279,10 +261,7 @@ // protected d; // private e; // } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 8) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === @@ -293,10 +272,7 @@ // protected d; // private e; // } - // const enum E { - // } - // async function fn() {} - // export default class C2 {} + // --- (line: 8) skipped --- // === Details === [ @@ -362,9 +338,7 @@ // private e; // } // const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 9) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === @@ -376,9 +350,7 @@ // private e; // } // const enum E { - // } - // async function fn() {} - // export default class C2 {} + // --- (line: 9) skipped --- // === Details === [ @@ -518,10 +490,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; +// --- (line: 4) skipped --- // protected d; // private e; // } @@ -532,10 +501,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === - // declare abstract class C1 { - // static a; - // readonly b; - // public c; + // --- (line: 4) skipped --- // protected d; // private e; // } @@ -580,12 +546,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// private e; +// --- (line: 6) skipped --- // } // const enum E { // } @@ -594,12 +555,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === - // declare abstract class C1 { - // static a; - // readonly b; - // public c; - // protected d; - // private e; + // --- (line: 6) skipped --- // } // const enum E { // } @@ -666,13 +622,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// private e; -// } +// --- (line: 7) skipped --- // const enum E { // } // async function fn() {} @@ -680,13 +630,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === - // declare abstract class C1 { - // static a; - // readonly b; - // public c; - // protected d; - // private e; - // } + // --- (line: 7) skipped --- // const enum E { // } // async function fn() {} @@ -720,13 +664,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// private e; -// } +// --- (line: 7) skipped --- // const enum E { // } // async function fn() {} @@ -734,13 +672,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForModifiers.ts === - // declare abstract class C1 { - // static a; - // readonly b; - // public c; - // protected d; - // private e; - // } + // --- (line: 7) skipped --- // const enum E { // } // async function fn() {} diff --git a/tests/baselines/reference/referencesForNoContext.baseline.jsonc b/tests/baselines/reference/referencesForNoContext.baseline.jsonc index ab97a8fcaf4f3..032878adfbfcb 100644 --- a/tests/baselines/reference/referencesForNoContext.baseline.jsonc +++ b/tests/baselines/reference/referencesForNoContext.baseline.jsonc @@ -7,30 +7,13 @@ // // //Increments // modVar++; -// -// class testCls{ -// -// } -// -// function testFn(){ -// //Increments -// modVar++; -// } -// -// module testMod { -// } -// } +// --- (line: 8) skipped --- // === findAllReferences === // === /tests/cases/fourslash/referencesForNoContext.ts === -// module modTest { -// //Declare -// export var modVar:number; -// -// -// //Increments +// --- (line: 6) skipped --- // modVar++; // // class testCls{ @@ -38,30 +21,13 @@ // } // // function testFn(){ -// //Increments -// modVar++; -// } -// -// module testMod { -// } -// } +// --- (line: 14) skipped --- // === findAllReferences === // === /tests/cases/fourslash/referencesForNoContext.ts === -// module modTest { -// //Declare -// export var modVar:number; -// -// -// //Increments -// modVar++; -// -// class testCls{ -// -// } -// +// --- (line: 12) skipped --- // function testFn(){ // //Increments // modVar++; @@ -75,19 +41,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForNoContext.ts === -// module modTest { -// //Declare -// export var modVar:number; -// -// -// //Increments -// modVar++; -// -// class testCls{ -// -// } -// -// function testFn(){ +// --- (line: 13) skipped --- // //Increments // modVar++; // } diff --git a/tests/baselines/reference/referencesForNumericLiteralPropertyNames.baseline.jsonc b/tests/baselines/reference/referencesForNumericLiteralPropertyNames.baseline.jsonc index f202b823996c4..537d3baae48bb 100644 --- a/tests/baselines/reference/referencesForNumericLiteralPropertyNames.baseline.jsonc +++ b/tests/baselines/reference/referencesForNumericLiteralPropertyNames.baseline.jsonc @@ -16,9 +16,7 @@ // } // // var x: Foo; - // x[12]; - // x = { "12": 0 }; - // x = { 12: 0 }; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForOverrides.baseline.jsonc b/tests/baselines/reference/referencesForOverrides.baseline.jsonc index 33d911759b9d1..f4951f5b00581 100644 --- a/tests/baselines/reference/referencesForOverrides.baseline.jsonc +++ b/tests/baselines/reference/referencesForOverrides.baseline.jsonc @@ -12,52 +12,9 @@ // } // } // -// module SimpleInterfaceTest { -// export interface IFoo { -// ifoo(): void; -// } -// export interface IBar extends IFoo { -// ifoo(): void; -// } -// } -// -// module SimpleClassInterfaceTest { -// export interface IFoo { -// icfoo(): void; -// } -// export class Bar implements IFoo { -// public icfoo(): void { -// } -// } -// } -// -// module Test { -// export interface IBase { -// 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: 13) skipped --- + +// --- (line: 58) skipped --- // // function test() { // var x = new SimpleClassTest.Bar(); @@ -65,15 +22,7 @@ // // var y: SimpleInterfaceTest.IBar = null; // y.ifoo(); -// -// var w: SimpleClassInterfaceTest.Bar = null; -// w.icfoo(); -// -// var z = new Test.BarBlah(); -// z.field = ""; -// z.method(); -// } -// } +// --- (line: 66) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForOverrides.ts === @@ -89,68 +38,7 @@ // } // } // - // module SimpleInterfaceTest { - // export interface IFoo { - // ifoo(): void; - // } - // export interface IBar extends IFoo { - // ifoo(): void; - // } - // } - // - // module SimpleClassInterfaceTest { - // export interface IFoo { - // icfoo(): void; - // } - // export class Bar implements IFoo { - // public icfoo(): void { - // } - // } - // } - // - // module Test { - // export interface IBase { - // 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; - // } - // } - // - // function test() { - // var x = new SimpleClassTest.Bar(); - // x.foo(); - // - // var y: SimpleInterfaceTest.IBar = null; - // y.ifoo(); - // - // var w: SimpleClassInterfaceTest.Bar = null; - // w.icfoo(); - // - // var z = new Test.BarBlah(); - // z.field = ""; - // z.method(); - // } - // } + // --- (line: 13) skipped --- // === Details === [ @@ -290,17 +178,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForOverrides.ts === -// module FindRef3 { -// module SimpleClassTest { -// export class Foo { -// public foo(): void { -// } -// } -// export class Bar extends Foo { -// public foo(): void { -// } -// } -// } +// --- (line: 11) skipped --- // // module SimpleInterfaceTest { // export interface IFoo { @@ -311,46 +189,9 @@ // } // } // -// module SimpleClassInterfaceTest { -// export interface IFoo { -// icfoo(): void; -// } -// export class Bar implements IFoo { -// public icfoo(): void { -// } -// } -// } -// -// module Test { -// export interface IBase { -// 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; -// } -// } -// -// function test() { -// var x = new SimpleClassTest.Bar(); +// --- (line: 22) skipped --- + +// --- (line: 61) skipped --- // x.foo(); // // var y: SimpleInterfaceTest.IBar = null; @@ -358,26 +199,11 @@ // // var w: SimpleClassInterfaceTest.Bar = null; // w.icfoo(); -// -// var z = new Test.BarBlah(); -// z.field = ""; -// z.method(); -// } -// } +// --- (line: 69) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForOverrides.ts === - // module FindRef3 { - // module SimpleClassTest { - // export class Foo { - // public foo(): void { - // } - // } - // export class Bar extends Foo { - // public foo(): void { - // } - // } - // } + // --- (line: 11) skipped --- // // module SimpleInterfaceTest { // export interface IFoo { @@ -388,59 +214,7 @@ // } // } // - // module SimpleClassInterfaceTest { - // export interface IFoo { - // icfoo(): void; - // } - // export class Bar implements IFoo { - // public icfoo(): void { - // } - // } - // } - // - // module Test { - // export interface IBase { - // 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; - // } - // } - // - // function test() { - // var x = new SimpleClassTest.Bar(); - // x.foo(); - // - // var y: SimpleInterfaceTest.IBar = null; - // y.ifoo(); - // - // var w: SimpleClassInterfaceTest.Bar = null; - // w.icfoo(); - // - // var z = new Test.BarBlah(); - // z.field = ""; - // z.method(); - // } - // } + // --- (line: 22) skipped --- // === Details === [ @@ -580,26 +354,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForOverrides.ts === -// module FindRef3 { -// module SimpleClassTest { -// export class Foo { -// public foo(): void { -// } -// } -// export class Bar extends Foo { -// public foo(): void { -// } -// } -// } -// -// module SimpleInterfaceTest { -// export interface IFoo { -// ifoo(): void; -// } -// export interface IBar extends IFoo { -// ifoo(): void; -// } -// } +// --- (line: 20) skipped --- // // module SimpleClassInterfaceTest { // export interface IFoo { @@ -611,39 +366,9 @@ // } // } // -// module Test { -// export interface IBase { -// 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; -// } -// } -// -// function test() { -// var x = new SimpleClassTest.Bar(); -// x.foo(); -// -// var y: SimpleInterfaceTest.IBar = null; +// --- (line: 32) skipped --- + +// --- (line: 64) skipped --- // y.ifoo(); // // var w: SimpleClassInterfaceTest.Bar = null; @@ -651,32 +376,11 @@ // // var z = new Test.BarBlah(); // z.field = ""; -// z.method(); -// } -// } +// --- (line: 72) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForOverrides.ts === - // module FindRef3 { - // module SimpleClassTest { - // export class Foo { - // public foo(): void { - // } - // } - // export class Bar extends Foo { - // public foo(): void { - // } - // } - // } - // - // module SimpleInterfaceTest { - // export interface IFoo { - // ifoo(): void; - // } - // export interface IBar extends IFoo { - // ifoo(): void; - // } - // } + // --- (line: 20) skipped --- // // module SimpleClassInterfaceTest { // export interface IFoo { @@ -688,49 +392,7 @@ // } // } // - // module Test { - // export interface IBase { - // 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; - // } - // } - // - // function test() { - // var x = new SimpleClassTest.Bar(); - // x.foo(); - // - // var y: SimpleInterfaceTest.IBar = null; - // y.ifoo(); - // - // var w: SimpleClassInterfaceTest.Bar = null; - // w.icfoo(); - // - // var z = new Test.BarBlah(); - // z.field = ""; - // z.method(); - // } - // } + // --- (line: 32) skipped --- // === Details === [ @@ -870,36 +532,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForOverrides.ts === -// module FindRef3 { -// module SimpleClassTest { -// export class Foo { -// public foo(): void { -// } -// } -// export class Bar extends Foo { -// public foo(): void { -// } -// } -// } -// -// module SimpleInterfaceTest { -// export interface IFoo { -// ifoo(): void; -// } -// export interface IBar extends IFoo { -// ifoo(): void; -// } -// } -// -// module SimpleClassInterfaceTest { -// export interface IFoo { -// icfoo(): void; -// } -// export class Bar implements IFoo { -// public icfoo(): void { -// } -// } -// } +// --- (line: 30) skipped --- // // module Test { // export interface IBase { @@ -929,14 +562,9 @@ // } // } // -// function test() { -// var x = new SimpleClassTest.Bar(); -// x.foo(); -// -// var y: SimpleInterfaceTest.IBar = null; -// y.ifoo(); -// -// var w: SimpleClassInterfaceTest.Bar = null; +// --- (line: 60) skipped --- + +// --- (line: 67) skipped --- // w.icfoo(); // // var z = new Test.BarBlah(); @@ -947,36 +575,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForOverrides.ts === - // module FindRef3 { - // module SimpleClassTest { - // export class Foo { - // public foo(): void { - // } - // } - // export class Bar extends Foo { - // public foo(): void { - // } - // } - // } - // - // module SimpleInterfaceTest { - // export interface IFoo { - // ifoo(): void; - // } - // export interface IBar extends IFoo { - // ifoo(): void; - // } - // } - // - // module SimpleClassInterfaceTest { - // export interface IFoo { - // icfoo(): void; - // } - // export class Bar implements IFoo { - // public icfoo(): void { - // } - // } - // } + // --- (line: 30) skipped --- // // module Test { // export interface IBase { @@ -1006,21 +605,7 @@ // } // } // - // function test() { - // var x = new SimpleClassTest.Bar(); - // x.foo(); - // - // var y: SimpleInterfaceTest.IBar = null; - // y.ifoo(); - // - // var w: SimpleClassInterfaceTest.Bar = null; - // w.icfoo(); - // - // var z = new Test.BarBlah(); - // z.field = ""; - // z.method(); - // } - // } + // --- (line: 60) skipped --- // === Details === [ @@ -1315,37 +900,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForOverrides.ts === -// module FindRef3 { -// module SimpleClassTest { -// export class Foo { -// public foo(): void { -// } -// } -// export class Bar extends Foo { -// public foo(): void { -// } -// } -// } -// -// module SimpleInterfaceTest { -// export interface IFoo { -// ifoo(): void; -// } -// export interface IBar extends IFoo { -// ifoo(): void; -// } -// } -// -// module SimpleClassInterfaceTest { -// export interface IFoo { -// icfoo(): void; -// } -// export class Bar implements IFoo { -// public icfoo(): void { -// } -// } -// } -// +// --- (line: 31) skipped --- // module Test { // export interface IBase { // field: string; @@ -1353,11 +908,9 @@ // } // // export interface IBlah extends IBase { -// field: string; -// } -// -// export interface IBlah2 extends IBlah { -// field: string; +// --- (line: 39) skipped --- + +// --- (line: 43) skipped --- // } // // export interface IDerived extends IBlah2 { @@ -1370,19 +923,9 @@ // } // // export class BarBlah extends Bar { -// public field: string; -// } -// } -// -// function test() { -// var x = new SimpleClassTest.Bar(); -// x.foo(); -// -// var y: SimpleInterfaceTest.IBar = null; -// y.ifoo(); -// -// var w: SimpleClassInterfaceTest.Bar = null; -// w.icfoo(); +// --- (line: 56) skipped --- + +// --- (line: 68) skipped --- // // var z = new Test.BarBlah(); // z.field = ""; @@ -1392,37 +935,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForOverrides.ts === - // module FindRef3 { - // module SimpleClassTest { - // export class Foo { - // public foo(): void { - // } - // } - // export class Bar extends Foo { - // public foo(): void { - // } - // } - // } - // - // module SimpleInterfaceTest { - // export interface IFoo { - // ifoo(): void; - // } - // export interface IBar extends IFoo { - // ifoo(): void; - // } - // } - // - // module SimpleClassInterfaceTest { - // export interface IFoo { - // icfoo(): void; - // } - // export class Bar implements IFoo { - // public icfoo(): void { - // } - // } - // } - // + // --- (line: 31) skipped --- // module Test { // export interface IBase { // field: string; @@ -1430,11 +943,9 @@ // } // // export interface IBlah extends IBase { - // field: string; - // } - // - // export interface IBlah2 extends IBlah { - // field: string; + // --- (line: 39) skipped --- + + // --- (line: 43) skipped --- // } // // export interface IDerived extends IBlah2 { @@ -1447,25 +958,7 @@ // } // // export class BarBlah extends Bar { - // public field: string; - // } - // } - // - // function test() { - // var x = new SimpleClassTest.Bar(); - // x.foo(); - // - // var y: SimpleInterfaceTest.IBar = null; - // y.ifoo(); - // - // var w: SimpleClassInterfaceTest.Bar = null; - // w.icfoo(); - // - // var z = new Test.BarBlah(); - // z.field = ""; - // z.method(); - // } - // } + // --- (line: 56) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForPropertiesOfGenericType.baseline.jsonc b/tests/baselines/reference/referencesForPropertiesOfGenericType.baseline.jsonc index 047ebe7ef5701..c61680072094b 100644 --- a/tests/baselines/reference/referencesForPropertiesOfGenericType.baseline.jsonc +++ b/tests/baselines/reference/referencesForPropertiesOfGenericType.baseline.jsonc @@ -17,10 +17,7 @@ // } // // var x: IFoo; - // x.doSomething("ss"); - // - // var y: IFoo; - // y.doSomething(12); + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForStatementKeywords.baseline.jsonc b/tests/baselines/reference/referencesForStatementKeywords.baseline.jsonc index 590f6a59e743d..d75e92c4c4251 100644 --- a/tests/baselines/reference/referencesForStatementKeywords.baseline.jsonc +++ b/tests/baselines/reference/referencesForStatementKeywords.baseline.jsonc @@ -5,25 +5,7 @@ // namespace N { } // import N2 = N; // -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 6) skipped --- // === Definitions === // === /main.ts === @@ -32,25 +14,7 @@ // namespace N { } // import N2 = N; // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 6) skipped --- // === Details === [ @@ -113,25 +77,7 @@ // namespace N { } // import N2 = N; // -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 6) skipped --- // === Definitions === // === /a.ts === @@ -172,23 +118,7 @@ // // // import ... from ... // import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 8) skipped --- // === Definitions === // === /main.ts === @@ -199,23 +129,7 @@ // // // import ... from ... // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 8) skipped --- // === Details === [ @@ -293,9 +207,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } +// --- (line: 3) skipped --- // import N2 = N; // // // import ... from ... @@ -303,29 +215,14 @@ // import type * as C from "./c"; // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 11) skipped --- // === /b.ts === // <|export default class [|{| defId: 1, isWriteAccess: true |}B|] {}|> // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } + // --- (line: 3) skipped --- // import N2 = N; // // // import ... from ... @@ -333,20 +230,7 @@ // import type * as C from "./c"; // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 11) skipped --- // === /b.ts === // <|export default class [|{| defId: 1 |}B|] {}|> @@ -433,9 +317,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } +// --- (line: 3) skipped --- // import N2 = N; // // // import ... from ... @@ -443,29 +325,14 @@ // import type * as C from "./c"; // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 11) skipped --- // === /b.ts === // <|export default class [|{| defId: 1, isWriteAccess: true |}B|] {}|> // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } + // --- (line: 3) skipped --- // import N2 = N; // // // import ... from ... @@ -473,20 +340,7 @@ // import type * as C from "./c"; // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 11) skipped --- // === /b.ts === // <|export default class [|{| defId: 1 |}B|] {}|> @@ -573,9 +427,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } +// --- (line: 3) skipped --- // import N2 = N; // // // import ... from ... @@ -583,20 +435,7 @@ // import type * as C from "./c"; // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 11) skipped --- // === Definitions === // === /b.ts === @@ -630,10 +469,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; +// --- (line: 4) skipped --- // // // import ... from ... // import type B from "./b"; @@ -641,26 +477,11 @@ // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; // -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 12) skipped --- // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; + // --- (line: 4) skipped --- // // // import ... from ... // import type B from "./b"; @@ -668,19 +489,7 @@ // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 12) skipped --- // === Details === [ @@ -710,10 +519,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; +// --- (line: 4) skipped --- // // // import ... from ... // import type B from "./b"; @@ -721,26 +527,11 @@ // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; // -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 12) skipped --- // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; + // --- (line: 4) skipped --- // // // import ... from ... // import type B from "./b"; @@ -748,19 +539,7 @@ // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 12) skipped --- // === Details === [ @@ -790,10 +569,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; +// --- (line: 4) skipped --- // // // import ... from ... // import type B from "./b"; @@ -801,26 +577,11 @@ // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; // -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 12) skipped --- // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; + // --- (line: 4) skipped --- // // // import ... from ... // import type B from "./b"; @@ -828,19 +589,7 @@ // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 12) skipped --- // === Details === [ @@ -870,10 +619,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; +// --- (line: 4) skipped --- // // // import ... from ... // import type B from "./b"; @@ -881,19 +627,7 @@ // import type { D } from "./d"; // import type { e1, e2 as e3 } from "./e"; // -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 12) skipped --- // === Definitions === // === /c.ts === @@ -927,11 +661,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// +// --- (line: 5) skipped --- // // import ... from ... // import type B from "./b"; // import type * as C from "./c"; @@ -939,29 +669,14 @@ // import type { e1, e2 as e3 } from "./e"; // // // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 13) skipped --- // === /d.ts === // <|export class [|{| defId: 1, isWriteAccess: true |}D|] {}|> // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // + // --- (line: 5) skipped --- // // import ... from ... // import type B from "./b"; // import type * as C from "./c"; @@ -969,18 +684,7 @@ // import type { e1, e2 as e3 } from "./e"; // // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 13) skipped --- // === /d.ts === // <|export class [|{| defId: 1 |}D|] {}|> @@ -1067,11 +771,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// +// --- (line: 5) skipped --- // // import ... from ... // import type B from "./b"; // import type * as C from "./c"; @@ -1079,29 +779,14 @@ // import type { e1, e2 as e3 } from "./e"; // // // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 13) skipped --- // === /d.ts === // <|export class [|{| defId: 1, isWriteAccess: true |}D|] {}|> // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // + // --- (line: 5) skipped --- // // import ... from ... // import type B from "./b"; // import type * as C from "./c"; @@ -1109,18 +794,7 @@ // import type { e1, e2 as e3 } from "./e"; // // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 13) skipped --- // === /d.ts === // <|export class [|{| defId: 1 |}D|] {}|> @@ -1207,11 +881,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// +// --- (line: 5) skipped --- // // import ... from ... // import type B from "./b"; // import type * as C from "./c"; @@ -1219,18 +889,7 @@ // import type { e1, e2 as e3 } from "./e"; // // // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 13) skipped --- // === Definitions === // === /d.ts === @@ -1264,12 +923,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... +// --- (line: 6) skipped --- // import type B from "./b"; // import type * as C from "./c"; // import type { D } from "./d"; @@ -1277,28 +931,13 @@ // // // import "module" // import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 14) skipped --- // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... +// --- (line: 6) skipped --- // import type B from "./b"; // import type * as C from "./c"; // import type { D } from "./d"; @@ -1306,28 +945,13 @@ // // // import "module" // import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 14) skipped --- // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... +// --- (line: 6) skipped --- // import type B from "./b"; // import type * as C from "./c"; // import type { D } from "./d"; @@ -1335,17 +959,7 @@ // // // import "module" // import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 14) skipped --- // === Definitions === // === /e.ts === @@ -1380,12 +994,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... +// --- (line: 6) skipped --- // import type B from "./b"; // import type * as C from "./c"; // import type { D } from "./d"; @@ -1393,26 +1002,11 @@ // // // import "module" // import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 14) skipped --- // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... + // --- (line: 6) skipped --- // import type B from "./b"; // import type * as C from "./c"; // import type { D } from "./d"; @@ -1420,17 +1014,7 @@ // // // import "module" // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 14) skipped --- // === Details === [ @@ -1504,15 +1088,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; +// --- (line: 9) skipped --- // import type { e1, e2 as e3 } from "./e"; // // // import "module" @@ -1520,14 +1096,7 @@ // // // export ... from ... // export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 17) skipped --- // === Definitions === // === /f.ts === @@ -1561,18 +1130,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" +// --- (line: 12) skipped --- // import "./f"; // // // export ... from ... @@ -1580,11 +1138,7 @@ // export type * as H from "./h"; // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 20) skipped --- // === Definitions === // === /g.ts === @@ -1618,18 +1172,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" +// --- (line: 12) skipped --- // import "./f"; // // // export ... from ... @@ -1637,11 +1180,7 @@ // export type * as H from "./h"; // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 20) skipped --- // === Definitions === // === /g.ts === @@ -1675,18 +1214,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" +// --- (line: 12) skipped --- // import "./f"; // // // export ... from ... @@ -1694,11 +1222,7 @@ // export type * as H from "./h"; // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 20) skipped --- // === Definitions === // === /g.ts === @@ -1732,19 +1256,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; +// --- (line: 13) skipped --- // // // export ... from ... // export type * from "./g"; @@ -1752,26 +1264,11 @@ // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 21) skipped --- // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; + // --- (line: 13) skipped --- // // // export ... from ... // export type * from "./g"; @@ -1779,10 +1276,7 @@ // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 21) skipped --- // === Details === [ @@ -1812,19 +1306,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; +// --- (line: 13) skipped --- // // // export ... from ... // export type * from "./g"; @@ -1832,26 +1314,11 @@ // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 21) skipped --- // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; + // --- (line: 13) skipped --- // // // export ... from ... // export type * from "./g"; @@ -1859,10 +1326,7 @@ // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 21) skipped --- // === Details === [ @@ -1892,19 +1356,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; +// --- (line: 13) skipped --- // // // export ... from ... // export type * from "./g"; @@ -1912,26 +1364,11 @@ // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 21) skipped --- // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; + // --- (line: 13) skipped --- // // // export ... from ... // export type * from "./g"; @@ -1939,10 +1376,7 @@ // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; - // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 21) skipped --- // === Details === [ @@ -1972,19 +1406,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; +// --- (line: 13) skipped --- // // // export ... from ... // export type * from "./g"; @@ -1992,10 +1414,7 @@ // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; -// export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 21) skipped --- // === Definitions === // === /h.ts === @@ -2029,20 +1448,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// +// --- (line: 14) skipped --- // // export ... from ... // export type * from "./g"; // export type * as H from "./h"; @@ -2050,29 +1456,14 @@ // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; // export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 22) skipped --- // === /i.ts === // <|export class [|{| defId: 1, isWriteAccess: true |}I|] {}|> // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // + // --- (line: 14) skipped --- // // export ... from ... // export type * from "./g"; // export type * as H from "./h"; @@ -2080,9 +1471,7 @@ // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 22) skipped --- // === /i.ts === // <|export class [|{| defId: 1 |}I|] {}|> @@ -2169,20 +1558,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// +// --- (line: 14) skipped --- // // export ... from ... // export type * from "./g"; // export type * as H from "./h"; @@ -2190,29 +1566,14 @@ // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; // export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 22) skipped --- // === /i.ts === // <|export class [|{| defId: 1, isWriteAccess: true |}I|] {}|> // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // + // --- (line: 14) skipped --- // // export ... from ... // export type * from "./g"; // export type * as H from "./h"; @@ -2220,9 +1581,7 @@ // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; // export type { Z1 }; - // type Z2 = 2; - // type Z3 = 3; - // export type { z2, z3 as z4 }; + // --- (line: 22) skipped --- // === /i.ts === // <|export class [|{| defId: 1 |}I|] {}|> @@ -2309,20 +1668,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// +// --- (line: 14) skipped --- // // export ... from ... // export type * from "./g"; // export type * as H from "./h"; @@ -2330,9 +1676,7 @@ // export type { j1, j2 as j3 } from "./j"; // type Z1 = 1; // export type { Z1 }; -// type Z2 = 2; -// type Z3 = 3; -// export type { z2, z3 as z4 }; +// --- (line: 22) skipped --- // === Definitions === // === /i.ts === @@ -2366,21 +1710,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... +// --- (line: 15) skipped --- // export type * from "./g"; // export type * as H from "./h"; // export type { I } from "./i"; @@ -2395,21 +1725,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... +// --- (line: 15) skipped --- // export type * from "./g"; // export type * as H from "./h"; // export type { I } from "./i"; @@ -2424,21 +1740,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... +// --- (line: 15) skipped --- // export type * from "./g"; // export type * as H from "./h"; // export type { I } from "./i"; @@ -2482,21 +1784,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... +// --- (line: 15) skipped --- // export type * from "./g"; // export type * as H from "./h"; // export type { I } from "./i"; @@ -2509,21 +1797,7 @@ // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... + // --- (line: 15) skipped --- // export type * from "./g"; // export type * as H from "./h"; // export type { I } from "./i"; @@ -2606,22 +1880,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; +// --- (line: 16) skipped --- // export type * as H from "./h"; // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; @@ -2633,22 +1892,7 @@ // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; + // --- (line: 16) skipped --- // export type * as H from "./h"; // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; @@ -2702,22 +1946,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; +// --- (line: 16) skipped --- // export type * as H from "./h"; // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; @@ -2729,22 +1958,7 @@ // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; + // --- (line: 16) skipped --- // export type * as H from "./h"; // export type { I } from "./i"; // export type { j1, j2 as j3 } from "./j"; @@ -2798,26 +2012,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; +// --- (line: 20) skipped --- // export type { Z1 }; // type Z2 = 2; // type Z3 = 3; @@ -2827,26 +2022,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; +// --- (line: 20) skipped --- // export type { Z1 }; // type Z2 = 2; // type Z3 = 3; @@ -2856,26 +2032,7 @@ // === findAllReferences === // === /main.ts === -// // import ... = ... -// import A = require("./a"); -// namespace N { } -// import N2 = N; -// -// // import ... from ... -// import type B from "./b"; -// import type * as C from "./c"; -// import type { D } from "./d"; -// import type { e1, e2 as e3 } from "./e"; -// -// // import "module" -// import "./f"; -// -// // export ... from ... -// export type * from "./g"; -// export type * as H from "./h"; -// export type { I } from "./i"; -// export type { j1, j2 as j3 } from "./j"; -// type Z1 = 1; +// --- (line: 20) skipped --- // export type { Z1 }; // type Z2 = 2; // type Z3 = 3; @@ -2883,26 +2040,7 @@ // === Definitions === // === /main.ts === - // // import ... = ... - // import A = require("./a"); - // namespace N { } - // import N2 = N; - // - // // import ... from ... - // import type B from "./b"; - // import type * as C from "./c"; - // import type { D } from "./d"; - // import type { e1, e2 as e3 } from "./e"; - // - // // import "module" - // import "./f"; - // - // // export ... from ... - // export type * from "./g"; - // export type * as H from "./h"; - // export type { I } from "./i"; - // export type { j1, j2 as j3 } from "./j"; - // type Z1 = 1; + // --- (line: 20) skipped --- // export type { Z1 }; // type Z2 = 2; // type Z3 = 3; diff --git a/tests/baselines/reference/referencesForStatic.baseline.jsonc b/tests/baselines/reference/referencesForStatic.baseline.jsonc index 1712601bbb300..3e52ae5f73719 100644 --- a/tests/baselines/reference/referencesForStatic.baseline.jsonc +++ b/tests/baselines/reference/referencesForStatic.baseline.jsonc @@ -36,22 +36,7 @@ // // 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; - // } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -145,22 +130,7 @@ // // 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; - // } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -257,19 +227,7 @@ // if(foo.n) { // var x = foo.n; // } - // } - // } - // - // class foo2 { - // private x = foo.n; - // constructor() { - // foo.n = x; - // } - // - // function b(n) { - // n = foo.n; - // } - // } + // --- (line: 11) skipped --- // === Details === [ @@ -367,18 +325,7 @@ // var x = foo.n; // } // } - // } - // - // class foo2 { - // private x = foo.n; - // constructor() { - // foo.n = x; - // } - // - // function b(n) { - // n = foo.n; - // } - // } + // --- (line: 12) skipped --- // === Details === [ @@ -477,17 +424,7 @@ // } // } // } - // - // class foo2 { - // private x = foo.n; - // constructor() { - // foo.n = x; - // } - // - // function b(n) { - // n = foo.n; - // } - // } + // --- (line: 13) skipped --- // === Details === [ @@ -581,10 +518,9 @@ // // public bar() { // foo.n = "'"; - // if(foo.n) { - // var x = foo.n; - // } - // } + // --- (line: 8) skipped --- + + // --- (line: 11) skipped --- // } // // class foo2 { @@ -592,11 +528,7 @@ // constructor() { // foo.n = x; // } - // - // function b(n) { - // n = foo.n; - // } - // } + // --- (line: 19) skipped --- // === Details === [ @@ -690,12 +622,9 @@ // // public bar() { // foo.n = "'"; - // if(foo.n) { - // var x = foo.n; - // } - // } - // } - // + // --- (line: 8) skipped --- + + // --- (line: 13) skipped --- // class foo2 { // private x = foo.n; // constructor() { @@ -703,9 +632,7 @@ // } // // function b(n) { - // n = foo.n; - // } - // } + // --- (line: 21) skipped --- // === Details === [ @@ -799,16 +726,9 @@ // // public bar() { // foo.n = "'"; - // if(foo.n) { - // var x = foo.n; - // } - // } - // } - // - // class foo2 { - // private x = foo.n; - // constructor() { - // foo.n = x; + // --- (line: 8) skipped --- + + // --- (line: 17) skipped --- // } // // function b(n) { @@ -908,22 +828,7 @@ // // 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; - // } - // } + // --- (line: 8) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForStaticsAndMembersWithSameNames.baseline.jsonc b/tests/baselines/reference/referencesForStaticsAndMembersWithSameNames.baseline.jsonc index 1db39f7473e60..e8174b7100921 100644 --- a/tests/baselines/reference/referencesForStaticsAndMembersWithSameNames.baseline.jsonc +++ b/tests/baselines/reference/referencesForStaticsAndMembersWithSameNames.baseline.jsonc @@ -7,13 +7,9 @@ // static bar: Foo; // // public foo(): void { -// } -// public static foo(): void { -// } -// } -// } -// -// function test() { +// --- (line: 8) skipped --- + +// --- (line: 14) skipped --- // // instance function // var x = new MixedStaticsClassTest.Foo(); // x.foo(); @@ -21,9 +17,7 @@ // // // static function // MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.bar; -// } -// } +// --- (line: 22) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === @@ -34,23 +28,7 @@ // static bar: Foo; // // public foo(): void { - // } - // public static foo(): void { - // } - // } - // } - // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; - // - // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 8) skipped --- // === Details === [ @@ -124,16 +102,9 @@ // // public foo(): void { // } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); -// x.bar; +// --- (line: 9) skipped --- + +// --- (line: 18) skipped --- // // // static function // MixedStaticsClassTest.Foo.foo(); @@ -151,22 +122,7 @@ // // public foo(): void { // } - // public static foo(): void { - // } - // } - // } - // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; - // - // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 9) skipped --- // === Details === [ @@ -240,16 +196,9 @@ // // public foo(): void { // } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); -// x.bar; +// --- (line: 9) skipped --- + +// --- (line: 18) skipped --- // // // static function // MixedStaticsClassTest.Foo.foo(); @@ -267,22 +216,7 @@ // // public foo(): void { // } - // public static foo(): void { - // } - // } - // } - // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; - // - // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 9) skipped --- // === Details === [ @@ -348,9 +282,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { +// --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; // @@ -368,16 +300,11 @@ // x.bar; // // // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.bar; -// } -// } +// --- (line: 21) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { - // module MixedStaticsClassTest { - // export class Foo { + // --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; // @@ -386,19 +313,7 @@ // public static foo(): void { // } // } - // } - // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; - // - // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 12) skipped --- // === Details === [ @@ -472,9 +387,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { +// --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; // @@ -492,16 +405,11 @@ // x.bar; // // // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.bar; -// } -// } +// --- (line: 21) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { - // module MixedStaticsClassTest { - // export class Foo { + // --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; // @@ -510,19 +418,7 @@ // public static foo(): void { // } // } - // } - // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; - // - // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 12) skipped --- // === Details === [ @@ -596,11 +492,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// static bar: Foo; +// --- (line: 5) skipped --- // // public foo(): void { // } @@ -609,10 +501,9 @@ // } // } // -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); +// --- (line: 14) skipped --- + +// --- (line: 17) skipped --- // x.bar; // // // static function @@ -623,11 +514,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { - // module MixedStaticsClassTest { - // export class Foo { - // bar: Foo; - // static bar: Foo; + // --- (line: 5) skipped --- // // public foo(): void { // } @@ -636,17 +523,7 @@ // } // } // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; - // - // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 14) skipped --- // === Details === [ @@ -720,11 +597,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// static bar: Foo; +// --- (line: 5) skipped --- // // public foo(): void { // } @@ -733,10 +606,9 @@ // } // } // -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); +// --- (line: 14) skipped --- + +// --- (line: 17) skipped --- // x.bar; // // // static function @@ -747,11 +619,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { - // module MixedStaticsClassTest { - // export class Foo { - // bar: Foo; - // static bar: Foo; + // --- (line: 5) skipped --- // // public foo(): void { // } @@ -760,17 +628,7 @@ // } // } // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; - // - // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 14) skipped --- // === Details === [ @@ -844,9 +702,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { +// --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; // @@ -864,16 +720,11 @@ // x.bar; // // // static function -// MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.bar; -// } -// } +// --- (line: 21) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { - // module MixedStaticsClassTest { - // export class Foo { + // --- (line: 3) skipped --- // bar: Foo; // static bar: Foo; // @@ -891,10 +742,7 @@ // x.bar; // // // static function - // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 21) skipped --- // === Details === [ @@ -975,13 +823,9 @@ // static bar: Foo; // // public foo(): void { -// } -// public static foo(): void { -// } -// } -// } -// -// function test() { +// --- (line: 8) skipped --- + +// --- (line: 14) skipped --- // // instance function // var x = new MixedStaticsClassTest.Foo(); // x.foo(); @@ -989,9 +833,7 @@ // // // static function // MixedStaticsClassTest.Foo.foo(); -// MixedStaticsClassTest.Foo.bar; -// } -// } +// --- (line: 22) skipped --- // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === @@ -1002,13 +844,9 @@ // static bar: Foo; // // public foo(): void { - // } - // public static foo(): void { - // } - // } - // } - // - // function test() { + // --- (line: 8) skipped --- + + // --- (line: 14) skipped --- // // instance function // var x = new MixedStaticsClassTest.Foo(); // x.foo(); @@ -1016,9 +854,7 @@ // // // static function // MixedStaticsClassTest.Foo.foo(); - // MixedStaticsClassTest.Foo.bar; - // } - // } + // --- (line: 22) skipped --- // === Details === [ @@ -1084,11 +920,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === -// module FindRef4 { -// module MixedStaticsClassTest { -// export class Foo { -// bar: Foo; -// static bar: Foo; +// --- (line: 5) skipped --- // // public foo(): void { // } @@ -1097,10 +929,9 @@ // } // } // -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); +// --- (line: 14) skipped --- + +// --- (line: 17) skipped --- // x.bar; // // // static function @@ -1111,11 +942,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForStaticsAndMembersWithSameNames.ts === - // module FindRef4 { - // module MixedStaticsClassTest { - // export class Foo { - // bar: Foo; - // static bar: Foo; + // --- (line: 5) skipped --- // // public foo(): void { // } @@ -1124,10 +951,9 @@ // } // } // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); + // --- (line: 14) skipped --- + + // --- (line: 17) skipped --- // x.bar; // // // static function @@ -1216,16 +1042,9 @@ // // public foo(): void { // } -// public static foo(): void { -// } -// } -// } -// -// function test() { -// // instance function -// var x = new MixedStaticsClassTest.Foo(); -// x.foo(); -// x.bar; +// --- (line: 9) skipped --- + +// --- (line: 18) skipped --- // // // static function // MixedStaticsClassTest.Foo.foo(); @@ -1243,16 +1062,9 @@ // // public foo(): void { // } - // public static foo(): void { - // } - // } - // } - // - // function test() { - // // instance function - // var x = new MixedStaticsClassTest.Foo(); - // x.foo(); - // x.bar; + // --- (line: 9) skipped --- + + // --- (line: 18) skipped --- // // // static function // MixedStaticsClassTest.Foo.foo(); diff --git a/tests/baselines/reference/referencesForStringLiteralPropertyNames.baseline.jsonc b/tests/baselines/reference/referencesForStringLiteralPropertyNames.baseline.jsonc index 3ce7bc14b1340..2e6f9b4d52d41 100644 --- a/tests/baselines/reference/referencesForStringLiteralPropertyNames.baseline.jsonc +++ b/tests/baselines/reference/referencesForStringLiteralPropertyNames.baseline.jsonc @@ -17,10 +17,7 @@ // } // // var x: Foo; - // x.ss; - // x["ss"]; - // x = { "ss": 0 }; - // x = { ss: 0 }; + // --- (line: 6) skipped --- // === Details === [ diff --git a/tests/baselines/reference/referencesForTypeKeywords.baseline.jsonc b/tests/baselines/reference/referencesForTypeKeywords.baseline.jsonc index 943c57719306e..b240e3426faac 100644 --- a/tests/baselines/reference/referencesForTypeKeywords.baseline.jsonc +++ b/tests/baselines/reference/referencesForTypeKeywords.baseline.jsonc @@ -346,9 +346,7 @@ // === findAllReferences === // === /tests/cases/fourslash/referencesForTypeKeywords.ts === -// interface I {} -// function f() {} -// type A1 = T extends U ? 1 : 0; +// --- (line: 3) skipped --- // type A2 = T extends infer U ? 1 : 0; // type A3 = { [P in keyof T]: 1 }; // type A4 = keyof T; @@ -356,9 +354,7 @@ // === Definitions === // === /tests/cases/fourslash/referencesForTypeKeywords.ts === - // interface I {} - // function f() {} - // type A1 = T extends U ? 1 : 0; + // --- (line: 3) skipped --- // type A2 = T extends infer U ? 1 : 0; // type A3 = { [P in keyof T]: 1 }; // type A4 = keyof T; diff --git a/tests/baselines/reference/referencesForUnionProperties.baseline.jsonc b/tests/baselines/reference/referencesForUnionProperties.baseline.jsonc index dd18cddc9c243..6eb74e55cae27 100644 --- a/tests/baselines/reference/referencesForUnionProperties.baseline.jsonc +++ b/tests/baselines/reference/referencesForUnionProperties.baseline.jsonc @@ -5,18 +5,9 @@ // } // // interface Base { -// a: string; -// b: string; -// } -// -// interface HasAOrB extends Base { -// a: string; -// b: string; -// } -// -// interface Two { -// common: HasAOrB; -// } +// --- (line: 6) skipped --- + +// --- (line: 17) skipped --- // // var x : One | Two; // @@ -29,22 +20,7 @@ // } // // interface Base { - // a: string; - // b: string; - // } - // - // interface HasAOrB extends Base { - // a: string; - // b: string; - // } - // - // interface Two { - // common: HasAOrB; - // } - // - // var x : One | Two; - // - // x.common.a; + // --- (line: 6) skipped --- // === Details === [ @@ -190,13 +166,7 @@ // b: string; // } // - // interface Two { - // common: HasAOrB; - // } - // - // var x : One | Two; - // - // x.common.a; + // --- (line: 15) skipped --- // === Details === [ diff --git a/tests/baselines/reference/remoteGetReferences.baseline.jsonc b/tests/baselines/reference/remoteGetReferences.baseline.jsonc index b92ed2ba2c74d..5ce40b0aaab0e 100644 --- a/tests/baselines/reference/remoteGetReferences.baseline.jsonc +++ b/tests/baselines/reference/remoteGetReferences.baseline.jsonc @@ -1,87 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -96,26 +15,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -144,14 +44,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -159,11 +54,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -171,10 +64,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -197,44 +87,7 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 20) skipped --- // === Details === [ @@ -264,88 +117,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -360,26 +132,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -408,14 +161,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -423,11 +171,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -435,10 +181,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -461,44 +204,7 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 20) skipped --- // === Details === [ @@ -528,91 +234,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -629,21 +251,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -659,13 +267,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -673,12 +277,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -686,11 +287,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -698,11 +297,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -710,59 +305,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -804,122 +347,24 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; +// --- (line: 85) skipped --- +// var remoteclsTest: remotefooCls; // -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; +// //Arguments +// remoteclsTest = new remotefooCls([|remoteglobalVar|]); +// remotefoo(/*FIND ALL REFS*/[|remoteglobalVar|]); // -// //Return -// return x++; -// } +// //Increments +// remotefooCls.remoteclsSVar++; +// remotemodTest.remotemodVar++; +// [|{| isWriteAccess: true |}remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; // -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls([|remoteglobalVar|]); -// remotefoo(/*FIND ALL REFS*/[|remoteglobalVar|]); -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remotemodTest.remotemodVar++; -// [|{| isWriteAccess: true |}remoteglobalVar|] = [|remoteglobalVar|] + [|remoteglobalVar|]; -// -// //ETC - Other cases -// [|{| isWriteAccess: true |}remoteglobalVar|] = 3; +// //ETC - Other cases +// [|{| isWriteAccess: true |}remoteglobalVar|] = 3; // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -935,13 +380,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -949,12 +390,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -962,11 +400,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -974,11 +410,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -986,59 +418,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -1080,88 +460,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -1176,26 +475,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -1224,14 +504,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -1239,11 +514,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -1251,10 +524,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -1277,44 +547,7 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 20) skipped --- // === Details === [ @@ -1344,95 +577,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(remoteglobalVar); +// --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // // //Increments @@ -1440,26 +585,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -1477,10 +603,9 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } -// } -// -// function remotefoo(remotex: number) { -// //Declare +// --- (line: 16) skipped --- + +// --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -1488,14 +613,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -1503,11 +623,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -1515,10 +633,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -1531,54 +646,7 @@ // // constructor(public remoteclsParam: number) { // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 10) skipped --- // === Details === [ @@ -1636,91 +704,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -1737,21 +721,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -1767,13 +737,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -1781,12 +747,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -1794,11 +757,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -1806,11 +767,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -1818,59 +775,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -1912,91 +817,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -2013,21 +834,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -2043,13 +850,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -2057,12 +860,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -2070,11 +870,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -2082,11 +880,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -2094,59 +888,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -2188,91 +930,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -2289,21 +947,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -2319,13 +963,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -2333,12 +973,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -2346,11 +983,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -2358,11 +993,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -2370,59 +1001,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -2464,91 +1043,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -2565,21 +1060,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -2595,13 +1076,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -2609,12 +1086,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -2622,11 +1096,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -2634,11 +1106,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -2646,59 +1114,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -2740,91 +1156,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -2841,21 +1173,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // /*FIND ALL REFS*/<|var [|{| isWriteAccess: true, isDefinition: true |}remoteglobalVar|]: number = 2;|> @@ -2871,13 +1189,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -2885,12 +1199,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -2898,11 +1209,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -2910,11 +1219,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -2922,59 +1227,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -3015,92 +1268,8 @@ // === findAllReferences === -// === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// === /tests/cases/fourslash/remoteGetReferences_1.ts === +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -3117,21 +1286,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var /*FIND ALL REFS*/[|{| isWriteAccess: true, isDefinition: true |}remoteglobalVar|]: number = 2;|> @@ -3147,13 +1302,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -3161,12 +1312,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -3174,11 +1322,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -3186,11 +1332,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -3198,59 +1340,7 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 5) skipped --- // === Details === [ @@ -3292,88 +1382,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -3388,26 +1397,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -3436,14 +1426,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -3451,11 +1436,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -3463,10 +1446,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -3489,44 +1469,7 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 20) skipped --- // === Details === [ @@ -3556,88 +1499,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -3652,26 +1514,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -3700,14 +1543,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -3715,11 +1553,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -3727,10 +1563,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -3753,44 +1586,7 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 20) skipped --- // === Details === [ @@ -3831,52 +1627,10 @@ // //Increments // remoteglobalVar++; // this.[|{| isWriteAccess: true |}remoteclsVar|]++; -// remotefooCls.remoteclsSVar++; -// this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; -// -// //Increments -// remoteglobalVar++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; -// -// //Increments -// remoteglobalVar++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// remotefooCls.remoteclsSVar++; +// this.remoteclsParam++; +// remotemodTest.remotemodVar++; +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -3888,55 +1642,7 @@ // static remoteclsSVar = 1; // // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 9) skipped --- // === Details === [ @@ -3994,95 +1700,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(remoteglobalVar); +// --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // // //Increments @@ -4090,26 +1708,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -4127,10 +1726,9 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } -// } -// -// function remotefoo(remotex: number) { -// //Declare +// --- (line: 16) skipped --- + +// --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -4138,14 +1736,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -4153,11 +1746,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -4165,10 +1756,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -4181,54 +1769,7 @@ // // constructor(public remoteclsParam: number) { // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 10) skipped --- // === Details === [ @@ -4286,95 +1827,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(remoteglobalVar); +// --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // // //Increments @@ -4382,26 +1835,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -4419,10 +1853,9 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } -// } -// -// function remotefoo(remotex: number) { -// //Declare +// --- (line: 16) skipped --- + +// --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -4430,14 +1863,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -4445,11 +1873,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -4457,10 +1883,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -4473,54 +1896,7 @@ // // constructor(public remoteclsParam: number) { // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 10) skipped --- // === Details === [ @@ -4577,92 +1953,8 @@ // === findAllReferences === -// === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// === /tests/cases/fourslash/remoteGetReferences_1.ts === +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -4679,21 +1971,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -4709,13 +1987,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -4723,12 +1997,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -4736,11 +2007,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -4748,11 +2017,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -4769,50 +2034,7 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 14) skipped --- // === Details === [ @@ -4868,49 +2090,7 @@ // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; // remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; -// -// //Increments -// remotefooCls.remoteclsSVar++; -// remoteglobalVar++; -// remotemodTest.remotemodVar++; -// remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; -// -// //Increments -// remoteglobalVar++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; -// -// //Increments -// remoteglobalVar++; -// remotefooCls.remoteclsSVar++; -// remotemodVar++; -// } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 15) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -4928,49 +2108,7 @@ // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 15) skipped --- // === Details === [ @@ -5028,88 +2166,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -5124,26 +2181,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -5172,14 +2210,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -5187,11 +2220,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -5199,10 +2230,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -5225,44 +2253,7 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 20) skipped --- // === Details === [ @@ -5292,95 +2283,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(remoteglobalVar); +// --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // // //Increments @@ -5388,26 +2291,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -5425,10 +2309,9 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } -// } -// -// function remotefoo(remotex: number) { -// //Declare +// --- (line: 16) skipped --- + +// --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -5436,14 +2319,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -5451,11 +2329,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -5463,10 +2339,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -5485,48 +2358,7 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 16) skipped --- // === Details === [ @@ -5584,88 +2416,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -5680,26 +2431,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -5728,14 +2460,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -5743,11 +2470,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -5755,10 +2480,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -5788,37 +2510,7 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 27) skipped --- // === Details === [ @@ -5848,95 +2540,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(remoteglobalVar); +// --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // // //Increments @@ -5944,26 +2548,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -5981,10 +2566,9 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } -// } -// -// function remotefoo(remotex: number) { -// //Declare +// --- (line: 16) skipped --- + +// --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -5992,14 +2576,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -6007,11 +2586,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -6019,10 +2596,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -6035,16 +2609,9 @@ // // constructor(public remoteclsParam: number) { // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare + // --- (line: 10) skipped --- + + // --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -6052,37 +2619,7 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 27) skipped --- // === Details === [ @@ -6140,91 +2677,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -6241,21 +2694,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -6271,13 +2710,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -6285,12 +2720,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -6298,11 +2730,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -6310,11 +2740,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -6322,22 +2748,9 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; + // --- (line: 5) skipped --- + + // --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -6345,36 +2758,7 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 28) skipped --- // === Details === [ @@ -6416,91 +2800,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -6517,21 +2817,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -6547,13 +2833,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -6561,12 +2843,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -6574,11 +2853,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -6586,11 +2863,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -6598,35 +2871,9 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare + // --- (line: 5) skipped --- + + // --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -6634,23 +2881,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 41) skipped --- // === Details === [ @@ -6692,88 +2923,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -6788,26 +2938,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -6836,14 +2967,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -6851,11 +2977,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -6863,10 +2987,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -6889,21 +3010,9 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; + // --- (line: 20) skipped --- + + // --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -6911,22 +3020,7 @@ // remotemodVar++; // // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 42) skipped --- // === Details === [ @@ -6956,95 +3050,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(remoteglobalVar); +// --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // // //Increments @@ -7052,26 +3058,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -7089,10 +3076,9 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } -// } -// -// function remotefoo(remotex: number) { -// //Declare +// --- (line: 16) skipped --- + +// --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -7100,14 +3086,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -7115,11 +3096,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -7127,10 +3106,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -7143,31 +3119,9 @@ // // constructor(public remoteclsParam: number) { // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; + // --- (line: 10) skipped --- + + // --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -7175,22 +3129,7 @@ // remotemodVar++; // // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 42) skipped --- // === Details === [ @@ -7248,91 +3187,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test +// --- (line: 85) skipped --- // var remoteclsTest: remotefooCls; // // //Arguments @@ -7349,21 +3204,7 @@ // // //Find References misses method param // var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 102) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // <|var [|{| isWriteAccess: true |}remoteglobalVar|]: number = 2;|> @@ -7379,13 +3220,9 @@ // this.remoteclsVar++; // remotefooCls.remoteclsSVar++; // this.remoteclsParam++; -// remotemodTest.remotemodVar++; -// } -// } -// -// function remotefoo(remotex: number) { -// //Declare -// var remotefnVar = 1; +// --- (line: 14) skipped --- + +// --- (line: 20) skipped --- // // //Increments // remotefooCls.remoteclsSVar++; @@ -7393,12 +3230,9 @@ // remotemodTest.remotemodVar++; // remotefnVar++; // -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare +// --- (line: 28) skipped --- + +// --- (line: 33) skipped --- // export var remotemodVar: number; // // //Increments @@ -7406,11 +3240,9 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // -// class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ +// --- (line: 41) skipped --- + +// --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -7418,11 +3250,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } -// -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 53) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -7430,47 +3258,9 @@ // // class remotefooCls { // //Declare - // remoteclsVar = 1; - // static remoteclsSVar = 1; - // - // constructor(public remoteclsParam: number) { - // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ + // --- (line: 5) skipped --- + + // --- (line: 45) skipped --- // static remoteboo = remotefoo; // // //Increments @@ -7478,11 +3268,7 @@ // remotefooCls.remoteclsSVar++; // remotemodVar++; // } - // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 53) skipped --- // === Details === [ @@ -7524,88 +3310,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } +// --- (line: 82) skipped --- // // //Remotes // //Type test @@ -7620,26 +3325,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -7668,14 +3354,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -7683,11 +3364,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -7695,10 +3374,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -7721,33 +3397,9 @@ // // function remotefoo(remotex: number) { // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; + // --- (line: 20) skipped --- + + // --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -7755,10 +3407,7 @@ // remotemodVar++; // } // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 54) skipped --- // === Details === [ @@ -7788,95 +3437,7 @@ // === findAllReferences === // === /tests/cases/fourslash/remoteGetReferences_1.ts === -// // Comment Refence Test: globalVar -// var globalVar: number = 2; -// -// class fooCls { -// static clsSVar = 1; -// //Declare -// clsVar = 1; -// -// constructor (public clsParam: number) { -// //Increments -// globalVar++; -// this.clsVar++; -// fooCls.clsSVar++; -// this.clsParam++; -// modTest.modVar++; -// } -// } -// -// function foo(x: number) { -// //Declare -// var fnVar = 1; -// -// //Increments -// fooCls.clsSVar++; -// globalVar++; -// modTest.modVar++; -// fnVar++; -// -// //Return -// return x++; -// } -// -// module modTest { -// //Declare -// export var modVar:number; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// -// class testCls { -// static boo = foo; -// } -// -// function testFn(){ -// static boo = foo; -// -// //Increments -// globalVar++; -// fooCls.clsSVar++; -// modVar++; -// } -// -// module testMod { -// var boo = foo; -// } -// } -// -// //Type test -// var clsTest: fooCls; -// -// //Arguments -// clsTest = new fooCls(globalVar); -// foo(globalVar); -// -// //Increments -// fooCls.clsSVar++; -// modTest.modVar++; -// globalVar = globalVar + globalVar; -// -// //ETC - Other cases -// globalVar = 3; -// foo = foo + 1; -// err = err++; -// -// //Shadowed fn Parameter -// function shdw(globalVar: number) { -// //Increments -// globalVar++; -// return globalVar; -// } -// -// //Remotes -// //Type test -// var remoteclsTest: remotefooCls; -// -// //Arguments -// remoteclsTest = new remotefooCls(remoteglobalVar); +// --- (line: 89) skipped --- // remotefoo(remoteglobalVar); // // //Increments @@ -7884,26 +3445,7 @@ // remotemodTest.remotemodVar++; // remoteglobalVar = remoteglobalVar + remoteglobalVar; // -// //ETC - Other cases -// remoteglobalVar = 3; -// -// //Find References misses method param -// var -// -// -// -// array = ["f", "o", "o"]; -// -// array.forEach( -// -// -// function(str) { -// -// -// -// return str + " "; -// -// }); +// --- (line: 97) skipped --- // === /tests/cases/fourslash/remoteGetReferences_2.ts === // var remoteglobalVar: number = 2; @@ -7921,10 +3463,9 @@ // this.remoteclsParam++; // remotemodTest.remotemodVar++; // } -// } -// -// function remotefoo(remotex: number) { -// //Declare +// --- (line: 16) skipped --- + +// --- (line: 19) skipped --- // var remotefnVar = 1; // // //Increments @@ -7932,14 +3473,9 @@ // remoteglobalVar++; // remotemodTest.remotemodVar++; // remotefnVar++; -// -// //Return -// return remotex++; -// } -// -// module remotemodTest { -// //Declare -// export var remotemodVar: number; +// --- (line: 27) skipped --- + +// --- (line: 34) skipped --- // // //Increments // remoteglobalVar++; @@ -7947,11 +3483,9 @@ // remotemodVar++; // // class remotetestCls { -// static remoteboo = remotefoo; -// } -// -// function remotetestFn(){ -// static remoteboo = remotefoo; +// --- (line: 42) skipped --- + +// --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -7959,10 +3493,7 @@ // remotemodVar++; // } // -// module remotetestMod { -// var remoteboo = remotefoo; -// } -// } +// --- (line: 54) skipped --- // === Definitions === // === /tests/cases/fourslash/remoteGetReferences_2.ts === @@ -7975,43 +3506,9 @@ // // constructor(public remoteclsParam: number) { // //Increments - // remoteglobalVar++; - // this.remoteclsVar++; - // remotefooCls.remoteclsSVar++; - // this.remoteclsParam++; - // remotemodTest.remotemodVar++; - // } - // } - // - // function remotefoo(remotex: number) { - // //Declare - // var remotefnVar = 1; - // - // //Increments - // remotefooCls.remoteclsSVar++; - // remoteglobalVar++; - // remotemodTest.remotemodVar++; - // remotefnVar++; - // - // //Return - // return remotex++; - // } - // - // module remotemodTest { - // //Declare - // export var remotemodVar: number; - // - // //Increments - // remoteglobalVar++; - // remotefooCls.remoteclsSVar++; - // remotemodVar++; - // - // class remotetestCls { - // static remoteboo = remotefoo; - // } - // - // function remotetestFn(){ - // static remoteboo = remotefoo; + // --- (line: 10) skipped --- + + // --- (line: 46) skipped --- // // //Increments // remoteglobalVar++; @@ -8019,10 +3516,7 @@ // remotemodVar++; // } // - // module remotetestMod { - // var remoteboo = remotefoo; - // } - // } + // --- (line: 54) skipped --- // === Details === [ diff --git a/tests/baselines/reference/renameDeclarationKeywords.baseline.jsonc b/tests/baselines/reference/renameDeclarationKeywords.baseline.jsonc index de12c5f4cebfc..e32178f9183bf 100644 --- a/tests/baselines/reference/renameDeclarationKeywords.baseline.jsonc +++ b/tests/baselines/reference/renameDeclarationKeywords.baseline.jsonc @@ -9,12 +9,7 @@ // interface I1 extends Base { } // type T = { } // enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 10) skipped --- @@ -30,11 +25,7 @@ // type T = { } // enum E { } // namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 11) skipped --- @@ -46,15 +37,7 @@ // get e() { return 1; } // set e(v) {} // } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 7) skipped --- @@ -68,13 +51,7 @@ // } // interface I1 extends Base { } // type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 9) skipped --- @@ -88,21 +65,13 @@ // } // interface I1 extends Base { } // type T = { } -// enum E { } -// namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 9) skipped --- // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { +// --- (line: 3) skipped --- // get e() { return 1; } // set e(v) {} // } @@ -110,11 +79,7 @@ // type T = { } // enum E { } // namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 11) skipped --- @@ -130,20 +95,13 @@ // type T = { } // enum E { } // namespace N { } -// module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 11) skipped --- // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } +// --- (line: 4) skipped --- // set e(v) {} // } // interface I1 extends Base { } @@ -151,20 +109,13 @@ // enum E { } // namespace N { } // module M { } -// function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 12) skipped --- // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} +// --- (line: 5) skipped --- // } // interface I1 extends Base { } // type T = { } @@ -172,20 +123,13 @@ // namespace N { } // module M { } // function fn() {} -// var x; -// let y; -// const z = 1; +// --- (line: 13) skipped --- // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } +// --- (line: 6) skipped --- // interface I1 extends Base { } // type T = { } // enum E { } @@ -200,13 +144,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } +// --- (line: 7) skipped --- // type T = { } // enum E { } // namespace N { } @@ -220,14 +158,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } +// --- (line: 8) skipped --- // enum E { } // namespace N { } // module M { } @@ -240,15 +171,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } +// --- (line: 9) skipped --- // namespace N { } // module M { } // function fn() {} @@ -260,16 +183,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } +// --- (line: 10) skipped --- // module M { } // function fn() {} // var x; @@ -280,17 +194,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDeclarationKeywords.ts === -// class Base {} -// interface Implemented1 {} -// class C1 extends Base implements Implemented1 { -// get e() { return 1; } -// set e(v) {} -// } -// interface I1 extends Base { } -// type T = { } -// enum E { } -// namespace N { } -// module M { } +// --- (line: 11) skipped --- // function fn() {} // var x; // let y; diff --git a/tests/baselines/reference/renameDestructuringAssignmentInFor.baseline.jsonc b/tests/baselines/reference/renameDestructuringAssignmentInFor.baseline.jsonc index 1393ebd269fd4..1e25d9fb123af 100644 --- a/tests/baselines/reference/renameDestructuringAssignmentInFor.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringAssignmentInFor.baseline.jsonc @@ -34,9 +34,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentInFor.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // @@ -51,9 +49,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentInFor.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // @@ -68,9 +64,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentInFor.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // diff --git a/tests/baselines/reference/renameDestructuringAssignmentInForOf.baseline.jsonc b/tests/baselines/reference/renameDestructuringAssignmentInForOf.baseline.jsonc index 85b2f3a9eb235..2a467e895cbf4 100644 --- a/tests/baselines/reference/renameDestructuringAssignmentInForOf.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringAssignmentInForOf.baseline.jsonc @@ -34,9 +34,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentInForOf.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // @@ -51,9 +49,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentInForOf.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // @@ -68,9 +64,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentInForOf.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // diff --git a/tests/baselines/reference/renameDestructuringAssignmentNestedInFor.baseline.jsonc b/tests/baselines/reference/renameDestructuringAssignmentNestedInFor.baseline.jsonc index ecdcc0426e2f8..040be59a3a6e8 100644 --- a/tests/baselines/reference/renameDestructuringAssignmentNestedInFor.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringAssignmentNestedInFor.baseline.jsonc @@ -38,10 +38,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInFor.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } @@ -57,10 +54,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInFor.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } @@ -76,10 +70,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInFor.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } diff --git a/tests/baselines/reference/renameDestructuringAssignmentNestedInFor2.baseline.jsonc b/tests/baselines/reference/renameDestructuringAssignmentNestedInFor2.baseline.jsonc index f0dbe6c40a77f..d395580f487d9 100644 --- a/tests/baselines/reference/renameDestructuringAssignmentNestedInFor2.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringAssignmentNestedInFor2.baseline.jsonc @@ -38,10 +38,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInFor2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } @@ -57,10 +54,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInFor2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } @@ -76,10 +70,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInFor2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } diff --git a/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf.baseline.jsonc b/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf.baseline.jsonc index 1b8ff54c83cc9..a4eea558c4c58 100644 --- a/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf.baseline.jsonc @@ -40,11 +40,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInForOf.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// secondary: string; +// --- (line: 5) skipped --- // }; // } // let multiRobots: MultiRobot[]; @@ -60,11 +56,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInForOf.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// secondary: string; +// --- (line: 5) skipped --- // }; // } // let multiRobots: MultiRobot[]; @@ -80,11 +72,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInForOf.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// secondary: string; +// --- (line: 5) skipped --- // }; // } // let multiRobots: MultiRobot[]; diff --git a/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc b/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc index d079cc1f8113b..a76bd86b1df10 100644 --- a/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringAssignmentNestedInForOf2.baseline.jsonc @@ -38,10 +38,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInForOf2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } @@ -57,10 +54,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInForOf2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } @@ -76,10 +70,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringAssignmentNestedInForOf2.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; +// --- (line: 4) skipped --- // secondary: string; // }; // } diff --git a/tests/baselines/reference/renameDestructuringClassProperty.baseline.jsonc b/tests/baselines/reference/renameDestructuringClassProperty.baseline.jsonc index f5ad24c68392c..5c0dad746e8cb 100644 --- a/tests/baselines/reference/renameDestructuringClassProperty.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringClassProperty.baseline.jsonc @@ -49,25 +49,13 @@ // } // syntax2(a: A): void { // let { foo: foo } = a; -// } -// syntax11(a: A): void { -// let { foo } = a; -// foo = "newString"; -// } -// } +// --- (line: 10) skipped --- // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringClassProperty.ts === -// class A { -// foo: string; -// } -// class B { -// syntax1(a: A): void { -// let { foo } = a; -// } -// syntax2(a: A): void { +// --- (line: 8) skipped --- // let { foo: foo } = a; // } // syntax11(a: A): void { @@ -80,14 +68,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringClassProperty.ts === -// class A { -// foo: string; -// } -// class B { -// syntax1(a: A): void { -// let { foo } = a; -// } -// syntax2(a: A): void { +// --- (line: 8) skipped --- // let { foo: foo } = a; // } // syntax11(a: A): void { diff --git a/tests/baselines/reference/renameDestructuringDeclarationInFor.baseline.jsonc b/tests/baselines/reference/renameDestructuringDeclarationInFor.baseline.jsonc index f7a7994d26fc5..088123cd0a555 100644 --- a/tests/baselines/reference/renameDestructuringDeclarationInFor.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringDeclarationInFor.baseline.jsonc @@ -34,12 +34,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringDeclarationInFor.ts === -// interface I { -// property1: number; -// property2: string; -// } -// var elems: I[]; -// +// --- (line: 6) skipped --- // var p2: number, property1: number; // for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { // } @@ -51,12 +46,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringDeclarationInFor.ts === -// interface I { -// property1: number; -// property2: string; -// } -// var elems: I[]; -// +// --- (line: 6) skipped --- // var p2: number, property1: number; // for (let { property1: p2 } = elems[0]; p2 < 100; p2++) { // } diff --git a/tests/baselines/reference/renameDestructuringDeclarationInForOf.baseline.jsonc b/tests/baselines/reference/renameDestructuringDeclarationInForOf.baseline.jsonc index 6cdc2a36e9ff5..da9270f315250 100644 --- a/tests/baselines/reference/renameDestructuringDeclarationInForOf.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringDeclarationInForOf.baseline.jsonc @@ -32,9 +32,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringDeclarationInForOf.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // @@ -48,9 +46,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringDeclarationInForOf.ts === -// interface I { -// property1: number; -// property2: string; +// --- (line: 3) skipped --- // } // var elems: I[]; // diff --git a/tests/baselines/reference/renameDestructuringNestedBindingElement.baseline.jsonc b/tests/baselines/reference/renameDestructuringNestedBindingElement.baseline.jsonc index c1d07c7790c5c..458b0f559318c 100644 --- a/tests/baselines/reference/renameDestructuringNestedBindingElement.baseline.jsonc +++ b/tests/baselines/reference/renameDestructuringNestedBindingElement.baseline.jsonc @@ -38,14 +38,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringNestedBindingElement.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[]; +// --- (line: 8) skipped --- // for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } @@ -57,14 +50,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameDestructuringNestedBindingElement.ts === -// interface MultiRobot { -// name: string; -// skills: { -// primary: string; -// secondary: string; -// }; -// } -// let multiRobots: MultiRobot[]; +// --- (line: 8) skipped --- // for (let { skills: {primary: primaryA, secondary: secondaryA } } of multiRobots) { // console.log(primaryA); // } diff --git a/tests/baselines/reference/renameImportOfExportEquals.baseline.jsonc b/tests/baselines/reference/renameImportOfExportEquals.baseline.jsonc index 9ce36eca86e6c..0d652457629f2 100644 --- a/tests/baselines/reference/renameImportOfExportEquals.baseline.jsonc +++ b/tests/baselines/reference/renameImportOfExportEquals.baseline.jsonc @@ -506,10 +506,9 @@ // } // declare module "mod" { // export = N; -// } -// declare module "a" { -// import * as N from "mod"; -// export { N }; // Renaming N here would rename +// --- (line: 6) skipped --- + +// --- (line: 9) skipped --- // } // declare module "b" { // import { N } from "a"; @@ -523,15 +522,7 @@ // } // declare module "mod" { // export = N; - // } - // declare module "a" { - // 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: 6) skipped --- // === Details === [ @@ -619,10 +610,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { +// --- (line: 4) skipped --- // export = N; // } // declare module "a" { @@ -638,11 +626,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; +// --- (line: 5) skipped --- // } // declare module "a" { // import * as N from "mod"; @@ -657,14 +641,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; -// } -// declare module "a" { -// import * as N from "mod"; +// --- (line: 8) skipped --- // export { N }; // Renaming N here would rename // } // declare module "b" { @@ -676,14 +653,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; -// } -// declare module "a" { -// import * as N from "mod"; +// --- (line: 8) skipped --- // export { N }; // Renaming N here would rename // } // declare module "b" { @@ -700,10 +670,9 @@ // } // declare module "mod" { // export = N; -// } -// declare module "a" { -// import * as N from "mod"; -// export { N }; // Renaming N here would rename +// --- (line: 6) skipped --- + +// --- (line: 9) skipped --- // } // declare module "b" { // import { N } from "a"; @@ -719,10 +688,9 @@ // } // declare module "mod" { // export = N; -// } -// declare module "a" { -// import * as N from "mod"; -// export { N }; // Renaming N here would rename +// --- (line: 6) skipped --- + +// --- (line: 9) skipped --- // } // declare module "b" { // import { N } from "a"; diff --git a/tests/baselines/reference/renameImportOfExportEquals2.baseline.jsonc b/tests/baselines/reference/renameImportOfExportEquals2.baseline.jsonc index 70741573d4a1d..4e003098d2f13 100644 --- a/tests/baselines/reference/renameImportOfExportEquals2.baseline.jsonc +++ b/tests/baselines/reference/renameImportOfExportEquals2.baseline.jsonc @@ -220,10 +220,7 @@ // === findAllReferences === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { +// --- (line: 4) skipped --- // export = N; // } // declare module "a" { @@ -237,10 +234,7 @@ // === Definitions === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === - // declare namespace N { - // export var x: number; - // } - // declare module "mod" { + // --- (line: 4) skipped --- // export = N; // } // declare module "a" { @@ -419,11 +413,7 @@ // === findAllReferences === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; +// --- (line: 5) skipped --- // } // declare module "a" { // import * as O from "mod"; @@ -436,11 +426,7 @@ // === Definitions === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === - // declare namespace N { - // export var x: number; - // } - // declare module "mod" { - // export = N; + // --- (line: 5) skipped --- // } // declare module "a" { // import * as O from "mod"; @@ -565,14 +551,7 @@ // === findAllReferences === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; -// } -// declare module "a" { -// import * as O from "mod"; +// --- (line: 8) skipped --- // export { O as P }; // Renaming N here would rename // } // declare module "b" { @@ -582,14 +561,7 @@ // === Definitions === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === - // declare namespace N { - // export var x: number; - // } - // declare module "mod" { - // export = N; - // } - // declare module "a" { - // import * as O from "mod"; + // --- (line: 8) skipped --- // export { O as P }; // Renaming N here would rename // } // declare module "b" { @@ -665,12 +637,7 @@ // } // declare module "a" { // import * as O from "mod"; -// export { O as P }; // Renaming N here would rename -// } -// declare module "b" { -// import { P as Q } from "a"; -// export const y: typeof Q.x; -// } +// --- (line: 9) skipped --- @@ -684,21 +651,13 @@ // } // declare module "a" { // import * as O from "mod"; -// export { O as P }; // Renaming N here would rename -// } -// declare module "b" { -// import { P as Q } from "a"; -// export const y: typeof Q.x; -// } +// --- (line: 9) skipped --- // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { +// --- (line: 4) skipped --- // export = N; // } // declare module "a" { @@ -714,10 +673,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { +// --- (line: 4) skipped --- // export = N; // } // declare module "a" { @@ -733,11 +689,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; +// --- (line: 5) skipped --- // } // declare module "a" { // import * as O from "mod"; @@ -752,11 +704,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; +// --- (line: 5) skipped --- // } // declare module "a" { // import * as O from "mod"; @@ -771,14 +719,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; -// } -// declare module "a" { -// import * as O from "mod"; +// --- (line: 8) skipped --- // export { O as P }; // Renaming N here would rename // } // declare module "b" { @@ -790,14 +731,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfExportEquals2.ts === -// declare namespace N { -// export var x: number; -// } -// declare module "mod" { -// export = N; -// } -// declare module "a" { -// import * as O from "mod"; +// --- (line: 8) skipped --- // export { O as P }; // Renaming N here would rename // } // declare module "b" { diff --git a/tests/baselines/reference/renameImportOfReExport.baseline.jsonc b/tests/baselines/reference/renameImportOfReExport.baseline.jsonc index 389241dc5f212..5f1c8a25af045 100644 --- a/tests/baselines/reference/renameImportOfReExport.baseline.jsonc +++ b/tests/baselines/reference/renameImportOfReExport.baseline.jsonc @@ -507,10 +507,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfReExport.ts === -// declare module "a" { -// export class C {} -// } -// declare module "b" { +// --- (line: 4) skipped --- // export { C } from "a"; // } // declare module "c" { @@ -522,10 +519,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfReExport.ts === -// declare module "a" { -// export class C {} -// } -// declare module "b" { +// --- (line: 4) skipped --- // export { C } from "a"; // } // declare module "c" { diff --git a/tests/baselines/reference/renameImportOfReExport2.baseline.jsonc b/tests/baselines/reference/renameImportOfReExport2.baseline.jsonc index 38c9e8bcd2668..8c1d933a66d60 100644 --- a/tests/baselines/reference/renameImportOfReExport2.baseline.jsonc +++ b/tests/baselines/reference/renameImportOfReExport2.baseline.jsonc @@ -480,10 +480,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfReExport2.ts === -// declare module "a" { -// export class C {} -// } -// declare module "b" { +// --- (line: 4) skipped --- // export { C as D } from "a"; // } // declare module "c" { @@ -495,10 +492,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameImportOfReExport2.ts === -// declare module "a" { -// export class C {} -// } -// declare module "b" { +// --- (line: 4) skipped --- // export { C as D } from "a"; // } // declare module "c" { diff --git a/tests/baselines/reference/renameJsOverloadedFunctionParameter.baseline.jsonc b/tests/baselines/reference/renameJsOverloadedFunctionParameter.baseline.jsonc index e724bb5491f2d..b449a8aed67f1 100644 --- a/tests/baselines/reference/renameJsOverloadedFunctionParameter.baseline.jsonc +++ b/tests/baselines/reference/renameJsOverloadedFunctionParameter.baseline.jsonc @@ -1,11 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/foo.js === -// /** -// * @overload -// * @param {number} x -// * @returns {number} -// * -// * @overload +// --- (line: 6) skipped --- // * @param {string} x // * @returns {string} // * diff --git a/tests/baselines/reference/renameLocationsForClassExpression01.baseline.jsonc b/tests/baselines/reference/renameLocationsForClassExpression01.baseline.jsonc index 37c68d185e751..af95ea6885d8a 100644 --- a/tests/baselines/reference/renameLocationsForClassExpression01.baseline.jsonc +++ b/tests/baselines/reference/renameLocationsForClassExpression01.baseline.jsonc @@ -15,10 +15,7 @@ // // var y = class { // getSomeName() { -// return Foo -// } -// } -// var z = class Foo {} +// --- (line: 16) skipped --- @@ -39,10 +36,7 @@ // // var y = class { // getSomeName() { -// return Foo -// } -// } -// var z = class Foo {} +// --- (line: 16) skipped --- @@ -63,7 +57,4 @@ // // var y = class { // getSomeName() { -// return Foo -// } -// } -// var z = class Foo {} \ No newline at end of file +// --- (line: 16) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/renameModifiers.baseline.jsonc b/tests/baselines/reference/renameModifiers.baseline.jsonc index 73a50e713316f..4ed884f1090e9 100644 --- a/tests/baselines/reference/renameModifiers.baseline.jsonc +++ b/tests/baselines/reference/renameModifiers.baseline.jsonc @@ -37,12 +37,7 @@ // readonly b; // public c; // protected d; -// private e; -// } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 6) skipped --- @@ -54,11 +49,7 @@ // public c; // protected d; // private e; -// } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 7) skipped --- @@ -71,10 +62,7 @@ // protected d; // private e; // } -// const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 8) skipped --- @@ -88,9 +76,7 @@ // private e; // } // const enum E { -// } -// async function fn() {} -// export default class C2 {} +// --- (line: 9) skipped --- @@ -112,10 +98,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; +// --- (line: 4) skipped --- // protected d; // private e; // } @@ -128,12 +111,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// private e; +// --- (line: 6) skipped --- // } // const enum E { // } @@ -144,13 +122,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// private e; -// } +// --- (line: 7) skipped --- // const enum E { // } // async function fn() {} @@ -160,13 +132,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/renameModifiers.ts === -// declare abstract class C1 { -// static a; -// readonly b; -// public c; -// protected d; -// private e; -// } +// --- (line: 7) skipped --- // const enum E { // } // async function fn() {} diff --git a/tests/baselines/reference/renameStringLiteralTypes3.baseline.jsonc b/tests/baselines/reference/renameStringLiteralTypes3.baseline.jsonc index d0e78fd947cad..9da8b0db5601e 100644 --- a/tests/baselines/reference/renameStringLiteralTypes3.baseline.jsonc +++ b/tests/baselines/reference/renameStringLiteralTypes3.baseline.jsonc @@ -10,9 +10,7 @@ // return 1; // case "b": // return 2; -// } -// } -// } +// --- (line: 11) skipped --- @@ -28,9 +26,7 @@ // return 1; // case "b": // return 2; -// } -// } -// } +// --- (line: 11) skipped --- @@ -46,6 +42,4 @@ // return 1; // case "b": // return 2; -// } -// } -// } \ No newline at end of file +// --- (line: 11) skipped --- \ No newline at end of file diff --git a/tests/baselines/reference/renameTemplateLiteralsComputedProperties.baseline.jsonc b/tests/baselines/reference/renameTemplateLiteralsComputedProperties.baseline.jsonc index 6319a2bcc7ef8..04585c4695102 100644 --- a/tests/baselines/reference/renameTemplateLiteralsComputedProperties.baseline.jsonc +++ b/tests/baselines/reference/renameTemplateLiteralsComputedProperties.baseline.jsonc @@ -22,10 +22,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -62,10 +59,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -102,10 +96,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -142,10 +133,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -182,10 +170,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -222,10 +207,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -262,10 +244,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -302,10 +281,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; @@ -342,10 +318,7 @@ // // o.bool; // o['bool']; -// o["bool"]; -// o[`bool`]; -// -// export { o }; +// --- (line: 23) skipped --- // === /tests/cases/fourslash/b.js === // import { o as obj } from './a'; diff --git a/tests/baselines/reference/tsxFindAllReferences1.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences1.baseline.jsonc index 1dde4557b8d78..c067d0f4ca04e 100644 --- a/tests/baselines/reference/tsxFindAllReferences1.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences1.baseline.jsonc @@ -162,13 +162,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { -// name?: string; -// isOpen?: boolean; -// }; +// --- (line: 7) skipped --- // span: { n: string; }; // } // } diff --git a/tests/baselines/reference/tsxFindAllReferences10.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences10.baseline.jsonc index 86d2c33f0e344..3cf5a3aa8d0b7 100644 --- a/tests/baselines/reference/tsxFindAllReferences10.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences10.baseline.jsonc @@ -1,13 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface ClickableProps { -// children?: string; +// --- (line: 8) skipped --- // className?: string; // } // interface ButtonProps extends ClickableProps { @@ -28,14 +21,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface ClickableProps { - // children?: string; + // --- (line: 8) skipped --- // className?: string; // } // interface ButtonProps extends ClickableProps { @@ -43,16 +29,7 @@ // } // 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 --- // === Details === [ diff --git a/tests/baselines/reference/tsxFindAllReferences11.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences11.baseline.jsonc index ff77a2f986e06..9046e3ac75431 100644 --- a/tests/baselines/reference/tsxFindAllReferences11.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences11.baseline.jsonc @@ -1,21 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (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; @@ -23,22 +8,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (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; diff --git a/tests/baselines/reference/tsxFindAllReferences2.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences2.baseline.jsonc index 79c8bbf8fc8ae..310482b09d270 100644 --- a/tests/baselines/reference/tsxFindAllReferences2.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences2.baseline.jsonc @@ -22,9 +22,7 @@ // isOpen?: boolean; // }; // span: { n: string; }; - // } - // } - // var x =
; + // --- (line: 9) skipped --- // === Details === [ diff --git a/tests/baselines/reference/tsxFindAllReferences3.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences3.baseline.jsonc index 1e14ae3bd41bb..e24585b9f5287 100644 --- a/tests/baselines/reference/tsxFindAllReferences3.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences3.baseline.jsonc @@ -1,10 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } +// --- (line: 5) skipped --- // } // class MyClass { // props: { @@ -17,11 +13,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props } + // --- (line: 5) skipped --- // } // class MyClass { // props: { diff --git a/tests/baselines/reference/tsxFindAllReferences4.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences4.baseline.jsonc index 223a2d86efd3f..c53d406a4b96a 100644 --- a/tests/baselines/reference/tsxFindAllReferences4.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences4.baseline.jsonc @@ -1,8 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { +// --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } @@ -17,9 +15,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { + // --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } @@ -60,9 +56,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { +// --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } @@ -77,9 +71,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { + // --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } @@ -120,16 +112,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } -// } -// class MyClass { -// props: { -// name?: string; -// size?: number; +// --- (line: 10) skipped --- // } // // @@ -139,9 +122,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { +// --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } @@ -156,9 +137,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { + // --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } @@ -199,9 +178,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { +// --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } @@ -216,9 +193,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { + // --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props } // } diff --git a/tests/baselines/reference/tsxFindAllReferences5.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences5.baseline.jsonc index 8f17789f5b6be..8d1733c54a6be 100644 --- a/tests/baselines/reference/tsxFindAllReferences5.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences5.baseline.jsonc @@ -1,13 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -20,14 +13,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number + // --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -110,14 +96,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -130,14 +109,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number + // --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -220,15 +192,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number -// propString: string +// --- (line: 9) skipped --- // optional?: boolean // } // declare function Opt(attributes: OptionPropBag): JSX.Element; @@ -242,14 +206,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -262,14 +219,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number + // --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -352,16 +302,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number -// propString: string -// optional?: boolean +// --- (line: 10) skipped --- // } // declare function Opt(attributes: OptionPropBag): JSX.Element; // let opt = ; @@ -374,14 +315,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -394,14 +328,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number + // --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -484,17 +411,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number -// propString: string -// optional?: boolean -// } +// --- (line: 11) skipped --- // declare function Opt(attributes: OptionPropBag): JSX.Element; // let opt = ; // let opt1 = ; @@ -506,14 +423,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -526,14 +436,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number + // --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -616,18 +519,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; +// --- (line: 12) skipped --- // let opt = ; // let opt1 = ; // let opt2 = ; @@ -638,14 +530,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -658,14 +543,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number + // --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -748,19 +626,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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 = ; +// --- (line: 13) skipped --- // let opt1 = ; // let opt2 = ; // let opt3 = ; @@ -770,14 +636,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -790,14 +649,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number + // --- (line: 8) skipped --- // propString: string // optional?: boolean // } diff --git a/tests/baselines/reference/tsxFindAllReferences6.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences6.baseline.jsonc index e0ed23e4e34d8..4f2433cc44e85 100644 --- a/tests/baselines/reference/tsxFindAllReferences6.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences6.baseline.jsonc @@ -1,14 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number -// propString: string +// --- (line: 9) skipped --- // optional?: boolean // } // declare function Opt(attributes: OptionPropBag): JSX.Element; @@ -16,15 +8,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface OptionPropBag { - // propx: number - // propString: string + // --- (line: 9) skipped --- // optional?: boolean // } // declare function Opt(attributes: OptionPropBag): JSX.Element; diff --git a/tests/baselines/reference/tsxFindAllReferences7.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences7.baseline.jsonc index 94d6058f6ce0d..51a7d9464aed2 100644 --- a/tests/baselines/reference/tsxFindAllReferences7.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences7.baseline.jsonc @@ -1,9 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } +// --- (line: 4) skipped --- // interface ElementAttributesProperty { props; } // } // interface OptionPropBag { @@ -19,10 +16,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } + // --- (line: 4) skipped --- // interface ElementAttributesProperty { props; } // } // interface OptionPropBag { @@ -30,11 +24,7 @@ // propString: string // optional?: boolean // } - // declare function Opt(attributes: OptionPropBag): JSX.Element; - // let opt = ; - // let opt1 = ; - // let opt2 = ; - // let opt3 = ; + // --- (line: 12) skipped --- // === Details === [ diff --git a/tests/baselines/reference/tsxFindAllReferences8.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences8.baseline.jsonc index 369db6d233a99..3ce6da5942263 100644 --- a/tests/baselines/reference/tsxFindAllReferences8.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences8.baseline.jsonc @@ -1,18 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -28,19 +16,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -48,11 +24,7 @@ // 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: 21) skipped --- // === Details === [ @@ -154,19 +126,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -182,19 +142,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -202,11 +150,7 @@ // 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: 21) skipped --- // === Details === [ @@ -308,19 +252,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -336,19 +268,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -357,10 +277,7 @@ // declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; // let opt = ; // let opt = ; - // let opt = {}} />; - // let opt = {}} ignore-prop />; - // let opt = ; - // let opt = ; + // --- (line: 22) skipped --- // === Details === [ @@ -462,19 +379,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -490,19 +395,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -511,10 +404,7 @@ // declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; // let opt = ; // let opt = ; - // let opt = {}} />; - // let opt = {}} ignore-prop />; - // let opt = ; - // let opt = ; + // --- (line: 22) skipped --- // === Details === [ @@ -616,19 +506,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -644,19 +522,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -666,9 +532,7 @@ // let opt = ; // let opt = ; // let opt = {}} />; - // let opt = {}} ignore-prop />; - // let opt = ; - // let opt = ; + // --- (line: 23) skipped --- // === Details === [ @@ -770,19 +634,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -798,19 +650,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -820,9 +660,7 @@ // let opt = ; // let opt = ; // let opt = {}} />; - // let opt = {}} ignore-prop />; - // let opt = ; - // let opt = ; + // --- (line: 23) skipped --- // === Details === [ @@ -924,22 +762,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (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; @@ -954,19 +777,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -982,19 +793,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1108,23 +907,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; +// --- (line: 17) skipped --- // declare function MainButton(linkProps: LinkProps): JSX.Element; // declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; // let opt = ; @@ -1138,19 +921,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1166,19 +937,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1292,24 +1051,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; +// --- (line: 18) skipped --- // declare function MainButton(props: ButtonProps | LinkProps): JSX.Element; // let opt = ; // let opt = ; @@ -1322,19 +1064,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1350,19 +1080,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1476,25 +1194,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; +// --- (line: 19) skipped --- // let opt = ; // let opt = ; // let opt = {}} />; @@ -1506,19 +1206,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1534,19 +1222,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1660,26 +1336,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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 = ; +// --- (line: 20) skipped --- // let opt = ; // let opt = {}} />; // let opt = {}} ignore-prop />; @@ -1690,19 +1347,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1718,19 +1363,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1844,27 +1477,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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 = ; +// --- (line: 21) skipped --- // let opt = {}} />; // let opt = {}} ignore-prop />; // let opt = ; @@ -1874,19 +1487,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -1902,19 +1503,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // 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; - // } + // --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } diff --git a/tests/baselines/reference/tsxFindAllReferences9.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferences9.baseline.jsonc index 43b1c36a04023..171bc42e6bd7c 100644 --- a/tests/baselines/reference/tsxFindAllReferences9.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferences9.baseline.jsonc @@ -1,16 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface ClickableProps { -// children?: string; -// className?: string; -// } -// interface ButtonProps extends ClickableProps { +// --- (line: 11) skipped --- // onClick(event?: React.MouseEvent): void; // } // interface LinkProps extends ClickableProps { @@ -29,17 +19,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // interface ClickableProps { - // children?: string; - // className?: string; - // } - // interface ButtonProps extends ClickableProps { + // --- (line: 11) skipped --- // onClick(event?: React.MouseEvent): void; // } // interface LinkProps extends ClickableProps { @@ -47,14 +27,7 @@ // } // 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 = ; + // --- (line: 19) skipped --- // === Details === [ diff --git a/tests/baselines/reference/tsxFindAllReferencesUnionElementType1.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferencesUnionElementType1.baseline.jsonc index 33eed955833cf..15fdb7cc7b340 100644 --- a/tests/baselines/reference/tsxFindAllReferencesUnionElementType1.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferencesUnionElementType1.baseline.jsonc @@ -1,14 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// function SFC1(prop: { x: number }) { -// return
hello
; -// }; +// --- (line: 9) skipped --- // function SFC2(prop: { x: boolean }) { // return

World

; // } @@ -17,15 +9,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // function SFC1(prop: { x: number }) { - // return
hello
; - // }; + // --- (line: 9) skipped --- // function SFC2(prop: { x: boolean }) { // return

World

; // } @@ -264,15 +248,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// function SFC1(prop: { x: number }) { -// return
hello
; -// }; +// --- (line: 9) skipped --- // function SFC2(prop: { x: boolean }) { // return

World

; // } @@ -281,15 +257,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // function SFC1(prop: { x: number }) { - // return
hello
; - // }; + // --- (line: 9) skipped --- // function SFC2(prop: { x: boolean }) { // return

World

; // } @@ -528,16 +496,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// function SFC1(prop: { x: number }) { -// return
hello
; -// }; -// function SFC2(prop: { x: boolean }) { +// --- (line: 10) skipped --- // return

World

; // } // var SFCComp = SFC1 || SFC2; @@ -547,15 +506,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// function SFC1(prop: { x: number }) { -// return
hello
; -// }; +// --- (line: 9) skipped --- // function SFC2(prop: { x: boolean }) { // return

World

; // } @@ -564,15 +515,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // declare module JSX { - // interface Element { } - // interface IntrinsicElements { - // } - // interface ElementAttributesProperty { props; } - // } - // function SFC1(prop: { x: number }) { - // return
hello
; - // }; + // --- (line: 9) skipped --- // function SFC2(prop: { x: boolean }) { // return

World

; // } diff --git a/tests/baselines/reference/tsxFindAllReferencesUnionElementType2.baseline.jsonc b/tests/baselines/reference/tsxFindAllReferencesUnionElementType2.baseline.jsonc index 3f23f5b99c69a..f8f48c012f4a0 100644 --- a/tests/baselines/reference/tsxFindAllReferencesUnionElementType2.baseline.jsonc +++ b/tests/baselines/reference/tsxFindAllReferencesUnionElementType2.baseline.jsonc @@ -1,13 +1,6 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// class RC1 extends React.Component<{}, {}> { -// render() { -// return null; -// } -// } -// class RC2 extends React.Component<{}, {}> { -// render() { -// return null; +// --- (line: 8) skipped --- // } // private method() { } // } @@ -16,14 +9,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // class RC1 extends React.Component<{}, {}> { - // render() { - // return null; - // } - // } - // class RC2 extends React.Component<{}, {}> { - // render() { - // return null; + // --- (line: 8) skipped --- // } // private method() { } // } @@ -78,14 +64,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// class RC1 extends React.Component<{}, {}> { -// render() { -// return null; -// } -// } -// class RC2 extends React.Component<{}, {}> { -// render() { -// return null; +// --- (line: 8) skipped --- // } // private method() { } // } @@ -94,14 +73,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // class RC1 extends React.Component<{}, {}> { - // render() { - // return null; - // } - // } - // class RC2 extends React.Component<{}, {}> { - // render() { - // return null; + // --- (line: 8) skipped --- // } // private method() { } // } @@ -156,15 +128,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// class RC1 extends React.Component<{}, {}> { -// render() { -// return null; -// } -// } -// class RC2 extends React.Component<{}, {}> { -// render() { -// return null; -// } +// --- (line: 9) skipped --- // private method() { } // } // var RCComp = RC1 || RC2; @@ -174,14 +138,7 @@ // === findAllReferences === // === /tests/cases/fourslash/file.tsx === -// class RC1 extends React.Component<{}, {}> { -// render() { -// return null; -// } -// } -// class RC2 extends React.Component<{}, {}> { -// render() { -// return null; +// --- (line: 8) skipped --- // } // private method() { } // } @@ -190,14 +147,7 @@ // === Definitions === // === /tests/cases/fourslash/file.tsx === - // class RC1 extends React.Component<{}, {}> { - // render() { - // return null; - // } - // } - // class RC2 extends React.Component<{}, {}> { - // render() { - // return null; + // --- (line: 8) skipped --- // } // private method() { } // } diff --git a/tests/baselines/reference/tsxGoToDefinitionClasses.baseline.jsonc b/tests/baselines/reference/tsxGoToDefinitionClasses.baseline.jsonc index e62985ea95c19..502bbe7f8fded 100644 --- a/tests/baselines/reference/tsxGoToDefinitionClasses.baseline.jsonc +++ b/tests/baselines/reference/tsxGoToDefinitionClasses.baseline.jsonc @@ -31,10 +31,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { } -// interface ElementAttributesProperty { props; } +// --- (line: 4) skipped --- // } // class MyClass { // props: { diff --git a/tests/baselines/reference/tsxGoToDefinitionIntrinsics.baseline.jsonc b/tests/baselines/reference/tsxGoToDefinitionIntrinsics.baseline.jsonc index f339adf34b40f..4e62362a9c1e0 100644 --- a/tests/baselines/reference/tsxGoToDefinitionIntrinsics.baseline.jsonc +++ b/tests/baselines/reference/tsxGoToDefinitionIntrinsics.baseline.jsonc @@ -31,10 +31,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// div: { +// --- (line: 4) skipped --- // name?: string; // isOpen?: boolean; // }; diff --git a/tests/baselines/reference/tsxGoToDefinitionStatelessFunction1.baseline.jsonc b/tests/baselines/reference/tsxGoToDefinitionStatelessFunction1.baseline.jsonc index f42f24bf4a1b2..1bf4f4f5aa985 100644 --- a/tests/baselines/reference/tsxGoToDefinitionStatelessFunction1.baseline.jsonc +++ b/tests/baselines/reference/tsxGoToDefinitionStatelessFunction1.baseline.jsonc @@ -1,13 +1,6 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: "hell" // optional?: boolean // } @@ -34,14 +27,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: "hell" // optional?: boolean // } @@ -68,14 +54,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: "hell" // optional?: boolean // } @@ -102,14 +81,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: "hell" // optional?: boolean // } @@ -136,10 +108,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } +// --- (line: 4) skipped --- // interface ElementAttributesProperty { props; } // } // interface OptionPropBag { @@ -169,12 +138,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } +// --- (line: 6) skipped --- // interface OptionPropBag { // propx: number // propString: "hell" diff --git a/tests/baselines/reference/tsxGoToDefinitionStatelessFunction2.baseline.jsonc b/tests/baselines/reference/tsxGoToDefinitionStatelessFunction2.baseline.jsonc index 78d2f0e3239e7..4d6334685cadc 100644 --- a/tests/baselines/reference/tsxGoToDefinitionStatelessFunction2.baseline.jsonc +++ b/tests/baselines/reference/tsxGoToDefinitionStatelessFunction2.baseline.jsonc @@ -1,18 +1,6 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -43,19 +31,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -86,19 +62,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -129,19 +93,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -172,20 +124,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// 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 { +// --- (line: 14) skipped --- // goTo: string; // } // declare function MainButton(buttonProps: ButtonProps): JSX.Element; @@ -215,19 +154,7 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } diff --git a/tests/baselines/reference/tsxGoToDefinitionUnionElementType1.baseline.jsonc b/tests/baselines/reference/tsxGoToDefinitionUnionElementType1.baseline.jsonc index ee3fbaecd3273..a6453bc407c0d 100644 --- a/tests/baselines/reference/tsxGoToDefinitionUnionElementType1.baseline.jsonc +++ b/tests/baselines/reference/tsxGoToDefinitionUnionElementType1.baseline.jsonc @@ -1,8 +1,6 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { +// --- (line: 3) skipped --- // } // interface ElementAttributesProperty { props; } // } diff --git a/tests/baselines/reference/tsxGoToDefinitionUnionElementType2.baseline.jsonc b/tests/baselines/reference/tsxGoToDefinitionUnionElementType2.baseline.jsonc index 4bb0b5431e014..56bf5025acc43 100644 --- a/tests/baselines/reference/tsxGoToDefinitionUnionElementType2.baseline.jsonc +++ b/tests/baselines/reference/tsxGoToDefinitionUnionElementType2.baseline.jsonc @@ -1,13 +1,6 @@ // === goToDefinition === // === /tests/cases/fourslash/file.tsx === -// class RC1 extends React.Component<{}, {}> { -// render() { -// return null; -// } -// } -// class RC2 extends React.Component<{}, {}> { -// render() { -// return null; +// --- (line: 8) skipped --- // } // private method() { } // } diff --git a/tests/baselines/reference/tsxRename3.baseline.jsonc b/tests/baselines/reference/tsxRename3.baseline.jsonc index 4edc6faf7a25f..a21b5a46284ee 100644 --- a/tests/baselines/reference/tsxRename3.baseline.jsonc +++ b/tests/baselines/reference/tsxRename3.baseline.jsonc @@ -1,10 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } +// --- (line: 5) skipped --- // } // class MyClass { // props: { @@ -19,11 +15,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } +// --- (line: 5) skipped --- // } // class MyClass { // props: { diff --git a/tests/baselines/reference/tsxRename4.baseline.jsonc b/tests/baselines/reference/tsxRename4.baseline.jsonc index d9a9458ee0c19..f3c0d3fead255 100644 --- a/tests/baselines/reference/tsxRename4.baseline.jsonc +++ b/tests/baselines/reference/tsxRename4.baseline.jsonc @@ -1,8 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element {} -// interface IntrinsicElements { +// --- (line: 3) skipped --- // div: {}; // } // } @@ -17,9 +15,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element {} -// interface IntrinsicElements { +// --- (line: 3) skipped --- // div: {}; // } // } @@ -34,9 +30,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element {} -// interface IntrinsicElements { +// --- (line: 3) skipped --- // div: {}; // } // } @@ -51,9 +45,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element {} -// interface IntrinsicElements { +// --- (line: 3) skipped --- // div: {}; // } // } diff --git a/tests/baselines/reference/tsxRename5.baseline.jsonc b/tests/baselines/reference/tsxRename5.baseline.jsonc index 980e18ba88d7c..09fba77dce2b7 100644 --- a/tests/baselines/reference/tsxRename5.baseline.jsonc +++ b/tests/baselines/reference/tsxRename5.baseline.jsonc @@ -1,14 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } -// } -// class MyClass { -// props: { -// name?: string; +// --- (line: 9) skipped --- // size?: number; // } // @@ -19,15 +11,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props } -// } -// class MyClass { -// props: { -// name?: string; +// --- (line: 9) skipped --- // size?: number; // } // diff --git a/tests/baselines/reference/tsxRename6.baseline.jsonc b/tests/baselines/reference/tsxRename6.baseline.jsonc index 6c8b2a56a2d7b..ab4de810036fa 100644 --- a/tests/baselines/reference/tsxRename6.baseline.jsonc +++ b/tests/baselines/reference/tsxRename6.baseline.jsonc @@ -1,13 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -22,14 +15,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -44,14 +30,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -66,14 +45,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -88,14 +60,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } @@ -110,14 +75,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface OptionPropBag { -// propx: number +// --- (line: 8) skipped --- // propString: string // optional?: boolean // } diff --git a/tests/baselines/reference/tsxRename7.baseline.jsonc b/tests/baselines/reference/tsxRename7.baseline.jsonc index 35c1925bf6fc7..85745a56ccedc 100644 --- a/tests/baselines/reference/tsxRename7.baseline.jsonc +++ b/tests/baselines/reference/tsxRename7.baseline.jsonc @@ -1,9 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } +// --- (line: 4) skipped --- // interface ElementAttributesProperty { props; } // } // interface OptionPropBag { @@ -21,10 +18,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } +// --- (line: 4) skipped --- // interface ElementAttributesProperty { props; } // } // interface OptionPropBag { @@ -42,10 +36,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } +// --- (line: 4) skipped --- // interface ElementAttributesProperty { props; } // } // interface OptionPropBag { diff --git a/tests/baselines/reference/tsxRename8.baseline.jsonc b/tests/baselines/reference/tsxRename8.baseline.jsonc index 1b581e1b33e8a..e98d684380888 100644 --- a/tests/baselines/reference/tsxRename8.baseline.jsonc +++ b/tests/baselines/reference/tsxRename8.baseline.jsonc @@ -1,17 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; +// --- (line: 12) skipped --- // let opt = ; // let opt1 = ; // let opt2 = ; diff --git a/tests/baselines/reference/tsxRename9.baseline.jsonc b/tests/baselines/reference/tsxRename9.baseline.jsonc index 0b0e12bb205e1..0a37022b0b093 100644 --- a/tests/baselines/reference/tsxRename9.baseline.jsonc +++ b/tests/baselines/reference/tsxRename9.baseline.jsonc @@ -1,13 +1,6 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface ClickableProps { -// children?: string; +// --- (line: 8) skipped --- // className?: string; // } // interface ButtonProps extends ClickableProps { @@ -30,14 +23,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface ClickableProps { -// children?: string; +// --- (line: 8) skipped --- // className?: string; // } // interface ButtonProps extends ClickableProps { @@ -60,14 +46,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface ClickableProps { -// children?: string; +// --- (line: 8) skipped --- // className?: string; // } // interface ButtonProps extends ClickableProps { @@ -90,17 +69,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface ClickableProps { -// children?: string; -// className?: string; -// } -// interface ButtonProps extends ClickableProps { +// --- (line: 11) skipped --- // onClick(event?: React.MouseEvent): void; // } // interface LinkProps extends ClickableProps { @@ -120,17 +89,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// declare module JSX { -// interface Element { } -// interface IntrinsicElements { -// } -// interface ElementAttributesProperty { props; } -// } -// interface ClickableProps { -// children?: string; -// className?: string; -// } -// interface ButtonProps extends ClickableProps { +// --- (line: 11) skipped --- // onClick(event?: React.MouseEvent): void; // } // interface LinkProps extends ClickableProps { @@ -150,19 +109,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -180,19 +127,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -210,19 +145,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -240,19 +163,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -270,19 +181,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -300,19 +199,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -330,19 +217,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -360,19 +235,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -390,19 +253,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; -// } +// --- (line: 13) skipped --- // interface LinkProps extends ClickableProps { // goTo: string; // } @@ -420,25 +271,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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; +// --- (line: 19) skipped --- // let opt = ; // let opt = ; // let opt = {}} />; @@ -450,27 +283,7 @@ // === findRenameLocations === // === /tests/cases/fourslash/file.tsx === -// 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 = ; +// --- (line: 21) skipped --- // let opt = {}} />; // let opt = {}} ignore-prop />; // let opt = ;