summaryrefslogtreecommitdiff
path: root/hobgoblin
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-17 17:23:35 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-17 17:23:35 +0100
commite830f34ceb4401ca423740f843835db057ee7411 (patch)
tree62b6e6ac25b3fff14dca0d11cc34bf9b88c7c615 /hobgoblin
parent001a701103c98581b96e41653d87156de667774d (diff)
Add tuple type expression to Rust AST
Diffstat (limited to 'hobgoblin')
-rw-r--r--hobgoblin/src/output/lang/rust/ast.hob5
1 files changed, 5 insertions, 0 deletions
diff --git a/hobgoblin/src/output/lang/rust/ast.hob b/hobgoblin/src/output/lang/rust/ast.hob
index dd71430..6979b42 100644
--- a/hobgoblin/src/output/lang/rust/ast.hob
+++ b/hobgoblin/src/output/lang/rust/ast.hob
@@ -200,6 +200,7 @@ sum RustType {
variant RustMutableReferenceType;
variant RustPath;
variant RustSharedReferenceType;
+ variant RustTupleType;
}
struct RustImplTraitType {
@@ -214,6 +215,10 @@ struct RustSharedReferenceType {
field referencedType: RustType;
}
+struct RustTupleType {
+ field elementTypes: List[RustType];
+}
+
// == Paths ==
struct RustPath {