OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /// A documentation generator for Dart. | 5 /// A documentation generator for Dart. |
6 library dartdoc; | 6 library dartdoc; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 import 'src/model_utils.dart'; | 32 import 'src/model_utils.dart'; |
33 import 'src/package_meta.dart'; | 33 import 'src/package_meta.dart'; |
34 | 34 |
35 export 'src/element_type.dart'; | 35 export 'src/element_type.dart'; |
36 export 'src/generator.dart'; | 36 export 'src/generator.dart'; |
37 export 'src/model.dart'; | 37 export 'src/model.dart'; |
38 export 'src/package_meta.dart'; | 38 export 'src/package_meta.dart'; |
39 | 39 |
40 const String name = 'dartdoc'; | 40 const String name = 'dartdoc'; |
41 // Update when pubspec version changes. | 41 // Update when pubspec version changes. |
42 const String version = '0.9.5'; | 42 const String version = '0.9.6'; |
43 | 43 |
44 final String defaultOutDir = p.join('doc', 'api'); | 44 final String defaultOutDir = p.join('doc', 'api'); |
45 | 45 |
46 /// Initialize and setup the generators. | 46 /// Initialize and setup the generators. |
47 Future<List<Generator>> initGenerators(String url, List<String> headerFilePaths, | 47 Future<List<Generator>> initGenerators(String url, List<String> headerFilePaths, |
48 List<String> footerFilePaths, String relCanonicalPrefix, | 48 List<String> footerFilePaths, String relCanonicalPrefix, |
49 {String faviconPath, bool useCategories: false}) async { | 49 {String faviconPath, bool useCategories: false}) async { |
50 return [ | 50 return [ |
51 await HtmlGenerator.create( | 51 await HtmlGenerator.create( |
52 url: url, | 52 url: url, |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 if (severity == other.severity) { | 310 if (severity == other.severity) { |
311 int cmp = error.source.fullName.compareTo(other.error.source.fullName); | 311 int cmp = error.source.fullName.compareTo(other.error.source.fullName); |
312 return cmp == 0 ? line - other.line : cmp; | 312 return cmp == 0 ? line - other.line : cmp; |
313 } else { | 313 } else { |
314 return other.severity - severity; | 314 return other.severity - severity; |
315 } | 315 } |
316 } | 316 } |
317 | 317 |
318 String toString() => '[${severityName}] ${description}'; | 318 String toString() => '[${severityName}] ${description}'; |
319 } | 319 } |
OLD | NEW |