Skip to content

Support analyzer >=10 <15 - #1012

Draft
greglittlefield-wf wants to merge 11 commits into
drop-dart-2-supportfrom
allow-latest-analyzer
Draft

Support analyzer >=10 <15#1012
greglittlefield-wf wants to merge 11 commits into
drop-dart-2-supportfrom
allow-latest-analyzer

Conversation

@greglittlefield-wf

Copy link
Copy Markdown
Contributor

No description provided.

@greglittlefield-wf
greglittlefield-wf changed the base branch from master to drop-dart-2-support August 6, 2026 23:37
greglittlefield-wf and others added 7 commits August 6, 2026 17:03
…r analyzer 11-14

Analyzer 11-14 removed several AST APIs the builder relied on. This
migrates off them so the builder works across analyzer 10 through 14:
- NamedCompilationUnitMember → CompilationUnitMember (removed in 11)
- ClassDeclaration.{members,typeParameters,leftBracket,rightBracket} →
  via .body.members/.namePart.typeParameters/etc. (removed in 11)
- ClassBody.members shim for analyzer 10/11 (moved to ClassBody in 12)
- NamedExpression → NamedArgument via dynamic dispatch (renamed in 13)

Also removes the build_runner <2.14.0 workaround cap (fixed in 2.15.1),
updates the validate_analyzer CI matrix to test ^10 through ^14, and
extends set_analyzer_constraint.dart to strip dev deps that cap the
analyzer so high-version rows can resolve.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant