UNPKG

svelte

Version:

Cybernetically enhanced web apps

17 lines (15 loc) 445 B
/** @import { BlockStatement } from 'estree' */ /** @import { AST } from '#compiler' */ /** @import { ComponentContext } from '../types.js' */ import { empty_comment } from './shared/utils.js'; /** * @param {AST.KeyBlock} node * @param {ComponentContext} context */ export function KeyBlock(node, context) { context.state.template.push( empty_comment, /** @type {BlockStatement} */ (context.visit(node.fragment)), empty_comment ); }