|
|
|
@ -86,27 +86,6 @@ class DomGenerator extends Generator {
|
|
|
|
|
` );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// generateBlock ( node, name, type ) {
|
|
|
|
|
// const childFragment = this.current.child({
|
|
|
|
|
// type,
|
|
|
|
|
// name,
|
|
|
|
|
// target: 'target',
|
|
|
|
|
// localElementDepth: 0,
|
|
|
|
|
// builders: getBuilders(),
|
|
|
|
|
// getUniqueName: this.getUniqueNameMaker( this.current.params )
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// this.push( childFragment );
|
|
|
|
|
|
|
|
|
|
// // walk the children here
|
|
|
|
|
// node.children.forEach( node => visit( node, this ) );
|
|
|
|
|
// this.addRenderer( this.current );
|
|
|
|
|
// this.pop();
|
|
|
|
|
|
|
|
|
|
// // unset the children, to avoid them being visited again
|
|
|
|
|
// node.children = [];
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
helper ( name ) {
|
|
|
|
|
if ( this.options.dev && `${name}Dev` in shared ) {
|
|
|
|
|
name = `${name}Dev`;
|
|
|
|
@ -150,7 +129,6 @@ export default function dom ( parsed, source, options ) {
|
|
|
|
|
builders: getBuilders(),
|
|
|
|
|
getUniqueName
|
|
|
|
|
});
|
|
|
|
|
generator.push( mainFragment );
|
|
|
|
|
|
|
|
|
|
parsed.html.children.forEach( node => {
|
|
|
|
|
visit( generator, mainFragment, node );
|
|
|
|
|