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

Unified Diff: dart/frog/leg/apiimpl.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 | « no previous file | dart/frog/leg/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/apiimpl.dart
diff --git a/dart/frog/leg/apiimpl.dart b/dart/frog/leg/apiimpl.dart
index da73f6445a3d8d8dbfe6d2f3fb456cb64278324f..59bf84b67a85cd610bf3c797e87b2385eb9e7973 100644
--- a/dart/frog/leg/apiimpl.dart
+++ b/dart/frog/leg/apiimpl.dart
@@ -59,4 +59,12 @@ class Compiler extends leg.Compiler {
}
return success;
}
+
+ void reportDiagnostic(leg.SourceSpan span, String message, bool fatal) {
+ if (span === null) {
+ handler(null, null, null, message, fatal);
+ } else {
+ handler(span.uri, span.begin, span.end, message, fatal);
+ }
+ }
}
« no previous file with comments | « no previous file | dart/frog/leg/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698