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

Issue 2376213003: Instantiate parameterized types of type parameters with 'dynamic' type arguments. (Closed)

Created:
4 years, 2 months ago by scheglov
Modified:
4 years, 2 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Instantiate parameterized types of type parameters with 'dynamic' type arguments. There is internal code like the added test, which caused us to use out of scope type parameter during inferred type computation. Possibly related issues. https://github.com/dart-lang/sdk/issues/26990 https://github.com/dart-lang/sdk/issues/27072 R=brianwilkerson@google.com, leafp@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/b0d8f475635b4fcfd613aa6090034adcc2a294dc

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove solo_ #

Patch Set 3 : Add TypeSystem.instantiateToDynamic(type) and use it. #

Total comments: 1

Patch Set 4 : Remove computeDefaultTypeArgument() and always use TypeSystem.instantiateToBounds(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -34 lines) Patch
M pkg/analyzer/lib/src/dart/element/element.dart View 1 2 3 1 chunk +0 lines, -15 lines 0 comments Download
M pkg/analyzer/lib/src/summary/link.dart View 1 2 3 3 chunks +19 lines, -13 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_ast_test.dart View 1 chunk +0 lines, -6 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_common.dart View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
scheglov
4 years, 2 months ago (2016-09-29 20:12:53 UTC) #1
Brian Wilkerson
lgtm https://codereview.chromium.org/2376213003/diff/1/pkg/analyzer/test/src/summary/resynthesize_common.dart File pkg/analyzer/test/src/summary/resynthesize_common.dart (right): https://codereview.chromium.org/2376213003/diff/1/pkg/analyzer/test/src/summary/resynthesize_common.dart#newcode3577 pkg/analyzer/test/src/summary/resynthesize_common.dart:3577: solo_test_instantiateToBounds_boundRefersToItself() { Remove "solo_".
4 years, 2 months ago (2016-09-29 20:39:09 UTC) #3
Jennifer Messerly
oops forgot to hit send earlier. Sorry about that. https://codereview.chromium.org/2376213003/diff/1/pkg/analyzer/lib/src/dart/element/element.dart File pkg/analyzer/lib/src/dart/element/element.dart (right): https://codereview.chromium.org/2376213003/diff/1/pkg/analyzer/lib/src/dart/element/element.dart#newcode8144 pkg/analyzer/lib/src/dart/element/element.dart:8144: ...
4 years, 2 months ago (2016-09-30 00:22:39 UTC) #5
scheglov
PTAL https://codereview.chromium.org/2376213003/diff/1/pkg/analyzer/lib/src/dart/element/element.dart File pkg/analyzer/lib/src/dart/element/element.dart (right): https://codereview.chromium.org/2376213003/diff/1/pkg/analyzer/lib/src/dart/element/element.dart#newcode8145 pkg/analyzer/lib/src/dart/element/element.dart:8145: return new TypeSystemImpl().instantiateToBounds(bound); On 2016/09/30 00:22:38, John Messerly ...
4 years, 2 months ago (2016-09-30 03:42:39 UTC) #6
Paul Berry
lgtm
4 years, 2 months ago (2016-09-30 12:07:27 UTC) #7
Brian Wilkerson
lgtm
4 years, 2 months ago (2016-09-30 13:40:20 UTC) #8
Leaf
https://codereview.chromium.org/2376213003/diff/40001/pkg/analyzer/lib/src/dart/element/element.dart File pkg/analyzer/lib/src/dart/element/element.dart (right): https://codereview.chromium.org/2376213003/diff/40001/pkg/analyzer/lib/src/dart/element/element.dart#newcode8145 pkg/analyzer/lib/src/dart/element/element.dart:8145: return context.typeSystem.instantiateToDynamic(bound); I don't think this is really right ...
4 years, 2 months ago (2016-09-30 23:44:52 UTC) #10
scheglov
PTAL, now with instantiateToBounds().
4 years, 2 months ago (2016-10-03 16:43:46 UTC) #11
Brian Wilkerson
lgtm
4 years, 2 months ago (2016-10-03 17:27:12 UTC) #12
Paul Berry
lgtm
4 years, 2 months ago (2016-10-03 17:58:44 UTC) #13
Leaf
lgtm
4 years, 2 months ago (2016-10-03 18:01:17 UTC) #14
scheglov
4 years, 2 months ago (2016-10-03 18:07:06 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
b0d8f475635b4fcfd613aa6090034adcc2a294dc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698