Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index db282a37ac9b721ad723f06578e3ff4a2815cdd6..16ef47def239ff05060757451ce5cd778b56b6dd 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -1792,8 +1792,6 @@ class CompilerDiagnosticReporter extends DiagnosticReporter { |
} |
SourceSpan spanFromSpannable(Spannable node) { |
- // TODO(johnniwinther): Disallow `node == null` ? |
- if (node == null) return null; |
if (node == CURRENT_ELEMENT_SPANNABLE) { |
node = currentElement; |
} else if (node == NO_LOCATION_SPANNABLE) { |