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

Issue 1574763002: Properly set UnlinkedReference.prefixReference in summaries. (Closed)

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

Description

Properly set UnlinkedReference.prefixReference in summaries. This information will be necessary when a change to a file forces summaries to be relinked. Note that the way we determine the prefix is a bit kludgy: we look at the export namespaces of the imported libraries and arbitrarily choose a prefix that points to the given element. This will give subtly incorrect results if a name is reachable via multiple prefixes, however this is unlikely to pose a problem in non-contrived use cases. See the test `fail_type_reference_to_type_visible_via_multiple_import_prefixes` for a more detailed explanation of what might go wrong. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/8a29a992864bc0918bfd5f9eb2ff128211fab904

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -15 lines) Patch
M pkg/analyzer/lib/src/summary/summarize_elements.dart View 4 chunks +50 lines, -3 lines 2 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 2 chunks +9 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/summary/summary_test.dart View 3 chunks +41 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
4 years, 11 months ago (2016-01-09 21:41:06 UTC) #2
scheglov
LGTM https://codereview.chromium.org/1574763002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart File pkg/analyzer/lib/src/summary/summarize_elements.dart (right): https://codereview.chromium.org/1574763002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart#newcode288 pkg/analyzer/lib/src/summary/summarize_elements.dart:288: for (ImportElement import in libraryElement.imports) { We could ...
4 years, 11 months ago (2016-01-09 22:51:31 UTC) #3
Paul Berry
Committed patchset #1 (id:1) manually as 8a29a992864bc0918bfd5f9eb2ff128211fab904 (presubmit successful).
4 years, 11 months ago (2016-01-09 23:25:45 UTC) #5
Paul Berry
https://codereview.chromium.org/1574763002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart File pkg/analyzer/lib/src/summary/summarize_elements.dart (right): https://codereview.chromium.org/1574763002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart#newcode288 pkg/analyzer/lib/src/summary/summarize_elements.dart:288: for (ImportElement import in libraryElement.imports) { On 2016/01/09 22:51:31, ...
4 years, 11 months ago (2016-01-10 02:08:28 UTC) #6
Brian Wilkerson
4 years, 11 months ago (2016-01-10 16:18:38 UTC) #7
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698