visitElement method
Visits all element ASTs.
Implementation
@override
void visitElement(ElementAst astNode, [_]) {
// Visit unpermitted AST nodes to report errors.
visitAll(astNode.annotations);
visitAll(astNode.events);
visitAll(astNode.properties);
visitAll(astNode.references);
final tagIndex = _tagCount++;
if (astNode.isVoidElement) {
_addArgument('voidElement$tagIndex', _start(astNode));
} else {
_addArgument('startTag$tagIndex', _start(astNode));
visitAll(astNode.childNodes);
_addArgument('endTag$tagIndex', _end(astNode));
}
}