Skip to content

[pigeon] Remove remaining dart:mirrors usage - #13524

Open
sigurdm wants to merge 1 commit into
flutter:mainfrom
sigurdm:pigeon-remove-dart-mirrors
Open

sigurdm wants to merge 1 commit into
flutter:mainfrom
sigurdm:pigeon-remove-dart-mirrors

Conversation

@sigurdm

@sigurdm sigurdm commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Removes the remaining unused dart:mirrors imports and dead code from pigeon:

  • Removes isVoid(TypeMirror) and import 'dart:mirrors'; from lib/src/generator_tools.dart.
  • Removes _executeConfigurePigeon and import 'dart:mirrors'; from lib/src/pigeon_lib.dart (legacy pre-0.3.0 reflection-based configuration, superseded by @ConfigurePigeon AST parsing).
  • Removes the obsolete PigeonIsolate / dart:mirrors section from CONTRIBUTING.md.

Split out from #13253.

Fixes flutter/flutter#190228

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If both you and the PR author believe this PR qualifies for a test exemption, escalate to the tech lead for the changed area to review and apply the test-exempt label. All reviewers should feel empowered to ask for tests before escalating.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the remaining unused dart:mirrors usage from the Pigeon package. Specifically, it removes the dart:mirrors imports, the isVoid helper function, and the _executeConfigurePigeon method. Additionally, it updates the package version to 29.1.1 in pubspec.yaml, generator_tools.dart, and CHANGELOG.md, and updates the documentation in CONTRIBUTING.md accordingly. There are no review comments, and I have no feedback to provide.

@sigurdm

sigurdm commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@gaaclarke @tarrinneal — this is the standalone upstream PR matching cl/1007219791 (removing the unused isVoid(TypeMirror) and pre-0.3.0 _executeConfigurePigeon reflection lookup). Since this only deletes dead code, could one of you take a look and apply the test exemption label?

@gaaclarke

Copy link
Copy Markdown
Member

test exempt: just deleting code, no new logic

@gaaclarke gaaclarke added the test-exempt Exempt from tests. Overrides `missing-tests` label label Nov 4, 2026

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to defer to @tarrinneal here, I did mark it text exempt though.

@tarrinneal tarrinneal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tarrinneal tarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 5, 2026
@auto-submit

auto-submit Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/packages/13524, Failed to merge flutter/packages/13524 with FormatException: Unexpected end of input (at character 1)

^
.

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD missing-tests p: pigeon test-exempt Exempt from tests. Overrides `missing-tests` label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[pigeon] Remove remaining dart:mirrors usage

3 participants