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

Issue 1555093005: Use SummarySdkAnalysisContext if the SDK has the analysis_summary file. (Closed)

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

Description

Use SummarySdkAnalysisContext if the SDK has the analysis_summary file. This file does not exist yet, so it should be safe to have incomplete implementation for now. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/22b044ca20e31e600988dd53bc8a9c6c70893181

Patch Set 1 #

Total comments: 18

Patch Set 2 : Fixes for review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -1 line) Patch
M pkg/analyzer/lib/src/context/context.dart View 1 chunk +20 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/sdk_io.dart View 1 3 chunks +29 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/summary/summary_sdk.dart View 1 1 chunk +108 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
scheglov
4 years, 11 months ago (2016-01-05 18:36:06 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/generated/sdk_io.dart File pkg/analyzer/lib/src/generated/sdk_io.dart (right): https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/generated/sdk_io.dart#newcode550 pkg/analyzer/lib/src/generated/sdk_io.dart:550: if (file.existsSync()) { Should we catch IO exceptions ...
4 years, 11 months ago (2016-01-05 18:46:19 UTC) #2
Paul Berry
https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/generated/sdk_io.dart File pkg/analyzer/lib/src/generated/sdk_io.dart (right): https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/generated/sdk_io.dart#newcode550 pkg/analyzer/lib/src/generated/sdk_io.dart:550: if (file.existsSync()) { On 2016/01/05 18:46:18, Brian Wilkerson wrote: ...
4 years, 11 months ago (2016-01-05 19:33:43 UTC) #3
Paul Berry
lgtm
4 years, 11 months ago (2016-01-05 19:48:41 UTC) #4
scheglov
https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/generated/sdk_io.dart File pkg/analyzer/lib/src/generated/sdk_io.dart (right): https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/generated/sdk_io.dart#newcode550 pkg/analyzer/lib/src/generated/sdk_io.dart:550: if (file.existsSync()) { I will catch all exceptions here ...
4 years, 11 months ago (2016-01-05 20:27:57 UTC) #5
scheglov
Committed patchset #2 (id:20001) manually as 22b044ca20e31e600988dd53bc8a9c6c70893181 (presubmit successful).
4 years, 11 months ago (2016-01-05 20:31:56 UTC) #7
Brian Wilkerson
4 years, 11 months ago (2016-01-05 20:42:51 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/summar...
File pkg/analyzer/lib/src/summary/summary_sdk.dart (right):

https://codereview.chromium.org/1555093005/diff/1/pkg/analyzer/lib/src/summar...
pkg/analyzer/lib/src/summary/summary_sdk.dart:82: return true;
> Returning `false` mean that we cannot provide this information.
> We can provide it, but we do it incorrectly for now :-)
> We don't want to read/scan/parse the source.

Could we implement it correctly by just testing whether
"sourceFactory.dartSdk.uris.contains(target.source.uri)"?

Powered by Google App Engine
This is Rietveld 408576698