fix(scope): use identity-based references for module edits#412
Conversation
|
Warning Review limit reached
More reviews will be available in 28 minutes and 25 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ 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 (6)
✨ 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 |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
lambda-editor | 430e0e9 | Commit Preview URL Branch Preview URL |
May 31 2026, 08:26 AM |
Benchmark Comparison ReportComparing PR branch against Main Module BenchmarksBase branch: PR branch: event-graph-walker BenchmarksBase branch: PR branch: Benchmarks run with |
Summary
find_usagesscan with a privatemodule_def_referencesbridge to@scope.referencesReuse check
@scope.references(g, decl.id)for reference enumeration@scope.buildgraph construction at edit call sites;compute_inline_definitionreuses the graph it already builds for declaration lookup@scope.declaration, but it maps ref node → decl and does not enumerate references for a selected module definitionmodule_def_referencesonly bridges moduledef_indexto graph-localDeclIdinside the edits packageAPI note
find_usagesis removed fromdowdiness/canopy/lang/lambda/edits(pkg.generated.mbti) because module edit consumers now use the canonical scope graph query and there are no remaining in-repo callersValidation
NEW_MOON_MOD=0 moon checkNEW_MOON_MOD=0 moon fmt && NEW_MOON_MOD=0 moon infoNEW_MOON_MOD=0 moon test -p dowdiness/canopy/lang/lambda/edits→ 128/128NEW_MOON_MOD=0 moon test→ 1268/1268git diff --checkReview