diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-30 15:07:22 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-30 15:07:22 +0100 |
| commit | 3a6771834e55a64c04337bb0ee83fbfc57524edf (patch) | |
| tree | 4b751c4cbe784379c652c3129cd6466e53f93214 /hobgoblin/src | |
| parent | 5a15eaebcad9fe95772d7391bb2cc5b1b2a8c0d2 (diff) | |
Add constructed types to TypeScript AST
Diffstat (limited to 'hobgoblin/src')
| -rw-r--r-- | hobgoblin/src/output/lang/typescript/ast.hob | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hobgoblin/src/output/lang/typescript/ast.hob b/hobgoblin/src/output/lang/typescript/ast.hob index 41421d2..45266ab 100644 --- a/hobgoblin/src/output/lang/typescript/ast.hob +++ b/hobgoblin/src/output/lang/typescript/ast.hob @@ -73,6 +73,7 @@ enum TypescriptVisibility { sum TypescriptExpression { variant TypescriptBinaryOperation; + variant TypescriptConstructedType; variant TypescriptFieldAccess; variant TypescriptNewCall; variant TypescriptNumberLiteral; @@ -89,6 +90,11 @@ enum TypescriptBinaryOperator { variant assign; } +struct TypescriptConstructedType { + field receiver: TypescriptExpression; + field args: List[TypescriptExpression]; +} + struct TypescriptFieldAccess { field receiver: TypescriptExpression; field fieldName: TypescriptIdentifier; |
