Index: lib/compiler/implementation/apiimpl.dart |
diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart |
index 8d6c88c36860ae6a0b300901888e829b91179b11..73a2ab718ac82568a2e2cbad373af6624bf0fd2b 100644 |
--- a/lib/compiler/implementation/apiimpl.dart |
+++ b/lib/compiler/implementation/apiimpl.dart |
@@ -105,7 +105,9 @@ class Compiler extends leg.Compiler { |
if (kind === api.Diagnostic.ERROR || kind === api.Diagnostic.CRASH) { |
compilationFailed = true; |
} |
- if (span === null) { |
+ // [:span.uri:] might be [:null:] in case of a [Script] with no [uri]. For |
ahe
2012/08/02 19:56:23
Actually, span.uri may not be null...
|
+ // instance in the [Types] constructor in typechecker.dart. |
ahe
2012/08/02 19:56:23
... because Types shouldn't do that :-)
|
+ if (span === null || span.uri === null) { |
handler(null, null, null, message, kind); |
} else { |
handler(translateUri(span.uri, null), span.begin, span.end, |