File: staticMethodWithTypeParameterExtendsClauseDeclFile.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 (44 lines) | stat: -rw-r--r-- 3,203 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
41
42
43
44
=== tests/cases/compiler/staticMethodWithTypeParameterExtendsClauseDeclFile.ts ===
class privateClass {
>privateClass : Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0))
}

export class publicClass {
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
}

export class publicClassWithWithPrivateTypeParameters {
>publicClassWithWithPrivateTypeParameters : Symbol(publicClassWithWithPrivateTypeParameters, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 4, 1))

    private static myPrivateStaticMethod1<T extends privateClass>() { // do not emit extends clause
>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateTypeParameters.myPrivateStaticMethod1, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 6, 55))
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 7, 42))
>privateClass : Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0))
    }
    private myPrivateMethod1<T extends privateClass>() { // do not emit extends clause
>myPrivateMethod1 : Symbol(publicClassWithWithPrivateTypeParameters.myPrivateMethod1, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 8, 5))
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 9, 29))
>privateClass : Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0))
    }
    private static myPrivateStaticMethod2<T extends publicClass>() { // do not emit extends clause
>myPrivateStaticMethod2 : Symbol(publicClassWithWithPrivateTypeParameters.myPrivateStaticMethod2, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 10, 5))
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 11, 42))
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
    }
    private myPrivateMethod2<T extends publicClass>() { // do not emit extends clause
>myPrivateMethod2 : Symbol(publicClassWithWithPrivateTypeParameters.myPrivateMethod2, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 12, 5))
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 13, 29))
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
    }
    public static myPublicStaticMethod<T extends publicClass>() {
>myPublicStaticMethod : Symbol(publicClassWithWithPrivateTypeParameters.myPublicStaticMethod, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 14, 5))
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 15, 39))
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
    }
    public myPublicMethod<T extends publicClass>() {
>myPublicMethod : Symbol(publicClassWithWithPrivateTypeParameters.myPublicMethod, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 16, 5))
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 17, 26))
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
    }
}