File: jsxUnclosedParserRecovery.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (273 lines) | stat: -rw-r--r-- 11,893 bytes parent folder | download | duplicates (3)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
tests/cases/conformance/jsx/jsxParserRecovery.tsx(12,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(16,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(19,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(20,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(24,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(27,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(28,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(32,1): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(35,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(36,1): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(39,6): error TS17008: JSX element 'diddy' has no corresponding closing tag.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(43,6): error TS17008: JSX element 'diddy' has no corresponding closing tag.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(43,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(49,5): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(49,6): error TS2749: 'diddy' refers to a value, but is being used as a type here. Did you mean 'typeof diddy'?
tests/cases/conformance/jsx/jsxParserRecovery.tsx(49,11): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(54,6): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(54,6): error TS2749: 'diddy' refers to a value, but is being used as a type here. Did you mean 'typeof diddy'?
tests/cases/conformance/jsx/jsxParserRecovery.tsx(54,11): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(58,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(59,5): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(64,5): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(68,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(69,5): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(74,5): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(78,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(79,5): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(83,6): error TS17008: JSX element 'diddy' has no corresponding closing tag.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(88,6): error TS17008: JSX element 'diddy' has no corresponding closing tag.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(88,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(95,5): error TS2304: Cannot find name 'Cranky'.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(96,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(101,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(104,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(106,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(111,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(114,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(116,1): error TS1003: Identifier expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(120,5): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(124,12): error TS2558: Expected 0 type arguments, but got 1.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(125,5): error TS1005: '>' expected.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(129,6): error TS17008: JSX element 'diddy' has no corresponding closing tag.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(134,6): error TS17008: JSX element 'diddy' has no corresponding closing tag.
tests/cases/conformance/jsx/jsxParserRecovery.tsx(134,12): error TS2558: Expected 0 type arguments, but got 1.


==== tests/cases/conformance/jsx/jsxParserRecovery.tsx (44 errors) ====
    // should have no errors here; all these functions should parse and resolve
    noName(); noClose(); noCloseTypeArg(); noCloseAttrs(); noCloseTypeArgAttrs(); noCloseBracket(); noCloseBracketTypeArgAttrs(); noSelfclose(); noSelfcloseTypeArgAttrs();
    noNameTrailingTag(); noCloseTrailingTag(); noCloseTypeArgTrailingTag(); noCloseAttrsTrailingTag(); noCloseTypeArgAttrsTrailingTag(); noCloseBracketTrailingTag(); noCloseBracketTypeArgAttrsTrailingTag(); // noSelfcloseTrailingTag(); noSelfcloseTypeArgAttrsTrailingTag();
    noNameTrailingText(); noCloseTrailingText(); noCloseTypeArgTrailingText(); noCloseAttrsTrailingText(); noCloseTypeArgAttrsTrailingText(); noCloseBracketTrailingText(); noCloseBracketTypeArgAttrsTrailingText(); // noSelfcloseTrailingText(); noSelfcloseTypeArgAttrsTrailingText();
    
    function diddy() {
        return null;
    }
    
    var donkey = <div>
        <
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noName() { }
    var donkey = <div>
        <diddy
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noClose() { }
    var donkey = <div>
        <diddy<boolean>
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noCloseTypeArg() { }
    var donkey = <div>
        <diddy bananas="please"
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noCloseAttrs() { }
    var donkey = <div>
        <diddy<boolean> bananas="please"
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noCloseTypeArgAttrs() { }
    var donkey = <div>
        <diddy/
    </div>;
    ~~
!!! error TS1005: '>' expected.
    function noCloseBracket() { }
    var donkey = <div>
        <diddy<boolean> bananas="please"/
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
    </div>;
    ~~
!!! error TS1005: '>' expected.
    function noCloseBracketTypeArgAttrs() { }
    var donkey = <div>
        <diddy>
         ~~~~~
!!! error TS17008: JSX element 'diddy' has no corresponding closing tag.
    </div>;
    function noSelfclose() { }
    var donkey = <div>
        <diddy<boolean> bananas="please">
         ~~~~~
!!! error TS17008: JSX element 'diddy' has no corresponding closing tag.
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
    </div>;
    function noSelfcloseTypeArgAttrs() { }
    
    var donkey = <div>
        <
        <diddy/>
        ~
!!! error TS1003: Identifier expected.
         ~~~~~
!!! error TS2749: 'diddy' refers to a value, but is being used as a type here. Did you mean 'typeof diddy'?
              ~
!!! error TS1005: '>' expected.
    </div>;
    function noNameTrailingTag() { }
    var donkey = <div>
        <diddy
        <diddy/>
         ~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
         ~~~~~
!!! error TS2749: 'diddy' refers to a value, but is being used as a type here. Did you mean 'typeof diddy'?
              ~
!!! error TS1005: '>' expected.
    </div>;
    function noCloseTrailingTag() { }
    var donkey = <div>
        <diddy<boolean>
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        <diddy/>
        ~
!!! error TS1003: Identifier expected.
    </div>;
    function noCloseTypeArgTrailingTag() { }
    var donkey = <div>
        <diddy bananas="please"
        <diddy/>
        ~
!!! error TS1003: Identifier expected.
    </div>;
    function noCloseAttrsTrailingTag() { }
    var donkey = <div>
        <diddy<boolean> bananas="please"
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        <diddy/>
        ~
!!! error TS1003: Identifier expected.
    </div>;
    function noCloseTypeArgAttrsTrailingTag() { }
    var donkey = <div>
        <diddy/
        <diddy/>
        ~
!!! error TS1005: '>' expected.
    </div>;
    function noCloseBracketTrailingTag() { }
    var donkey = <div>
        <diddy<boolean> bananas="please"/
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        <diddy/>
        ~
!!! error TS1005: '>' expected.
    </div>;
    function noCloseBracketTypeArgAttrsTrailingTag() { }
    var donkey = <div>
        <diddy>
         ~~~~~
!!! error TS17008: JSX element 'diddy' has no corresponding closing tag.
        <diddy/>
    </div>;
    function noSelfcloseTrailingTag() { }
    var donkey = <div>
        <diddy<boolean> bananas="please">
         ~~~~~
!!! error TS17008: JSX element 'diddy' has no corresponding closing tag.
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        <diddy/>
    </div>;
    function noSelfcloseTypeArgAttrsTrailingTag() { }
    
    var donkey = <div>
        <
        Cranky Wrinkly Funky
        ~~~~~~
!!! error TS2304: Cannot find name 'Cranky'.
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noNameTrailingText() { }
    var donkey = <div>
        <diddy
        Cranky Wrinkly Funky
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noCloseTrailingText() { }
    var donkey = <div>
        <diddy<boolean>
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        Cranky Wrinkly Funky
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noCloseTypeArgTrailingText() { }
    var donkey = <div>
        <diddy bananas="please"
        Cranky Wrinkly Funky
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noCloseAttrsTrailingText() { }
    var donkey = <div>
        <diddy<boolean> bananas="please"
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        Cranky Wrinkly Funky
    </div>;
    ~~
!!! error TS1003: Identifier expected.
    function noCloseTypeArgAttrsTrailingText() { }
    var donkey = <div>
        <diddy/
        Cranky Wrinkly Funky
        ~~~~~~
!!! error TS1005: '>' expected.
    </div>;
    function noCloseBracketTrailingText() { }
    var donkey = <div>
        <diddy<boolean> bananas="please"/
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        Cranky Wrinkly Funky
        ~~~~~~
!!! error TS1005: '>' expected.
    </div>;
    function noCloseBracketTypeArgAttrsTrailingText() { }
    var donkey = <div>
        <diddy>
         ~~~~~
!!! error TS17008: JSX element 'diddy' has no corresponding closing tag.
        Cranky Wrinkly Funky
    </div>;
    function noSelfcloseTrailingText() { }
    var donkey = <div>
        <diddy<boolean> bananas="please">
         ~~~~~
!!! error TS17008: JSX element 'diddy' has no corresponding closing tag.
               ~~~~~~~
!!! error TS2558: Expected 0 type arguments, but got 1.
        Cranky Wrinkly Funky
    </div>;
    function noSelfcloseTypeArgAttrsTrailingText() { }