createElement method
void
createElement(
- CompileElement parent,
- NodeReference elementRef,
- String tagName,
- TemplateAst ast,
Create an html node and appends to parent element.
Implementation
void createElement(
CompileElement parent,
NodeReference elementRef,
String tagName,
TemplateAst ast,
) {
var parentRenderNodeExpr = _getParentRenderNode(parent);
_createElementAndAppend(
tagName,
parentRenderNodeExpr,
elementRef,
templateUrl: component.template?.templateUrl,
offset: (component.template?.templateOffset ?? 0) +
ast.sourceSpan.start.offset,
);
}