diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-04 09:29:29 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-04 09:29:29 +0100 |
| commit | 57f8396dd1c92e87be342d35880f1ca04a5a6c53 (patch) | |
| tree | 4196b490de9bd0f71a80da29d94870f3baca1c46 | |
| parent | 483caabcb688e71eaadf9ee93fca52483a9ea06d (diff) | |
Add stubbed generation for enums in typescript-types
| -rw-r--r-- | src/main/java/org/zwobble/hobgoblin/compiler/output/generators/typescripttypes/TypescriptTypesGenerator.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/typescripttypes/TypescriptTypesGenerator.java b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/typescripttypes/TypescriptTypesGenerator.java index ac9cbb9..16c0003 100644 --- a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/typescripttypes/TypescriptTypesGenerator.java +++ b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/typescripttypes/TypescriptTypesGenerator.java @@ -96,8 +96,8 @@ public class TypescriptTypesGenerator implements Generator { TypesInfo typesInfo ) { switch (statement) { - case TypedEnumDefinitionNode _ -> { - throw new UnsupportedOperationException("TODO"); + case TypedEnumDefinitionNode enumDefinition -> { + return generateEnumDefinition(enumDefinition); } case TypedNativeTypeDefinitionNode _ -> { @@ -114,6 +114,12 @@ public class TypescriptTypesGenerator implements Generator { } } + private List<TypescriptStatement> generateEnumDefinition( + TypedEnumDefinitionNode enumDefinition + ) { + return List.of(); + } + private List<TypescriptStatement> generateStructDefinition( TypedStructDefinitionNode structDefinition, TypesInfo typesInfo |
