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

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

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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' show AstElement, FieldElement, LocalElement; 11 import '../elements/elements.dart' show AstElement, FieldElement;
12 import '../js/js.dart' as js; 12 import '../js/js.dart' as js;
13 import '../js/js_debug.dart';
13 import '../js/js_source_mapping.dart'; 14 import '../js/js_source_mapping.dart';
14 import '../js/js_debug.dart';
15 import '../tree/tree.dart' show FunctionExpression, Node, Send; 15 import '../tree/tree.dart' show FunctionExpression, Node, Send;
16
17 import 'code_output.dart' show CodeBuffer; 16 import 'code_output.dart' show CodeBuffer;
18 import 'source_file.dart'; 17 import 'source_file.dart';
19 import 'source_information.dart'; 18 import 'source_information.dart';
20 19
21 /// [SourceInformation] that consists of an offset position into the source 20 /// [SourceInformation] that consists of an offset position into the source
22 /// code. 21 /// code.
23 class PositionSourceInformation extends SourceInformation { 22 class PositionSourceInformation extends SourceInformation {
24 @override 23 @override
25 final SourceLocation startPosition; 24 final SourceLocation startPosition;
26 25
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 1280
1282 @override 1281 @override
1283 CodePosition operator [](js.Node node) { 1282 CodePosition operator [](js.Node node) {
1284 CodePosition codePosition = codePositions[node]; 1283 CodePosition codePosition = codePositions[node];
1285 if (codePosition == null) { 1284 if (codePosition == null) {
1286 coverage.registerNodesWithoutOffset(node); 1285 coverage.registerNodesWithoutOffset(node);
1287 } 1286 }
1288 return codePosition; 1287 return codePosition;
1289 } 1288 }
1290 } 1289 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/info/send_info.dart ('k') | pkg/compiler/lib/src/io/source_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698