1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00
Commit Graph

274 Commits

Author SHA1 Message Date
Florian Loitsch
5202df2238 Warn when adding something to a closed sink and improve documentation.
Adding to a closed sink will throw once https://codereview.chromium.org/2857393003/ is committed.

Also:
Fixes #29122.

BUG= http://dartbug.com/29122
R=lrn@google.com, whesse@google.com

Committed: 8e19729b89
Reverted: 8f3ae7e7e1
Committed: c0090fa01f
Reverted: a4eb8b8fe3
Review-Url: https://codereview.chromium.org/2822173002 .
2017-05-08 15:52:19 +02:00
Florian Loitsch
a4eb8b8fe3 Revert "Warn when adding something to a closed sink and improve documentation."
This reverts commit c0090fa01f.

Review-Url: https://codereview.chromium.org/2872603002 .
2017-05-08 15:18:46 +02:00
Florian Loitsch
c0090fa01f Warn when adding something to a closed sink and improve documentation.
Adding to a closed sink will throw once https://codereview.chromium.org/2857393003/ is committed.

Also:
Fixes #29122.

BUG= http://dartbug.com/29122
R=lrn@google.com, whesse@google.com

Committed: 8e19729b89
Reverted: 8f3ae7e7e1
Review-Url: https://codereview.chromium.org/2822173002 .
2017-05-08 14:27:06 +02:00
Florian Loitsch
8e01f69305 Void is not required to be null anymore.
In checked mode, `void` now accepts any value.

Fixes #28937.
Fixes #28938.

BUG= http://dartbug.com/28937
BUG= http://dartbug.com/28938
R=johnniwinther@google.com, kmillikin@google.com, lrn@google.com, regis@google.com

Committed: 521dc6620f
Reverted: a3c0cb65af
Committed: 4e52c457a9
Reverted: 4b35d3995b
Committed: 6caf9ef443
Reverted: 30d9bf2ed3
Review-Url: https://codereview.chromium.org/2718513002 .
2017-05-08 11:31:37 +02:00
Lasse R.H. Nielsen
3e8bfb1adb Add groupBy to Stream.
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2850393003 .
2017-05-08 10:25:17 +02:00
Jens Johansen
30d9bf2ed3 Revert "Void is not required to be null anymore."
This reverts commit 6caf9ef443.

Commit breaks vm-kernel-linux-debug-x64-be.

Triggers asserts like
../../runtime/vm/flow_graph_compiler_x64.cc: 658: error: expected: dst_type.IsMalformedOrMalbounded() || (!dst_type.IsDynamicType() && !dst_type.IsObjectType() && !dst_type.IsVoidType())

Quick-check with python tools/test.py -cdartk -t120 --builder-tag no_ipv6 --vm-options --no-enable-malloc-hooks isolate

BUG=

Review-Url: https://codereview.chromium.org/2865603003 .
2017-05-05 08:56:26 +02:00
Leaf Petersen
006c22d0a2 Re-remove ad hoc Future.then inference.
Ad hoc inference for Future.then (and overrides) was kept in place for
an extra release cycle to allow code that implemented the Future
interface to work both before and after the transition to using
FutureOr for the callback return type.  This CL removes support for
this ad hoc inference.

BUG=
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2859703004 .
2017-05-04 10:45:21 -07:00
Florian Loitsch
6caf9ef443 Void is not required to be null anymore.
In checked mode, `void` now accepts any value.

Fixes #28937.
Fixes #28938.

BUG= http://dartbug.com/28937
BUG= http://dartbug.com/28938
R=johnniwinther@google.com, lrn@google.com, regis@google.com

Committed: 521dc6620f
Reverted: a3c0cb65af
Committed: 4e52c457a9
Reverted: 4b35d3995b
Review-Url: https://codereview.chromium.org/2718513002 .
2017-05-04 16:27:52 +02:00
Florian Loitsch
8f3ae7e7e1 Revert "Throw when adding something to a closed sink and improve documentation."
This reverts commit 8e19729b89.

BUG=

Review-Url: https://codereview.chromium.org/2864443002 .
2017-05-04 12:52:47 +02:00
Florian Loitsch
8e19729b89 Throw when adding something to a closed sink and improve documentation.
As port of this CL all changes of https://codereview.chromium.org/20036002 are reverted.

Also fixes issue 29122.

BUG= http://dartbug.com/29122
R=lrn@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/2822173002 .
2017-05-04 11:42:22 +02:00
Florian Loitsch
4b35d3995b Revert "Void is not required to be null anymore."
This reverts commit 4e52c457a9.

BUG=

Review-Url: https://codereview.chromium.org/2863463002 .
2017-05-03 19:22:22 +02:00
Florian Loitsch
4e52c457a9 Void is not required to be null anymore.
In checked mode, `void` now accepts any value.

