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

Issue 1771153002: Type check for-in statements. (Closed)

Created:
4 years, 9 months ago by Bob Nystrom
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Type check for-in statements. This does nominal checking on the iterable expression used in a for-in statement: 1. It must implement Iterable. 2. The type argument to Iterable must be assignable to the variable's type. R=brianwilkerson@google.com, jmesserly@google.com Committed: https://github.com/dart-lang/sdk/commit/cb7aa02116917259e72d53676e77f961698778fb

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update to latest on master. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -44 lines) Patch
M pkg/analysis_server/lib/src/provisional/completion/dart/completion_plugin.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/error.dart View 1 2 chunks +28 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/error_verifier.dart View 1 4 chunks +59 lines, -5 lines 5 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 1 2 chunks +1 line, -36 lines 1 comment Download
M pkg/analyzer/lib/src/generated/type_system.dart View 1 2 chunks +41 lines, -2 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 1 2 chunks +24 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/static_type_warning_code_test.dart View 1 chunk +202 lines, -0 lines 2 comments Download
M runtime/observatory/tests/service/service.status View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/utils/utils.status View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Bob Nystrom
4 years, 9 months ago (2016-03-08 00:30:49 UTC) #2
Bob Nystrom
https://codereview.chromium.org/1771153002/diff/1/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/1771153002/diff/1/pkg/analyzer/lib/src/generated/type_system.dart#newcode490 pkg/analyzer/lib/src/generated/type_system.dart:490: * Searches the superinterfaces of [type] for implementations of ...
4 years, 9 months ago (2016-03-08 00:31:41 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/1771153002/diff/20001/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/1771153002/diff/20001/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode5726 pkg/analyzer/lib/src/generated/error_verifier.dart:5726: void _checkForYieldOfInvalidType( fyi: I don't know that it ...
4 years, 9 months ago (2016-03-08 01:12:12 UTC) #4
Bob Nystrom
Thanks! https://codereview.chromium.org/1771153002/diff/20001/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/1771153002/diff/20001/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode5726 pkg/analyzer/lib/src/generated/error_verifier.dart:5726: void _checkForYieldOfInvalidType( On 2016/03/08 01:12:12, Brian Wilkerson wrote: ...
4 years, 9 months ago (2016-03-08 19:00:50 UTC) #5
Jennifer Messerly
LGTM https://codereview.chromium.org/1771153002/diff/20001/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/1771153002/diff/20001/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode5687 pkg/analyzer/lib/src/generated/error_verifier.dart:5687: SimpleIdentifier variable = node.identifier != null probably not ...
4 years, 9 months ago (2016-03-08 19:14:11 UTC) #6
Bob Nystrom
4 years, 9 months ago (2016-03-08 19:25:53 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
cb7aa02116917259e72d53676e77f961698778fb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698