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

Issue 1167733004: Decide if unit without directives is a part or a library. (Closed)

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

Description

Decide if unit without directives is a part or a library. 1. When there is a library containing it while we are parsing a part. 2. When a part was parsed, but then we found a library containing it. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/b35d54a8b768c7871596db14fd454a5d8351870b

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -13 lines) Patch
M pkg/analysis_server/test/services/correction/fix_test.dart View 2 chunks +5 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/context/context.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 chunk +9 lines, -1 line 2 comments Download
M pkg/analyzer/lib/src/task/dart_work_manager.dart View 4 chunks +18 lines, -4 lines 0 comments Download
M pkg/analyzer/test/src/context/context_test.dart View 1 chunk +1 line, -4 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 chunk +16 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_work_manager_test.dart View 3 chunks +35 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
5 years, 6 months ago (2015-06-02 21:53:33 UTC) #1
Brian Wilkerson
LGTM, given that it improves the situation, but we should at least add a TODO ...
5 years, 6 months ago (2015-06-02 22:01:53 UTC) #2
scheglov
https://codereview.chromium.org/1167733004/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/1167733004/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode2679 pkg/analyzer/lib/src/task/dart.dart:2679: if (context.getLibrariesContaining(source).isEmpty) { On 2015/06/02 22:01:53, Brian Wilkerson wrote: ...
5 years, 6 months ago (2015-06-02 22:56:41 UTC) #3
scheglov
Committed patchset #1 (id:1) manually as b35d54a8b768c7871596db14fd454a5d8351870b (presubmit successful).
5 years, 6 months ago (2015-06-02 23:01:07 UTC) #4
Brian Wilkerson
5 years, 6 months ago (2015-06-02 23:07:39 UTC) #5
Message was sent while issue was closed.
> That's there is also the change in DartWorkManager.

Sorry, I missed the implications of that part of the change. That's a problem
for two reasons.

First, it will produce the wrong result in the case where one library tries to
include another library using a 'part' directive (but only sometimes, depending
on the order in which they are parsed, so it's non-deterministic).

Second, we're computing analysis results outside of the task model. If the task
model cannot express the work that needs to be performed, then we need to fix it
rather than work around it.

Powered by Google App Engine
This is Rietveld 408576698