File: typeParameterFixingWithConstraints.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (40 lines) | stat: -rw-r--r-- 2,150 bytes parent folder | download | duplicates (7)
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
=== tests/cases/compiler/typeParameterFixingWithConstraints.ts ===
interface IBar {
>IBar : Symbol(IBar, Decl(typeParameterFixingWithConstraints.ts, 0, 0))

    [barId: string]: any;
>barId : Symbol(barId, Decl(typeParameterFixingWithConstraints.ts, 1, 5))
}

interface IFoo {
>IFoo : Symbol(IFoo, Decl(typeParameterFixingWithConstraints.ts, 2, 1))

    foo<TBar extends IBar>(bar: TBar, bar1: (bar: TBar) => TBar, bar2: (bar: TBar) => TBar): TBar;
>foo : Symbol(IFoo.foo, Decl(typeParameterFixingWithConstraints.ts, 4, 16))
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
>IBar : Symbol(IBar, Decl(typeParameterFixingWithConstraints.ts, 0, 0))
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 5, 27))
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
>bar1 : Symbol(bar1, Decl(typeParameterFixingWithConstraints.ts, 5, 37))
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 5, 45))
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
>bar2 : Symbol(bar2, Decl(typeParameterFixingWithConstraints.ts, 5, 64))
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 5, 72))
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
>TBar : Symbol(TBar, Decl(typeParameterFixingWithConstraints.ts, 5, 8))
}

var foo: IFoo;
>foo : Symbol(foo, Decl(typeParameterFixingWithConstraints.ts, 8, 3))
>IFoo : Symbol(IFoo, Decl(typeParameterFixingWithConstraints.ts, 2, 1))

foo.foo({ bar: null }, bar => null, bar => null);
>foo.foo : Symbol(IFoo.foo, Decl(typeParameterFixingWithConstraints.ts, 4, 16))
>foo : Symbol(foo, Decl(typeParameterFixingWithConstraints.ts, 8, 3))
>foo : Symbol(IFoo.foo, Decl(typeParameterFixingWithConstraints.ts, 4, 16))
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 9, 9))
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 9, 22))
>bar : Symbol(bar, Decl(typeParameterFixingWithConstraints.ts, 9, 35))