summaryrefslogtreecommitdiffstats
path: root/llparse-frontend/test/fixtures/a-implementation/node/error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'llparse-frontend/test/fixtures/a-implementation/node/error.ts')
-rw-r--r--llparse-frontend/test/fixtures/a-implementation/node/error.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/llparse-frontend/test/fixtures/a-implementation/node/error.ts b/llparse-frontend/test/fixtures/a-implementation/node/error.ts
new file mode 100644
index 0000000..1a4f31d
--- /dev/null
+++ b/llparse-frontend/test/fixtures/a-implementation/node/error.ts
@@ -0,0 +1,10 @@
+import { node } from '../../../../src/frontend';
+import { Node } from './base';
+
+class ErrorNode extends Node<node.Error> {
+ protected doBuild(out: string[]): void {
+ out.push(this.format(`code=${this.ref.code} reason="${this.ref.reason}"`));
+ }
+}
+
+export { ErrorNode as Error };