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

Issue 2991753002: Add export dependencies to Kernel libraries and use them to resynthesize ExportElement(s) in Analyz… (Closed)

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

Description

Add export dependencies to Kernel libraries and use them to resynthesize ExportElement(s) in Analyzer. R=ahe@google.com, brianwilkerson@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/8a08dbd08e85eb6e59f3633a23e95a77bf56190b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Extract exportedLibrary. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -135 lines) Patch
M pkg/analyzer/lib/src/dart/element/element.dart View 1 4 chunks +58 lines, -25 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart View 1 7 chunks +0 lines, -85 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/library_builder.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/prefix_builder.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/import.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart View 3 chunks +14 lines, -1 line 2 comments Download
M pkg/front_end/lib/src/fasta/source/source_library_builder.dart View 1 4 chunks +7 lines, -5 lines 4 comments Download
M pkg/front_end/lib/src/fasta/source/source_loader.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/incremental/kernel_driver.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (1 generated)
scheglov
3 years, 4 months ago (2017-07-25 23:16:02 UTC) #1
Brian Wilkerson
lgtm
3 years, 4 months ago (2017-07-26 13:39:35 UTC) #2
Siggi Cherem (dart-lang)
lgtm with the fix below https://codereview.chromium.org/2991753002/diff/1/pkg/front_end/lib/src/fasta/source/source_library_builder.dart File pkg/front_end/lib/src/fasta/source/source_library_builder.dart (right): https://codereview.chromium.org/2991753002/diff/1/pkg/front_end/lib/src/fasta/source/source_library_builder.dart#newcode161 pkg/front_end/lib/src/fasta/source/source_library_builder.dart:161: loader.read(resolve(uri), charOffset, accessor: this), ...
3 years, 4 months ago (2017-07-26 19:22:43 UTC) #3
scheglov
https://codereview.chromium.org/2991753002/diff/1/pkg/front_end/lib/src/fasta/source/source_library_builder.dart File pkg/front_end/lib/src/fasta/source/source_library_builder.dart (right): https://codereview.chromium.org/2991753002/diff/1/pkg/front_end/lib/src/fasta/source/source_library_builder.dart#newcode161 pkg/front_end/lib/src/fasta/source/source_library_builder.dart:161: loader.read(resolve(uri), charOffset, accessor: this), On 2017/07/26 19:22:42, Siggi Cherem ...
3 years, 4 months ago (2017-07-26 19:33:05 UTC) #4
scheglov
Committed patchset #2 (id:20001) manually as 8a08dbd08e85eb6e59f3633a23e95a77bf56190b (presubmit successful).
3 years, 4 months ago (2017-07-26 19:33:25 UTC) #6
ahe
Fasta changes, LGTM! Thank you for making the names of exportScope and importScope consistent. https://codereview.chromium.org/2991753002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart ...
3 years, 4 months ago (2017-08-08 09:47:58 UTC) #7
scheglov
https://codereview.chromium.org/2991753002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart (right): https://codereview.chromium.org/2991753002/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart#newcode742 pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart:742: } On 2017/08/08 09:47:58, ahe wrote: > I think ...
3 years, 4 months ago (2017-08-08 16:18:46 UTC) #8
scheglov
3 years, 4 months ago (2017-08-08 16:31:17 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/2991753002/diff/20001/pkg/front_end/lib/src/f...
File pkg/front_end/lib/src/fasta/source/source_library_builder.dart (right):

https://codereview.chromium.org/2991753002/diff/20001/pkg/front_end/lib/src/f...
pkg/front_end/lib/src/fasta/source/source_library_builder.dart:156: var
exportedLibrary = loader.read(resolve(uri), charOffset, accessor: this);
On 2017/08/08 09:47:58, ahe wrote:
> Missing type.

It's not like it is worse typed now than it was. There is no semantic or
cognitive difference between extracting a local variable with "var" or keeping
the expression inlined.

Also, the type is quite cumbersome "LibraryBuilder<TypeBuilder, dynamic>".

https://codereview.chromium.org/2991753002/diff/20001/pkg/front_end/lib/src/f...
pkg/front_end/lib/src/fasta/source/source_library_builder.dart:158:
exports.add(new Export(this, exportedLibrary, combinators, charOffset));
On 2017/08/08 09:47:58, ahe wrote:
> Question: you need access to the metadata as well, right?

Yes, we need metadata for everything about what the specification says that it
has metadata, including all directives.

Powered by Google App Engine
This is Rietveld 408576698