Fixes #28937.
Fixes #28938.

BUG= http://dartbug.com/28937
BUG= http://dartbug.com/28938
R=johnniwinther@google.com, lrn@google.com, regis@google.com

Committed: 521dc6620f
Reverted: a3c0cb65af
Review-Url: https://codereview.chromium.org/2718513002 .
2017-05-03 17:43:23 +02:00
Florian Loitsch
a3c0cb65af Revert "Void is not required to be null anymore."
This reverts commit 521dc6620f.

BUG=

Review-Url: https://codereview.chromium.org/2855173002 .
2017-05-03 17:36:39 +02:00
Florian Loitsch
521dc6620f Void is not required to be null anymore.
In checked mode, `void` now accepts any value.

Fixes #28937.
Fixes #28938.

BUG= http://dartbug.com/28937
BUG= http://dartbug.com/28938
R=johnniwinther@google.com, lrn@google.com, regis@google.com

Review-Url: https://codereview.chromium.org/2718513002 .
2017-05-03 17:31:21 +02:00
Florian Loitsch
f6020b6d7e Make json-maps implement Map<String, dynamic>.
Fixes #26407.
http://dartbug.com/26407

R=lrn@google.com

Review-Url: https://codereview.chromium.org/1980663002 .
2017-05-02 14:51:32 +02:00
Florian Loitsch
bc877a83d3 Move dart-convert changelog entry to the correct place.
Review-Url: https://codereview.chromium.org/2851233002 .
2017-05-01 18:20:04 +02:00
Florian Loitsch
5aff94f980 Fix some strong mode issues in the core libraries.
R=vsm@google.com

Committed: e5c091e048
Reverted: a382f7845c
Review-Url: https://codereview.chromium.org/2764943002 .
2017-05-01 15:20:30 +02:00
Ben Konyi
f6881162fe Updated CHANGELOG.md to include addition of RawSynchronousSocket. Fix issue #29485.
BUG=
R=zra@google.com

