Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Side by Side Diff: pkg/analysis_server/lib/plugin/edit/fix/fix_dart.dart

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/plugin/edit/fix/fix.dart ('k') | pkg/analysis_server/lib/src/analysis_logger.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698