Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: lib/src/report.dart

Issue 973433003: Initial cut for a development server (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/options.dart ('k') | lib/src/testing.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « lib/src/options.dart ('k') | lib/src/testing.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698