summaryrefslogtreecommitdiff
path: root/src/parser/parse/utils/node.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parse/utils/node.ts')
-rw-r--r--src/parser/parse/utils/node.ts30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/parser/parse/utils/node.ts b/src/parser/parse/utils/node.ts
deleted file mode 100644
index 45769f96e..000000000
--- a/src/parser/parse/utils/node.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { TemplateNode } from '../../interfaces.js';
-
-export function to_string(node: TemplateNode) {
- switch (node.type) {
- case 'IfBlock':
- return '{#if} block';
- case 'ThenBlock':
- return '{:then} block';
- case 'ElseBlock':
- return '{:else} block';
- case 'PendingBlock':
- case 'AwaitBlock':
- return '{#await} block';
- case 'CatchBlock':
- return '{:catch} block';
- case 'EachBlock':
- return '{#each} block';
- case 'RawMustacheTag':
- return '{@html} block';
- case 'DebugTag':
- return '{@debug} block';
- case 'Element':
- case 'InlineComponent':
- case 'Slot':
- case 'Title':
- return `<${node.name}> tag`;
- default:
- return node.type;
- }
-}