| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library dart2js.source_map_builder; | 5 library dart2js.source_map_builder; |
| 6 | 6 |
| 7 import '../util/uri_extras.dart' show relativize; |
| 7 import '../util/util.dart'; | 8 import '../util/util.dart'; |
| 8 import '../util/uri_extras.dart' show relativize; | |
| 9 import 'line_column_provider.dart'; | 9 import 'line_column_provider.dart'; |
| 10 import 'source_information.dart' show SourceLocation; | 10 import 'source_information.dart' show SourceLocation; |
| 11 | 11 |
| 12 class SourceMapBuilder { | 12 class SourceMapBuilder { |
| 13 /// The URI of the source map file. | 13 /// The URI of the source map file. |
| 14 final Uri sourceMapUri; | 14 final Uri sourceMapUri; |
| 15 | 15 |
| 16 /// The URI of the target language file. | 16 /// The URI of the target language file. |
| 17 final Uri targetFileUri; | 17 final Uri targetFileUri; |
| 18 | 18 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 int register(T element) { | 291 int register(T element) { |
| 292 return map.putIfAbsent(element, () => map.length); | 292 return map.putIfAbsent(element, () => map.length); |
| 293 } | 293 } |
| 294 | 294 |
| 295 /// Returns the index of [element]. | 295 /// Returns the index of [element]. |
| 296 int operator [](T element) => map[element]; | 296 int operator [](T element) => map[element]; |
| 297 | 297 |
| 298 /// Returns the indexed elements. | 298 /// Returns the indexed elements. |
| 299 Iterable<T> get elements => map.keys; | 299 Iterable<T> get elements => map.keys; |
| 300 } | 300 } |
| OLD | NEW |