pull/1367/head
Rich Harris 7 years ago
parent cc4b269a20
commit dbd68c9461

@ -1,5 +1,5 @@
import Node from './shared/Node'; import Node from './shared/Node';
export default class Comment extends Node { export default class Comment extends Node {
type: 'Comment' type: 'Comment';
} }

@ -1,4 +1,5 @@
import AwaitBlock from '../AwaitBlock'; import AwaitBlock from '../AwaitBlock';
import Comment from '../Comment';
import Component from '../Component'; import Component from '../Component';
import EachBlock from '../EachBlock'; import EachBlock from '../EachBlock';
import Element from '../Element'; import Element from '../Element';
@ -15,6 +16,7 @@ import Node from './Node';
function getConstructor(type): typeof Node { function getConstructor(type): typeof Node {
switch (type) { switch (type) {
case 'AwaitBlock': return AwaitBlock; case 'AwaitBlock': return AwaitBlock;
case 'Comment': return Comment;
case 'Component': return Component; case 'Component': return Component;
case 'EachBlock': return EachBlock; case 'EachBlock': return EachBlock;
case 'Element': return Element; case 'Element': return Element;

Loading…
Cancel
Save