File: tsxElementResolution12.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 (91 lines) | stat: -rw-r--r-- 2,715 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
=== tests/cases/conformance/jsx/file.tsx ===
declare module JSX {
>JSX : Symbol(JSX, Decl(file.tsx, 0, 0))

	interface Element { }
>Element : Symbol(Element, Decl(file.tsx, 0, 20))

	interface ElementAttributesProperty { pr: any; }
>ElementAttributesProperty : Symbol(ElementAttributesProperty, Decl(file.tsx, 1, 22))
>pr : Symbol(ElementAttributesProperty.pr, Decl(file.tsx, 2, 38))

	interface IntrinsicElements { }
>IntrinsicElements : Symbol(IntrinsicElements, Decl(file.tsx, 2, 49))
}

interface Obj1type {
>Obj1type : Symbol(Obj1type, Decl(file.tsx, 4, 1))

	new(n: string): any;
>n : Symbol(n, Decl(file.tsx, 7, 5))
}
var Obj1: Obj1type;
>Obj1 : Symbol(Obj1, Decl(file.tsx, 9, 3))
>Obj1type : Symbol(Obj1type, Decl(file.tsx, 4, 1))

<Obj1 x={10} />; // OK
>Obj1 : Symbol(Obj1, Decl(file.tsx, 9, 3))
>x : Symbol(x, Decl(file.tsx, 10, 5))

interface Obj2type {
>Obj2type : Symbol(Obj2type, Decl(file.tsx, 10, 16))

	new(n: string): { q?: number; pr: any };
>n : Symbol(n, Decl(file.tsx, 13, 5))
>q : Symbol(q, Decl(file.tsx, 13, 18))
>pr : Symbol(pr, Decl(file.tsx, 13, 30))
}
var Obj2: Obj2type;
>Obj2 : Symbol(Obj2, Decl(file.tsx, 15, 3))
>Obj2type : Symbol(Obj2type, Decl(file.tsx, 10, 16))

<Obj2 x={10} />; // OK
>Obj2 : Symbol(Obj2, Decl(file.tsx, 15, 3))
>x : Symbol(x, Decl(file.tsx, 16, 5))

interface Obj3type {
>Obj3type : Symbol(Obj3type, Decl(file.tsx, 16, 16))

	new(n: string): { x: number; };
>n : Symbol(n, Decl(file.tsx, 19, 5))
>x : Symbol(x, Decl(file.tsx, 19, 18))
}
var Obj3: Obj3type;
>Obj3 : Symbol(Obj3, Decl(file.tsx, 21, 3))
>Obj3type : Symbol(Obj3type, Decl(file.tsx, 16, 16))

<Obj3 x={10} />; // Error
>Obj3 : Symbol(Obj3, Decl(file.tsx, 21, 3))
>x : Symbol(x, Decl(file.tsx, 22, 5))

var attributes: any;
>attributes : Symbol(attributes, Decl(file.tsx, 23, 3))

<Obj3 {...attributes} />; // Error
>Obj3 : Symbol(Obj3, Decl(file.tsx, 21, 3))
>attributes : Symbol(attributes, Decl(file.tsx, 23, 3))

<Obj3 {...{}} />; // OK
>Obj3 : Symbol(Obj3, Decl(file.tsx, 21, 3))

interface Obj4type {
>Obj4type : Symbol(Obj4type, Decl(file.tsx, 25, 17))

	new(n: string): { x: number; pr: { x: number; } };
>n : Symbol(n, Decl(file.tsx, 28, 5))
>x : Symbol(x, Decl(file.tsx, 28, 18))
>pr : Symbol(pr, Decl(file.tsx, 28, 29))
>x : Symbol(x, Decl(file.tsx, 28, 35))
}
var Obj4: Obj4type;
>Obj4 : Symbol(Obj4, Decl(file.tsx, 30, 3))
>Obj4type : Symbol(Obj4type, Decl(file.tsx, 25, 17))

<Obj4 x={10} />; // OK
>Obj4 : Symbol(Obj4, Decl(file.tsx, 30, 3))
>x : Symbol(x, Decl(file.tsx, 31, 5))

<Obj4 x={'10'} />; // Error
>Obj4 : Symbol(Obj4, Decl(file.tsx, 30, 3))
>x : Symbol(x, Decl(file.tsx, 32, 5))