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

Issue 1491013002: Analysis request `getReachableSources` (#24893). (Closed)

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

Description

Analysis request `getReachableSources` (#24893). Implements a new request to get reachable sources. This solves a specific issue for flutter (e.g., inferring execution type by checking the transitive closure of reachabe sources for `dart:flutter`) but can be more generallly useful for other client-side smarts (e.g., "is this a web entry point?" or "is this a test?"). More context here: https://github.com/dart-lang/sdk/issues/24893 R=brianwilkerson@google.com, devoncarew@google.com Committed: https://github.com/dart-lang/sdk/commit/43f027fc05f25a40049dee0a71418570f6f20d10

Patch Set 1 #

Total comments: 13

Patch Set 2 : Error handlng and test improvements. #

Patch Set 3 : spec_bump #

Unified diffs Side-by-side diffs Delta from patch set Stats (+568 lines, -7 lines) Patch
M pkg/analysis_server/doc/api.html View 1 2 5 chunks +50 lines, -2 lines 0 comments Download
M pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart View 1 5 chunks +180 lines, -1 line 0 comments Download
M pkg/analysis_server/lib/plugin/protocol/protocol.dart View 1 1 chunk +10 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/constants.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/domain_analysis.dart View 1 3 chunks +19 lines, -0 lines 0 comments Download
A pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/domain_analysis_test.dart View 1 1 chunk +40 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/integration_test_methods.dart View 1 1 chunk +35 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/protocol_matchers.dart View 1 3 chunks +26 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/services/dependencies/library_dependencies_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A pkg/analysis_server/test/services/dependencies/reachable_source_collector_test.dart View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/services/dependencies/test_all.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java View 1 1 chunk +14 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RequestErrorCode.java View 1 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 2 3 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
pquitslund
5 years ago (2015-12-02 00:23:48 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/1491013002/diff/1/pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart File pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart (right): https://codereview.chromium.org/1491013002/diff/1/pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart#newcode32 pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart:32: String sourceUri = source?.uri?.toString(); nit: We don't need ...
5 years ago (2015-12-02 01:56:27 UTC) #4
pquitslund
Thanks Brian! https://codereview.chromium.org/1491013002/diff/1/pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart File pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart (right): https://codereview.chromium.org/1491013002/diff/1/pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart#newcode32 pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart:32: String sourceUri = source?.uri?.toString(); On 2015/12/02 01:56:27, ...
5 years ago (2015-12-02 16:40:23 UTC) #6
devoncarew
lgtm Thanks! Perhaps bump the api version as well, since this is an addition to ...
5 years ago (2015-12-02 17:50:37 UTC) #7
Brian Wilkerson
https://codereview.chromium.org/1491013002/diff/1/pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart File pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart (right): https://codereview.chromium.org/1491013002/diff/1/pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart#newcode32 pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart:32: String sourceUri = source?.uri?.toString(); That shouldn't be the case. ...
5 years ago (2015-12-02 18:04:53 UTC) #8
pquitslund
On 2015/12/02 17:50:37, devoncarew wrote: > lgtm > > Thanks! Perhaps bump the api version ...
5 years ago (2015-12-02 18:27:40 UTC) #9
pquitslund
On 2015/12/02 18:04:53, Brian Wilkerson wrote: > https://codereview.chromium.org/1491013002/diff/1/pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart > File > pkg/analysis_server/lib/src/services/dependencies/reachable_source_collector.dart > (right): > ...
5 years ago (2015-12-02 19:15:24 UTC) #10
pquitslund
5 years ago (2015-12-02 21:26:44 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
43f027fc05f25a40049dee0a71418570f6f20d10 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698