@@ -163,9 +163,7 @@ export function mdxJsxFromMarkdown() {
163
163
start : token . start ,
164
164
end : token . end
165
165
}
166
- // @ts -expect-error: to do: register.
167
166
if ( ! this . getData ( 'mdxJsxTagStack' ) ) this . setData ( 'mdxJsxTagStack' , [ ] )
168
- // @ts -expect-error: to do: register.
169
167
this . setData ( 'mdxJsxTag' , tag )
170
168
this . buffer ( )
171
169
}
@@ -175,7 +173,6 @@ export function mdxJsxFromMarkdown() {
175
173
* @type {FromMarkdownHandle }
176
174
*/
177
175
function enterMdxJsxTagClosingMarker ( token ) {
178
- // @ts -expect-error: to do: register.
179
176
const stack = /** @type {Array<Tag> } */ ( this . getData ( 'mdxJsxTagStack' ) )
180
177
181
178
if ( stack . length === 0 ) {
@@ -192,7 +189,6 @@ export function mdxJsxFromMarkdown() {
192
189
* @type {FromMarkdownHandle }
193
190
*/
194
191
function enterMdxJsxTagAnyAttribute ( token ) {
195
- // @ts -expect-error: to do: register.
196
192
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
197
193
198
194
if ( tag . close ) {
@@ -209,7 +205,6 @@ export function mdxJsxFromMarkdown() {
209
205
* @type {FromMarkdownHandle }
210
206
*/
211
207
function enterMdxJsxTagSelfClosingMarker ( token ) {
212
- // @ts -expect-error: to do: register.
213
208
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
214
209
215
210
if ( tag . close ) {
@@ -226,7 +221,6 @@ export function mdxJsxFromMarkdown() {
226
221
* @type {FromMarkdownHandle }
227
222
*/
228
223
function exitMdxJsxTagClosingMarker ( ) {
229
- // @ts -expect-error: to do: register.
230
224
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
231
225
tag . close = true
232
226
}
@@ -236,7 +230,6 @@ export function mdxJsxFromMarkdown() {
236
230
* @type {FromMarkdownHandle }
237
231
*/
238
232
function exitMdxJsxTagNamePrimary ( token ) {
239
- // @ts -expect-error: to do: register.
240
233
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
241
234
tag . name = this . sliceSerialize ( token )
242
235
}
@@ -246,7 +239,6 @@ export function mdxJsxFromMarkdown() {
246
239
* @type {FromMarkdownHandle }
247
240
*/
248
241
function exitMdxJsxTagNameMember ( token ) {
249
- // @ts -expect-error: to do: register.
250
242
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
251
243
tag . name += '.' + this . sliceSerialize ( token )
252
244
}
@@ -256,7 +248,6 @@ export function mdxJsxFromMarkdown() {
256
248
* @type {FromMarkdownHandle }
257
249
*/
258
250
function exitMdxJsxTagNameLocal ( token ) {
259
- // @ts -expect-error: to do: register.
260
251
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
261
252
tag . name += ':' + this . sliceSerialize ( token )
262
253
}
@@ -266,7 +257,6 @@ export function mdxJsxFromMarkdown() {
266
257
* @type {FromMarkdownHandle }
267
258
*/
268
259
function enterMdxJsxTagAttribute ( token ) {
269
- // @ts -expect-error: to do: register.
270
260
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
271
261
enterMdxJsxTagAnyAttribute . call ( this , token )
272
262
tag . attributes . push ( { type : 'mdxJsxAttribute' , name : '' , value : null } )
@@ -277,7 +267,6 @@ export function mdxJsxFromMarkdown() {
277
267
* @type {FromMarkdownHandle }
278
268
*/
279
269
function enterMdxJsxTagExpressionAttribute ( token ) {
280
- // @ts -expect-error: to do: register.
281
270
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
282
271
enterMdxJsxTagAnyAttribute . call ( this , token )
283
272
tag . attributes . push ( { type : 'mdxJsxExpressionAttribute' , value : '' } )
@@ -289,7 +278,6 @@ export function mdxJsxFromMarkdown() {
289
278
* @type {FromMarkdownHandle }
290
279
*/
291
280
function exitMdxJsxTagExpressionAttribute ( token ) {
292
- // @ts -expect-error: to do: register.
293
281
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
294
282
const tail = /** @type {MdxJsxExpressionAttribute } */ (
295
283
tag . attributes [ tag . attributes . length - 1 ]
@@ -310,7 +298,6 @@ export function mdxJsxFromMarkdown() {
310
298
* @type {FromMarkdownHandle }
311
299
*/
312
300
function exitMdxJsxTagAttributeNamePrimary ( token ) {
313
- // @ts -expect-error: to do: register.
314
301
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
315
302
const node = /** @type {MdxJsxAttribute } */ (
316
303
tag . attributes [ tag . attributes . length - 1 ]
@@ -323,7 +310,6 @@ export function mdxJsxFromMarkdown() {
323
310
* @type {FromMarkdownHandle }
324
311
*/
325
312
function exitMdxJsxTagAttributeNameLocal ( token ) {
326
- // @ts -expect-error: to do: register.
327
313
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
328
314
const node = /** @type {MdxJsxAttribute } */ (
329
315
tag . attributes [ tag . attributes . length - 1 ]
@@ -336,7 +322,6 @@ export function mdxJsxFromMarkdown() {
336
322
* @type {FromMarkdownHandle }
337
323
*/
338
324
function exitMdxJsxTagAttributeValueLiteral ( ) {
339
- // @ts -expect-error: to do: register.
340
325
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
341
326
tag . attributes [ tag . attributes . length - 1 ] . value = parseEntities (
342
327
this . resume ( ) ,
@@ -349,7 +334,6 @@ export function mdxJsxFromMarkdown() {
349
334
* @type {FromMarkdownHandle }
350
335
*/
351
336
function exitMdxJsxTagAttributeValueExpression ( token ) {
352
- // @ts -expect-error: to do: register.
353
337
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
354
338
const tail = /** @type {MdxJsxAttribute } */ (
355
339
tag . attributes [ tag . attributes . length - 1 ]
@@ -372,7 +356,6 @@ export function mdxJsxFromMarkdown() {
372
356
* @type {FromMarkdownHandle }
373
357
*/
374
358
function exitMdxJsxTagSelfClosingMarker ( ) {
375
- // @ts -expect-error: to do: register.
376
359
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
377
360
378
361
tag . selfClosing = true
@@ -383,9 +366,7 @@ export function mdxJsxFromMarkdown() {
383
366
* @type {FromMarkdownHandle }
384
367
*/
385
368
function exitMdxJsxTag ( token ) {
386
- // @ts -expect-error: to do: register.
387
369
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
388
- // @ts -expect-error: to do: register.
389
370
const stack = /** @type {Array<Tag> } */ ( this . getData ( 'mdxJsxTagStack' ) )
390
371
const tail = stack [ stack . length - 1 ]
391
372
@@ -436,7 +417,6 @@ export function mdxJsxFromMarkdown() {
436
417
* @type {OnEnterError }
437
418
*/
438
419
function onErrorRightIsTag ( closing , open ) {
439
- // @ts -expect-error: to do: register.
440
420
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
441
421
const place = closing ? ' before the end of `' + closing . type + '`' : ''
442
422
const position = closing
@@ -460,7 +440,6 @@ export function mdxJsxFromMarkdown() {
460
440
* @type {OnExitError }
461
441
*/
462
442
function onErrorLeftIsTag ( a , b ) {
463
- // @ts -expect-error: to do: register.
464
443
const tag = /** @type {Tag } */ ( this . getData ( 'mdxJsxTag' ) )
465
444
throw new VFileMessage (
466
445
'Expected the closing tag `' +
0 commit comments