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

Issue 1720963003: Initial hermetic package analyzer. (Closed)

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

Description

Initial hermetic package analyzer. When --package-mode is specified, this turns ON the single package analysis mode. My initial idea was to accept a single path - the root folder of the package and analyze the package completely as Dart Analysis Server does. But later I decided to accept a list of files to analyze, at least for now. We still need the --package-mode-path option with the path to the root folder of the package because we need to know which libraries are in the 'lib' folder and write these libraries into the output summary. The option --package-name is used to write the same URIs into summary as the clients are going to use to refer the package libraries, and also as the package references itself. Multiple --package-summary-input=pkg,summary options can be specified, one for each package. Every referenced package (except itself) must be listed. If --package-summary-output is specified, the output summary of the package is written to the specified file. It is up to the client to specify the correct X.spec.sum or X.strong.sum names. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/686b30e4cbf9b0ee536fb874847bf447695058d5

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+704 lines, -107 lines) Patch
M pkg/analyzer_cli/lib/src/analyzer_impl.dart View 2 chunks +33 lines, -29 lines 0 comments Download
M pkg/analyzer_cli/lib/src/driver.dart View 9 chunks +99 lines, -73 lines 0 comments Download
M pkg/analyzer_cli/lib/src/options.dart View 7 chunks +73 lines, -3 lines 0 comments Download
A pkg/analyzer_cli/lib/src/package_analyzer.dart View 1 chunk +409 lines, -0 lines 7 comments Download
M pkg/analyzer_cli/pubspec.yaml View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer_cli/test/options_test.dart View 4 chunks +89 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years, 10 months ago (2016-02-22 21:30:35 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/1720963003/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart File pkg/analyzer_cli/lib/src/package_analyzer.dart (right): https://codereview.chromium.org/1720963003/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart#newcode177 pkg/analyzer_cli/lib/src/package_analyzer.dart:177: class InSummaryPackageUriResolver extends UriResolver { I don't understand ...
4 years, 10 months ago (2016-02-23 00:27:01 UTC) #2
Paul Berry
lgtm. I'm fine committing this as is, but let's talk tomorrow about the question of ...
4 years, 10 months ago (2016-02-23 00:59:30 UTC) #3
scheglov
Yes, we definitely need to discuss this tomorrow. https://codereview.chromium.org/1720963003/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart File pkg/analyzer_cli/lib/src/package_analyzer.dart (right): https://codereview.chromium.org/1720963003/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart#newcode123 pkg/analyzer_cli/lib/src/package_analyzer.dart:123: bool ...
4 years, 10 months ago (2016-02-23 01:15:28 UTC) #4
scheglov
4 years, 10 months ago (2016-02-23 01:19:10 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
686b30e4cbf9b0ee536fb874847bf447695058d5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698