Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: pkg/compiler/lib/src/io/source_map_builder.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/io/source_file.dart ('k') | pkg/compiler/lib/src/js/rewrite_async.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/io/source_file.dart ('k') | pkg/compiler/lib/src/js/rewrite_async.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698