summaryrefslogtreecommitdiff
path: root/examples/12-inductive-data-types
diff options
context:
space:
mode:
Diffstat (limited to 'examples/12-inductive-data-types')
-rw-r--r--examples/12-inductive-data-types/output/typescript/src/arithmetic.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts b/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts
index 9599968..486ac66 100644
--- a/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts
+++ b/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts
@@ -1,5 +1,8 @@
// Generated by hobgoblin.
+// Custom area start: imports
+// Custom area end: imports
+
type Expression = Add | Const;
export {type Expression};
@@ -17,6 +20,9 @@ class Add {
this.left = left;
this.right = right;
}
+
+ // Custom area start: Add, body
+ // Custom area end: Add, body
}
export {Add};
@@ -31,6 +37,12 @@ class Const {
public constructor(value: number) {
this.value = value;
}
+
+ // Custom area start: Const, body
+ // Custom area end: Const, body
}
export {Const};
+
+// Custom area start: body
+// Custom area end: body