| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analysis_server.plugin.edit.fix.fix_dart; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; | 7 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; |
| 10 import 'package:analysis_server/src/services/correction/fix_internal.dart' | 8 import 'package:analysis_server/src/services/correction/fix_internal.dart' |
| 11 show DartFixContextImpl; | 9 show DartFixContextImpl; |
| 12 import 'package:analysis_server/src/services/correction/namespace.dart' | 10 import 'package:analysis_server/src/services/correction/namespace.dart' |
| 13 show getExportedElement; | 11 show getExportedElement; |
| 14 import 'package:analyzer/dart/ast/ast.dart'; | 12 import 'package:analyzer/dart/ast/ast.dart'; |
| 15 import 'package:analyzer/dart/element/element.dart'; | 13 import 'package:analyzer/dart/element/element.dart'; |
| 16 import 'package:analyzer/src/dart/analysis/ast_provider_context.dart'; | 14 import 'package:analyzer/src/dart/analysis/ast_provider_context.dart'; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 if (topLevelKind != null) { | 114 if (topLevelKind != null) { |
| 117 bool isExported = element.librarySource != librarySource; | 115 bool isExported = element.librarySource != librarySource; |
| 118 declarations.add(new TopLevelDeclarationInSource(librarySource, | 116 declarations.add(new TopLevelDeclarationInSource(librarySource, |
| 119 new TopLevelDeclaration(topLevelKind, element.name), isExported)); | 117 new TopLevelDeclaration(topLevelKind, element.name), isExported)); |
| 120 } | 118 } |
| 121 } | 119 } |
| 122 return declarations; | 120 return declarations; |
| 123 }; | 121 }; |
| 124 } | 122 } |
| 125 } | 123 } |
| OLD | NEW |