| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /// Source information system mapping that attempts a semantic mapping between | 5 /// Source information system mapping that attempts a semantic mapping between |
| 6 /// offsets of JavaScript code points to offsets of Dart code points. | 6 /// offsets of JavaScript code points to offsets of Dart code points. |
| 7 | 7 |
| 8 library dart2js.source_information.position; | 8 library dart2js.source_information.position; |
| 9 | 9 |
| 10 import '../common.dart'; | 10 import '../common.dart'; |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 | 678 |
| 679 int get value => subexpressionOffset; | 679 int get value => subexpressionOffset; |
| 680 | 680 |
| 681 String toString() { | 681 String toString() { |
| 682 return 'Offset[statementOffset=$statementOffset,' | 682 return 'Offset[statementOffset=$statementOffset,' |
| 683 'leftToRightOffset=$leftToRightOffset,' | 683 'leftToRightOffset=$leftToRightOffset,' |
| 684 'subexpressionOffset=$subexpressionOffset]'; | 684 'subexpressionOffset=$subexpressionOffset]'; |
| 685 } | 685 } |
| 686 } | 686 } |
| 687 | 687 |
| 688 enum BranchKind { CONDITION, LOOP, CATCH, FINALLY, CASE, } | 688 enum BranchKind { |
| 689 CONDITION, |
| 690 LOOP, |
| 691 CATCH, |
| 692 FINALLY, |
| 693 CASE, |
| 694 } |
| 689 | 695 |
| 690 enum StepKind { | 696 enum StepKind { |
| 691 FUN_ENTRY, | 697 FUN_ENTRY, |
| 692 FUN_EXIT, | 698 FUN_EXIT, |
| 693 CALL, | 699 CALL, |
| 694 NEW, | 700 NEW, |
| 695 RETURN, | 701 RETURN, |
| 696 BREAK, | 702 BREAK, |
| 697 CONTINUE, | 703 CONTINUE, |
| 698 THROW, | 704 THROW, |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 | 1285 |
| 1280 @override | 1286 @override |
| 1281 CodePosition operator [](js.Node node) { | 1287 CodePosition operator [](js.Node node) { |
| 1282 CodePosition codePosition = codePositions[node]; | 1288 CodePosition codePosition = codePositions[node]; |
| 1283 if (codePosition == null) { | 1289 if (codePosition == null) { |
| 1284 coverage.registerNodesWithoutOffset(node); | 1290 coverage.registerNodesWithoutOffset(node); |
| 1285 } | 1291 } |
| 1286 return codePosition; | 1292 return codePosition; |
| 1287 } | 1293 } |
| 1288 } | 1294 } |
| OLD | NEW |