context: CodegenContext,
): CodeFragment[] {
const [frag, push] = buildCodeFragment()
- const { id, template, operation, dynamicChildOffset } = dynamic
- const { id, template, operation, hasDynamicChild } = dynamic
++ const { id, template, operation, dynamicChildOffset, hasDynamicChild } =
++ dynamic
if (id !== undefined && template !== undefined) {
- push(NEWLINE, `const n${id} = t${template}()`)
+ push(NEWLINE, `const n${id} = t${template}(${dynamicChildOffset || ''})`)
push(...genDirectivesForElement(id, context))
}