refactor(static_semantics): delete orphaned SourceKind flat enum (#331)#349
Conversation
Zero consumers — grep and moon ide find-references return only the definition site and pkg.generated.mbti. Delete now; re-add as a payload-carrying enum (DirectEval(CallerFacts), etc.) when the first real consumer arrives. Also removes the now-unused @debug import from pkg.generated.mbti. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 59 minutes and 35 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
This removes SourceKind even though it was declared pub(all) and appeared in the generated package interface, so downstream packages that import dowdiness/js_engine/static_semantics can compile against this enum even if repo-local rg/moon ide find-references finds no consumers. For a refactor-only deletion, this breaks published API users that mention SourceKind without providing a replacement or deprecation path.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
SourceKindenum fromstatic_semantics/strictness.mbt— zero consumers confirmed viamoon ide find-referencesand grep across all.mbt/.mbtifiles@debugdependency import frompkg.generated.mbtiMotivation
SourceKindwas added as a placeholder for the preparation-boundary design but no code ever read it. Keeping it would mean maintaining a growing variant list through future refactors with no benefit. Per the demand-driven deletion principle: delete now, re-add as a payload-carrying enum (DirectEval(CallerFacts),FunctionConstructor(ParamStrings), …) when the first real consumer arrives.Test plan
moon check— cleanmoon test -p static_semantics— 22/22 passedmoon info—.mbtiregeneratedmoon fmt— no formatting changesgit diff --stat— onlystrictness.mbtandpkg.generated.mbtichanged (30 deletions, 0 additions)🤖 Generated with Claude Code