File: tsxGenericAttributesType1.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 (66 lines) | stat: -rw-r--r-- 3,040 bytes parent folder | download | duplicates (5)
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
65
66
=== tests/cases/conformance/jsx/file.tsx ===
import React = require('react');
>React : Symbol(React, Decl(file.tsx, 0, 0))

const decorator = function <T>(Component: React.StatelessComponent<T>): React.StatelessComponent<T> {
>decorator : Symbol(decorator, Decl(file.tsx, 2, 5))
>T : Symbol(T, Decl(file.tsx, 2, 28))
>Component : Symbol(Component, Decl(file.tsx, 2, 31))
>React : Symbol(React, Decl(file.tsx, 0, 0))
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react.d.ts, 198, 40))
>T : Symbol(T, Decl(file.tsx, 2, 28))
>React : Symbol(React, Decl(file.tsx, 0, 0))
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react.d.ts, 198, 40))
>T : Symbol(T, Decl(file.tsx, 2, 28))

    return (props) => <Component {...props}></Component>
>props : Symbol(props, Decl(file.tsx, 3, 12))
>Component : Symbol(Component, Decl(file.tsx, 2, 31))
>props : Symbol(props, Decl(file.tsx, 3, 12))
>Component : Symbol(Component, Decl(file.tsx, 2, 31))

};

const decorator2 = function <T extends { x: number }>(Component: React.StatelessComponent<T>): React.StatelessComponent<T> {
>decorator2 : Symbol(decorator2, Decl(file.tsx, 6, 5))
>T : Symbol(T, Decl(file.tsx, 6, 29))
>x : Symbol(x, Decl(file.tsx, 6, 40))
>Component : Symbol(Component, Decl(file.tsx, 6, 54))
>React : Symbol(React, Decl(file.tsx, 0, 0))
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react.d.ts, 198, 40))
>T : Symbol(T, Decl(file.tsx, 6, 29))
>React : Symbol(React, Decl(file.tsx, 0, 0))
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react.d.ts, 198, 40))
>T : Symbol(T, Decl(file.tsx, 6, 29))

    return (props) => <Component {...props} x={2} ></Component>
>props : Symbol(props, Decl(file.tsx, 7, 12))
>Component : Symbol(Component, Decl(file.tsx, 6, 54))
>props : Symbol(props, Decl(file.tsx, 7, 12))
>x : Symbol(x, Decl(file.tsx, 7, 43))
>Component : Symbol(Component, Decl(file.tsx, 6, 54))

};

const decorator3 = function <T extends { x: number }, U extends { x: number } >(Component: React.StatelessComponent<T>): React.StatelessComponent<T> {
>decorator3 : Symbol(decorator3, Decl(file.tsx, 10, 5))
>T : Symbol(T, Decl(file.tsx, 10, 29))
>x : Symbol(x, Decl(file.tsx, 10, 40))
>U : Symbol(U, Decl(file.tsx, 10, 53))
>x : Symbol(x, Decl(file.tsx, 10, 65))
>Component : Symbol(Component, Decl(file.tsx, 10, 80))
>React : Symbol(React, Decl(file.tsx, 0, 0))
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react.d.ts, 198, 40))
>T : Symbol(T, Decl(file.tsx, 10, 29))
>React : Symbol(React, Decl(file.tsx, 0, 0))
>StatelessComponent : Symbol(React.StatelessComponent, Decl(react.d.ts, 198, 40))
>T : Symbol(T, Decl(file.tsx, 10, 29))

    return (props) => <Component x={2} {...props} ></Component>
>props : Symbol(props, Decl(file.tsx, 11, 12))
>Component : Symbol(Component, Decl(file.tsx, 10, 80))
>x : Symbol(x, Decl(file.tsx, 11, 32))
>props : Symbol(props, Decl(file.tsx, 11, 12))
>Component : Symbol(Component, Decl(file.tsx, 10, 80))

};