| Index: lib/compiler/implementation/ssa/codegen.dart
|
| diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
|
| index 431f501127b9dfe4d4509a17ab91a172d0b9a162..c90d5ca7faf0ed2bd7b389db513349013b325bce 100644
|
| --- a/lib/compiler/implementation/ssa/codegen.dart
|
| +++ b/lib/compiler/implementation/ssa/codegen.dart
|
| @@ -785,6 +785,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| bool visitLoopInfo(HLoopBlockInformation info) {
|
| HExpressionInformation condition = info.condition;
|
| bool isConditionExpression = isJSCondition(condition);
|
| + buffer.setSourceLocation(work.element, info.sourcePosition.getBeginToken());
|
|
|
| switch (info.kind) {
|
| // Treate all three "test-first" loops the same way.
|
| @@ -902,6 +903,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| 'Unexpected loop kind: ${info.kind}',
|
| instruction: condition.conditionExpression);
|
| }
|
| + buffer.setSourceLocation(work.element, info.sourcePosition.getEndToken());
|
| return true;
|
| }
|
|
|
|
|