Index: lib/src/report.dart |
diff --git a/lib/src/report.dart b/lib/src/report.dart |
index 62a0a5f166d49e05215a888917c6570f8b03e20a..a449355639ed43846d0e9a85310fb180c973e0b4 100644 |
--- a/lib/src/report.dart |
+++ b/lib/src/report.dart |
@@ -77,6 +77,10 @@ class SummaryReporter implements CheckerReporter { |
LibrarySummary _currentLibrary; |
SourceFile _file; |
+ clear() { |
+ result = new GlobalSummary(); |
+ } |
+ |
void enterLibrary(LibraryInfo lib) { |
var libKey = '${lib.library.source.uri}'; |
var libSummary = _currentLibrary = new LibrarySummary(libKey); |
@@ -489,6 +493,7 @@ class _Counter extends RecursiveSummaryVisitor { |
} |
/// Returns a [SourceSpan] in [file] for the offsets of [node]. |
+// TODO(sigmund): convert to use span information from AST (issue #73) |
SourceSpan _spanForNode(SourceFile file, AstNode node) { |
final begin = node is AnnotatedNode |
? node.firstTokenAfterCommentAndMetadata.offset |