Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f2d8914

Browse files
author
Dart CI
committed
Version 2.15.0-13.0.dev
Merge commit '8246b01c63930dc38f4a3cce2b1839acce312e02' into 'dev'
2 parents 481bdbc + 8246b01 commit f2d8914

32 files changed

+519
-83
lines changed

BUILD.gn

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ group("run_ffi_unit_tests") {
7373
deps = [ "runtime/bin/ffi_unit_test:run_ffi_unit_tests" ]
7474
}
7575

76-
group("runtime_kernel") {
77-
if (targetting_fuchsia) {
78-
# Fuchsia has run_vm_tests marked testonly.
79-
testonly = true
80-
}
81-
deps = [ ":runtime" ]
82-
}
83-
8476
group("runtime_precompiled") {
8577
deps = [
8678
"runtime/bin:dart_precompiled_runtime",

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ vars = {
3939

4040
# Checked-in SDK version. The checked-in SDK is a Dart SDK distribution in a
4141
# cipd package used to run Dart scripts in the build and test infrastructure.
42-
"sdk_tag": "version:2.14.0-293.0.dev",
42+
"sdk_tag": "version:2.14.0-377.4.beta",
4343

4444
# co19 is a cipd package. Use update.sh in tests/co19[_2] to update these
4545
# hashes. It requires access to the dart-build-access group, which EngProd

pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8959,6 +8959,18 @@ const MessageCode messageStaticOperator = const MessageCode("StaticOperator",
89598959
message: r"""Operators can't be static.""",
89608960
tip: r"""Try removing the keyword 'static'.""");
89618961

8962+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
8963+
const Code<Null> codeStaticTearOffFromInstantiatedClass =
8964+
messageStaticTearOffFromInstantiatedClass;
8965+
8966+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
8967+
const MessageCode messageStaticTearOffFromInstantiatedClass = const MessageCode(
8968+
"StaticTearOffFromInstantiatedClass",
8969+
message:
8970+
r"""Cannot access static member on an instantiated generic class.""",
8971+
tip:
8972+
r"""Try removing the type arguments or placing them after the member name.""");
8973+
89628974
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
89638975
const Code<Null> codeStrongModeNNBDButOptOut = messageStrongModeNNBDButOptOut;
89648976

pkg/dartdev/lib/src/sdk.dart

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ String get _computeSdkPath {
3939
/// A utility class for finding and referencing paths within the Dart SDK.
4040
class Sdk {
4141
final String sdkPath;
42+
final String version;
4243

43-
Sdk() : sdkPath = _computeSdkPath;
44+
Sdk()
45+
: sdkPath = _computeSdkPath,
46+
version = Runtime.runtime.version;
4447

4548
// Assume that we want to use the same Dart executable that we used to spawn
4649
// DartDev. We should be able to run programs with out/ReleaseX64/dart even
@@ -97,25 +100,20 @@ class Runtime {
97100
static Runtime runtime = Runtime._();
98101

99102
// Match "2.10.0-edge.0b2da6e7 (be) ...".
100-
static RegExp channelRegex = RegExp(r'.* \(([\d\w]+)\) .*');
103+
static final RegExp _channelRegex = RegExp(r'.* \(([\d\w]+)\) .*');
101104

102-
String _channel;
103-
104-
Runtime._() {
105-
_parseVersion();
106-
}
105+
/// The SDK's version number (x.y.z-a.b.channel).
106+
final String version;
107107

108108
/// The SDK's release channel (`be`, `dev`, `beta`, `stable`).
109-
String get channel => _channel;
109+
final String channel;
110110

111-
/// Return whether the SDK is from the stable release channel.
112-
bool get stableChannel => channel == 'stable';
111+
Runtime._()
112+
: version = _computeVersion(Platform.version),
113+
channel = _computeChannel(Platform.version);
113114

114-
void _parseVersion() {
115-
final version = Platform.version;
116-
final match = channelRegex.firstMatch(version);
117-
if (match != null) {
118-
_channel = match.group(1);
119-
}
120-
}
115+
static String _computeVersion(String version) =>
116+
version.substring(0, version.indexOf(' '));
117+
static String _computeChannel(String version) =>
118+
_channelRegex.firstMatch(version)?.group(1);
121119
}

pkg/dartdev/lib/src/templates/common.dart

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
final String gitignore = '''
5+
import '../sdk.dart';
6+
7+
String get sdkConstraint => '''
8+
sdk: '>=${sdk.version} <3.0.0'
9+
''';
10+
11+
const String gitignore = '''
612
# Files and directories created by pub.
713
.dart_tool/
814
.packages
@@ -11,7 +17,7 @@ final String gitignore = '''
1117
build/
1218
''';
1319

14-
final String analysisOptions = '''
20+
const String analysisOptions = '''
1521
# This file configures the static analysis results for your project (errors,
1622
# warnings, and lints).
1723
#
@@ -44,7 +50,7 @@ include: package:lints/recommended.yaml
4450
# https://dart.dev/guides/language/analysis-options
4551
''';
4652

47-
final String changelog = '''
53+
const String changelog = '''
4854
## 1.0.0
4955
5056
- Initial version.

pkg/dartdev/lib/src/templates/console_full.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ version: 1.0.0
3838
# homepage: https://www.example.com
3939
4040
environment:
41-
sdk: '>=2.12.0 <3.0.0'
41+
${common.sdkConstraint}
4242
4343
# dependencies:
4444
# path: ^1.8.0

pkg/dartdev/lib/src/templates/console_simple.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ version: 1.0.0
3636
# homepage: https://www.example.com
3737
3838
environment:
39-
sdk: '>=2.12.0 <3.0.0'
39+
${common.sdkConstraint}
4040
4141
# dependencies:
4242
# path: ^1.8.0

pkg/dartdev/lib/src/templates/package_simple.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ version: 1.0.0
5555
# homepage: https://www.example.com
5656
5757
environment:
58-
sdk: '>=2.12.0 <3.0.0'
58+
${common.sdkConstraint}
5959
6060
# dependencies:
6161
# path: ^1.8.0

pkg/dartdev/lib/src/templates/server_shelf.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ version: 1.0.0
4242
# homepage: https://www.example.com
4343
4444
environment:
45-
sdk: '>=2.12.0 <3.0.0'
45+
${common.sdkConstraint}
4646
4747
dependencies:
4848
args: ^2.0.0

pkg/dartdev/lib/src/templates/web_simple.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ version: 1.0.0
4242
# homepage: https://www.example.com
4343
4444
environment:
45-
sdk: '>=2.12.0 <3.0.0'
45+
${common.sdkConstraint}
4646
4747
# dependencies:
4848
# path: ^1.7.0

0 commit comments

Comments
 (0)