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

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

Issue 2223133003: pkg/compiler: clean up 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
OLDNEW
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';
11 import '../elements/elements.dart' 11 import '../elements/elements.dart'
12 show AstElement, FieldElement, ResolvedAst, ResolvedAstKind; 12 show AstElement, ResolvedAst, ResolvedAstKind;
13 import '../js/js.dart' as js; 13 import '../js/js.dart' as js;
14 import '../js/js_debug.dart'; 14 import '../js/js_debug.dart';
15 import '../js/js_source_mapping.dart'; 15 import '../js/js_source_mapping.dart';
16 import '../tree/tree.dart' show FunctionExpression, Node, Send; 16 import '../tree/tree.dart' show Node, Send;
17 import 'code_output.dart' show CodeBuffer; 17 import 'code_output.dart' show CodeBuffer;
18 import 'source_file.dart'; 18 import 'source_file.dart';
19 import 'source_information.dart'; 19 import 'source_information.dart';
20 20
21 /// [SourceInformation] that consists of an offset position into the source 21 /// [SourceInformation] that consists of an offset position into the source
22 /// code. 22 /// code.
23 class PositionSourceInformation extends SourceInformation { 23 class PositionSourceInformation extends SourceInformation {
24 @override 24 @override
25 final SourceLocation startPosition; 25 final SourceLocation startPosition;
26 26
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 1277
1278 @override 1278 @override
1279 CodePosition operator [](js.Node node) { 1279 CodePosition operator [](js.Node node) {
1280 CodePosition codePosition = codePositions[node]; 1280 CodePosition codePosition = codePositions[node];
1281 if (codePosition == null) { 1281 if (codePosition == null) {
1282 coverage.registerNodesWithoutOffset(node); 1282 coverage.registerNodesWithoutOffset(node);
1283 } 1283 }
1284 return codePosition; 1284 return codePosition;
1285 } 1285 }
1286 } 1286 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/io/start_end_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698