@@ -19,7 +19,7 @@ import 'package:analyzer/src/generated/source_io.dart';
1919
2020import 'generator.dart' ;
2121import 'resource_loader.dart' as loader;
22- import 'src/html_generator.dart' ;
22+ import 'src/html_generator.dart' show dartdocVersion, HtmlGenerator ;
2323import 'src/io_utils.dart' ;
2424import 'src/model.dart' ;
2525import 'src/model_utils.dart' ;
@@ -37,6 +37,7 @@ final String defaultOutDir = 'doc${Platform.pathSeparator}api';
3737/// Initialize and setup the generators.
3838List <Generator > initGenerators (
3939 String url, String headerFilePath, String footerFilePath) {
40+ dartdocVersion = version;
4041 return [
4142 new HtmlGenerator (url, header: headerFilePath, footer: footerFilePath)
4243 ];
@@ -57,8 +58,15 @@ class DartDoc {
5758
5859 Stopwatch _stopwatch;
5960
60- DartDoc (this .rootDir, this .excludes, this .sdkDir, this .generators,
61- this .outputDir, this .packageRootDir, this .packageMeta, this .urlMappings,
61+ DartDoc (
62+ this .rootDir,
63+ this .excludes,
64+ this .sdkDir,
65+ this .generators,
66+ this .outputDir,
67+ this .packageRootDir,
68+ this .packageMeta,
69+ this .urlMappings,
6270 this .includes);
6371
6472 /// Generate DartDoc documentation.
@@ -151,7 +159,7 @@ class DartDoc {
151159 if (name.startsWith (Platform .pathSeparator)) name = name.substring (1 );
152160 }
153161 print ('parsing ${name }...' );
154- Source source = new FileBasedSource . con1 (new JavaFile (filePath));
162+ Source source = new FileBasedSource (new JavaFile (filePath));
155163 sources.add (source);
156164 if (context.computeKindOf (source) == SourceKind .LIBRARY ) {
157165 LibraryElement library = context.computeLibraryElement (source);
@@ -178,8 +186,8 @@ class DartDoc {
178186 }).where ((_Error error) => error.isError).toList ()..sort ();
179187
180188 double seconds = _stopwatch.elapsedMilliseconds / 1000.0 ;
181- print (
182- "Parsed ${ libraries . length } " " file${libraries .length == 1 ? '' : 's' } in "
189+ print ("Parsed ${ libraries . length } "
190+ "file${libraries .length == 1 ? '' : 's' } in "
183191 "${seconds .toStringAsFixed (1 )} seconds.\n " );
184192
185193 if (errors.isNotEmpty) {
0 commit comments