File: commentsTypeParameters.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (46 lines) | stat: -rw-r--r-- 2,228 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
45
46
=== tests/cases/compiler/commentsTypeParameters.ts ===
class C</**docComment for type parameter*/ T> {
>C : Symbol(C, Decl(commentsTypeParameters.ts, 0, 0))
>T : Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))

    method</**docComment of method type parameter */ U extends T>(a: U) {
>method : Symbol(C.method, Decl(commentsTypeParameters.ts, 0, 47))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 1, 11))
>T : Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
>a : Symbol(a, Decl(commentsTypeParameters.ts, 1, 66))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 1, 11))
    }
    static staticmethod</**docComment of method type parameter */ U>(a: U) {
>staticmethod : Symbol(C.staticmethod, Decl(commentsTypeParameters.ts, 2, 5))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 3, 24))
>a : Symbol(a, Decl(commentsTypeParameters.ts, 3, 69))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 3, 24))
    }

    private privatemethod</**docComment of method type parameter */ U extends T>(a: U) {
>privatemethod : Symbol(C.privatemethod, Decl(commentsTypeParameters.ts, 4, 5))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 6, 26))
>T : Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
>a : Symbol(a, Decl(commentsTypeParameters.ts, 6, 81))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 6, 26))
    }
    private static privatestaticmethod</**docComment of method type parameter */ U>(a: U) {
>privatestaticmethod : Symbol(C.privatestaticmethod, Decl(commentsTypeParameters.ts, 7, 5))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 8, 39))
>a : Symbol(a, Decl(commentsTypeParameters.ts, 8, 84))
>U : Symbol(U, Decl(commentsTypeParameters.ts, 8, 39))
    }
}

function compare</**type*/T>(a: T, b: T) {
>compare : Symbol(compare, Decl(commentsTypeParameters.ts, 10, 1))
>T : Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
>a : Symbol(a, Decl(commentsTypeParameters.ts, 12, 29))
>T : Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
>b : Symbol(b, Decl(commentsTypeParameters.ts, 12, 34))
>T : Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))

    return a === b;
>a : Symbol(a, Decl(commentsTypeParameters.ts, 12, 29))
>b : Symbol(b, Decl(commentsTypeParameters.ts, 12, 34))
}