From d6db1483e059793c24beb469e73f41df015d6bfa Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Fri, 13 Mar 2026 15:48:42 -0700 Subject: [PATCH] Bump model packages to language version 3.12. This CL is part of an effort to bump the SDK requirement to `3.12.0-0` for all the packages in `pkg` that are not published to `pub`, so that we can get better testing of the "private named parameters" feature. (Packages that *are* published to `pub` can't be safely bumped yet, because SDK 3.12 hasn't been released, and I don't want to block those packages' ability to publish useful updates to customers.) This change covers the following packages, which are owned by OWNERS_MODEL: - pkg/analyzer_cli - pkg/frontend_server - pkg/testing Changes to `pubspec.yaml` files were made manually. Changes to `.dart` files were made automatically, using `dart fix` to fix failures in the unnecessary_underscores lint. Change-Id: Ie444a97b2aed3f9eabfde4963c19cfb26a6a6964 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/487883 Reviewed-by: Konstantin Shcheglov Commit-Queue: Konstantin Shcheglov Auto-Submit: Paul Berry --- pkg/analyzer_cli/pubspec.yaml | 2 +- pkg/frontend_server/pubspec.yaml | 2 +- pkg/testing/lib/src/zone_helper.dart | 2 +- pkg/testing/pubspec.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/analyzer_cli/pubspec.yaml b/pkg/analyzer_cli/pubspec.yaml index 3ed73ab0283..0f6d2a1e1b1 100644 --- a/pkg/analyzer_cli/pubspec.yaml +++ b/pkg/analyzer_cli/pubspec.yaml @@ -5,7 +5,7 @@ description: Command line interface for the Dart Analyzer. publish_to: none environment: - sdk: ^3.9.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/frontend_server/pubspec.yaml b/pkg/frontend_server/pubspec.yaml index cd75f820f94..bbc782c353b 100644 --- a/pkg/frontend_server/pubspec.yaml +++ b/pkg/frontend_server/pubspec.yaml @@ -4,7 +4,7 @@ description: A resident kernel compiler publish_to: none environment: - sdk: ^3.5.0 + sdk: '^3.12.0-0' resolution: workspace diff --git a/pkg/testing/lib/src/zone_helper.dart b/pkg/testing/lib/src/zone_helper.dart index 040616142c2..1c1a1cb1e14 100644 --- a/pkg/testing/lib/src/zone_helper.dart +++ b/pkg/testing/lib/src/zone_helper.dart @@ -21,7 +21,7 @@ Future runGuarded( }) { PrintHandler? printWrapper; if (printLineOnStdout != null) { - printWrapper = (_, __, ___, String line) { + printWrapper = (_, _, _, String line) { printLineOnStdout(line); }; } diff --git a/pkg/testing/pubspec.yaml b/pkg/testing/pubspec.yaml index 5dadc4bc21d..131abb09b69 100644 --- a/pkg/testing/pubspec.yaml +++ b/pkg/testing/pubspec.yaml @@ -5,7 +5,7 @@ name: testing publish_to: none environment: - sdk: ^3.5.0 + sdk: '^3.12.0-0' resolution: workspace