From 7b4c0375059aaaf06cb8b8ccebebfbc0d20e01f2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 14 Jul 2026 20:51:50 +0100 Subject: Add field expressions to Rust AST --- hobgoblin/src/output/lang/rust/ast.hob | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hobgoblin/src') diff --git a/hobgoblin/src/output/lang/rust/ast.hob b/hobgoblin/src/output/lang/rust/ast.hob index 9c29cab..970ae7f 100644 --- a/hobgoblin/src/output/lang/rust/ast.hob +++ b/hobgoblin/src/output/lang/rust/ast.hob @@ -117,6 +117,7 @@ sum RustExpression { variant RustBlockExpression; variant RustBoolLiteral; variant RustCallExpression; + variant RustFieldExpression; variant RustPathInExpression; } @@ -134,6 +135,11 @@ struct RustCallExpression { field args: List[RustExpression]; } +struct RustFieldExpression { + field containerOperand: RustExpression; + field fieldName: RustIdentifier; +} + // == Types == sum RustType { -- cgit v1.2.3