| Index: pkg/compiler/lib/src/compiler.dart
|
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
|
| index a99134f8ba338f2b050ebcd486949a9b934f1a00..8725d9225b8cf4dc6e94f3cf5e39c4ebddbe9d9b 100644
|
| --- a/pkg/compiler/lib/src/compiler.dart
|
| +++ b/pkg/compiler/lib/src/compiler.dart
|
| @@ -1906,12 +1906,9 @@ abstract class Compiler implements DiagnosticListener {
|
| SourceSpan spanFromHInstruction(HInstruction instruction) {
|
| Element element = _elementFromHInstruction(instruction);
|
| if (element == null) element = currentElement;
|
| - var position = instruction.sourcePosition;
|
| + SourceInformation position = instruction.sourceInformation;
|
| if (position == null) return spanFromElement(element);
|
| - Token token = position.token;
|
| - if (token == null) return spanFromElement(element);
|
| - Uri uri = element.compilationUnit.script.readableUri;
|
| - return spanFromTokens(token, token, uri);
|
| + return position.sourceSpan;
|
| }
|
|
|
| /**
|
|
|