Skip to content

Conversation

@alexcrocha
Copy link

@alexcrocha alexcrocha commented Nov 18, 2025

Symbol fields in RBS AST nodes store their values as constant IDs that need to be resolved through the parser's constant pool. This adds a safe Rust wrapper (RBSSymbol) that maintains a reference to the parser and provides access to the symbol's name bytes, similar to how RBSString handles string types.

The build script now generates accessors for rbs_ast_symbol fields that properly pass both the symbol pointer and parser reference to enable constant pool lookups.

Copy link
Author

alexcrocha commented Nov 18, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@alexcrocha alexcrocha marked this pull request as ready for review November 18, 2025 05:02
@alexcrocha alexcrocha merged commit 3e8e1f0 into ar-rust-rbs-build Nov 18, 2025
16 of 27 checks passed
alexcrocha added a commit that referenced this pull request Jan 13, 2026
Symbol fields in RBS AST nodes store their values as constant IDs that
need to be resolved through the parser's constant pool. This safe
Rust wrapper (`RBSSymbol`) maintains a reference to the parser and
provides access to the symbol's name bytes, similar to how `RBSString`
handles string types.

The build script now generates accessors for `rbs_ast_symbol` fields
that properly pass both the symbol pointer and parser reference to
enable constant pool lookups.
alexcrocha added a commit that referenced this pull request Jan 13, 2026
Symbol fields in RBS AST nodes store their values as constant IDs that
need to be resolved through the parser's constant pool. This safe
Rust wrapper (`RBSSymbol`) maintains a reference to the parser and
provides access to the symbol's name bytes, similar to how `RBSString`
handles string types.

The build script now generates accessors for `rbs_ast_symbol` fields
that properly pass both the symbol pointer and parser reference to
enable constant pool lookups.
alexcrocha added a commit that referenced this pull request Jan 14, 2026
Symbol fields in RBS AST nodes store their values as constant IDs that
need to be resolved through the parser's constant pool. This safe
Rust wrapper (`RBSSymbol`) maintains a reference to the parser and
provides access to the symbol's name bytes, similar to how `RBSString`
handles string types.

The build script now generates accessors for `rbs_ast_symbol` fields
that properly pass both the symbol pointer and parser reference to
enable constant pool lookups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants