summaryrefslogtreecommitdiffstats
path: root/llparse-frontend/src/node/span-start.ts
diff options
context:
space:
mode:
Diffstat (limited to 'llparse-frontend/src/node/span-start.ts')
-rw-r--r--llparse-frontend/src/node/span-start.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/llparse-frontend/src/node/span-start.ts b/llparse-frontend/src/node/span-start.ts
new file mode 100644
index 0000000..89690f1
--- /dev/null
+++ b/llparse-frontend/src/node/span-start.ts
@@ -0,0 +1,12 @@
+import { Span } from '../code';
+import { SpanField } from '../span-field';
+import { IUniqueName } from '../utils';
+import { IWrap } from '../wrap';
+import { Node } from './base';
+
+export class SpanStart extends Node {
+ constructor(id: IUniqueName, public readonly field: SpanField,
+ public readonly callback: IWrap<Span>) {
+ super(id);
+ }
+}