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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart

Issue 11359059: Fix mirrors move errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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 mirrors_dart2js; 5 library mirrors_dart2js;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:uri'; 8 import 'dart:uri';
9 9
10 import '../../../../compiler/compiler.dart' as diagnostics; 10 import '../../compiler.dart' as diagnostics;
11 import '../../../../compiler/implementation/elements/elements.dart'; 11 import '../elements/elements.dart';
12 import '../../../../compiler/implementation/resolution/resolution.dart' 12 import '../resolution/resolution.dart' show ResolverTask, ResolverVisitor;
13 show ResolverTask, ResolverVisitor; 13 import '../apiimpl.dart' as api;
14 import '../../../../compiler/implementation/apiimpl.dart' as api; 14 import '../scanner/scannerlib.dart';
15 import '../../../../compiler/implementation/scanner/scannerlib.dart'; 15 import '../ssa/ssa.dart';
16 import '../../../../compiler/implementation/ssa/ssa.dart'; 16 import '../dart2jslib.dart';
17 import '../../../../compiler/implementation/dart2jslib.dart'; 17 import '../filenames.dart';
18 import '../../../../compiler/implementation/filenames.dart'; 18 import '../source_file.dart';
19 import '../../../../compiler/implementation/source_file.dart'; 19 import '../tree/tree.dart';
20 import '../../../../compiler/implementation/tree/tree.dart'; 20 import '../util/util.dart';
21 import '../../../../compiler/implementation/util/util.dart'; 21 import '../util/uri_extras.dart';
22 import '../../../../compiler/implementation/util/uri_extras.dart'; 22 import '../dart2js.dart';
23 import '../../../../compiler/implementation/dart2js.dart'; 23 import '../util/characters.dart';
24 import '../../../../compiler/implementation/util/characters.dart';
25 24
26 // TODO(rnystrom): Use "package:" URL (#4968). 25 // TODO(rnystrom): Use "package:" URL (#4968).
ahe 2012/11/06 09:34:26 I don't think this comment applies.
Johnni Winther 2012/11/06 10:17:10 Removed.
27 import '../../mirrors.dart'; 26 import 'mirrors.dart';
28 import 'util.dart'; 27 import 'util.dart';
29 28
30 //------------------------------------------------------------------------------ 29 //------------------------------------------------------------------------------
31 // Utility types and functions for the dart2js mirror system 30 // Utility types and functions for the dart2js mirror system
32 //------------------------------------------------------------------------------ 31 //------------------------------------------------------------------------------
33 32
34 bool _isPrivate(String name) { 33 bool _isPrivate(String name) {
35 return name.startsWith('_'); 34 return name.startsWith('_');
36 } 35 }
37 36
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 if (node != null) { 1525 if (node != null) {
1527 var span = mirrors.compiler.spanFromNode(node, script.uri); 1526 var span = mirrors.compiler.spanFromNode(node, script.uri);
1528 return new Dart2JsSourceLocation(script, span); 1527 return new Dart2JsSourceLocation(script, span);
1529 } else { 1528 } else {
1530 var span = mirrors.compiler.spanFromElement(_variable); 1529 var span = mirrors.compiler.spanFromElement(_variable);
1531 return new Dart2JsSourceLocation(script, span); 1530 return new Dart2JsSourceLocation(script, span);
1532 } 1531 }
1533 } 1532 }
1534 } 1533 }
1535 1534
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698