| 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 '../diagnostics/invariant.dart' show | 10 import '../common.dart'; |
| 11 invariant; | |
| 12 import '../diagnostics/source_span.dart' show | |
| 13 SourceSpan; | |
| 14 import '../diagnostics/spannable.dart' show | |
| 15 NO_LOCATION_SPANNABLE; | |
| 16 import '../elements/elements.dart' show | 11 import '../elements/elements.dart' show |
| 17 AstElement, | 12 AstElement, |
| 18 LocalElement; | 13 LocalElement; |
| 19 import '../js/js.dart' as js; | 14 import '../js/js.dart' as js; |
| 20 import '../js/js_source_mapping.dart'; | 15 import '../js/js_source_mapping.dart'; |
| 21 import '../js/js_debug.dart'; | 16 import '../js/js_debug.dart'; |
| 22 import '../tree/tree.dart' show | 17 import '../tree/tree.dart' show |
| 23 Node, | 18 Node, |
| 24 Send; | 19 Send; |
| 25 | 20 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 449 |
| 455 @override | 450 @override |
| 456 void onPositions(js.Node node, | 451 void onPositions(js.Node node, |
| 457 int startPosition, | 452 int startPosition, |
| 458 int endPosition, | 453 int endPosition, |
| 459 int closingPosition) { | 454 int closingPosition) { |
| 460 codePositions.registerPositions( | 455 codePositions.registerPositions( |
| 461 node, startPosition, endPosition, closingPosition); | 456 node, startPosition, endPosition, closingPosition); |
| 462 } | 457 } |
| 463 } | 458 } |
| OLD | NEW |