|
|
@ -2,11 +2,13 @@ import AwaitBlock from '../AwaitBlock';
|
|
|
|
import Component from '../Component';
|
|
|
|
import Component from '../Component';
|
|
|
|
import EachBlock from '../EachBlock';
|
|
|
|
import EachBlock from '../EachBlock';
|
|
|
|
import Element from '../Element';
|
|
|
|
import Element from '../Element';
|
|
|
|
|
|
|
|
import Head from '../Head';
|
|
|
|
import IfBlock from '../IfBlock';
|
|
|
|
import IfBlock from '../IfBlock';
|
|
|
|
import Slot from '../Slot';
|
|
|
|
|
|
|
|
import Text from '../Text';
|
|
|
|
|
|
|
|
import MustacheTag from '../MustacheTag';
|
|
|
|
import MustacheTag from '../MustacheTag';
|
|
|
|
import RawMustacheTag from '../RawMustacheTag';
|
|
|
|
import RawMustacheTag from '../RawMustacheTag';
|
|
|
|
|
|
|
|
import Slot from '../Slot';
|
|
|
|
|
|
|
|
import Text from '../Text';
|
|
|
|
|
|
|
|
import Title from '../Title';
|
|
|
|
import Window from '../Window';
|
|
|
|
import Window from '../Window';
|
|
|
|
import Node from './Node';
|
|
|
|
import Node from './Node';
|
|
|
|
|
|
|
|
|
|
|
@ -16,11 +18,13 @@ function getConstructor(type): typeof Node {
|
|
|
|
case 'Component': return Component;
|
|
|
|
case 'Component': return Component;
|
|
|
|
case 'EachBlock': return EachBlock;
|
|
|
|
case 'EachBlock': return EachBlock;
|
|
|
|
case 'Element': return Element;
|
|
|
|
case 'Element': return Element;
|
|
|
|
|
|
|
|
case 'Head': return Head;
|
|
|
|
case 'IfBlock': return IfBlock;
|
|
|
|
case 'IfBlock': return IfBlock;
|
|
|
|
case 'Slot': return Slot;
|
|
|
|
|
|
|
|
case 'Text': return Text;
|
|
|
|
|
|
|
|
case 'MustacheTag': return MustacheTag;
|
|
|
|
case 'MustacheTag': return MustacheTag;
|
|
|
|
case 'RawMustacheTag': return RawMustacheTag;
|
|
|
|
case 'RawMustacheTag': return RawMustacheTag;
|
|
|
|
|
|
|
|
case 'Slot': return Slot;
|
|
|
|
|
|
|
|
case 'Text': return Text;
|
|
|
|
|
|
|
|
case 'Title': return Title;
|
|
|
|
case 'Window': return Window;
|
|
|
|
case 'Window': return Window;
|
|
|
|
default: throw new Error(`Not implemented: ${type}`);
|
|
|
|
default: throw new Error(`Not implemented: ${type}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|