feat(rpc_generator): upgrade to analyzer v9#24
Merged
Nicobond07 merged 1 commit intomainfrom Feb 3, 2026
Merged
Conversation
4048568 to
cff9085
Compare
There was a problem hiding this comment.
Pull request overview
Updates rpc_generator to be compatible with analyzer v9 (and associated build/source_gen upgrades), adjusting generator code and tests to match the updated analyzer/source_gen APIs.
Changes:
- Upgraded
analyzer,build,source_gen, and related dev tooling; bumpedrpc_generatorversion to1.2.0. - Migrated generator code from
*Element2APIs to legacy*ElementAPIs (element.dart,.fields,.methods, etc.). - Reworked generator tests to use
build_test+PartBuilder, and updated the expected generated output.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| rpc_generator/lib/src/generator.dart | Migrates generator element model types/APIs for analyzer v9 compatibility. |
| rpc_generator/test/generator_test.dart | Replaces generator_test harness with build_test-based builder tests. |
| rpc_generator/test/src/expected/with_call_adapter.g.dart | Updates fixture to match newly generated output (call adapter annotations). |
| rpc_generator/pubspec.yaml | Bumps package version and updates dependency constraints. |
| pubspec.lock | Locks updated dependency graph after the analyzer/build/source_gen upgrade. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cff9085 to
b8d2f18
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
edbrdi
approved these changes
Feb 3, 2026
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.
No description provided.