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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/statement_analyzer.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 services.src.correction.statement_analyzer;
6
7 import 'package:analysis_server/src/protocol_server.dart'; 5 import 'package:analysis_server/src/protocol_server.dart';
8 import 'package:analysis_server/src/services/correction/selection_analyzer.dart' ; 6 import 'package:analysis_server/src/services/correction/selection_analyzer.dart' ;
9 import 'package:analysis_server/src/services/correction/status.dart'; 7 import 'package:analysis_server/src/services/correction/status.dart';
10 import 'package:analysis_server/src/services/correction/util.dart'; 8 import 'package:analysis_server/src/services/correction/util.dart';
11 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
12 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
13 import 'package:analyzer/dart/element/element.dart'; 11 import 'package:analyzer/dart/element/element.dart';
14 import 'package:analyzer/src/dart/scanner/reader.dart'; 12 import 'package:analyzer/src/dart/scanner/reader.dart';
15 import 'package:analyzer/src/dart/scanner/scanner.dart'; 13 import 'package:analyzer/src/dart/scanner/scanner.dart';
16 import 'package:analyzer/src/generated/source.dart'; 14 import 'package:analyzer/src/generated/source.dart';
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 */ 221 */
224 static bool _containsAny(List<AstNode> nodes, List<AstNode> otherNodes) { 222 static bool _containsAny(List<AstNode> nodes, List<AstNode> otherNodes) {
225 for (AstNode otherNode in otherNodes) { 223 for (AstNode otherNode in otherNodes) {
226 if (nodes.contains(otherNode)) { 224 if (nodes.contains(otherNode)) {
227 return true; 225 return true;
228 } 226 }
229 } 227 }
230 return false; 228 return false;
231 } 229 }
232 } 230 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698