| OLD | NEW |
| 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 import 'mirrors.dart'; |
| 27 import '../../mirrors.dart'; | |
| 28 import 'util.dart'; | 26 import 'util.dart'; |
| 29 | 27 |
| 30 //------------------------------------------------------------------------------ | 28 //------------------------------------------------------------------------------ |
| 31 // Utility types and functions for the dart2js mirror system | 29 // Utility types and functions for the dart2js mirror system |
| 32 //------------------------------------------------------------------------------ | 30 //------------------------------------------------------------------------------ |
| 33 | 31 |
| 34 bool _isPrivate(String name) { | 32 bool _isPrivate(String name) { |
| 35 return name.startsWith('_'); | 33 return name.startsWith('_'); |
| 36 } | 34 } |
| 37 | 35 |
| (...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 if (node != null) { | 1524 if (node != null) { |
| 1527 var span = mirrors.compiler.spanFromNode(node, script.uri); | 1525 var span = mirrors.compiler.spanFromNode(node, script.uri); |
| 1528 return new Dart2JsSourceLocation(script, span); | 1526 return new Dart2JsSourceLocation(script, span); |
| 1529 } else { | 1527 } else { |
| 1530 var span = mirrors.compiler.spanFromElement(_variable); | 1528 var span = mirrors.compiler.spanFromElement(_variable); |
| 1531 return new Dart2JsSourceLocation(script, span); | 1529 return new Dart2JsSourceLocation(script, span); |
| 1532 } | 1530 } |
| 1533 } | 1531 } |
| 1534 } | 1532 } |
| 1535 | 1533 |
| OLD | NEW |