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

Issue 897593005: Adds a repeatable --url_mapping flag to dartanalyzer (Closed)

Created:
5 years, 10 months ago by zra
Modified:
5 years, 10 months ago
CC:
reviews_dartlang.org, ricow1, vm-dev_dartlang.org
Visibility:
Public.

Description

Adds a repeatable --url_mapping flag to dartanalyzer If a Dart file does an import that is 'strange', this flag allows the imported URI to be understood by the analyzer so long as an explicit mapping of the URI to an absolute path to a .dart file is supplied with this flag. For example, a custom embedding of the Dart VM may refer to non-SDK libraries through its own URI scheme, e.g. import 'strange:things'; With the flag and Uri resolver added in this CL, the analyzer can find the Dart source for 'strange:things': dartanalyzer ... --url_mapping 'strange:things,/path/to/strange/things.dart' R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=43788

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -4 lines) Patch
M pkg/analyzer/lib/options.dart View 1 2 3 4 chunks +25 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/analyzer_impl.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/source.dart View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 1 2 3 2 chunks +30 lines, -0 lines 0 comments Download
M pkg/analyzer/test/options_test.dart View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M runtime/tools/create_snapshot_bin.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
zra
Hi Brian, This is what I have in mind. I tried this out on my ...
5 years, 10 months ago (2015-02-10 00:35:07 UTC) #2
zra
Friendly ping.
5 years, 10 months ago (2015-02-11 16:48:30 UTC) #3
zra
+danrubel Seth suggested adding Dan in case he has more cycles to review. I'll send ...
5 years, 10 months ago (2015-02-12 21:05:01 UTC) #5
Brian Wilkerson
LGTM once comments are addressed https://codereview.chromium.org/897593005/diff/1/pkg/analyzer/lib/options.dart File pkg/analyzer/lib/options.dart (right): https://codereview.chromium.org/897593005/diff/1/pkg/analyzer/lib/options.dart#newcode209 pkg/analyzer/lib/options.dart:209: 'url_mapping', I know it's ...
5 years, 10 months ago (2015-02-13 23:56:13 UTC) #6
zra
Thanks! Tests added for the new resolver class. ptal. https://codereview.chromium.org/897593005/diff/1/pkg/analyzer/lib/options.dart File pkg/analyzer/lib/options.dart (right): https://codereview.chromium.org/897593005/diff/1/pkg/analyzer/lib/options.dart#newcode209 pkg/analyzer/lib/options.dart:209: ...
5 years, 10 months ago (2015-02-14 01:01:56 UTC) #8
Brian Wilkerson
LGTM. Thanks for implementing this! https://codereview.chromium.org/897593005/diff/40001/pkg/analyzer/lib/options.dart File pkg/analyzer/lib/options.dart (right): https://codereview.chromium.org/897593005/diff/40001/pkg/analyzer/lib/options.dart#newcode277 pkg/analyzer/lib/options.dart:277: var splitMapping = mapping.split(','); ...
5 years, 10 months ago (2015-02-14 01:13:13 UTC) #9
zra
https://codereview.chromium.org/897593005/diff/40001/pkg/analyzer/lib/options.dart File pkg/analyzer/lib/options.dart (right): https://codereview.chromium.org/897593005/diff/40001/pkg/analyzer/lib/options.dart#newcode277 pkg/analyzer/lib/options.dart:277: var splitMapping = mapping.split(','); On 2015/02/14 01:13:13, Brian Wilkerson ...
5 years, 10 months ago (2015-02-14 07:18:22 UTC) #11
zra
5 years, 10 months ago (2015-02-14 07:19:22 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as r43788 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698