| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 | 7 |
| 8 import 'package:analyzer/dart/ast/ast.dart'; |
| 9 import 'package:analyzer/dart/ast/visitor.dart'; |
| 8 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/src/generated/ast.dart'; | |
| 10 import 'package:analyzer/src/generated/engine.dart'; | 11 import 'package:analyzer/src/generated/engine.dart'; |
| 11 import 'package:analyzer/src/generated/java_io.dart'; | 12 import 'package:analyzer/src/generated/java_io.dart'; |
| 12 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; | 13 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
| 13 import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk; | 14 import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk; |
| 14 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 15 import 'package:analyzer/src/generated/source_io.dart'; | 16 import 'package:analyzer/src/generated/source_io.dart'; |
| 16 | 17 |
| 17 void main(List<String> args) { | 18 void main(List<String> args) { |
| 18 print('working dir ${new File('.').resolveSymbolicLinksSync()}'); | 19 print('working dir ${new File('.').resolveSymbolicLinksSync()}'); |
| 19 | 20 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 var fullName = | 68 var fullName = |
| 68 element.library.definingCompilationUnit.source.fullName; | 69 element.library.definingCompilationUnit.source.fullName; |
| 69 lines.add(" from $fullName"); | 70 lines.add(" from $fullName"); |
| 70 } | 71 } |
| 71 } | 72 } |
| 72 } | 73 } |
| 73 print(lines.join('\n')); | 74 print(lines.join('\n')); |
| 74 return super.visitNode(node); | 75 return super.visitNode(node); |
| 75 } | 76 } |
| 76 } | 77 } |
| OLD | NEW |