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

Unified Diff: pkg/dartdoc/lib/dartdoc.dart

Issue 11260045: Add logic to exclude certain libraries from API doc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/dartdoc.dart
diff --git a/pkg/dartdoc/lib/dartdoc.dart b/pkg/dartdoc/lib/dartdoc.dart
index 13d5d0acf804aac1f8baef2a38db63a391a6465b..0fb159ef9b2464a879f8332df855bf2cebbec50b 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -267,15 +267,15 @@ class Dartdoc {
}
var includeByDefault = true;
String libraryName = displayName(library);
+ if (excludedLibraries.contains(libraryName)) {
+ return false;
+ }
if (!includedLibraries.isEmpty) {
includeByDefault = false;
- if (includedLibraries.indexOf(libraryName) != -1) {
+ if (includedLibraries.contains(libraryName)) {
return true;
}
}
- if (excludedLibraries.indexOf(libraryName) != -1) {
- return false;
- }
if (libraryName.startsWith('dart:')) {
String suffix = libraryName.substring('dart:'.length);
LibraryInfo info = LIBRARIES[suffix];
« no previous file with comments | « no previous file | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698