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

Issue 1648063002: Implement the spec's notion of LUB for function types. (Closed)

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

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : Brace all the things! #

Total comments: 8

Patch Set 3 : Fix strong mode conditional operator test since it currently uses the spec's LUB. #

Patch Set 4 : Revise with jmesserly's feedback. #

Patch Set 5 : Fix passing test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -87 lines) Patch
M pkg/analyzer/lib/dart/element/type.dart View 2 chunks +12 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/dart/element/element.dart View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/dart/element/type.dart View 1 2 3 4 chunks +19 lines, -14 lines 0 comments Download
M pkg/analyzer/lib/src/generated/type_system.dart View 1 2 3 4 chunks +81 lines, -6 lines 0 comments Download
M pkg/analyzer/test/generated/type_system_test.dart View 1 19 chunks +131 lines, -53 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 1 2 1 chunk +11 lines, -13 lines 0 comments Download
M tests/co19/co19-analyzer2.status View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
Bob Nystrom
Eventually, I want to do sound (or sound-er, at least) LUB checks for strong mode. ...
4 years, 10 months ago (2016-01-28 21:24:20 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1648063002/diff/1/pkg/analyzer/lib/src/dart/element/type.dart File pkg/analyzer/lib/src/dart/element/type.dart (right): https://codereview.chromium.org/1648063002/diff/1/pkg/analyzer/lib/src/dart/element/type.dart#newcode1078 pkg/analyzer/lib/src/dart/element/type.dart:1078: if (fRequired.length != gRequired.length) return null; nit: We ...
4 years, 10 months ago (2016-01-28 21:40:09 UTC) #3
Jennifer Messerly
drive-by comments https://codereview.chromium.org/1648063002/diff/20001/pkg/analyzer/lib/src/dart/element/type.dart File pkg/analyzer/lib/src/dart/element/type.dart (right): https://codereview.chromium.org/1648063002/diff/20001/pkg/analyzer/lib/src/dart/element/type.dart#newcode1066 pkg/analyzer/lib/src/dart/element/type.dart:1066: static FunctionType computeLeastUpperBound(TypeSystem typeSystem, Suggestion: move this ...
4 years, 10 months ago (2016-01-28 22:35:58 UTC) #5
Bob Nystrom
https://codereview.chromium.org/1648063002/diff/1/pkg/analyzer/lib/src/dart/element/type.dart File pkg/analyzer/lib/src/dart/element/type.dart (right): https://codereview.chromium.org/1648063002/diff/1/pkg/analyzer/lib/src/dart/element/type.dart#newcode1078 pkg/analyzer/lib/src/dart/element/type.dart:1078: if (fRequired.length != gRequired.length) return null; On 2016/01/28 21:40:08, ...
4 years, 10 months ago (2016-01-29 00:45:09 UTC) #6
Bob Nystrom
Moved some code around, PTAL! https://codereview.chromium.org/1648063002/diff/20001/pkg/analyzer/lib/src/dart/element/type.dart File pkg/analyzer/lib/src/dart/element/type.dart (right): https://codereview.chromium.org/1648063002/diff/20001/pkg/analyzer/lib/src/dart/element/type.dart#newcode1066 pkg/analyzer/lib/src/dart/element/type.dart:1066: static FunctionType computeLeastUpperBound(TypeSystem typeSystem, ...
4 years, 10 months ago (2016-01-29 01:49:45 UTC) #7
Jennifer Messerly
LGTM!
4 years, 10 months ago (2016-01-29 02:01:59 UTC) #8
Brian Wilkerson
Still LGTM
4 years, 10 months ago (2016-01-29 03:02:38 UTC) #9
Bob Nystrom
4 years, 10 months ago (2016-01-29 18:36:55 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
434f5bc922a41fd377fdc70fc371f7afebdc35ac (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698