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 that maps spans of Dart AST nodes to spans of | 5 /// Source information system that maps spans of Dart AST nodes to spans of |
6 /// JavaScript nodes. | 6 /// JavaScript nodes. |
7 | 7 |
8 library dart2js.source_information.start_end; | 8 library dart2js.source_information.start_end; |
9 | 9 |
| 10 import '../common.dart'; |
10 import '../diagnostics/messages.dart' show | 11 import '../diagnostics/messages.dart' show |
11 MessageKind, | |
12 MessageTemplate; | 12 MessageTemplate; |
13 import '../diagnostics/source_span.dart' show | |
14 SourceSpan; | |
15 import '../elements/elements.dart' show | 13 import '../elements/elements.dart' show |
16 AstElement, | 14 AstElement, |
17 LocalElement; | 15 LocalElement; |
18 import '../js/js.dart' as js; | 16 import '../js/js.dart' as js; |
19 import '../js/js_source_mapping.dart'; | 17 import '../js/js_source_mapping.dart'; |
20 import '../tokens/token.dart' show Token; | 18 import '../tokens/token.dart' show Token; |
21 import '../tree/tree.dart' show Node, Send; | 19 import '../tree/tree.dart' show Node, Send; |
22 | 20 |
23 import 'source_file.dart'; | 21 import 'source_file.dart'; |
24 import 'source_information.dart'; | 22 import 'source_information.dart'; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 225 |
228 @override | 226 @override |
229 SourceInformationBuilder forContext( | 227 SourceInformationBuilder forContext( |
230 AstElement element, {SourceInformation sourceInformation}) { | 228 AstElement element, {SourceInformation sourceInformation}) { |
231 return new StartEndSourceInformationBuilder(element); | 229 return new StartEndSourceInformationBuilder(element); |
232 } | 230 } |
233 } | 231 } |
234 | 232 |
235 | 233 |
236 | 234 |
OLD | NEW |