summaryrefslogtreecommitdiffstats
path: root/llparse-builder/src/node/span-start.ts
diff options
context:
space:
mode:
Diffstat (limited to 'llparse-builder/src/node/span-start.ts')
-rw-r--r--llparse-builder/src/node/span-start.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/llparse-builder/src/node/span-start.ts b/llparse-builder/src/node/span-start.ts
new file mode 100644
index 0000000..f81b432
--- /dev/null
+++ b/llparse-builder/src/node/span-start.ts
@@ -0,0 +1,16 @@
+import { Span } from '../span';
+import { Node } from './base';
+
+/**
+ * Indicates span start.
+ *
+ * See `SpanEnd` for details on callback invocation.
+ */
+export class SpanStart extends Node {
+ /**
+ * @param span Span instance
+ */
+ constructor(public readonly span: Span) {
+ super(`span_start_${span.callback.name}`);
+ }
+}