( name: ExpressionNode, fn: FunctionExpression, index?: number, )
| 380 | } |
| 381 | |
| 382 | function buildDynamicSlot( |
| 383 | name: ExpressionNode, |
| 384 | fn: FunctionExpression, |
| 385 | index?: number, |
| 386 | ): ObjectExpression { |
| 387 | const props = [ |
| 388 | createObjectProperty(`name`, name), |
| 389 | createObjectProperty(`fn`, fn), |
| 390 | ] |
| 391 | if (index != null) { |
| 392 | props.push( |
| 393 | createObjectProperty(`key`, createSimpleExpression(String(index), true)), |
| 394 | ) |
| 395 | } |
| 396 | return createObjectExpression(props) |
| 397 | } |
| 398 | |
| 399 | function hasForwardedSlots(children: TemplateChildNode[]): boolean { |
| 400 | for (let i = 0; i < children.length; i++) { |
no test coverage detected