convertEmbeddedTemplate function
Element
convertEmbeddedTemplate(
- EmbeddedTemplateAst embeddedTemplate,
- CompileElement compileElement,
- CompileDirectiveMetadata compileDirectiveMetadata
Implementation
ir.Element convertEmbeddedTemplate(
ast.EmbeddedTemplateAst embeddedTemplate,
CompileElement compileElement,
CompileDirectiveMetadata compileDirectiveMetadata,
) {
var directives = convertMatchedDirectives(
embeddedTemplate.directives,
compileElement,
compileDirectiveMetadata,
);
directives = directives.map(optimizeLifecycles).toList();
var embeddedView = ir.EmbeddedView(
embeddedTemplate.children,
);
embeddedView.compileView = compileElement.embeddedView;
return ir.Element(compileElement, [], [], directives, [], [embeddedView]);
}