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

Issue 169703003: Add prefix constraints for deferred imports. (Closed)

Created:
6 years, 10 months ago by sigurdm
Modified:
6 years, 10 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add prefix constraints for deferred imports. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=32881

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -101 lines) Patch
M sdk/lib/_internal/compiler/implementation/deferred_load.dart View 1 2 3 1 chunk +59 lines, -12 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 chunk +12 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/deferred_emit_type_checks_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/deferred_not_in_main_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_class_test.dart View 4 chunks +5 lines, -5 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_constant3_test.dart View 2 chunks +14 lines, -14 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_constant4_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_constant5_test.dart View 2 chunks +7 lines, -7 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_function_test.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_unused_classes_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A + tests/language/deferred_constraints_lib.dart View 1 1 chunk +5 lines, -3 lines 0 comments Download
A + tests/language/deferred_constraints_lib2.dart View 1 1 chunk +1 line, -3 lines 0 comments Download
A + tests/language/deferred_duplicate_prefix1_negative_test.dart View 1 2 3 1 chunk +6 lines, -10 lines 0 comments Download
A + tests/language/deferred_duplicate_prefix2_negative_test.dart View 1 2 3 1 chunk +6 lines, -10 lines 0 comments Download
A tests/language/deferred_duplicate_prefix3_negative_test.dart View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A + tests/language/deferred_no_prefix_negative_test.dart View 1 2 3 1 chunk +5 lines, -14 lines 0 comments Download
A + tests/language/duplicate_import_prefix_test.dart View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M tests/language/language.status View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M tests/lib/async/deferred/deferred_api_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
sigurdm
6 years, 10 months ago (2014-02-17 14:20:08 UTC) #1
floitsch
FYI. https://codereview.chromium.org/169703003/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/169703003/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode621 sdk/lib/_internal/compiler/implementation/deferred_load.dart:621: Map<String, List<Import>> prefixImports = {}; Move outside the ...
6 years, 10 months ago (2014-02-17 14:39:26 UTC) #2
sigurdm
https://codereview.chromium.org/169703003/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/169703003/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode621 sdk/lib/_internal/compiler/implementation/deferred_load.dart:621: Map<String, List<Import>> prefixImports = {}; On 2014/02/17 14:39:26, floitsch ...
6 years, 10 months ago (2014-02-18 08:49:52 UTC) #3
floitsch
LGTM with more tests. https://codereview.chromium.org/169703003/diff/140001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/169703003/diff/140001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode641 sdk/lib/_internal/compiler/implementation/deferred_load.dart:641: if (import.prefix != null) { ...
6 years, 10 months ago (2014-02-18 09:45:22 UTC) #4
sigurdm
I implemented a version with the tests inside the loop. It might not be so ...
6 years, 10 months ago (2014-02-18 11:58:29 UTC) #5
floitsch
LGTM. https://codereview.chromium.org/169703003/diff/100002/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/169703003/diff/100002/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode648 sdk/lib/_internal/compiler/implementation/deferred_load.dart:648: String prefix = import.prefix != null ? import.prefix.toString() ...
6 years, 10 months ago (2014-02-18 12:19:25 UTC) #6
sigurdm
https://codereview.chromium.org/169703003/diff/100002/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/169703003/diff/100002/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode648 sdk/lib/_internal/compiler/implementation/deferred_load.dart:648: String prefix = import.prefix != null ? import.prefix.toString() : ...
6 years, 10 months ago (2014-02-18 13:31:46 UTC) #7
sigurdm
6 years, 10 months ago (2014-02-21 09:40:11 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r32881 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698