@@ -114,6 +114,7 @@ export interface ConcreteLiquidDocParamNode
114
114
value : string ;
115
115
paramName : ConcreteTextNode ;
116
116
paramDescription : ConcreteTextNode ;
117
+ paramType : ConcreteTextNode ;
117
118
}
118
119
119
120
export interface ConcreteHtmlNodeBase < T > extends ConcreteBasicNode < T > {
@@ -1336,8 +1337,18 @@ function toLiquidDocAST(source: string, matchingSource: string, offset: number)
1336
1337
locStart,
1337
1338
locEnd,
1338
1339
source,
1340
+ paramType : function ( nodes : Node [ ] ) {
1341
+ const typeNode = nodes [ 2 ] ;
1342
+ return {
1343
+ type : ConcreteNodeTypes . TextNode ,
1344
+ value : typeNode . sourceString . slice ( 1 , - 1 ) . trim ( ) ,
1345
+ source,
1346
+ locStart : offset + typeNode . source . startIdx ,
1347
+ locEnd : offset + typeNode . source . endIdx ,
1348
+ } ;
1349
+ } ,
1339
1350
paramName : function ( nodes : Node [ ] ) {
1340
- const nameNode = nodes [ 2 ] ;
1351
+ const nameNode = nodes [ 4 ] ;
1341
1352
return {
1342
1353
type : ConcreteNodeTypes . TextNode ,
1343
1354
value : nameNode . sourceString . trim ( ) ,
@@ -1347,7 +1358,7 @@ function toLiquidDocAST(source: string, matchingSource: string, offset: number)
1347
1358
} ;
1348
1359
} ,
1349
1360
paramDescription : function ( nodes : Node [ ] ) {
1350
- const descriptionNode = nodes [ 4 ] ;
1361
+ const descriptionNode = nodes [ 5 ] ;
1351
1362
return {
1352
1363
type : ConcreteNodeTypes . TextNode ,
1353
1364
value : descriptionNode . sourceString . trim ( ) ,
0 commit comments