Explicitly sort keys

Needed for node 10 compatibility
This commit is contained in:
Nathan Shively-Sanders
2021-09-21 15:25:27 -07:00
parent d6e798ed3c
commit 1d1c58a4e3
39 changed files with 1178 additions and 1179 deletions
+3 -4
View File
@@ -1167,12 +1167,11 @@ namespace FourSlash {
this.goToMarker(markerName);
const marker = this.getMarkerByName(markerName);
const references = this.languageService.findReferences(marker.fileName, marker.position);
const refsByFile = references
? ts.group(ts.sort(ts.flatMap(references, r => r.references), (a, b) => a.textSpan.start - b.textSpan.start), ref => ref.fileName)
: ts.emptyArray;
const refsByFile = ts.arrayToMultiMap(ts.sort(ts.flatMap(references, r => r.references), (a, b) => a.textSpan.start - b.textSpan.start), ref => ref.fileName)
const refsSorted = ts.sort(ts.arrayFrom(refsByFile.keys())).map(k => refsByFile.get(k)!)
// Write input files
const baselineContent = this.getBaselineContentForGroupedReferences(refsByFile, markerName);
const baselineContent = this.getBaselineContentForGroupedReferences(refsSorted, markerName);
// Write response JSON
return baselineContent + JSON.stringify(references, undefined, 2);
@@ -2,15 +2,15 @@
// import [|X|]/*FIND ALL REFS*/ from "x";
// export function a(x: [|X|]): void;
// === /node_modules/b/index.d.ts ===
// import [|X|] from "x";
// export const b: [|X|];
// === /node_modules/a/node_modules/x/index.d.ts ===
// export default class [|X|] {
// private x: number;
// }
// === /node_modules/b/index.d.ts ===
// import [|X|] from "x";
// export const b: [|X|];
[
{
"definition": {
@@ -238,15 +238,15 @@
// import [|X|] from "x";
// export function a(x: [|X|]): void;
// === /node_modules/b/index.d.ts ===
// import [|X|] from "x";
// export const b: [|X|];
// === /node_modules/a/node_modules/x/index.d.ts ===
// export default class /*FIND ALL REFS*/[|X|] {
// private x: number;
// }
// === /node_modules/b/index.d.ts ===
// import [|X|] from "x";
// export const b: [|X|];
[
{
"definition": {
@@ -470,10 +470,6 @@
}
]
// === /node_modules/b/index.d.ts ===
// import [|X|]/*FIND ALL REFS*/ from "x";
// export const b: [|X|];
// === /node_modules/a/index.d.ts ===
// import [|X|] from "x";
// export function a(x: [|X|]): void;
@@ -483,6 +479,10 @@
// private x: number;
// }
// === /node_modules/b/index.d.ts ===
// import [|X|]/*FIND ALL REFS*/ from "x";
// export const b: [|X|];
[
{
"definition": {
@@ -1,9 +1,9 @@
// === /Y.js ===
// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X");
// === /X.js ===
// module.exports = { [|x|]: 1 };
// === /Y.js ===
// const { /*FIND ALL REFS*/[|x|]: { y } } = require("./X");
[
{
"definition": {
@@ -16,11 +16,6 @@
// import { C } from "./a";
// new [|C|]();
// === /tests/cases/fourslash/d.ts ===
// import * as a from "./a";
// new a.[|C|]();
// class d extends a.C { constructor() { [|super|](); }
// === /tests/cases/fourslash/c.ts ===
// import { C } from "./a";
// class D extends C {
@@ -34,6 +29,11 @@
// constructor() { super(); }
// }
// === /tests/cases/fourslash/d.ts ===
// import * as a from "./a";
// new a.[|C|]();
// class d extends a.C { constructor() { [|super|](); }
[
{
"definition": {
@@ -311,11 +311,6 @@
// import { C } from "./a";
// new [|C|]();
// === /tests/cases/fourslash/d.ts ===
// import * as a from "./a";
// new a.[|C|]();
// class d extends a.C { constructor() { [|super|](); }
// === /tests/cases/fourslash/c.ts ===
// import { C } from "./a";
// class D extends C {
@@ -329,6 +324,11 @@
// constructor() { super(); }
// }
// === /tests/cases/fourslash/d.ts ===
// import * as a from "./a";
// new a.[|C|]();
// class d extends a.C { constructor() { [|super|](); }
[
{
"definition": {
@@ -606,11 +606,6 @@
// import { C } from "./a";
// new [|C|]();
// === /tests/cases/fourslash/d.ts ===
// import * as a from "./a";
// new a.[|C|]();
// class d extends a.C { constructor() { [|super|](); }
// === /tests/cases/fourslash/c.ts ===
// import { C } from "./a";
// class D extends C {
@@ -624,6 +619,11 @@
// constructor() { super(); }
// }
// === /tests/cases/fourslash/d.ts ===
// import * as a from "./a";
// new a.[|C|]();
// class d extends a.C { constructor() { [|super|](); }
[
{
"definition": {
@@ -1,11 +1,11 @@
// === /c.js ===
// require([|"./b"|]);
// require("globals");
// === /a.ts ===
// /// <reference path="[|b.ts|]/*FIND ALL REFS*/" />
// /// <reference types="globals" />
// === /c.js ===
// require([|"./b"|]);
// require("globals");
[
{
"definition": {
@@ -48,14 +48,14 @@
}
]
// === /c.js ===
// require("./b");
// require([|"globals"|]);
// === /a.ts ===
// /// <reference path="b.ts" />
// /// <reference types="[|globals|]/*FIND ALL REFS*/" />
// === /c.js ===
// require("./b");
// require([|"globals"|]);
[
{
"definition": {
@@ -1,12 +1,12 @@
// === /b.ts ===
// import [|A|] = require("./a");
// [|A|];
// === /a.ts ===
// export = class /*FIND ALL REFS*/[|A|] {
// m() { [|A|]; }
// };
// === /b.ts ===
// import [|A|] = require("./a");
// [|A|];
[
{
"definition": {
@@ -196,15 +196,15 @@
}
]
// === /b.ts ===
// import [|A|] = require("./a");
// [|A|];
// === /a.ts ===
// export = class [|A|] {
// m() { /*FIND ALL REFS*/[|A|]; }
// };
// === /b.ts ===
// import [|A|] = require("./a");
// [|A|];
[
{
"definition": {
@@ -394,15 +394,15 @@
}
]
// === /a.ts ===
// export = class [|A|] {
// m() { [|A|]; }
// };
// === /b.ts ===
// import /*FIND ALL REFS*/[|A|] = require("./a");
// [|A|];
// === /a.ts ===
// export = class [|A|] {
// m() { [|A|]; }
// };
[
{
"definition": {
@@ -592,15 +592,15 @@
}
]
// === /b.ts ===
// import [|A|] = require("./a");
// /*FIND ALL REFS*/[|A|];
// === /a.ts ===
// export = class [|A|] {
// m() { [|A|]; }
// };
// === /b.ts ===
// import [|A|] = require("./a");
// /*FIND ALL REFS*/[|A|];
[
{
"definition": {
@@ -1,10 +1,10 @@
// === /a.js ===
// module.exports = class /*FIND ALL REFS*/[|A|] {};
// === /b.js ===
// import [|A|] = require("./a");
// [|A|];
// === /a.js ===
// module.exports = class /*FIND ALL REFS*/[|A|] {};
[
{
"definition": {
@@ -185,13 +185,13 @@
}
]
// === /a.js ===
// module.exports = class [|A|] {};
// === /b.js ===
// import /*FIND ALL REFS*/[|A|] = require("./a");
// [|A|];
// === /a.js ===
// module.exports = class [|A|] {};
[
{
"definition": {
@@ -372,13 +372,13 @@
}
]
// === /a.js ===
// module.exports = class [|A|] {};
// === /b.js ===
// import [|A|] = require("./a");
// /*FIND ALL REFS*/[|A|];
// === /a.js ===
// module.exports = class [|A|] {};
[
{
"definition": {
@@ -1,11 +1,11 @@
// === /b.js ===
// const { [|f|] } = require('./a')
// /*FIND ALL REFS*/[|f|]
// === /a.js ===
// function [|f|]() { }
// export { [|f|] }
// === /b.js ===
// const { [|f|] } = require('./a')
// /*FIND ALL REFS*/[|f|]
[
{
"definition": {
@@ -1,11 +1,11 @@
// === /b.js ===
// const { [|f|] } = require('./a')
// /*FIND ALL REFS*/[|f|]
// === /a.js ===
// function f() { }
// module.exports.[|f|] = f
// === /b.js ===
// const { [|f|] } = require('./a')
// /*FIND ALL REFS*/[|f|]
[
{
"definition": {
@@ -1,11 +1,11 @@
// === /b.js ===
// const { [|f|] } = require('./a')
// /*FIND ALL REFS*/[|f|]
// === /a.js ===
// function [|f|]() { }
// module.exports = { [|f|] }
// === /b.js ===
// const { [|f|] } = require('./a')
// /*FIND ALL REFS*/[|f|]
[
{
"definition": {
@@ -1,9 +1,9 @@
// === /b.ts ===
// import [|a|], * as ns from "./a";
// === /a.ts ===
// export default function /*FIND ALL REFS*/[|a|]() {}
// === /b.ts ===
// import [|a|], * as ns from "./a";
[
{
"definition": {
@@ -171,12 +171,12 @@
}
]
// === /b.ts ===
// import /*FIND ALL REFS*/[|a|], * as ns from "./a";
// === /a.ts ===
// export default function [|a|]() {}
// === /b.ts ===
// import /*FIND ALL REFS*/[|a|], * as ns from "./a";
[
{
"definition": {
@@ -1,9 +1,9 @@
// === /c.ts ===
// A.[|f|]();
// === /b.ts ===
// import { [|f|] } from "a";
// === /c.ts ===
// A.[|f|]();
// === /node_modules/a/index.d.ts ===
// export function /*FIND ALL REFS*/[|f|](): void;
// export as namespace A;
@@ -184,12 +184,12 @@
}
]
// === /c.ts ===
// A.[|f|]();
// === /b.ts ===
// import { /*FIND ALL REFS*/[|f|] } from "a";
// === /c.ts ===
// A.[|f|]();
// === /node_modules/a/index.d.ts ===
// export function [|f|](): void;
// export as namespace A;
@@ -370,12 +370,12 @@
}
]
// === /c.ts ===
// A./*FIND ALL REFS*/[|f|]();
// === /b.ts ===
// import { [|f|] } from "a";
// === /c.ts ===
// A./*FIND ALL REFS*/[|f|]();
// === /node_modules/a/index.d.ts ===
// export function [|f|](): void;
// export as namespace A;
@@ -1,10 +1,10 @@
// === /b.ts ===
// import { [|D|] } from "./a";
// === /a.ts ===
// class C {}
// export const /*FIND ALL REFS*/[|D|] = C;
// === /b.ts ===
// import { [|D|] } from "./a";
[
{
"definition": {
@@ -172,13 +172,13 @@
}
]
// === /b.ts ===
// import { /*FIND ALL REFS*/[|D|] } from "./a";
// === /a.ts ===
// class C {}
// export const [|D|] = C;
// === /b.ts ===
// import { /*FIND ALL REFS*/[|D|] } from "./a";
[
{
"definition": {
@@ -1,10 +1,10 @@
// === /tests/cases/fourslash/a.ts ===
// export default function /*FIND ALL REFS*/[|f|]() {}
// === /tests/cases/fourslash/b.ts ===
// import [|g|] from "./a";
// [|g|]();
// === /tests/cases/fourslash/a.ts ===
// export default function /*FIND ALL REFS*/[|f|]() {}
[
{
"definition": {
@@ -360,14 +360,14 @@
}
]
// === /b.ts ===
// import [|a|] from "./a";
// [|a|];
// === /a.ts ===
// const a = 0;
// export /*FIND ALL REFS*/[|default|] a;
// === /b.ts ===
// import [|a|] from "./a";
// [|a|];
[
{
"definition": {
@@ -568,14 +568,14 @@
}
]
// === /a.ts ===
// const a = 0;
// export [|default|] a;
// === /b.ts ===
// import /*FIND ALL REFS*/[|a|] from "./a";
// [|a|];
// === /a.ts ===
// const a = 0;
// export [|default|] a;
[
{
"definition": {
@@ -776,14 +776,14 @@
}
]
// === /b.ts ===
// import [|a|] from "./a";
// /*FIND ALL REFS*/[|a|];
// === /a.ts ===
// const a = 0;
// export [|default|] a;
// === /b.ts ===
// import [|a|] from "./a";
// /*FIND ALL REFS*/[|a|];
[
{
"definition": {
@@ -115,12 +115,12 @@
}
]
// === /b.ts ===
// import /*FIND ALL REFS*/[|f|] from "./a";
// === /a.ts ===
// export [|default|] function() {}
// === /b.ts ===
// import /*FIND ALL REFS*/[|f|] from "./a";
[
{
"definition": {
@@ -1,15 +1,15 @@
// === /app.ts ===
// export function [|he/*FIND ALL REFS*/llo|]() {};
// === /indirect-use.ts ===
// import("./re-export").then(mod => mod.services.app.[|hello|]());
// === /direct-use.ts ===
// async function main() {
// const mod = await import("./app")
// mod.[|hello|]();
// }
// === /indirect-use.ts ===
// import("./re-export").then(mod => mod.services.app.[|hello|]());
[
{
"definition": {
@@ -178,16 +178,16 @@
}
]
// === /j.json ===
// [|{ "x": 0 }|]
// === /a.ts ===
// import j = require("/*FIND ALL REFS*/[|./j.json|]");
// j;
// === /b.js ===
// const j = require("[|./j.json|]");
// j;
// === /a.ts ===
// import j = require("/*FIND ALL REFS*/[|./j.json|]");
// j;
// === /j.json ===
// [|{ "x": 0 }|]
[
{
@@ -256,16 +256,16 @@
}
]
// === /j.json ===
// [|{ "x": 0 }|]
// === /a.ts ===
// import j = require("[|./j.json|]");
// j;
// === /b.js ===
// const j = require("/*FIND ALL REFS*/[|./j.json|]");
// j;
// === /a.ts ===
// import j = require("[|./j.json|]");
// j;
// === /j.json ===
// [|{ "x": 0 }|]
[
{
@@ -1,11 +1,11 @@
// === /tests/cases/fourslash/f.ts ===
// export { [|foo|] as [|foo|] }
// function /*FIND ALL REFS*/[|foo|](a: number, b: number) { }
// === /tests/cases/fourslash/b.ts ===
// import x = require("./f");
// x.[|foo|](1, 2);
// === /tests/cases/fourslash/f.ts ===
// export { [|foo|] as [|foo|] }
// function /*FIND ALL REFS*/[|foo|](a: number, b: number) { }
[
{
"definition": {
@@ -1582,16 +1582,16 @@
}
]
// === /c.ts ===
// import /*FIND ALL REFS*/[|a|] from "a";
// [|a|]();
// [|a|].x;
// === /b.ts ===
// import [|b|] from "a";
// [|b|]();
// [|b|].x;
// === /c.ts ===
// import /*FIND ALL REFS*/[|a|] from "a";
// [|a|]();
// [|a|].x;
// === /node_modules/a/index.d.ts ===
// declare function [|a|](): void;
// declare namespace [|a|] {
@@ -2006,16 +2006,16 @@
}
]
// === /b.ts ===
// import [|b|] from "a";
// [|b|]();
// [|b|].x;
// === /c.ts ===
// import [|a|] from "a";
// /*FIND ALL REFS*/[|a|]();
// [|a|].x;
// === /b.ts ===
// import [|b|] from "a";
// [|b|]();
// [|b|].x;
// === /node_modules/a/index.d.ts ===
// declare function [|a|](): void;
// declare namespace [|a|] {
@@ -2430,16 +2430,16 @@
}
]
// === /c.ts ===
// import [|a|] from "a";
// [|a|]();
// /*FIND ALL REFS*/[|a|].x;
// === /b.ts ===
// import [|b|] from "a";
// [|b|]();
// [|b|].x;
// === /c.ts ===
// import [|a|] from "a";
// [|a|]();
// /*FIND ALL REFS*/[|a|].x;
// === /node_modules/a/index.d.ts ===
// declare function [|a|](): void;
// declare namespace [|a|] {
@@ -4,6 +4,11 @@
// export default class extends A1 { }
// export { [|B|] as [|B1|] } from "./f";
// === /tests/cases/fourslash/b.ts ===
// import B, { B1 } from "./a";
// const d = new [|B|]("b");
// const d1 = new [|B1|]("b1");
// === /tests/cases/fourslash/f.ts ===
// class A {
// /*FIND ALL REFS*/[|constructor|](s: string) {}
@@ -11,11 +16,6 @@
// class B extends A { }
// export { [|A|], [|B|] };
// === /tests/cases/fourslash/b.ts ===
// import B, { B1 } from "./a";
// const d = new [|B|]("b");
// const d1 = new [|B1|]("b1");
[
{
"definition": {
@@ -1,3 +1,7 @@
// === /tests/cases/fourslash/a.ts ===
// export class /*FIND ALL REFS*/[|Class|] {
// }
// === /tests/cases/fourslash/b.ts ===
// import { [|Class|] } from "./a";
//
@@ -6,10 +10,6 @@
// === /tests/cases/fourslash/c.ts ===
// export { [|Class|] } from "./a";
// === /tests/cases/fourslash/a.ts ===
// export class /*FIND ALL REFS*/[|Class|] {
// }
[
{
"definition": {
@@ -224,6 +224,10 @@
}
]
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {
// }
// === /tests/cases/fourslash/b.ts ===
// import { /*FIND ALL REFS*/[|Class|] } from "./a";
//
@@ -232,10 +236,6 @@
// === /tests/cases/fourslash/c.ts ===
// export { [|Class|] } from "./a";
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {
// }
[
{
"definition": {
@@ -450,6 +450,10 @@
}
]
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {
// }
// === /tests/cases/fourslash/b.ts ===
// import { [|Class|] } from "./a";
//
@@ -458,10 +462,6 @@
// === /tests/cases/fourslash/c.ts ===
// export { [|Class|] } from "./a";
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {
// }
[
{
"definition": {
@@ -1,3 +1,6 @@
// === /tests/cases/fourslash/a.ts ===
// export class /*FIND ALL REFS*/[|Class|] {}
// === /tests/cases/fourslash/b.ts ===
// import { [|Class|] as [|C2|] } from "./a";
// var c = new [|C2|]();
@@ -5,9 +8,6 @@
// === /tests/cases/fourslash/c.ts ===
// export { [|Class|] as [|C3|] } from "./a";
// === /tests/cases/fourslash/a.ts ===
// export class /*FIND ALL REFS*/[|Class|] {}
[
{
"definition": {
@@ -248,6 +248,9 @@
}
]
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {}
// === /tests/cases/fourslash/b.ts ===
// import { /*FIND ALL REFS*/[|Class|] as [|C2|] } from "./a";
// var c = new [|C2|]();
@@ -255,9 +258,6 @@
// === /tests/cases/fourslash/c.ts ===
// export { [|Class|] as [|C3|] } from "./a";
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {}
[
{
"definition": {
@@ -498,6 +498,9 @@
}
]
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {}
// === /tests/cases/fourslash/b.ts ===
// import { [|Class|] as [|C2|] } from "./a";
// var c = new [|C2|]();
@@ -505,9 +508,6 @@
// === /tests/cases/fourslash/c.ts ===
// export { /*FIND ALL REFS*/[|Class|] as [|C3|] } from "./a";
// === /tests/cases/fourslash/a.ts ===
// export class [|Class|] {}
[
{
"definition": {
@@ -1918,15 +1918,15 @@
}
]
// === /b.ts ===
// import { x, [|y|] } from "./a";
// x; [|y|];
// === /a.ts ===
// var x;
// export { x };
// export { x as /*FIND ALL REFS*/[|y|] };
// === /b.ts ===
// import { x, [|y|] } from "./a";
// x; [|y|];
[
{
"definition": {
@@ -2119,15 +2119,15 @@
}
]
// === /a.ts ===
// var x;
// export { x };
// export { x as [|y|] };
// === /b.ts ===
// import { x, /*FIND ALL REFS*/[|y|] } from "./a";
// x; [|y|];
// === /a.ts ===
// var x;
// export { x };
// export { x as [|y|] };
[
{
"definition": {
@@ -2320,15 +2320,15 @@
}
]
// === /b.ts ===
// import { x, [|y|] } from "./a";
// x; /*FIND ALL REFS*/[|y|];
// === /a.ts ===
// var x;
// export { x };
// export { x as [|y|] };
// === /b.ts ===
// import { x, [|y|] } from "./a";
// x; /*FIND ALL REFS*/[|y|];
[
{
"definition": {
@@ -166,6 +166,9 @@
}
]
// === /b.ts ===
// export const /*FIND ALL REFS*/[|x|] = 0;
// === /c.ts ===
// export { [|x|] } from "./b";
// import { x } from "./a";
@@ -174,9 +177,6 @@
// === /d.ts ===
// import { [|x|] } from "./c";
// === /b.ts ===
// export const /*FIND ALL REFS*/[|x|] = 0;
[
{
"definition": {
@@ -418,6 +418,9 @@
}
]
// === /b.ts ===
// export const [|x|] = 0;
// === /c.ts ===
// export { /*FIND ALL REFS*/[|x|] } from "./b";
// import { x } from "./a";
@@ -426,9 +429,6 @@
// === /d.ts ===
// import { [|x|] } from "./c";
// === /b.ts ===
// export const [|x|] = 0;
[
{
"definition": {
@@ -1006,16 +1006,16 @@
}
]
// === /d.ts ===
// import { /*FIND ALL REFS*/[|x|] } from "./c";
// === /b.ts ===
// export const [|x|] = 0;
// === /c.ts ===
// export { [|x|] } from "./b";
// import { x } from "./a";
// x;
// === /b.ts ===
// export const [|x|] = 0;
// === /d.ts ===
// import { /*FIND ALL REFS*/[|x|] } from "./c";
[
{
@@ -1,9 +1,9 @@
// === /c.ts ===
// import { [|foo|] } from "./b";
// === /a.ts ===
// export function /*FIND ALL REFS*/[|foo|](): void {}
// === /c.ts ===
// import { [|foo|] } from "./b";
[
{
"definition": {
@@ -171,12 +171,12 @@
}
]
// === /c.ts ===
// import { /*FIND ALL REFS*/[|foo|] } from "./b";
// === /a.ts ===
// export function [|foo|](): void {}
// === /c.ts ===
// import { /*FIND ALL REFS*/[|foo|] } from "./b";
[
{
"definition": {
@@ -1,10 +1,10 @@
// === /leafModule.ts ===
// export const /*FIND ALL REFS*/[|hello|] = () => 'Hello';
// === /importing.ts ===
// import { Leaf } from './exporting';
// Leaf.[|hello|]()
// === /leafModule.ts ===
// export const /*FIND ALL REFS*/[|hello|] = () => 'Hello';
[
{
"definition": {
@@ -95,13 +95,13 @@
}
]
// === /leafModule.ts ===
// export const [|hello|] = () => 'Hello';
// === /importing.ts ===
// import { Leaf } from './exporting';
// Leaf./*FIND ALL REFS*/[|hello|]()
// === /leafModule.ts ===
// export const [|hello|] = () => 'Hello';
[
{
"definition": {
@@ -192,13 +192,13 @@
}
]
// === /exporting.ts ===
// export * as /*FIND ALL REFS*/[|Leaf|] from './leafModule';
// === /importing.ts ===
// import { [|Leaf|] } from './exporting';
// [|Leaf|].hello()
// === /exporting.ts ===
// export * as /*FIND ALL REFS*/[|Leaf|] from './leafModule';
[
{
"definition": {
@@ -303,13 +303,13 @@
}
]
// === /exporting.ts ===
// export * as [|Leaf|] from './leafModule';
// === /importing.ts ===
// import { /*FIND ALL REFS*/[|Leaf|] } from './exporting';
// [|Leaf|].hello()
// === /exporting.ts ===
// export * as [|Leaf|] from './leafModule';
[
{
"definition": {
@@ -414,13 +414,13 @@
}
]
// === /exporting.ts ===
// export * as [|Leaf|] from './leafModule';
// === /importing.ts ===
// import { [|Leaf|] } from './exporting';
// /*FIND ALL REFS*/[|Leaf|].hello()
// === /exporting.ts ===
// export * as [|Leaf|] from './leafModule';
[
{
"definition": {
File diff suppressed because it is too large Load Diff
@@ -1,9 +1,9 @@
// === /b.ts ===
// import { [|foo|] as [|oof|] } from "./a";
// === /a.ts ===
// export function /*FIND ALL REFS*/[|foo|](): void {}
// === /b.ts ===
// import { [|foo|] as [|oof|] } from "./a";
[
{
"definition": {
@@ -1,12 +1,12 @@
// === /foo/types/types.ts ===
// export type /*FIND ALL REFS*/[|Full|] = { prop: string; };
// === /app.ts ===
// import { foo } from './foo/types';
// export type fullType = foo.[|Full|];
// type namespaceImport = typeof import('./foo/types');
// type fullType2 = import('./foo/types').foo.[|Full|];
// === /foo/types/types.ts ===
// export type /*FIND ALL REFS*/[|Full|] = { prop: string; };
[
{
"definition": {
@@ -126,15 +126,15 @@
}
]
// === /foo/types/types.ts ===
// export type [|Full|] = { prop: string; };
// === /app.ts ===
// import { foo } from './foo/types';
// export type fullType = foo./*FIND ALL REFS*/[|Full|];
// type namespaceImport = typeof import('./foo/types');
// type fullType2 = import('./foo/types').foo.[|Full|];
// === /foo/types/types.ts ===
// export type [|Full|] = { prop: string; };
[
{
"definition": {
@@ -254,15 +254,15 @@
}
]
// === /foo/types/types.ts ===
// export type [|Full|] = { prop: string; };
// === /app.ts ===
// import { foo } from './foo/types';
// export type fullType = foo.[|Full|];
// type namespaceImport = typeof import('./foo/types');
// type fullType2 = import('./foo/types').foo./*FIND ALL REFS*/[|Full|];
// === /foo/types/types.ts ===
// export type [|Full|] = { prop: string; };
[
{
"definition": {
@@ -1,10 +1,10 @@
// === /a.ts ===
// export const /*FIND ALL REFS*/[|x|] = 0;
// === /b.ts ===
// import { [|x|] as [|x|] } from "./a";
// [|x|];
// === /a.ts ===
// export const /*FIND ALL REFS*/[|x|] = 0;
[
{
"definition": {
@@ -178,13 +178,13 @@
}
]
// === /a.ts ===
// export const [|x|] = 0;
// === /b.ts ===
// import { /*FIND ALL REFS*/[|x|] as [|x|] } from "./a";
// [|x|];
// === /a.ts ===
// export const [|x|] = 0;
[
{
"definition": {
@@ -1,13 +1,13 @@
// === /a.js ===
// module.exports = class /*FIND ALL REFS*/[|C|] {};
// module.exports.D = class D {};
// === /b.js ===
// /** @type {import("[|./a|]")} */
// const x = 0;
// /** @type {import("./a").D} */
// const y = 0;
// === /a.js ===
// module.exports = class /*FIND ALL REFS*/[|C|] {};
// module.exports.D = class D {};
[
{
"definition": {
@@ -1,3 +1,7 @@
// === /tests/cases/fourslash/RedditSubmission.ts ===
// export const [|SubmissionComp|] = (submission: SubmissionProps) =>
// <div style={{ fontFamily: "sans-serif" }}></div>;
// === /tests/cases/fourslash/index.tsx ===
// import { /*FIND ALL REFS*/[|SubmissionComp|] } from "./RedditSubmission"
// function displaySubreddit(subreddit: string) {
@@ -5,10 +9,6 @@
// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />);
// }
// === /tests/cases/fourslash/RedditSubmission.ts ===
// export const [|SubmissionComp|] = (submission: SubmissionProps) =>
// <div style={{ fontFamily: "sans-serif" }}></div>;
[
{
"definition": {
@@ -245,6 +245,10 @@
}
]
// === /tests/cases/fourslash/RedditSubmission.ts ===
// export const /*FIND ALL REFS*/[|SubmissionComp|] = (submission: SubmissionProps) =>
// <div style={{ fontFamily: "sans-serif" }}></div>;
// === /tests/cases/fourslash/index.tsx ===
// import { [|SubmissionComp|] } from "./RedditSubmission"
// function displaySubreddit(subreddit: string) {
@@ -252,10 +256,6 @@
// .map((value, index) => <[|SubmissionComp|] key={ index } elementPosition= { index } {...value.data} />);
// }
// === /tests/cases/fourslash/RedditSubmission.ts ===
// export const /*FIND ALL REFS*/[|SubmissionComp|] = (submission: SubmissionProps) =>
// <div style={{ fontFamily: "sans-serif" }}></div>;
[
{
"definition": {
@@ -1,10 +1,10 @@
// === /tests/cases/fourslash/m.ts ===
// export var /*FIND ALL REFS*/[|x|] = 12;
// === /tests/cases/fourslash/main.ts ===
// import { [|x|] } from "./m";
// const y = [|x|];
// === /tests/cases/fourslash/m.ts ===
// export var /*FIND ALL REFS*/[|x|] = 12;
[
{
"definition": {
@@ -165,13 +165,13 @@
}
]
// === /tests/cases/fourslash/m.ts ===
// export var [|x|] = 12;
// === /tests/cases/fourslash/main.ts ===
// import { /*FIND ALL REFS*/[|x|] } from "./m";
// const y = [|x|];
// === /tests/cases/fourslash/m.ts ===
// export var [|x|] = 12;
[
{
"definition": {
@@ -1,11 +1,11 @@
// === /lib/plugins/aws/package/compile/events/httpApi/index.js ===
// const { [|logWarning|] } = require('../../../../../../classes/Error');
// === /bin/serverless.js ===
// require('../lib/classes/Error').[|log/*FIND ALL REFS*/Warning|](`CLI triage crashed with: ${error.stack}`);
// === /lib/classes/Error.js ===
// module.exports.[|logWarning|] = message => { };
// === /bin/serverless.js ===
// require('../lib/classes/Error').[|log/*FIND ALL REFS*/Warning|](`CLI triage crashed with: ${error.stack}`);
// === /lib/plugins/aws/package/compile/events/httpApi/index.js ===
// const { [|logWarning|] } = require('../../../../../../classes/Error');
[
{
@@ -1,10 +1,10 @@
// === /tests/cases/fourslash/a.ts ===
// export var /*FIND ALL REFS*/[|a|];
// === /tests/cases/fourslash/b.ts ===
// import { [|a|] } from './a';
// export { [|a|] };
// === /tests/cases/fourslash/a.ts ===
// export var /*FIND ALL REFS*/[|a|];
[
{
"definition": {
@@ -169,13 +169,13 @@
}
]
// === /tests/cases/fourslash/a.ts ===
// export var [|a|];
// === /tests/cases/fourslash/b.ts ===
// import { /*FIND ALL REFS*/[|a|] } from './a';
// export { [|a|] };
// === /tests/cases/fourslash/a.ts ===
// export var [|a|];
[
{
"definition": {
@@ -340,13 +340,13 @@
}
]
// === /tests/cases/fourslash/a.ts ===
// export var [|a|];
// === /tests/cases/fourslash/b.ts ===
// import { [|a|] } from './a';
// export { /*FIND ALL REFS*/[|a|] };
// === /tests/cases/fourslash/a.ts ===
// export var [|a|];
[
{
"definition": {
@@ -1,9 +1,9 @@
// === /tests/cases/fourslash/b.js ===
// const [|A|] = require("./a");
// === /tests/cases/fourslash/a.js ===
// module.exports = class /*FIND ALL REFS*/[|A|] {}
// === /tests/cases/fourslash/b.js ===
// const [|A|] = require("./a");
[
{
"definition": {
@@ -1,6 +1,3 @@
// === /tests/cases/fourslash/c.ts ===
// import { [|B|] } from "./b";
// === /tests/cases/fourslash/a.ts ===
// namespace /*FIND ALL REFS*/[|A|] {
// export const x = 0;
@@ -10,6 +7,9 @@
// export import [|B|] = [|A|];
// [|B|].x;
// === /tests/cases/fourslash/c.ts ===
// import { [|B|] } from "./b";
[
{
"definition": {
@@ -249,13 +249,13 @@
}
]
// === /tests/cases/fourslash/c.ts ===
// import { [|B|] } from "./b";
// === /tests/cases/fourslash/b.ts ===
// export import /*FIND ALL REFS*/[|B|] = A;
// [|B|].x;
// === /tests/cases/fourslash/c.ts ===
// import { [|B|] } from "./b";
[
{
"definition": {
@@ -440,13 +440,13 @@
}
]
// === /tests/cases/fourslash/c.ts ===
// import { /*FIND ALL REFS*/[|B|] } from "./b";
// === /tests/cases/fourslash/b.ts ===
// export import [|B|] = A;
// [|B|].x;
// === /tests/cases/fourslash/c.ts ===
// import { /*FIND ALL REFS*/[|B|] } from "./b";
[
{
"definition": {
@@ -1,11 +1,11 @@
// === /tests/cases/fourslash/a.ts ===
// export function /*FIND ALL REFS*/[|f|]() {}
// === /tests/cases/fourslash/b.ts ===
// export { [|f|] as [|g|] } from "./a";
// import { [|f|] } from "./a";
// import { [|g|] } from "./b";
// === /tests/cases/fourslash/a.ts ===
// export function /*FIND ALL REFS*/[|f|]() {}
[
{
"definition": {
@@ -790,14 +790,14 @@
}
]
// === /tests/cases/fourslash/a.ts ===
// export function [|f|]() {}
// === /tests/cases/fourslash/b.ts ===
// export { [|f|] as [|g|] } from "./a";
// import { /*FIND ALL REFS*/[|f|] } from "./a";
// import { [|g|] } from "./b";
// === /tests/cases/fourslash/a.ts ===
// export function [|f|]() {}
[
{
"definition": {