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

Unified Diff: lib/dartdoc/dartdoc.dart

Issue 9706077: Don't generate docs for private types. Cuts doc generation time in half. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/dartdoc.dart
diff --git a/lib/dartdoc/dartdoc.dart b/lib/dartdoc/dartdoc.dart
index 22456bad8209c0fecffa53db3c7d36763535f996..90d7e1004f9c3adc7536797cda6a47624e8a798a 100644
--- a/lib/dartdoc/dartdoc.dart
+++ b/lib/dartdoc/dartdoc.dart
@@ -532,7 +532,9 @@ class Dartdoc {
endFile();
for (final type in library.types.getValues()) {
- if (!type.isTop) docType(type);
+ if (type.isTop) continue;
+ if (type.name.startsWith('_')) continue;
nweiz 2012/03/15 21:04:43 I personally like using continue here, but isn't i
Bob Nystrom 2012/03/15 22:14:28 I don't think so. I know some people aren't a fan
+ docType(type);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698