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

Issue 1314793005: Strong mode local variable inference (Closed)

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

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments, add test, fix analyzer warnings #

Total comments: 4

Patch Set 3 : Make StrongModeTypePropagationTest a direct subclass of ResolverTestCase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -129 lines) Patch
M pkg/analyzer/lib/src/generated/engine.dart View 33 chunks +137 lines, -67 lines 0 comments Download
M pkg/analyzer/lib/src/generated/static_type_analyzer.dart View 1 2 2 chunks +20 lines, -2 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 1 2 11 chunks +250 lines, -60 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Leaf
Just a small initial CL to get started and to get some early feedback. This ...
5 years, 3 months ago (2015-08-26 22:00:54 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1314793005/diff/1/pkg/analyzer/lib/src/generated/engine.dart File pkg/analyzer/lib/src/generated/engine.dart (right): https://codereview.chromium.org/1314793005/diff/1/pkg/analyzer/lib/src/generated/engine.dart#newcode1155 pkg/analyzer/lib/src/generated/engine.dart:1155: this._options.strongMode = options.strongMode; Good catch! Yes, they should ...
5 years, 3 months ago (2015-08-26 22:19:25 UTC) #3
Leaf
https://codereview.chromium.org/1314793005/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1314793005/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1186 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1186: if (initializer == null) return; On 2015/08/26 22:19:25, Brian ...
5 years, 3 months ago (2015-08-26 22:25:52 UTC) #4
Brian Wilkerson
https://codereview.chromium.org/1314793005/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1314793005/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1186 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1186: if (initializer == null) return; Nope. Whichever you think ...
5 years, 3 months ago (2015-08-26 23:10:28 UTC) #5
Leaf
PTAL. Restructured to match coding style. I'm testing for LocalVariableElementImpl instead of LocalVariableElement to get ...
5 years, 3 months ago (2015-08-27 00:04:00 UTC) #6
Paul Berry
lgtm https://codereview.chromium.org/1314793005/diff/20001/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1314793005/diff/20001/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1190 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1190: (initializer.staticType != _typeProvider.bottomType)) { Nit: use initializer.staticType.isBottom. https://codereview.chromium.org/1314793005/diff/20001/pkg/analyzer/test/generated/resolver_test.dart ...
5 years, 3 months ago (2015-08-27 01:28:11 UTC) #7
Brian Wilkerson
LGTM > I'm testing for LocalVariableElementImpl instead of > LocalVariableElement to get access to the ...
5 years, 3 months ago (2015-08-27 02:47:20 UTC) #8
Leaf
https://codereview.chromium.org/1314793005/diff/20001/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1314793005/diff/20001/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1190 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1190: (initializer.staticType != _typeProvider.bottomType)) { On 2015/08/27 01:28:11, Paul Berry ...
5 years, 3 months ago (2015-08-27 18:15:26 UTC) #9
Brian Wilkerson
SGTM / LGTM
5 years, 3 months ago (2015-08-27 18:18:33 UTC) #10
Leaf
5 years, 3 months ago (2015-08-27 20:27:15 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
bff9b655094200f07a90963e660ed75a9a4e2f82 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698