@@ -1369,19 +1369,19 @@ function toLiquidDocAST(source: string, matchingSource: string, offset: number)
1369
1369
/**
1370
1370
* Reusable text node type
1371
1371
*/
1372
- const textNode = {
1372
+ const textNode = ( ) => ( {
1373
1373
type : ConcreteNodeTypes . TextNode ,
1374
1374
value : function ( ) {
1375
1375
return ( this as any ) . sourceString ;
1376
1376
} ,
1377
1377
locStart,
1378
1378
locEnd,
1379
1379
source,
1380
- } ;
1380
+ } ) ;
1381
1381
1382
1382
const LiquidDocMappings : Mapping = {
1383
1383
Node : 0 ,
1384
- TextNode : textNode ,
1384
+ TextNode : textNode ( ) ,
1385
1385
paramNode : {
1386
1386
type : ConcreteNodeTypes . LiquidDocParamNode ,
1387
1387
name : 'param' ,
@@ -1400,9 +1400,9 @@ function toLiquidDocAST(source: string, matchingSource: string, offset: number)
1400
1400
source,
1401
1401
content : 2 ,
1402
1402
} ,
1403
- descriptionContent : textNode ,
1403
+ descriptionContent : textNode ( ) ,
1404
1404
paramType : 2 ,
1405
- paramTypeContent : textNode ,
1405
+ paramTypeContent : textNode ( ) ,
1406
1406
paramName : {
1407
1407
type : ConcreteNodeTypes . LiquidDocParamNameNode ,
1408
1408
content : 0 ,
@@ -1419,7 +1419,7 @@ function toLiquidDocAST(source: string, matchingSource: string, offset: number)
1419
1419
source,
1420
1420
required : false ,
1421
1421
} ,
1422
- paramDescription : textNode ,
1422
+ paramDescription : textNode ( ) ,
1423
1423
exampleNode : {
1424
1424
type : ConcreteNodeTypes . LiquidDocExampleNode ,
1425
1425
name : 'example' ,
@@ -1428,9 +1428,9 @@ function toLiquidDocAST(source: string, matchingSource: string, offset: number)
1428
1428
source,
1429
1429
content : 2 ,
1430
1430
} ,
1431
- exampleContent : textNode ,
1432
- textValue : textNode ,
1433
- fallbackNode : textNode ,
1431
+ exampleContent : textNode ( ) ,
1432
+ textValue : textNode ( ) ,
1433
+ fallbackNode : textNode ( ) ,
1434
1434
} ;
1435
1435
1436
1436
return toAST ( res , LiquidDocMappings ) ;
0 commit comments