Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Issue 2208953002: fix #25944, improve Future.then inference (Closed)

Created:
4 years, 4 months ago by Jennifer Messerly
Modified:
4 years, 4 months ago
Reviewers:
Leaf, vsm
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix #25944, improve Future.then inference also fixes #25322, return values of async functions are T | F<T> R=leafp@google.com, vsm@google.com Committed: https://github.com/dart-lang/sdk/commit/1c7aca0d6ddc4f03da5ed2c32f208d587c17b078

Patch Set 1 #

Patch Set 2 : fix type on real Future.then #

Patch Set 3 : cleanup unused code #

Total comments: 11

Patch Set 4 : fix names, relationship between FutureUnion and DartType #

Total comments: 10

Patch Set 5 : fix based on comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -99 lines) Patch
M pkg/analyzer/lib/src/generated/resolver.dart View 1 2 3 4 14 chunks +126 lines, -60 lines 0 comments Download
M pkg/analyzer/lib/src/generated/static_type_analyzer.dart View 1 2 3 4 2 chunks +18 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/generated/type_system.dart View 1 2 3 4 5 chunks +121 lines, -20 lines 0 comments Download
M pkg/analyzer/test/generated/strong_mode_test.dart View 1 2 3 4 chunks +4 lines, -12 lines 0 comments Download
M pkg/analyzer/test/src/context/mock_sdk.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/task/strong/inferred_type_test.dart View 1 2 3 4 2 chunks +48 lines, -2 lines 0 comments Download
M sdk/lib/async/future.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
Jennifer Messerly
Hi Leaf, Here's my attempt to fix the various issues around implicit Future unions. Note ...
4 years, 4 months ago (2016-08-04 00:37:55 UTC) #2
Leaf
On 2016/08/04 00:37:55, John Messerly wrote: > Hi Leaf, > > Here's my attempt to ...
4 years, 4 months ago (2016-08-05 18:27:34 UTC) #3
Leaf
This is so awesome to see, I can't tell you! Really lgtm - I'm super ...
4 years, 4 months ago (2016-08-05 22:32:36 UTC) #4
Jennifer Messerly
Thanks! Addressed all of these if you want to take another look :D https://codereview.chromium.org/2208953002/diff/40001/pkg/analyzer/lib/dart/element/type.dart File ...
4 years, 4 months ago (2016-08-08 21:59:26 UTC) #5
Jennifer Messerly
+vsm as well if you want to sanity check my latest changes. but basically just ...
4 years, 4 months ago (2016-08-09 12:36:53 UTC) #7
vsm
lgtm nice! https://codereview.chromium.org/2208953002/diff/60001/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/2208953002/diff/60001/pkg/analyzer/lib/src/generated/resolver.dart#newcode4721 pkg/analyzer/lib/src/generated/resolver.dart:4721: if (context == null || context is ...
4 years, 4 months ago (2016-08-09 20:29:33 UTC) #8
Jennifer Messerly
Thanks!!! https://codereview.chromium.org/2208953002/diff/60001/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/2208953002/diff/60001/pkg/analyzer/lib/src/generated/resolver.dart#newcode4721 pkg/analyzer/lib/src/generated/resolver.dart:4721: if (context == null || context is DartType ...
4 years, 4 months ago (2016-08-09 20:56:57 UTC) #9
Leaf
On 2016/08/09 20:56:57, John Messerly wrote: > Thanks!!! > > https://codereview.chromium.org/2208953002/diff/60001/pkg/analyzer/lib/src/generated/resolver.dart > File pkg/analyzer/lib/src/generated/resolver.dart (right): ...
4 years, 4 months ago (2016-08-09 21:17:54 UTC) #10
Jennifer Messerly
On 2016/08/09 21:17:54, Leaf wrote: > On 2016/08/09 20:56:57, John Messerly wrote: > > Thanks!!! ...
4 years, 4 months ago (2016-08-09 22:20:31 UTC) #11
Jennifer Messerly
4 years, 4 months ago (2016-08-09 23:04:31 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
1c7aca0d6ddc4f03da5ed2c32f208d587c17b078 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698