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

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

Issue 1313073007: Move parser and token related libraries into their own subfolder. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix unittests and try Created 5 years, 3 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 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 '../diagnostics/messages.dart' show 10 import '../diagnostics/messages.dart' show
11 MessageKind, 11 MessageKind,
12 MessageTemplate; 12 MessageTemplate;
13 import '../diagnostics/source_span.dart' show 13 import '../diagnostics/source_span.dart' show
14 SourceSpan; 14 SourceSpan;
15 import '../elements/elements.dart' show 15 import '../elements/elements.dart' show
16 AstElement, 16 AstElement,
17 LocalElement; 17 LocalElement;
18 import '../js/js.dart' as js; 18 import '../js/js.dart' as js;
19 import '../js/js_source_mapping.dart'; 19 import '../js/js_source_mapping.dart';
20 import '../scanner/token.dart' show Token; 20 import '../tokens/token.dart' show Token;
21 import '../tree/tree.dart' show Node, Send; 21 import '../tree/tree.dart' show Node, Send;
22 22
23 import 'source_file.dart'; 23 import 'source_file.dart';
24 import 'source_information.dart'; 24 import 'source_information.dart';
25 25
26 /// Source information that contains start source position and optionally an 26 /// Source information that contains start source position and optionally an
27 /// end source position. 27 /// end source position.
28 class StartEndSourceInformation extends SourceInformation { 28 class StartEndSourceInformation extends SourceInformation {
29 @override 29 @override
30 final SourceLocation startPosition; 30 final SourceLocation startPosition;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 @override 228 @override
229 SourceInformationBuilder forContext( 229 SourceInformationBuilder forContext(
230 AstElement element, {SourceInformation sourceInformation}) { 230 AstElement element, {SourceInformation sourceInformation}) {
231 return new StartEndSourceInformationBuilder(element); 231 return new StartEndSourceInformationBuilder(element);
232 } 232 }
233 } 233 }
234 234
235 235
236 236
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/mirror_renamer/mirror_renamer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698