Skip to content

Commit ec8dcba

Browse files
committed
Version 2.7.0-dev.0.0
Merge commit '28cc45945867b2391778a1f3c438507cc97d1603' into dev
2 parents 1a844e4 + 28cc459 commit ec8dcba

File tree

1,799 files changed

+62323
-68145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,799 files changed

+62323
-68145
lines changed

.packages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# by DEPS into /third_party/pkg and /third_party/pkg_tested.
77
# Please update this file if you add a package to DEPS or /pkg
88
#
9+
_fe_analyzer_shared:pkg/_fe_analyzer_shared/lib
910
analysis_server:pkg/analysis_server/lib
1011
analysis_server_client:pkg/analysis_server_client/lib
1112
analysis_tool:pkg/analysis_tool/lib

CHANGELOG.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
## Next release
2+
(Add new changes here, and they will be copied to the change section for the
3+
next release)
4+
5+
### Core libraries
6+
7+
#### `dart:io`
8+
9+
* **Breaking change**: Added `IOOverrides.serverSocketBind` to aid in writing
10+
tests that wish to mock `ServerSocket.bind`.
11+
12+
### Dart VM
13+
14+
* New fields added to existing instances by a reload will now be initialized
15+
lazily, as if the field was a late field. This makes the initialization order
16+
program-defined, whereas previously it was undefined.
17+
18+
### Tools
19+
20+
#### Linter
21+
22+
The Linter was updated to `0.1.103`, which includes:
23+
24+
* updates to `prefer_relative_imports` to use a faster and more robust way to check for self-package references
25+
* updates to our approach to checking for `lib` dir contents (speeding up `avoid_renaming_method_parameters` and
26+
making `prefer_relative_imports` and `public_member_api_docs` amenable to internal package formats -- w/o pubspecs)
27+
28+
#### Pub
29+
30+
* `pub get` generates [`.dart_tools/package_config.json`](https://github.com/dart-lang/language/blob/62c036cc41b10fb543102d2f73ee132d1e2b2a0e/accepted/future-releases/language-versioning/package-config-file-v2.md)
31+
in addition to `.packages` to support language versioning.
32+
33+
* `pub publish` now warns about the old flutter plugin registration format.
34+
35+
* `pub publish` now warns about the `author` field in pubspec.yaml being.
36+
obsolete.
37+
38+
* Show a proper error message when `git` is not installed.
39+
140
## 2.6.0 - 2019-11-05
241

342
### Language
@@ -124,7 +163,6 @@ The Linter was updated to `0.1.101`, which includes:
124163
* new lint: `avoid_web_libraries_in_flutter` (experimental)
125164
* (internal) prepare `unnecessary_lambdas` for coming `MethodInvocation` vs. `FunctionExpressionInvocation` changes
126165

127-
128166
## 2.5.1 - 2019-09-27
129167

130168
This is a patch release that prevents type inference failures in the analyzer

DEPS

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ vars = {
5656
# Revisions of /third_party/* dependencies.
5757
"args_tag": "1.5.0",
5858
"async_tag": "2.0.8",
59-
"bazel_worker_tag": "bazel_worker-v0.1.20",
59+
"bazel_worker_tag": "v0.1.22",
6060
"benchmark_harness_tag": "81641290dea44c34138a109a37e215482f405f81",
6161
"boolean_selector_tag" : "1.0.4",
62-
"boringssl_gen_rev": "bbf52f18f425e29b1185f2f6753bec02ed8c5880",
63-
"boringssl_rev" : "702e2b6d3831486535e958f262a05c75a5cb312e",
62+
"boringssl_gen_rev": "b9e27cff1ff0803e97ab1f88764a83be4aa94a6d",
63+
"boringssl_rev" : "4dfd5af70191b068aebe567b8e29ce108cee85ce",
6464
"charcode_tag": "v1.1.2",
6565
"chrome_rev" : "19997",
6666
"cli_util_rev" : "4ad7ccbe3195fd2583b30f86a86697ef61e80f41",
@@ -82,10 +82,10 @@ vars = {
8282
# and land the review.
8383
#
8484
# For more details, see https://github.com/dart-lang/sdk/issues/30164
85-
"dart_style_tag": "1.3.1", # Please see the note above before updating.
85+
"dart_style_tag": "1.3.2", # Please see the note above before updating.
8686

8787
"args_tag" : "1.5.2",
88-
"dartdoc_tag" : "v0.28.8",
88+
"dartdoc_tag" : "v0.29.0",
8989
"ffi_tag": "ea88d71b043ee14b268c3aedff14e9eb32e20959",
9090
"fixnum_tag": "0.10.9",
9191
"glob_tag": "1.1.7",
@@ -101,7 +101,7 @@ vars = {
101101
"intl_tag": "0.15.7",
102102
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
103103
"json_rpc_2_tag": "2.0.9",
104-
"linter_tag": "0.1.101",
104+
"linter_tag": "0.1.103",
105105
"logging_tag": "0.11.3+2",
106106
"markupsafe_rev": "8f45f5cfa0009d2a70589bcda0349b8cb2b72783",
107107
"markdown_tag": "2.1.1",
@@ -117,8 +117,8 @@ vars = {
117117
"pedantic_tag": "v1.8.0",
118118
"ply_rev": "604b32590ffad5cbb82e4afef1d305512d06ae93",
119119
"pool_tag": "1.3.6",
120-
"protobuf_rev": "7d34c9e4e552a4f66acce32e4344ae27756a1949",
121-
"pub_rev": "df0f72daaa724e29ed6075e0fb5549a6d6dc5daf",
120+
"protobuf_rev": "3746c8fd3f2b0147623a8e3db89c3ff4330de760",
121+
"pub_rev": "80ac76400ff58fde3c5a335d860d196c3febe837",
122122
"pub_semver_tag": "1.4.2",
123123
"quiver-dart_tag": "2.0.0+1",
124124
"resource_rev": "f8e37558a1c4f54550aa463b88a6a831e3e33cd6",
@@ -148,7 +148,7 @@ vars = {
148148
"web_components_rev": "8f57dac273412a7172c8ade6f361b407e2e4ed02",
149149
"web_socket_channel_tag": "1.0.9",
150150
"WebCore_rev": "fb11e887f77919450e497344da570d780e078bc8",
151-
"yaml_tag": "2.1.15",
151+
"yaml_tag": "2.2.0",
152152
"zlib_rev": "c44fb7248079cc3d5563b14b3f758aee60d6b415",
153153
"crashpad_rev": "bf327d8ceb6a669607b0dbab5a83a275d03f99ed",
154154
"minichromium_rev": "8d641e30a8b12088649606b912c2bc4947419ccc",
@@ -342,7 +342,7 @@ deps = {
342342
Var("dart_root") + "/third_party/pkg/pool":
343343
Var("dart_git") + "pool.git" + "@" + Var("pool_tag"),
344344
Var("dart_root") + "/third_party/pkg/protobuf":
345-
Var("dart_git") + "protobuf.git" + "@" + Var("protobuf_rev"),
345+
Var("dart_git") + "protobuf.git" + "@" + Var("protobuf_rev"),
346346
Var("dart_root") + "/third_party/pkg/pub_semver":
347347
Var("dart_git") + "pub_semver.git" + "@" + Var("pub_semver_tag"),
348348
Var("dart_root") + "/third_party/pkg/pub":
@@ -458,7 +458,17 @@ deps = {
458458
"packages": [
459459
{
460460
"package": "dart/cfe/benchmark_data",
461-
"version": "sha1sum:4168b133ab7bce01c91311a8d4f25d4d6cb026f3",
461+
"version": "sha1sum:4640fa0bff40726392748d1ad3147e5dd0324ea2",
462+
}
463+
],
464+
"dep_type": "cipd",
465+
},
466+
467+
Var("dart_root") + "/pkg/front_end/testcases/old_dills/dills": {
468+
"packages": [
469+
{
470+
"package": "dart/cfe/dart2js_dills",
471+
"version": "binary_version:36",
462472
}
463473
],
464474
"dep_type": "cipd",

benchmarks/FfiBoringssl/dart/FfiBoringssl.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ String hash(Pointer<Data> data, int length, Pointer<EVP_MD> hashAlgorithm) {
6565
// * Architecture: x64
6666
// * 23000 - 52000000 us (without optimizations)
6767
// * 23000 - 30000 us (with optimizations)
68-
// * Architecture: SimDBC64
69-
// * 23000 - 5500000 us (without optimizations)
70-
// * 23000 - 30000 us (with optimizations)
7168
const int L = 1000; // Length of data in bytes.
7269

7370
final hashAlgorithm = EVP_sha512();

benchmarks/FfiCall/dart/FfiCall.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,6 @@ Pointer<Uint8> doCall20PointerUint8(
605605
// * CPU: Intel(R) Xeon(R) Gold 6154
606606
// * Architecture: x64
607607
// * 200 - 1100 us
608-
// * Architecture: SimDBC64
609-
// * 2800 - 110000 us
610608
const N = 1000;
611609

612610
class Uint8x01 extends BenchmarkBase {

benchmarks/FfiMemory/dart/FfiMemory.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ int doLoadInt64Mint(Pointer<Int64> pointer, int length) {
203203
// * Architecture: x64
204204
// * 48000 - 125000 us (without optimizations)
205205
// * 14 - ??? us (expected with optimizations, on par with typed data)
206-
// * Architecture: SimDBC64
207-
// * 52000 - 130000 us (without optimizations)
208-
// * 300 - ??? us (expected with optimizations, on par with typed data)
209206
const N = 1000;
210207

211208
class PointerInt8 extends BenchmarkBase {

build/config/linux/BUILD.gn

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@
55
import("//build/config/sysroot.gni")
66

77
config("sdk") {
8-
# Don't allow visible symbols from libc++ to be re-exported.
9-
ldflags = [
10-
"-nodefaultlibs",
11-
"-lc++",
12-
"-lc",
13-
"-lm",
14-
"-lpthread",
15-
"-lclang_rt.builtins",
16-
"-Wl,--exclude-libs=libc++.a",
17-
]
8+
ldflags = []
189

1910
if (is_asan || is_lsan || is_msan || is_tsan || is_ubsan) {
2011
ldflags += [ "-lrt" ]
12+
} else if (is_clang) {
13+
# Don't allow visible symbols from libc++ to be re-exported.
14+
ldflags = [
15+
"-nodefaultlibs",
16+
"-lc++",
17+
"-lc",
18+
"-lm",
19+
"-lpthread",
20+
"-lclang_rt.builtins",
21+
"-Wl,--exclude-libs=libc++.a",
22+
]
2123
}
2224

2325
if (sysroot != "") {

pkg/_fe_analyzer_shared/LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright 2019, the Dart project authors. All rights reserved.
2+
Redistribution and use in source and binary forms, with or without
3+
modification, are permitted provided that the following conditions are
4+
met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of Google Inc. nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

pkg/_fe_analyzer_shared/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# FE/analyzer shared code
2+
3+
This package contains logic that is shared between the front_end and
4+
analyzer packages. It is intended solely to facilitate development of
5+
the Dart SDK, and is not intended for use by end users. In
6+
particular, this package has no public API, so no guarantee is made of
7+
compatibility between one version of the package and the next.
8+
9+
End users should consider using the analyzer package to analyze Dart
10+
source code.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2+
# for details. All rights reserved. Use of this source code is governed by a
3+
# BSD-style license that can be found in the LICENSE file.
4+
5+
include: analysis_options_no_lints.yaml
6+
7+
linter:
8+
rules:
9+
- curly_braces_in_flow_control_structures
10+
- prefer_adjacent_string_concatenation
11+
- unawaited_futures
12+
- recursive_getters
13+
- avoid_empty_else
14+
- empty_statements
15+
- list_remove_unrelated_type
16+
- iterable_contains_unrelated_type
17+
- valid_regexps
18+
- package_api_docs
19+
- lines_longer_than_80_chars
20+
# - always_specify_types
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2+
# for details. All rights reserved. Use of this source code is governed by a
3+
# BSD-style license that can be found in the LICENSE file.
4+
5+
analyzer:
6+
errors:
7+
# Allow having TODOs in the code
8+
todo: ignore
9+
exclude:
10+
- test/flow_analysis/assigned_variables/data/**
11+
- test/flow_analysis/definite_assignment/data/**
12+
- test/flow_analysis/nullability/data/**
13+
- test/flow_analysis/reachability/data/**
14+
- test/flow_analysis/type_promotion/data/**

0 commit comments

Comments
 (0)