| Index: sdk/lib/_internal/compiler/implementation/compiler.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
|
| index a08b609bb38773ee24f1b027c123dd8621159ac7..7ca18ce62d9c8ab85c87cb1681cadef2b8fdf381 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/compiler.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
|
| @@ -1021,6 +1021,9 @@ abstract class Compiler implements DiagnosticListener {
|
| } else if (node is MetadataAnnotation) {
|
| Uri uri = node.annotatedElement.compilationUnit.script.readableUri;
|
| return spanFromTokens(node.beginToken, node.endToken, uri);
|
| + } else if (node is Local) {
|
| + Local local = node;
|
| + return spanFromElement(local.executableContext);
|
| } else {
|
| throw 'No error location.';
|
| }
|
|
|