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

Issue 1843453002: Better strong mode least upper bound for interface types. (Closed)

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

Description

Better strong mode least upper bound for interface types. Adds some checks to handle common cases of least upper-bound computations on type parameters and interface types in a more reasonable way than the spec lub. BUG= R=rnystrom@google.com Committed: https://github.com/dart-lang/sdk/commit/4e5bc8328526ba2ba00e49ddc4ad13038ab86b0a

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : Merge hell #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -72 lines) Patch
M pkg/analyzer/lib/src/generated/type_system.dart View 1 2 3 5 chunks +140 lines, -26 lines 2 comments Download
M pkg/analyzer/test/generated/type_system_test.dart View 1 2 3 7 chunks +130 lines, -45 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 1 2 3 2 chunks +51 lines, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
Leaf
4 years, 8 months ago (2016-03-29 00:22:32 UTC) #3
Bob Nystrom
A few little things, but LGTM! https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart#newcode47 pkg/analyzer/lib/src/generated/type_system.dart:47: // This currently ...
4 years, 8 months ago (2016-03-29 17:09:44 UTC) #4
Leaf
https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart#newcode47 pkg/analyzer/lib/src/generated/type_system.dart:47: // This currently does not implement a very complete ...
4 years, 8 months ago (2016-03-29 22:03:23 UTC) #5
Leaf
Committed patchset #4 (id:60001) manually as 4e5bc8328526ba2ba00e49ddc4ad13038ab86b0a (presubmit successful).
4 years, 8 months ago (2016-03-29 23:36:44 UTC) #7
Bob Nystrom
https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart#newcode142 pkg/analyzer/lib/src/generated/type_system.dart:142: type2 = type2 On 2016/03/29 22:03:22, Leaf wrote: > ...
4 years, 8 months ago (2016-03-29 23:42:01 UTC) #8
Leaf
https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/1843453002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart#newcode142 pkg/analyzer/lib/src/generated/type_system.dart:142: type2 = type2 On 2016/03/29 23:42:00, Bob Nystrom wrote: ...
4 years, 8 months ago (2016-03-29 23:43:54 UTC) #9
Jennifer Messerly
LGTM! https://codereview.chromium.org/1843453002/diff/60001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/1843453002/diff/60001/pkg/analyzer/lib/src/generated/type_system.dart#newcode137 pkg/analyzer/lib/src/generated/type_system.dart:137: InterfaceTypeImpl lub = new InterfaceTypeImpl(type1.element); drive by comment, ...
4 years, 8 months ago (2016-03-29 23:54:39 UTC) #11
Leaf
4 years, 8 months ago (2016-03-29 23:57:43 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/1843453002/diff/60001/pkg/analyzer/lib/src/ge...
File pkg/analyzer/lib/src/generated/type_system.dart (right):

https://codereview.chromium.org/1843453002/diff/60001/pkg/analyzer/lib/src/ge...
pkg/analyzer/lib/src/generated/type_system.dart:137: InterfaceTypeImpl lub = new
InterfaceTypeImpl(type1.element);
On 2016/03/29 23:54:39, John Messerly wrote:
> drive by comment, is this equivalent to:
> 
>     type1.element.type.instantate(tArgs);

Yeah, I think that's right, and is nicer.

Powered by Google App Engine
This is Rietveld 408576698