diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-14 22:06:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-14 22:08:12 +0100 |
| commit | b7ea6f45e9b2b967fffdc6bc1e21ffd8ebf611e8 (patch) | |
| tree | 9894038ea1e8893648ffdd300eb6d1dd9aa10854 /hobgoblin | |
| parent | a2a1afd66b14746d247a395a46af1e3cccac9326 (diff) | |
Add visibility to Rust AST
Diffstat (limited to 'hobgoblin')
| -rw-r--r-- | hobgoblin/src/output/lang/rust/ast.hob | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hobgoblin/src/output/lang/rust/ast.hob b/hobgoblin/src/output/lang/rust/ast.hob index 22ee689..a39e0d4 100644 --- a/hobgoblin/src/output/lang/rust/ast.hob +++ b/hobgoblin/src/output/lang/rust/ast.hob @@ -20,6 +20,7 @@ sum RustItem { // === Functions === struct RustFunction { + field visibility: Option[RustVisibility]; field name: RustIdentifier; field params: List[RustFunctionParam]; field returnType: Option[RustType]; @@ -219,6 +220,12 @@ struct RustPathIdentSegmentIdentifier { struct RustPathIdentSegmentSelfType { } +// == Visibility == + +enum RustVisibility { + variant pub; +} + // == Identifiers == struct RustIdentifier { |