Review-Url: https://codereview.chromium.org/2849603002 .
2017-04-27 13:16:32 -07:00
Bob Nystrom
5d311f151a Bring dart_style 1.0.4 into the repo. (#29487) 2017-04-26 14:54:05 -07:00
Florian Loitsch
ae601122e6 Use a better example of overriding fields in the changelog.
Review-Url: https://codereview.chromium.org/2833063003 .
2017-04-21 17:49:38 +02:00
Zachary Anderson
63ffa88171 Update CHANGELOG.md for recent dart:io additions
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2819383003 .
2017-04-18 08:39:22 -07:00
Florian Loitsch
9add06fe7f Remove changelog entry for part-of in 1.23.
Review-Url: https://codereview.chromium.org/2827433007 .
2017-04-18 16:12:47 +02:00
Bob Nystrom
8abc899c0a Bring in the latest Pub.
R=nbosch@google.com

Review-Url: https://codereview.chromium.org/2805893004 .
2017-04-07 17:57:04 -07:00
Nate Bosch
5f6c950695 Update to latest pub
BUG=
R=kevmoo@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2789213002 .
2017-04-03 11:24:00 -07:00
Leaf Petersen
d9e7a36616 Strong mode changelog updates for 1.23.0
Update changelog for down cast composite changes, and new mixin
restriction.  Also move Strong Mode section underneath Language.

BUG=
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2788703002 .
2017-03-30 14:22:23 -07:00
Zach Anderson
bc923bed16 [dart:io] Reland: Adds Platform.localeName
The Mac OS build broke because a typedef wasn't added until 10.12.

related #29126

Review-Url: https://codereview.chromium.org/2786183003 .
2017-03-30 13:51:46 -07:00
Zachary Anderson
e75df3cce3 Revert "[dart:io] Adds Platform.localeName"
This reverts commit ae6d854ec6.

The build failed on the mac build bots. Need to investigate.

Review-Url: https://codereview.chromium.org/2791453002 .
2017-03-30 13:35:02 -07:00
Zachary Anderson
ae6d854ec6 [dart:io] Adds Platform.localeName
related #29126

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2785073002 .
2017-03-30 13:31:11 -07:00
William Hesse
1d2b30b147 Start working on version 1.24 of the Dart SDK
BUG=
R=kasperl@google.com

Review-Url: https://codereview.chromium.org/2784183003 .
2017-03-30 12:36:07 +02:00
Lasse R.H. Nielsen
ae22eed515 Improve changelog entry for URIs in part-of declarations.
Fixes #29185.
BUG= http://dartbug.com/29185
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2782183002 .
2017-03-30 11:55:27 +02:00
Bob Nystrom
cc1ba091e8 Bring dartfmt 1.0.1 (now 1.0.2) into the SDK.
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2777623003 .
2017-03-29 15:54:19 -07:00
Jennifer Messerly
50be4c5d81 Update CHANGELOG.md (#29183) 2017-03-28 11:30:34 -07:00
Bob Nystrom
c62ddf2d40 Update dartfmt to 1.0.0
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2765093002 .
2017-03-23 14:19:52 -07:00
Florian Loitsch
a382f7845c Revert "Fix some strong mode issues in the core libraries."
This reverts commit e5c091e048.

Review-Url: https://codereview.chromium.org/2767943002 .
2017-03-22 16:55:05 +01:00
Florian Loitsch
e5c091e048 Fix some strong mode issues in the core libraries.
R=vsm@google.com

Review-Url: https://codereview.chromium.org/2764943002 .
2017-03-22 15:59:10 +01:00
Kevin Moore
3e898f12ba Bring in the latest pub
with associated CHANGELOG updates

R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2758753004 .
2017-03-17 15:15:10 -07:00
Kevin Moore
0d785a7f41 Document pub telemetry
and fix an oops from a previous change

R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2761543002 .
2017-03-17 15:09:46 -07:00
Kevin Moore
72805979f3 changelog updates
Missing pub items for 36635d3c05
and other cleanup

R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2748423002 .
2017-03-17 13:39:15 -07:00
Zach Anderson
b3093ecee6 [dart:io] Move Platform.ansiSupported to {Stdin,Stdout}.supportsAnsiEscapes
On Windows, some Windows 10 builds support only ANSI output, but not
input, so these need to be separated.

I'm also improving the detection on Mac and Linux to avoid hardcoding
the result. Instead, supportsAnsiEscapes will be true if isatty() and
the TERM environment variable contains the string 'xterm'.

related #28614

R=lrn@google.com

Review-Url: https://codereview.chromium.org/2753233002 .
2017-03-17 12:35:36 -07:00
Sigmund Cherem
0549e8caef Add note to changelog about support for importing dart:io in dart2js.
R=jacobr@google.com

Review-Url: https://codereview.chromium.org/2754453004 .
2017-03-15 16:54:12 -07:00
Zach Anderson
8be1856589 Update CHANGELOG for Platform.ansiSupported
fixes #29079

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2756493002 .
2017-03-15 10:33:03 -07:00
William Hesse
77ff7cf727 Revert "Bring in the latest pub."
This reverts commit b3997dfc0c.
Many pub tests are failing on Mac OS.

BUG=
R=sortie@google.com

Review-Url: https://codereview.chromium.org/2749643005 .
2017-03-15 11:00:23 +01:00
Natalie Weizenbaum
b3997dfc0c Bring in the latest pub. 2017-03-14 13:12:52 -07:00
Lasse R.H. Nielsen
5ae186153c Make Analyzer, VM and dart2js accept URI strings as part-of library identifier.
R=brianwilkerson@google.com, floitsch@google.com, hausner@google.com, johnniwinther@google.com, sigmund@google.com

Committed: ef097edad6
Review-Url: https://codereview.chromium.org/2640853005 .
2017-03-13 08:31:40 +01:00
Dmitry Stefantsov
9c340f9eb1 Revert last 4 commits by @lrn
Reverted commits:
* ef097edad6. ("Make Analyzer, VM and
  dart2js accept URI strings as part-of library identifier.")
* e8e1857814. ("Fix bad example of URI
  part-of to be bad, not good.")
* 58f7a92ede. ("Add changelog entry for
  allowing URI in part-of.")
* a4a7d98dce. ("Use FutureOr in
  Completer.complete.")

TBR=lrn@google.com

Review-Url: https://codereview.chromium.org/2724853002 .
2017-03-01 16:44:52 +01:00
Lasse R.H. Nielsen
58f7a92ede Add changelog entry for allowing URI in part-of.
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2722183002 .
2017-03-01 14:04:44 +01:00
Dan Rubel
bfb8e82c6e Document dartanalyzer analysis options changes (#28928) 2017-02-28 15:19:52 -08:00
Zach Anderson
feb64964cc Updates CHANGELOG.md for windows console unicode
related #28571

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2709323002 .
2017-02-22 13:35:27 -08:00
Lasse R.H. Nielsen
dccdd1b981 Normalize UriData.parse result.
Validates base64 encoding, normalizes padding.
Normalizes non-base64 data using URI percent-escapes for all invalid characters.

Fixes issue #28728, #28700
BUG= http://dartbug.com/28728 http://dartbug.com/28700
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2694373003 .
2017-02-17 11:02:38 +01:00
Zachary Anderson
3f5458cdcb [dart:io] Adds functions to set file access and modification time
fixes #27877

R=asiva@google.com, floitsch@google.com

Review-Url: https://codereview.chromium.org/2681683005 .
2017-02-09 09:45:25 -08:00