File: genericWithCallSignatures1.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (38 lines) | stat: -rw-r--r-- 1,738 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
=== tests/cases/compiler/genericWithCallSignatures_1.ts ===
///<reference path="genericWithCallSignatures_0.ts"/>
class MyClass {
>MyClass : Symbol(MyClass, Decl(genericWithCallSignatures_1.ts, 0, 0))

    public callableThing: CallableExtention<string>;
>callableThing : Symbol(MyClass.callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15))
>CallableExtention : Symbol(CallableExtention, Decl(genericWithCallSignatures_0.ts, 3, 1))

    public myMethod() {
>myMethod : Symbol(MyClass.myMethod, Decl(genericWithCallSignatures_1.ts, 2, 52))

        var x = <string> this.callableThing();
>x : Symbol(x, Decl(genericWithCallSignatures_1.ts, 5, 11))
>this.callableThing : Symbol(MyClass.callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15))
>this : Symbol(MyClass, Decl(genericWithCallSignatures_1.ts, 0, 0))
>callableThing : Symbol(MyClass.callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15))
    }
}
=== tests/cases/compiler/genericWithCallSignatures_0.ts ===
interface Callable<T> {
>Callable : Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0))
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19))

    (): T;
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19))

    (value: T): void;
>value : Symbol(value, Decl(genericWithCallSignatures_0.ts, 2, 5))
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19))
}

interface CallableExtention<T> extends Callable<T> { }
>CallableExtention : Symbol(CallableExtention, Decl(genericWithCallSignatures_0.ts, 3, 1))
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 5, 28))
>Callable : Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0))
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 5, 28))