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

Issue 1902103002: Clean up handling of declared/inferred types in ExecutableElementForLink (Closed)

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

Description

Clean up handling of declared/inferred types in ExecutableElementForLink Reworked the `returnType` getter (which had complex logic that was difficult to follow) in terms of two simpler getters: `declaredReturnType` and `inferredReturnType`. Also implemented logic to ensure that inferred instance types are ignored when inferring types of initializer expressions in the same library cycle (since the linker is supposed to behave as if initializer expressions are inferred first). R=brianwilkerson@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/a771361120d98f94f417ee584d2d5afe80898184

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -29 lines) Patch
M pkg/analyzer/lib/src/summary/link.dart View 6 chunks +77 lines, -29 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_ast_test.dart View 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
4 years, 8 months ago (2016-04-19 16:33:27 UTC) #2
scheglov
LGTM
4 years, 8 months ago (2016-04-19 16:38:38 UTC) #3
Brian Wilkerson
lgtm
4 years, 8 months ago (2016-04-19 16:40:29 UTC) #4
Paul Berry
4 years, 8 months ago (2016-04-19 16:47:50 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
a771361120d98f94f417ee584d2d5afe80898184 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698