Chromium Code Reviews| Index: lib/compiler/implementation/compiler.dart |
| diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart |
| index af7c95d9a22ff6ddaac7734c6014c5778adc077d..0776c18451391c786bf7ca2a130d69e6e79b32c3 100644 |
| --- a/lib/compiler/implementation/compiler.dart |
| +++ b/lib/compiler/implementation/compiler.dart |
| @@ -824,6 +824,9 @@ class Compiler implements DiagnosticListener { |
| } |
| SourceSpan spanFromElement(Element element) { |
| + if (Element.isErroneousElement(element)) { |
|
ngeoffray
2012/09/07 08:12:46
Instead of special casing here, could you implemen
karlklose
2012/09/07 09:24:01
I wanted it to be similar to the case for the othe
ahe
2012/09/07 12:18:53
I don't think you're supposed to call spanFromElem
|
| + element = element.enclosingElement; |
| + } |
| if (element.position() === null) { |
| // Sometimes, the backend fakes up elements that have no |
| // position. So we use the enclosing element instead. It is |