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

Unified Diff: dart/frog/tests/leg/src/mock_compiler.dart

Issue 9646030: Find diagnostic locations for use in new compiler API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 8 years, 9 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 | « dart/frog/leg/tree/nodes.dart ('k') | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/tests/leg/src/mock_compiler.dart
diff --git a/dart/frog/tests/leg/src/mock_compiler.dart b/dart/frog/tests/leg/src/mock_compiler.dart
index f1f86a367ced5ae8739d90603aa524771822fd7b..4203c91a5f966bb6b9b4faa270854dc382efd969 100644
--- a/dart/frog/tests/leg/src/mock_compiler.dart
+++ b/dart/frog/tests/leg/src/mock_compiler.dart
@@ -75,6 +75,10 @@ class MockCompiler extends Compiler {
errors.add(new WarningMessage(node, message.message));
}
+ void reportDiagnostic(SourceSpan span, String message, bool fatal) {
+ print(message);
+ }
+
void clearWarnings() {
warnings = [];
}
« no previous file with comments | « dart/frog/leg/tree/nodes.dart ('k') | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698