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

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

Issue 10701091: Dartdoc and Apidoc updated to use dart2js through the mirror system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed cf. rnystrom's comments. Created 8 years, 5 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 | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/compiler.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/compiler.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698