Chromium Code Reviews

Unified Diff: dart/lib/compiler/implementation/dart2js.dart

Issue 11092003: Implement part-of directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status for dart2dart Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: dart/lib/compiler/implementation/dart2js.dart
diff --git a/dart/lib/compiler/implementation/dart2js.dart b/dart/lib/compiler/implementation/dart2js.dart
index 55e24a6054394a66a8ba7835ca61f80a4762c24d..ee416414a85db764f1fe5fac3088837aa9183971 100644
--- a/dart/lib/compiler/implementation/dart2js.dart
+++ b/dart/lib/compiler/implementation/dart2js.dart
@@ -250,6 +250,9 @@ void compile(List<String> argv) {
print(color(message));
} else if (fatal || showWarnings) {
SourceFile file = sourceFiles[uri.toString()];
+ if (file == null) {
+ throw '$uri: file is null';
+ }
print(file.getLocationMessage(color(message), begin, end, true, color));
}
if (fatal && throwOnError) {

Powered by Google App Engine