diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-06-30 20:59:08 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-06-30 20:59:08 +0100 |
| commit | 9d8de73eedc0f40ecb0c917942908d3b43b5df7c (patch) | |
| tree | 51f1c416c6e1ade9e20815856a65aeb5d2fe62d5 /src/main/java/org | |
| parent | bd20e8f343645b0c350bea3e5d62ab7a20860ead (diff) | |
Extract generateRustTypeExpression(Type)
Diffstat (limited to 'src/main/java/org')
| -rw-r--r-- | src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java index b19f3e5..e03ae14 100644 --- a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java +++ b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java @@ -101,7 +101,11 @@ public class RustTypesGenerator implements Generator { } private RustType generateRustTypeExpression(TypedTypeLevelExpressionNode<Type> type) { - return switch (type.value()) { + return generateRustTypeExpression(type.value()); + } + + private RustType generateRustTypeExpression(Type type) { + return switch (type) { case ConstructedNativeType constructedNativeType -> { throw new UnsupportedOperationException("TODO"); } |
