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

Issue 1830463002: Change analyzer_cli's "package mode" into a "build mode". (Closed)

Created:
4 years, 9 months ago by Paul Berry
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Change analyzer_cli's "package mode" into a "build mode". Build mode differs from package mode in the following ways: - The analyzer no longer guesses the relationship between paths and URIs based on directory structure. Instead, each input file is specified in the form "$uri|$path". - The analyzer does not read any files from disk that are not specified on the command line. - There are no restrictions on the relationship between summaries and packages. In particular: (a) multiple input summaries may summarize parts of the same package, and (b) part of a package may be specified with an input summary while an output summary is being generated for other parts of the same package. - Output may be redirected to a file. - The analyzer may be told to exit with success even in the event that an error is found during analysis. This should ease the integration with Bazel, and provide a starting point for integrating with other build systems. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/c7e1de177a64f66cbbefcc952c95d3364b2a93d6

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -226 lines) Patch
M pkg/analyzer/lib/src/generated/source_io.dart View 1 chunk +38 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/summary/package_bundle_reader.dart View 6 chunks +51 lines, -51 lines 2 comments Download
M pkg/analyzer_cli/lib/src/driver.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M pkg/analyzer_cli/lib/src/options.dart View 6 chunks +44 lines, -65 lines 2 comments Download
M pkg/analyzer_cli/lib/src/package_analyzer.dart View 6 chunks +78 lines, -73 lines 4 comments Download
M pkg/analyzer_cli/test/driver_test.dart View 2 chunks +7 lines, -3 lines 0 comments Download
M pkg/analyzer_cli/test/options_test.dart View 3 chunks +61 lines, -29 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Paul Berry
4 years, 9 months ago (2016-03-23 00:53:56 UTC) #2
scheglov
LGTM https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer_cli/lib/src/options.dart File pkg/analyzer_cli/lib/src/options.dart (right): https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer_cli/lib/src/options.dart#newcode311 pkg/analyzer_cli/lib/src/options.dart:311: 'Specefies the path to the file where analysis ...
4 years, 9 months ago (2016-03-23 01:11:50 UTC) #3
Paul Berry
https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer_cli/lib/src/options.dart File pkg/analyzer_cli/lib/src/options.dart (right): https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer_cli/lib/src/options.dart#newcode311 pkg/analyzer_cli/lib/src/options.dart:311: 'Specefies the path to the file where analysis results ...
4 years, 9 months ago (2016-03-23 03:28:02 UTC) #4
Paul Berry
Committed patchset #1 (id:1) manually as c7e1de177a64f66cbbefcc952c95d3364b2a93d6 (presubmit successful).
4 years, 9 months ago (2016-03-23 03:38:35 UTC) #6
Jennifer Messerly
https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer/lib/src/summary/package_bundle_reader.dart File pkg/analyzer/lib/src/summary/package_bundle_reader.dart (right): https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer/lib/src/summary/package_bundle_reader.dart#newcode81 pkg/analyzer/lib/src/summary/package_bundle_reader.dart:81: entry.setValue(result, SourceKind.PART, TargetedResult.EMPTY_LIST); Dumb question about this... Here, it ...
4 years, 9 months ago (2016-03-23 17:37:28 UTC) #8
scheglov
4 years, 9 months ago (2016-03-23 17:43:22 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer/lib/src/summar...
File pkg/analyzer/lib/src/summary/package_bundle_reader.dart (right):

https://codereview.chromium.org/1830463002/diff/1/pkg/analyzer/lib/src/summar...
pkg/analyzer/lib/src/summary/package_bundle_reader.dart:81:
entry.setValue(result, SourceKind.PART, TargetedResult.EMPTY_LIST);
On 2016/03/23 17:37:28, John Messerly wrote:
> Dumb question about this...
> 
> Here, it looks like any URI from the unlinkedMap is treated as a "part" and
only
> a part.
> 
> However InSummaryPackageUriResolver below, it seems to treat unlinkedMap as
any
> file URI coming from the summary (library or part).
> 
> Is one of these wrong? Or are library URIs in both maps, and that's how it
works
> out? (since the LIBRARY check is first).
> 
> Anyway just curious. 

Yes, library URIs are in both maps.

Powered by Google App Engine
This is Rietveld 408576698