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

Issue 2926763003: Add type inference for complex assignments whose LHS is an index expression. (Closed)

Created:
3 years, 6 months ago by Paul Berry
Modified:
3 years, 6 months ago
Reviewers:
ahe, scheglov
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add type inference for complex assignments whose LHS is an index expression. In later CLs I will expand on this code to handle other kinds of complex assignments. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/029771d746fd77e75af2089201eafc5314bf5db5

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+801 lines, -100 lines) Patch
M pkg/analyzer/test/src/task/strong/front_end_inference_test.dart View 2 chunks +5 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 2 chunks +4 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart View 7 chunks +39 lines, -22 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 11 chunks +77 lines, -60 lines 4 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 4 chunks +194 lines, -1 line 4 comments Download
M pkg/front_end/test/fasta/kompile.status View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/front_end/test/fasta/strong.status View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_full.dart View 1 chunk +54 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_full.dart.direct.expect View 1 chunk +60 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_full.dart.outline.expect View 1 chunk +42 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_full.dart.strong.expect View 1 chunk +60 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_set_vs_get.dart View 1 chunk +53 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_set_vs_get.dart.direct.expect View 1 chunk +71 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_set_vs_get.dart.outline.expect View 1 chunk +54 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_assign_to_index_set_vs_get.dart.strong.expect View 1 chunk +71 lines, -0 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_custom.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/language/language_kernel.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
3 years, 6 months ago (2017-06-07 22:06:04 UTC) #2
scheglov
LGTM
3 years, 6 months ago (2017-06-08 00:14:06 UTC) #3
ahe
Don't feel blocked by my comments. I'm just trying to understand this, and failing :-( ...
3 years, 6 months ago (2017-06-08 14:16:33 UTC) #4
Paul Berry
https://codereview.chromium.org/2926763003/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart File pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart (right): https://codereview.chromium.org/2926763003/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart#newcode235 pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart:235: /// Concrete shadow object representing a complex assignment in ...
3 years, 6 months ago (2017-06-08 16:17:04 UTC) #5
Paul Berry
3 years, 6 months ago (2017-06-08 16:25:31 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
029771d746fd77e75af2089201eafc5314bf5db5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698