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

Issue 2726793003: Remove package imports from itself. (Closed)

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

Description

Remove package imports from itself. Without this, we risk creating two different libraries at runtime. One named file:///something/ and one named package:front_end/something. These libraries are different and if enums from one gets mixed with the other, you get very confusing errors (to apparently identical enums aren't equal). R=johnniwinther@google.com Committed: https://github.com/dart-lang/sdk/commit/c59ecd801c69b9911c73790d1e8782c15282c385

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -75 lines) Patch
M pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart View 2 chunks +4 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/token_utils.dart View 2 chunks +8 lines, -9 lines 0 comments Download
M pkg/front_end/lib/src/fasta/bin/compile.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/bin/compile_platform.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/bin/kompile.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/bin/log_collector.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/bin/outline.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/bin/run.dart View 1 chunk +7 lines, -8 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/formal_parameter_builder.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 2 chunks +4 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/parser/bin/parser.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/parser/class_member_parser.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/parser/main.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 5 chunks +7 lines, -8 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/top_level_parser.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/quote.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/bin/scanner.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/recover.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/testing/scanner_chain.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_parser.dart View 1 chunk +5 lines, -7 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/scope_listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_loader.dart View 1 chunk +3 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 1 chunk +3 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/unhandled_listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/kernel-service/kernel-service.dart View 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (3 generated)
ahe
I only need one of you to review this.
3 years, 9 months ago (2017-03-01 15:42:43 UTC) #2
Paul Berry
We've actually put a lot of thought into this on the analyzer side, because not ...
3 years, 9 months ago (2017-03-01 20:25:54 UTC) #3
ahe
On 2017/03/01 20:25:54, Paul Berry wrote: > Strictly speaking it doesn't matter how files within ...
3 years, 9 months ago (2017-03-02 05:55:39 UTC) #4
ahe
Following up in CL 2722223006. @johnniwinther: could you take a look? Karl is out today.
3 years, 9 months ago (2017-03-02 09:30:19 UTC) #6
Johnni Winther
LGTM (together with https://codereview.chromium.org/2722223006/)
3 years, 9 months ago (2017-03-02 09:54:23 UTC) #7
ahe
Thank you, Paul and Johnni. Paul: let me know if I haven't addressed all your ...
3 years, 9 months ago (2017-03-02 10:16:09 UTC) #8
ahe
Committed patchset #1 (id:1) manually as c59ecd801c69b9911c73790d1e8782c15282c385 (presubmit successful).
3 years, 9 months ago (2017-03-02 11:34:54 UTC) #10
Paul Berry
On 2017/03/02 10:16:09, ahe wrote: > Thank you, Paul and Johnni. > > Paul: let ...
3 years, 9 months ago (2017-03-02 13:52:38 UTC) #11
ahe
3 years, 9 months ago (2017-03-02 13:54:05 UTC) #12
Message was sent while issue was closed.
On 2017/03/02 13:52:38, Paul Berry wrote:
> On 2017/03/02 10:16:09, ahe wrote:
> > Thank you, Paul and Johnni.
> > 
> > Paul: let me know if I haven't addressed all your concerns, and I'll follow
up
> > with more CLs.
> 
> Thanks, Peter.  Thanks to https://codereview.chromium.org/2722223006/, all my
> concerns are addressed.

Great. Thanks for the detailed explanation, BTW.

Powered by Google App Engine
This is Rietveld 408576698