-
Notifications
You must be signed in to change notification settings - Fork 121
Оптимизировано (и местами исправлено) формирование ссылки на объекты MD #3456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughRefactors MDO reference resolution by adding DocumentContext.getMdoRef() and delegating many former MdoRefBuilder/MdoReference call sites to it; introduces getMdoRefLocal(MD) helper in diagnostics, simplifies MdoRefBuilder logic, inlines/removes several diagnostic helpers, and applies local type inference (var) in multiple classes. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Component
participant DC as DocumentContext
participant MRB as MdoRefBuilder
participant Config as Configuration
Note over Caller,DC: Old: many callers invoked MdoRefBuilder directly
Caller->>MRB: MdoRefBuilder.getMdoRef(documentContext)
MRB-->>Caller: mdoRef
Note over Caller,DC: New: callers call DocumentContext.getMdoRef()
Caller->>DC: documentContext.getMdoRef()
DC->>MRB: (delegates) getMdoRef(this)
MRB-->>DC: mdoRef
DC-->>Caller: mdoRef
Note over Diagnostics,Config: Locale-aware diagnostic name resolution
Diagnostics->>Config: configuration.getMdoRefLocal(mdo)
Config-->>Diagnostics: locale-specific mdoRef
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
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 |
d9dfbf3 to
b11b1d6
Compare
|
b11b1d6 to
2103458
Compare
|



Описание
Скорректировано формирование и использование ссылок mdoref.
Связанные задачи
Closes
Чеклист
Общие
gradlew precommit)Для диагностик
Дополнительно
Summary by CodeRabbit
Refactor
Tests