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

Issue 1530503002: Organize summary declarations by unit rather than by library. (Closed)

Created:
5 years ago by Paul Berry
Modified:
5 years ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Organize summary declarations by unit rather than by library. In the initial implementation of summaries, all declarations for a given library were thrown together into a single bucket, regardless of the compilation unit in which they appeared. This was done on the grounds that semantically, the compilation unit in which a declaration appears is irrelevant. However, it turns out that this conflicts with one of the design goals of summaries, which is to allow summaries to be quickly "re-linked" when URI resolution changes. Since "part" declarations use URIs to refer to part files, this means that URI resolution may affect the relationship among compilation units within a library; thus, the declarations for each compilation unit need to be in their own data structure. A side benefit of this reorganization is to make the structure of the summary more similar to the structure of the element model; this should in turn make it simpler (and possibly more performant) to convert between element models and summaries. This CL reorganizes the declarations themselves; future CLs will reorganize the dependency and resolution information to match. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/f85684604b28449cb5946ed855983678f69e432f

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+499 lines, -536 lines) Patch
M pkg/analyzer/lib/src/summary/format.dart View 30 chunks +199 lines, -185 lines 0 comments Download
M pkg/analyzer/lib/src/summary/summarize_elements.dart View 12 chunks +52 lines, -104 lines 2 comments Download
M pkg/analyzer/test/src/summary/summary_test.dart View 29 chunks +177 lines, -159 lines 0 comments Download
M pkg/analyzer/tool/summary/idl.dart View 10 chunks +71 lines, -88 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
Brian, I recall that one of your suggestions when I first started working on summaries ...
5 years ago (2015-12-14 22:56:12 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1530503002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart File pkg/analyzer/lib/src/summary/summarize_elements.dart (right): https://codereview.chromium.org/1530503002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart#newcode141 pkg/analyzer/lib/src/summary/summarize_elements.dart:141: // TODO(paulberry): we need to figure out a ...
5 years ago (2015-12-14 23:44:35 UTC) #3
Paul Berry
https://codereview.chromium.org/1530503002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart File pkg/analyzer/lib/src/summary/summarize_elements.dart (right): https://codereview.chromium.org/1530503002/diff/1/pkg/analyzer/lib/src/summary/summarize_elements.dart#newcode141 pkg/analyzer/lib/src/summary/summarize_elements.dart:141: // TODO(paulberry): we need to figure out a way ...
5 years ago (2015-12-15 00:29:56 UTC) #4
Paul Berry
5 years ago (2015-12-15 00:30:20 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f85684604b28449cb5946ed855983678f69e432f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698