mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
230 lines
4.8 KiB
JSON
230 lines
4.8 KiB
JSON
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// <|function [|f|]() {}|>
|
|
// const g = f;
|
|
// const h = g;
|
|
// /*GOTO DEF*/f();
|
|
// g();
|
|
// h();
|
|
// const i = () => 0;
|
|
// --- (line: 8) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// <|function [|f|]() {}|>
|
|
// <|const [|g|] = f;|>
|
|
// const h = g;
|
|
// f();
|
|
// /*GOTO DEF*/g();
|
|
// h();
|
|
// const i = () => 0;
|
|
// const iFn = function () { return 0; };
|
|
// --- (line: 9) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// <|function [|f|]() {}|>
|
|
// const g = f;
|
|
// <|const [|h|] = g;|>
|
|
// f();
|
|
// g();
|
|
// /*GOTO DEF*/h();
|
|
// const i = () => 0;
|
|
// const iFn = function () { return 0; };
|
|
// const j = i;
|
|
// --- (line: 10) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 3) skipped ---
|
|
// f();
|
|
// g();
|
|
// h();
|
|
// const [|i|] = <|() => 0|>;
|
|
// const iFn = function () { return 0; };
|
|
// const j = i;
|
|
// /*GOTO DEF*/i();
|
|
// iFn();
|
|
// j();
|
|
// const o = { m: () => 0 };
|
|
// --- (line: 14) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 4) skipped ---
|
|
// g();
|
|
// h();
|
|
// const i = () => 0;
|
|
// const [|iFn|] = <|function () { return 0; }|>;
|
|
// const j = i;
|
|
// i();
|
|
// /*GOTO DEF*/iFn();
|
|
// j();
|
|
// const o = { m: () => 0 };
|
|
// o.m();
|
|
// --- (line: 15) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 3) skipped ---
|
|
// f();
|
|
// g();
|
|
// h();
|
|
// const [|i|] = <|() => 0|>;
|
|
// const iFn = function () { return 0; };
|
|
// <|const [|j|] = i;|>
|
|
// i();
|
|
// iFn();
|
|
// /*GOTO DEF*/j();
|
|
// const o = { m: () => 0 };
|
|
// o.m();
|
|
// const oFn = { mFn: function () { return 0; } };
|
|
// --- (line: 16) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 9) skipped ---
|
|
// i();
|
|
// iFn();
|
|
// j();
|
|
// const o = { [|m|]: <|() => 0|> };
|
|
// o./*GOTO DEF*/m();
|
|
// const oFn = { mFn: function () { return 0; } };
|
|
// oFn.mFn();
|
|
// class Component { constructor(props: {}) {} }
|
|
// --- (line: 18) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 11) skipped ---
|
|
// j();
|
|
// const o = { m: () => 0 };
|
|
// o.m();
|
|
// const oFn = { [|mFn|]: <|function () { return 0; }|> };
|
|
// oFn./*GOTO DEF*/mFn();
|
|
// class Component { constructor(props: {}) {} }
|
|
// type ComponentClass = new () => Component;
|
|
// interface ComponentClass2 { new(): Component; }
|
|
// --- (line: 20) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 17) skipped ---
|
|
// type ComponentClass = new () => Component;
|
|
// interface ComponentClass2 { new(): Component; }
|
|
//
|
|
// <|class [|MyComponent|] extends Component {}|>
|
|
// </*GOTO DEF*/MyComponent />;
|
|
// new MyComponent({});
|
|
//
|
|
// declare const MyComponent2: ComponentClass;
|
|
// --- (line: 26) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 13) skipped ---
|
|
// 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 {}|>
|
|
// <MyComponent />;
|
|
// new /*GOTO DEF*/MyComponent({});
|
|
//
|
|
// declare const MyComponent2: ComponentClass;
|
|
// <MyComponent2 />;
|
|
// --- (line: 27) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 21) skipped ---
|
|
// <MyComponent />;
|
|
// new MyComponent({});
|
|
//
|
|
// <|declare const [|MyComponent2|]: ComponentClass;|>
|
|
// </*GOTO DEF*/MyComponent2 />;
|
|
// new MyComponent2();
|
|
//
|
|
// declare const MyComponent3: ComponentClass2;
|
|
// <MyComponent3 />;
|
|
// new MyComponent3();
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 14) skipped ---
|
|
// const oFn = { mFn: function () { return 0; } };
|
|
// oFn.mFn();
|
|
// class Component { constructor(props: {}) {} }
|
|
// type ComponentClass = [|new () => Component|];
|
|
// interface ComponentClass2 { new(): Component; }
|
|
//
|
|
// class MyComponent extends Component {}
|
|
// <MyComponent />;
|
|
// new MyComponent({});
|
|
//
|
|
// <|declare const [|MyComponent2|]: ComponentClass;|>
|
|
// <MyComponent2 />;
|
|
// new /*GOTO DEF*/MyComponent2();
|
|
//
|
|
// declare const MyComponent3: ComponentClass2;
|
|
// <MyComponent3 />;
|
|
// new MyComponent3();
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 25) skipped ---
|
|
// <MyComponent2 />;
|
|
// new MyComponent2();
|
|
//
|
|
// <|declare const [|MyComponent3|]: ComponentClass2;|>
|
|
// </*GOTO DEF*/MyComponent3 />;
|
|
// new MyComponent3();
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /a.tsx ===
|
|
// --- (line: 15) skipped ---
|
|
// oFn.mFn();
|
|
// class Component { constructor(props: {}) {} }
|
|
// type ComponentClass = new () => Component;
|
|
// interface ComponentClass2 { [|new(): Component;|] }
|
|
//
|
|
// class MyComponent extends Component {}
|
|
// <MyComponent />;
|
|
// new MyComponent({});
|
|
//
|
|
// declare const MyComponent2: ComponentClass;
|
|
// <MyComponent2 />;
|
|
// new MyComponent2();
|
|
//
|
|
// <|declare const [|MyComponent3|]: ComponentClass2;|>
|
|
// <MyComponent3 />;
|
|
// new /*GOTO DEF*/MyComponent3(); |