mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Bump SDK version to 2.17
TEST=Standard CQ Change-Id: I0eba9fa6eaa73bf9da8abdd93645a8e6eb8e601b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226691 Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: William Hesse <whesse@google.com>
This commit is contained in:
parent
cc2c87fce2
commit
05b19a2218
|
@ -8,7 +8,7 @@ part of 'experiments.dart';
|
|||
|
||||
/// The current version of the Dart language (or, for non-stable releases, the
|
||||
/// version of the language currently in the process of being developed).
|
||||
const _currentVersion = '2.16.0';
|
||||
const _currentVersion = '2.17.0';
|
||||
|
||||
/// A map containing information about all known experimental flags.
|
||||
final _knownFeatures = <String, ExperimentalFeature>{
|
||||
|
|
|
@ -33,26 +33,26 @@ enum ExperimentalFlag {
|
|||
}
|
||||
|
||||
const Version enableAlternativeInvalidationStrategyVersion =
|
||||
const Version(2, 16);
|
||||
const Version enableConstFunctionsVersion = const Version(2, 16);
|
||||
const Version(2, 17);
|
||||
const Version enableConstFunctionsVersion = const Version(2, 17);
|
||||
const Version enableConstantUpdate2018Version = const Version(2, 0);
|
||||
const Version enableConstructorTearoffsVersion = const Version(2, 15);
|
||||
const Version enableControlFlowCollectionsVersion = const Version(2, 0);
|
||||
const Version enableEnhancedEnumsVersion = const Version(2, 16);
|
||||
const Version enableEnhancedEnumsVersion = const Version(2, 17);
|
||||
const Version enableExtensionMethodsVersion = const Version(2, 6);
|
||||
const Version enableExtensionTypesVersion = const Version(2, 16);
|
||||
const Version enableExtensionTypesVersion = const Version(2, 17);
|
||||
const Version enableGenericMetadataVersion = const Version(2, 14);
|
||||
const Version enableMacrosVersion = const Version(2, 16);
|
||||
const Version enableNamedArgumentsAnywhereVersion = const Version(2, 16);
|
||||
const Version enableMacrosVersion = const Version(2, 17);
|
||||
const Version enableNamedArgumentsAnywhereVersion = const Version(2, 17);
|
||||
const Version enableNonNullableVersion = const Version(2, 12);
|
||||
const Version enableNonfunctionTypeAliasesVersion = const Version(2, 13);
|
||||
const Version enableSetLiteralsVersion = const Version(2, 0);
|
||||
const Version enableSpreadCollectionsVersion = const Version(2, 0);
|
||||
const Version enableSuperParametersVersion = const Version(2, 16);
|
||||
const Version enableTestExperimentVersion = const Version(2, 16);
|
||||
const Version enableSuperParametersVersion = const Version(2, 17);
|
||||
const Version enableTestExperimentVersion = const Version(2, 17);
|
||||
const Version enableTripleShiftVersion = const Version(2, 14);
|
||||
const Version enableValueClassVersion = const Version(2, 16);
|
||||
const Version enableVarianceVersion = const Version(2, 16);
|
||||
const Version enableValueClassVersion = const Version(2, 17);
|
||||
const Version enableVarianceVersion = const Version(2, 17);
|
||||
|
||||
ExperimentalFlag? parseExperimentalFlag(String flag) {
|
||||
switch (flag) {
|
||||
|
@ -147,49 +147,49 @@ const Map<ExperimentalFlag, bool> expiredExperimentalFlags = {
|
|||
};
|
||||
|
||||
const Map<ExperimentalFlag, Version> experimentEnabledVersion = {
|
||||
ExperimentalFlag.alternativeInvalidationStrategy: const Version(2, 16),
|
||||
ExperimentalFlag.constFunctions: const Version(2, 16),
|
||||
ExperimentalFlag.alternativeInvalidationStrategy: const Version(2, 17),
|
||||
ExperimentalFlag.constFunctions: const Version(2, 17),
|
||||
ExperimentalFlag.constantUpdate2018: const Version(2, 0),
|
||||
ExperimentalFlag.constructorTearoffs: const Version(2, 15),
|
||||
ExperimentalFlag.controlFlowCollections: const Version(2, 0),
|
||||
ExperimentalFlag.enhancedEnums: const Version(2, 16),
|
||||
ExperimentalFlag.enhancedEnums: const Version(2, 17),
|
||||
ExperimentalFlag.extensionMethods: const Version(2, 6),
|
||||
ExperimentalFlag.extensionTypes: const Version(2, 16),
|
||||
ExperimentalFlag.extensionTypes: const Version(2, 17),
|
||||
ExperimentalFlag.genericMetadata: const Version(2, 14),
|
||||
ExperimentalFlag.macros: const Version(2, 16),
|
||||
ExperimentalFlag.namedArgumentsAnywhere: const Version(2, 16),
|
||||
ExperimentalFlag.macros: const Version(2, 17),
|
||||
ExperimentalFlag.namedArgumentsAnywhere: const Version(2, 17),
|
||||
ExperimentalFlag.nonNullable: const Version(2, 12),
|
||||
ExperimentalFlag.nonfunctionTypeAliases: const Version(2, 13),
|
||||
ExperimentalFlag.setLiterals: const Version(2, 0),
|
||||
ExperimentalFlag.spreadCollections: const Version(2, 0),
|
||||
ExperimentalFlag.superParameters: const Version(2, 16),
|
||||
ExperimentalFlag.testExperiment: const Version(2, 16),
|
||||
ExperimentalFlag.superParameters: const Version(2, 17),
|
||||
ExperimentalFlag.testExperiment: const Version(2, 17),
|
||||
ExperimentalFlag.tripleShift: const Version(2, 14),
|
||||
ExperimentalFlag.valueClass: const Version(2, 16),
|
||||
ExperimentalFlag.variance: const Version(2, 16),
|
||||
ExperimentalFlag.valueClass: const Version(2, 17),
|
||||
ExperimentalFlag.variance: const Version(2, 17),
|
||||
};
|
||||
|
||||
const Map<ExperimentalFlag, Version> experimentReleasedVersion = {
|
||||
ExperimentalFlag.alternativeInvalidationStrategy: const Version(2, 16),
|
||||
ExperimentalFlag.constFunctions: const Version(2, 16),
|
||||
ExperimentalFlag.alternativeInvalidationStrategy: const Version(2, 17),
|
||||
ExperimentalFlag.constFunctions: const Version(2, 17),
|
||||
ExperimentalFlag.constantUpdate2018: const Version(2, 0),
|
||||
ExperimentalFlag.constructorTearoffs: const Version(2, 15),
|
||||
ExperimentalFlag.controlFlowCollections: const Version(2, 0),
|
||||
ExperimentalFlag.enhancedEnums: const Version(2, 16),
|
||||
ExperimentalFlag.enhancedEnums: const Version(2, 17),
|
||||
ExperimentalFlag.extensionMethods: const Version(2, 6),
|
||||
ExperimentalFlag.extensionTypes: const Version(2, 16),
|
||||
ExperimentalFlag.extensionTypes: const Version(2, 17),
|
||||
ExperimentalFlag.genericMetadata: const Version(2, 14),
|
||||
ExperimentalFlag.macros: const Version(2, 16),
|
||||
ExperimentalFlag.namedArgumentsAnywhere: const Version(2, 16),
|
||||
ExperimentalFlag.macros: const Version(2, 17),
|
||||
ExperimentalFlag.namedArgumentsAnywhere: const Version(2, 17),
|
||||
ExperimentalFlag.nonNullable: const Version(2, 10),
|
||||
ExperimentalFlag.nonfunctionTypeAliases: const Version(2, 13),
|
||||
ExperimentalFlag.setLiterals: const Version(2, 0),
|
||||
ExperimentalFlag.spreadCollections: const Version(2, 0),
|
||||
ExperimentalFlag.superParameters: const Version(2, 16),
|
||||
ExperimentalFlag.testExperiment: const Version(2, 16),
|
||||
ExperimentalFlag.superParameters: const Version(2, 17),
|
||||
ExperimentalFlag.testExperiment: const Version(2, 17),
|
||||
ExperimentalFlag.tripleShift: const Version(2, 14),
|
||||
ExperimentalFlag.valueClass: const Version(2, 16),
|
||||
ExperimentalFlag.variance: const Version(2, 16),
|
||||
ExperimentalFlag.valueClass: const Version(2, 17),
|
||||
ExperimentalFlag.variance: const Version(2, 17),
|
||||
};
|
||||
|
||||
const AllowedExperimentalFlags defaultAllowedExperimentalFlags =
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_type_when_experiment_not_enabled.dart:11:6: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// test(E e) {} // Error.
|
||||
// ^
|
||||
//
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_type_when_experiment_not_enabled.dart:11:6: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// test(E e) {} // Error.
|
||||
// ^
|
||||
//
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_type_when_experiment_not_enabled.dart:11:6: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// test(E e) {} // Error.
|
||||
// ^
|
||||
//
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_type_when_experiment_not_enabled.dart:11:6: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// test(E e) {} // Error.
|
||||
// ^
|
||||
//
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:11: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// extension type E on A {} // Error because of 'type'.
|
||||
// ^^^^
|
||||
//
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:11: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// extension type E on A {} // Error because of 'type'.
|
||||
// ^^^^
|
||||
//
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:11: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// extension type E on A {} // Error because of 'type'.
|
||||
// ^^^^
|
||||
//
|
||||
|
|
|
@ -3,7 +3,7 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:11: Error: This requires the 'extension-types' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// extension type E on A {} // Error because of 'type'.
|
||||
// ^^^^
|
||||
//
|
||||
|
|
|
@ -3,22 +3,22 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:8:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class1 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:9:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class2 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:10:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class3 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:11:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class4 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
|
|
|
@ -3,22 +3,22 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:8:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class1 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:9:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class2 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:10:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class3 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:11:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class4 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
|
|
|
@ -3,22 +3,22 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:8:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class1 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:9:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class2 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:10:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class3 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:11:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class4 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
|
|
|
@ -3,22 +3,22 @@ library /*isNonNullableByDefault*/;
|
|||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:8:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class1 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:9:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class2 {}
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:10:7: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// macro class Class3 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/macro_class.dart:11:16: Error: This requires the 'macros' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.16 or higher, and running 'pub get'.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'.
|
||||
// abstract macro class Class4 = Super with Mixin;
|
||||
// ^^^^^
|
||||
//
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
import "ast.dart";
|
||||
|
||||
Version defaultLanguageVersion = const Version(2, 16);
|
||||
Version defaultLanguageVersion = const Version(2, 17);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// Instead modify 'tools/experimental_features.yaml' and run
|
||||
// 'dart tools/generate_experimental_flags.dart' to update.
|
||||
//
|
||||
// Current version: 2.16.0
|
||||
// Current version: 2.17.0
|
||||
|
||||
#include "vm/experimental_features.h"
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// Instead modify 'tools/experimental_features.yaml' and run
|
||||
// 'dart tools/generate_experimental_flags.dart' to update.
|
||||
//
|
||||
// Current version: 2.16.0
|
||||
// Current version: 2.17.0
|
||||
|
||||
#ifndef RUNTIME_VM_EXPERIMENTAL_FEATURES_H_
|
||||
#define RUNTIME_VM_EXPERIMENTAL_FEATURES_H_
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#
|
||||
CHANNEL be
|
||||
MAJOR 2
|
||||
MINOR 16
|
||||
MINOR 17
|
||||
PATCH 0
|
||||
PRERELEASE 0
|
||||
PRERELEASE_PATCH 0
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
# default 'language' "category" with code generated for both CFE and Analyzer,
|
||||
# while other categories can be tailored more specifically.
|
||||
|
||||
current-version: '2.16.0'
|
||||
current-version: '2.17.0'
|
||||
|
||||
features:
|
||||
variance:
|
||||
|
|
Loading…
Reference in a new issue