OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 | 2 |
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 import 'package:analyzer_experimental/src/generated/java_io.dart'; | 7 import 'package:analyzer/src/generated/java_io.dart'; |
8 import 'package:analyzer_experimental/src/generated/source_io.dart'; | 8 import 'package:analyzer/src/generated/source_io.dart'; |
9 import 'package:analyzer_experimental/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
10 import 'package:analyzer_experimental/src/generated/sdk.dart' show DartSdk; | 10 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
11 import 'package:analyzer_experimental/src/generated/sdk_io.dart' show DirectoryB
asedDartSdk; | 11 import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk; |
12 import 'package:analyzer_experimental/src/generated/element.dart'; | 12 import 'package:analyzer/src/generated/element.dart'; |
13 import 'package:analyzer_experimental/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
14 | 14 |
15 import 'dart:io'; | 15 import 'dart:io'; |
16 | 16 |
17 main() { | 17 main() { |
18 print('working dir ${new File('.').fullPathSync()}'); | 18 print('working dir ${new File('.').fullPathSync()}'); |
19 | 19 |
20 var args = new Options().arguments; | 20 var args = new Options().arguments; |
21 if (args.length != 2) { | 21 if (args.length != 2) { |
22 print('Usage: resolve_driver [path_to_sdk] [file_to_resolve]'); | 22 print('Usage: resolve_driver [path_to_sdk] [file_to_resolve]'); |
23 exit(0); | 23 exit(0); |
(...skipping 28 matching lines...) Expand all Loading... |
52 if (library != null) { | 52 if (library != null) { |
53 text += " from ${element.library.definingCompilationUnit.source.fullNa
me}"; | 53 text += " from ${element.library.definingCompilationUnit.source.fullNa
me}"; |
54 } | 54 } |
55 } | 55 } |
56 } | 56 } |
57 print(text); | 57 print(text); |
58 return super.visitNode(node); | 58 return super.visitNode(node); |
59 } | 59 } |
60 } | 60 } |
61 | 61 |
OLD | NEW |