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

Issue 1306313002: Implement instance member inference (Closed)

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

Description

Implements instance member inference. Records the correct return type for synthetic function elements representing initializers. R=leafp@google.com, paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/0061447293bc601fce9b98920830706e3cb81ee0

Patch Set 1 #

Total comments: 24

Patch Set 2 : Address comments #

Total comments: 13

Patch Set 3 : Address more comments and fix bug #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+912 lines, -0 lines) Patch
M pkg/analyzer/lib/src/generated/element.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 1 4 chunks +20 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/strong_mode.dart View 1 2 2 chunks +355 lines, -0 lines 9 comments Download
M pkg/analyzer/test/src/task/strong_mode_test.dart View 1 2 3 chunks +531 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
Brian Wilkerson
This might change the semantics slightly from the current implementation, so please look over the ...
5 years, 4 months ago (2015-08-21 20:58:49 UTC) #2
vsm
On 2015/08/21 20:58:49, Brian Wilkerson wrote: > This might change the semantics slightly from the ...
5 years, 4 months ago (2015-08-21 22:16:32 UTC) #3
Leaf
This is looking really nice, I'm pleasantly surprised with how cleanly it seems to be ...
5 years, 4 months ago (2015-08-22 00:06:55 UTC) #4
Brian Wilkerson
PTAL > As Vijay mentioned, there are a bunch of tests that should be > ...
5 years, 4 months ago (2015-08-24 16:52:58 UTC) #5
Leaf
> I think that would be great. Just note that those tests are integration level ...
5 years, 4 months ago (2015-08-24 18:24:48 UTC) #6
Paul Berry
I have some significant concerns listed below (mostly the issues about overwriting the types and ...
5 years, 4 months ago (2015-08-24 19:56:25 UTC) #7
Brian Wilkerson
PTAL In the process of addressing comments I discovered a bug that I fixed and ...
5 years, 4 months ago (2015-08-24 21:20:58 UTC) #8
Paul Berry
lgtm https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart File pkg/analyzer/lib/src/task/strong_mode.dart (right): https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart#newcode229 pkg/analyzer/lib/src/task/strong_mode.dart:229: PropertyAccessorElement setter = (accessorElement.enclosingElement as ClassElement).getSetter(accessorElement.name); Long line. ...
5 years, 4 months ago (2015-08-24 21:28:13 UTC) #9
Leaf
lgtm modulo the comment fix, thanks! https://codereview.chromium.org/1306313002/diff/20001/pkg/analyzer/lib/src/task/strong_mode.dart File pkg/analyzer/lib/src/task/strong_mode.dart (right): https://codereview.chromium.org/1306313002/diff/20001/pkg/analyzer/lib/src/task/strong_mode.dart#newcode91 pkg/analyzer/lib/src/task/strong_mode.dart:91: class InstanceMemberInferrer { ...
5 years, 4 months ago (2015-08-24 21:32:09 UTC) #10
Brian Wilkerson
Thanks for your patience with multiple passed. At this point, I'll wait until morning to ...
5 years, 4 months ago (2015-08-24 22:11:47 UTC) #11
Paul Berry
https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart File pkg/analyzer/lib/src/task/strong_mode.dart (right): https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart#newcode237 pkg/analyzer/lib/src/task/strong_mode.dart:237: } On 2015/08/24 22:11:46, Brian Wilkerson wrote: > > ...
5 years, 4 months ago (2015-08-24 22:14:53 UTC) #12
Brian Wilkerson
https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart File pkg/analyzer/lib/src/task/strong_mode.dart (right): https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart#newcode237 pkg/analyzer/lib/src/task/strong_mode.dart:237: } > I'm confused because the call to _setParameterType() ...
5 years, 4 months ago (2015-08-24 22:30:00 UTC) #13
Paul Berry
https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart File pkg/analyzer/lib/src/task/strong_mode.dart (right): https://codereview.chromium.org/1306313002/diff/40001/pkg/analyzer/lib/src/task/strong_mode.dart#newcode237 pkg/analyzer/lib/src/task/strong_mode.dart:237: } On 2015/08/24 22:29:59, Brian Wilkerson wrote: > > ...
5 years, 4 months ago (2015-08-24 22:37:55 UTC) #14
Brian Wilkerson
5 years, 4 months ago (2015-08-25 14:48:53 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
0061447293bc601fce9b98920830706e3cb81ee0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698