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('../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); | |
8 #import('../../../lib/compiler/implementation/elements/elements.dart'); | |
9 #import('../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api'); | |
10 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); | |
11 #import('../../../lib/compiler/implementation/leg.dart'); | |
12 #import('../../../lib/compiler/implementation/filenames.dart'); | |
13 #import('../../../lib/compiler/implementation/source_file.dart'); | |
14 #import('../../../lib/compiler/implementation/tree/tree.dart'); | |
15 #import('../../../lib/compiler/implementation/util/util.dart'); | |
16 #import('../../../lib/compiler/implementation/util/uri_extras.dart'); | |
17 #import('../../../lib/compiler/implementation/dart2js.dart'); | |
18 #import('mirrors.dart'); | |
19 #import('util.dart'); | |
20 #import('dart:io'); | 7 #import('dart:io'); |
21 #import('dart:uri'); | 8 #import('dart:uri'); |
22 | 9 |
| 10 #import('../../../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); |
| 11 #import('../../../../../lib/compiler/implementation/elements/elements.dart'); |
| 12 #import('../../../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api'
); |
| 13 #import('../../../../../lib/compiler/implementation/scanner/scannerlib.dart'); |
| 14 #import('../../../../../lib/compiler/implementation/leg.dart'); |
| 15 #import('../../../../../lib/compiler/implementation/filenames.dart'); |
| 16 #import('../../../../../lib/compiler/implementation/source_file.dart'); |
| 17 #import('../../../../../lib/compiler/implementation/tree/tree.dart'); |
| 18 #import('../../../../../lib/compiler/implementation/util/util.dart'); |
| 19 #import('../../../../../lib/compiler/implementation/util/uri_extras.dart'); |
| 20 #import('../../../../../lib/compiler/implementation/dart2js.dart'); |
| 21 |
| 22 // TODO(rnystrom): Use "package:" URL (#4968). |
| 23 #import('../../mirrors.dart'); |
| 24 #import('util.dart'); |
23 | 25 |
24 //------------------------------------------------------------------------------ | 26 //------------------------------------------------------------------------------ |
25 // Utility types and functions for the dart2js mirror system | 27 // Utility types and functions for the dart2js mirror system |
26 //------------------------------------------------------------------------------ | 28 //------------------------------------------------------------------------------ |
27 | 29 |
28 bool _isPrivate(String name) { | 30 bool _isPrivate(String name) { |
29 return name.startsWith('_'); | 31 return name.startsWith('_'); |
30 } | 32 } |
31 | 33 |
32 List<ParameterMirror> _parametersFromFunctionSignature( | 34 List<ParameterMirror> _parametersFromFunctionSignature( |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 if (node !== null) { | 1385 if (node !== null) { |
1384 var span = system.compiler.spanFromNode(node, script.uri); | 1386 var span = system.compiler.spanFromNode(node, script.uri); |
1385 return new Dart2JsLocation(script, span); | 1387 return new Dart2JsLocation(script, span); |
1386 } else { | 1388 } else { |
1387 var span = system.compiler.spanFromElement(_variable); | 1389 var span = system.compiler.spanFromElement(_variable); |
1388 return new Dart2JsLocation(script, span); | 1390 return new Dart2JsLocation(script, span); |
1389 } | 1391 } |
1390 } | 1392 } |
1391 } | 1393 } |
1392 | 1394 |
OLD | NEW |