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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerListener.java

Issue 8285004: Ground work for addition to new listener api (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added some comments Created 9 years, 2 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
Index: compiler/java/com/google/dart/compiler/DartCompilerListener.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerListener.java b/compiler/java/com/google/dart/compiler/DartCompilerListener.java
index b80806e6a62118ca8c62d7afd7c772c7cb33b498..c34dffd11d64b8ead56ca1d594bf3c15bc4f77d3 100644
--- a/compiler/java/com/google/dart/compiler/DartCompilerListener.java
+++ b/compiler/java/com/google/dart/compiler/DartCompilerListener.java
@@ -4,6 +4,8 @@
package com.google.dart.compiler;
+import com.google.dart.compiler.ast.DartUnit;
+
/**
* Abstract class that {@link DartCompiler} consumers can use to monitor
* compilation progress and report various problems that occur during
@@ -22,4 +24,11 @@ public abstract class DartCompilerListener {
public abstract void compilationWarning(DartCompilationError event);
public abstract void typeError(DartCompilationError event);
+
+ /**
+ * Called by the compiler after the resolution and type analyzer phase for each unit.
+ *
+ * @param unit the DartUnit having just been compiled. (not <code>null</code>)
+ */
+ public abstract void unitCompiled(DartUnit unit);
}

Powered by Google App Engine
This is Rietveld 408576698