mirror of https://github.com/sveltejs/svelte
parent
6fdaa803c7
commit
b7ec99e8c7
@ -1,3 +1,5 @@
|
|||||||
import Tag from './shared/Tag';
|
import Tag from './shared/Tag';
|
||||||
|
|
||||||
export default class MustacheTag extends Tag {}
|
export default class MustacheTag extends Tag {
|
||||||
|
type: 'MustacheTag';
|
||||||
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
import Tag from './shared/Tag';
|
import Tag from './shared/Tag';
|
||||||
|
|
||||||
export default class RawMustacheTag extends Tag {}
|
export default class RawMustacheTag extends Tag {
|
||||||
|
type: 'RawMustacheTag'
|
||||||
|
}
|
||||||
|
@ -0,0 +1,62 @@
|
|||||||
|
import Tag from './shared/Tag';
|
||||||
|
|
||||||
|
import Action from './Action';
|
||||||
|
import Animation from './Animation';
|
||||||
|
import Attribute from './Attribute';
|
||||||
|
import AwaitBlock from './AwaitBlock';
|
||||||
|
import Binding from './Binding';
|
||||||
|
import Body from './Body';
|
||||||
|
import CatchBlock from './CatchBlock';
|
||||||
|
import Class from './Class';
|
||||||
|
import Comment from './Comment';
|
||||||
|
import DebugTag from './DebugTag';
|
||||||
|
import EachBlock from './EachBlock';
|
||||||
|
import Element from './Element';
|
||||||
|
import ElseBlock from './ElseBlock';
|
||||||
|
import EventHandler from './EventHandler';
|
||||||
|
import Fragment from './Fragment';
|
||||||
|
import Head from './Head';
|
||||||
|
import IfBlock from './IfBlock';
|
||||||
|
import InlineComponent from './InlineComponent';
|
||||||
|
import Let from './Let';
|
||||||
|
import MustacheTag from './MustacheTag';
|
||||||
|
import Options from './Options';
|
||||||
|
import PendingBlock from './PendingBlock';
|
||||||
|
import RawMustacheTag from './RawMustacheTag';
|
||||||
|
import Slot from './Slot';
|
||||||
|
import Text from './Text';
|
||||||
|
import ThenBlock from './ThenBlock';
|
||||||
|
import Title from './Title';
|
||||||
|
import Transition from './Transition';
|
||||||
|
import Window from './Window';
|
||||||
|
|
||||||
|
export type INode = Action
|
||||||
|
| Animation
|
||||||
|
| Attribute
|
||||||
|
| AwaitBlock
|
||||||
|
| Binding
|
||||||
|
| Body
|
||||||
|
| CatchBlock
|
||||||
|
| Class
|
||||||
|
| Comment
|
||||||
|
| DebugTag
|
||||||
|
| EachBlock
|
||||||
|
| Element
|
||||||
|
| ElseBlock
|
||||||
|
| EventHandler
|
||||||
|
| Fragment
|
||||||
|
| Head
|
||||||
|
| IfBlock
|
||||||
|
| InlineComponent
|
||||||
|
| Let
|
||||||
|
| MustacheTag
|
||||||
|
| Options
|
||||||
|
| PendingBlock
|
||||||
|
| RawMustacheTag
|
||||||
|
| Slot
|
||||||
|
| Tag
|
||||||
|
| Text
|
||||||
|
| ThenBlock
|
||||||
|
| Title
|
||||||
|
| Transition
|
||||||
|
| Window;
|
@ -1,5 +1,6 @@
|
|||||||
export default function add_to_set(a: Set<any>, b: Set<any>) {
|
export default function add_to_set<T>(a: Set<T>, b: Set<T> | Array<T>) {
|
||||||
|
// @ts-ignore
|
||||||
b.forEach(item => {
|
b.forEach(item => {
|
||||||
a.add(item);
|
a.add(item);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue