Minor changes to documentation generation.

Filter out private classes so no file is generated for them.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3540013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@110 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ager@google.com
2011-10-06 11:02:55 +00:00
parent 19610c461e
commit 7d4f364d53
2 changed files with 4 additions and 1 deletions
@@ -209,7 +209,7 @@ public class DartDocumentationGenerator extends AbstractBackend {
stream.println("<body>");
stream.println("\n<header></header>\n");
stream.println("<h1 id=\"title\">Libraries</h1>");
stream.println("<h1 id=\"title\">Library Reference</h1>");
stream.println("<section id=\"libraries-overview\">");
for (LibraryUnit lib : libraries) {
@@ -620,6 +620,9 @@ class DartDocumentationVisitor extends DartNodeTraverser<Void> {
private void documentClass(ClassElement classElement) {
String name = classElement.getName();
if (isPrivateName(name)) {
return;
}
String fileName = outputDirectory + File.separator + name + ".html";
try {
stream = new PrintStream(fileName);