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

Issue 10809037: Fix library scan of loose files (Closed)

Created:
8 years, 5 months ago by danrubel
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix library scan of loose files Committed: https://code.google.com/p/dart/source/detail?r=9777

Patch Set 1 #

Total comments: 2

Messages

Total messages: 4 (0 generated)
danrubel
* when scanning, discard libraries that have no directives when source'd by another library * ...
8 years, 5 months ago (2012-07-20 13:51:08 UTC) #1
scheglov
lgtm
8 years, 5 months ago (2012-07-20 14:20:42 UTC) #2
Brian Wilkerson
LGTM unless it needs to change based on my comment https://chromiumcodereview.appspot.com/10809037/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisServer.java File editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisServer.java (right): https://chromiumcodereview.appspot.com/10809037/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisServer.java#newcode132 ...
8 years, 5 months ago (2012-07-20 15:22:07 UTC) #3
danrubel
8 years, 5 months ago (2012-07-20 15:48:08 UTC) #4
https://chromiumcodereview.appspot.com/10809037/diff/1/editor/tools/plugins/c...
File
editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisServer.java
(right):

https://chromiumcodereview.appspot.com/10809037/diff/1/editor/tools/plugins/c...
editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisServer.java:132:
if (libraryFiles.add(libraryFile)) {
On 2012/07/20 15:22:07, Brian Wilkerson wrote:
> ArrayList.add() always returns true. Did you intend to change the type of
> libraryFiles to be a Set, or was this just an oversight?

Good catch! Fixing now in subsequent CL.

Powered by Google App Engine
This is Rietveld 408576698