Repository navigation
Parse member access modifiers and qualified proto contracts - #1282
Merged
Merged
Conversation
…acts Keep contextual names usable as identifiers and retain the source spans of explicit modifiers and contract path segments. Diagnose explicit member access during semantic checking until visibility rules are implemented. Signed-off-by: LunaStev <luna@lunastev.org>
Reuse the checksum-pinned FreeBSD image for runtime tests and provision minimal Git before starting the guest validation deadline. Exercise contextual names and syntax-only declarations through the shared Wave case runner. Signed-off-by: LunaStev <luna@lunastev.org>
Signed-off-by: LunaStev <luna@lunastev.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
proto graphics::Renderer : Local. Keep the target type separate, retain each contract segment's source range, and point malformed paths at the offending token.pub,priv, andprotectedmodifiers and their spans on struct fields and on methods declared in a struct or proto. The parsed AST distinguishes an omitted modifier from an explicit one. Instruct S { priv: i32; },privremains the field name.build --emit=ast. Until access control is implemented,checkand code-generating builds reportE3001at the explicit modifier, including in imported declarations and unused generic types.0.0.1-alpha.git-tinyfrom the FreeBSD repository without fetching the remote file-ownership index. Native package validation has its own deadline and still requires a successful guest exit and clean shutdown.Motivation
The frontend needs to represent these declarations before it can implement visibility checks or resolve named contracts. Accepting access modifiers during code generation today would silently ignore their intended restrictions.
Closes #1137
Closes #1165
Closes #1140
Closes #1141
Target and compatibility impact
Existing module-level
pub, unmarked members, inherent proto methods, and unqualified named proto declarations retain their syntax. All eleven contextual words remain usable as identifiers outside their declaration contexts. LLVM and Whale share the semantic diagnostic for explicit member access. Qualified named contracts retain the existing diagnostic for unsupported semantic lowering.Validation
cargo +1.89.0 test --workspace --all-targets --locked --offline --jobs 2passed all 713 tests across 86 suites on8f59bc5f. The native identifier regression exercises all eleven words as function, parameter, variable, and field names.-D warnings, rustfmt, the repository function-spacing check, andgit diff --checkpassed.wavec --version, the Cargo package ID, Meson project metadata, and the FreeBSD archive name against0.0.1-alpha.Checklist