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

Issue 1740923002: Propertly summarize LUB function types. (Closed)

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

Description

Propertly summarize LUB function types. When a function type arises out of a LUB (least upper bound) computation, it pionts to a synthetic FunctionElement that is not connected to the element model, so we can't summarize it by simply storing a reference to the FunctionElement. We have to store the FunctionElement's return type and type parameters. This required reworking _CompilationUnitSerializer's mechanism for tracking whether it is creating linked or unlinked references; previously it kept track by passing a boolean around. Now it uses a bool field, which should be much less error prone. Fixes generation of strong mode SDK summary (previously it failed with an assertion error when in checked mode). R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/293267db28642cb235522064983b3921dca872c1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -39 lines) Patch
M pkg/analyzer/lib/src/summary/format.dart View 8 chunks +65 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/summary/idl.dart View 1 chunk +18 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/summary/resynthesize.dart View 4 chunks +20 lines, -6 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_elements.dart View 13 chunks +38 lines, -23 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_test.dart View 5 chunks +84 lines, -7 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_common.dart View 2 chunks +125 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Paul Berry
4 years, 10 months ago (2016-02-26 00:11:27 UTC) #2
scheglov
LGTM
4 years, 10 months ago (2016-02-26 05:12:01 UTC) #3
Paul Berry
4 years, 10 months ago (2016-02-26 16:28:26 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
293267db28642cb235522064983b3921dca872c1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698