You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate match arm grammar errors to structured diagnostics #396
enhancementA request for a new feature or improvement.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
The match parser still prints errors for malformed =>, case qualification, payload separators, arm bodies, and duplicate wildcards. These failures should use the compiler's structured diagnostic path.
Scope
Convert the syntax-level failure paths in front/parser/src/parser/control.rs for match headers, patterns, arrows, and arm bodies.
Preserve semantic variant exhaustiveness diagnostics as they are.
Add negative tests for a missing =>, missing case after ::, malformed payload list, missing arm brace, and duplicate wildcard.
Do not change match or variant semantics.
Completion criteria
No direct print remains in the match grammar paths covered here.
Errors identify the match/pattern context and expected token.
enhancementA request for a new feature or improvement.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity
Fix frontend contracts and native regression tests (#723)