File: goToDefinitionSignatureAlias.ts

package info (click to toggle)
node-typescript 5.1.6%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 492,516 kB
  • sloc: javascript: 2,078,951; makefile: 6; sh: 1
file content (64 lines) | stat: -rw-r--r-- 1,565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/// <reference path='fourslash.ts'/>

// @jsx: preserve

// @Filename: /a.tsx
////function /*f*/f() {}
////const /*g*/g = f;
////const /*h*/h = g;

////[|/*useF*/f|]();
////[|/*useG*/g|]();
////[|/*useH*/h|]();

////const /*i*/i = () => 0;
////const /*iFn*/iFn = function () { return 0; };
////const /*j*/j = i;

////[|/*useI*/i|]();
////[|/*useIFn*/iFn|]();
////[|/*useJ*/j|]();

////const o = { /*m*/m: () => 0 };
////o.[|/*useM*/m|]();
////const oFn = { /*mFn*/mFn: function () { return 0; } };
////oFn.[|/*useMFn*/mFn|]();

////class Component { /*componentCtr*/constructor(props: {}) {} }
////type ComponentClass = /*ComponentClass*/new () => Component;
////interface ComponentClass2 { /*ComponentClass2*/new(): Component; }
////
////class /*MyComponent*/MyComponent extends Component {}
////<[|/*jsxMyComponent*/MyComponent|] />;
////new [|/*newMyComponent*/MyComponent|]({});
////
////declare const /*MyComponent2*/MyComponent2: ComponentClass;
////<[|/*jsxMyComponent2*/MyComponent2|] />;
////new [|/*newMyComponent2*/MyComponent2|]();
////
////declare const /*MyComponent3*/MyComponent3: ComponentClass2;
////<[|/*jsxMyComponent3*/MyComponent3|] />;
////new [|/*newMyComponent3*/MyComponent3|]();

verify.noErrors();

verify.baselineGoToDefinition(
    "useF",
    "useG",
    "useH",

    "useI",
    "useIFn",
    "useJ",
    "useM",
    "useMFn",

    "jsxMyComponent",
    "newMyComponent",

    "jsxMyComponent2",
    "newMyComponent2",

    "jsxMyComponent3",
    "newMyComponent3",
);