@@ -22,7 +22,6 @@ import 'package:analyzer/src/generated/sdk.dart';
2222import 'package:analyzer/src/generated/sdk_io.dart' ;
2323import 'package:analyzer/src/generated/source.dart' ;
2424import 'package:analyzer/src/generated/source_io.dart' ;
25-
2625import 'package:path/path.dart' as p;
2726
2827import 'src/generator.dart' ;
@@ -39,7 +38,7 @@ export 'src/package_meta.dart';
3938
4039const String name = 'dartdoc' ;
4140// Update when pubspec version changes.
42- const String version = '0.8.4-dev ' ;
41+ const String version = '0.8.5 ' ;
4342
4443final String defaultOutDir = p.join ('doc' , 'api' );
4544
@@ -218,15 +217,6 @@ class DartDoc {
218217 }
219218}
220219
221- /// The results of a [DartDoc.generateDocs] call.
222- class DartDocResults {
223- final PackageMeta packageMeta;
224- final Package package;
225- final Directory outDir;
226-
227- DartDocResults (this .packageMeta, this .package, this .outDir);
228- }
229-
230220/// This class is returned if dartdoc fails in an expected way (for instance, if
231221/// there is an analysis error in the library).
232222class DartDocFailure {
@@ -237,19 +227,25 @@ class DartDocFailure {
237227 String toString () => message;
238228}
239229
230+ /// The results of a [DartDoc.generateDocs] call.
231+ class DartDocResults {
232+ final PackageMeta packageMeta;
233+ final Package package;
234+ final Directory outDir;
235+
236+ DartDocResults (this .packageMeta, this .package, this .outDir);
237+ }
238+
240239class _Error implements Comparable {
241240 final AnalysisError error;
242241 final LineInfo lineInfo;
243242 final String projectPath;
244243
245244 _Error (this .error, this .lineInfo, this .projectPath);
246245
247- int get severity => error.errorCode.errorSeverity.ordinal;
248- bool get isError => error.errorCode.errorSeverity == ErrorSeverity .ERROR ;
249- String get severityName => error.errorCode.errorSeverity.displayName;
250246 String get description => '${error .message } at ${location }, line ${line }.' ;
247+ bool get isError => error.errorCode.errorSeverity == ErrorSeverity .ERROR ;
251248 int get line => lineInfo.getLocation (error.offset).lineNumber;
252-
253249 String get location {
254250 String path = error.source.fullName;
255251 if (path.startsWith (projectPath)) {
@@ -258,6 +254,10 @@ class _Error implements Comparable {
258254 return path;
259255 }
260256
257+ int get severity => error.errorCode.errorSeverity.ordinal;
258+
259+ String get severityName => error.errorCode.errorSeverity.displayName;
260+
261261 int compareTo (_Error other) {
262262 if (severity == other.severity) {
263263 int cmp = error.source.fullName.compareTo (other.error.source.fullName);
0 commit comments