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

Side by Side Diff: pkg/analysis_server/test/stress/utilities/server.dart

Issue 2688253002: Suppress a few analysis warnings in the analyzer codebase. (Closed)
Patch Set: Created 3 years, 10 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 /** 5 /**
6 * Support for interacting with an analysis server that is running in a separate 6 * Support for interacting with an analysis server that is running in a separate
7 * process. 7 * process.
8 */ 8 */
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 * sent to the server. 183 * sent to the server.
184 */ 184 */
185 int _nextId = 0; 185 int _nextId = 0;
186 186
187 /** 187 /**
188 * The analysis roots that are included. 188 * The analysis roots that are included.
189 */ 189 */
190 List<String> _analysisRootIncludes = <String>[]; 190 List<String> _analysisRootIncludes = <String>[];
191 191
192 /** 192 /**
193 * The analysis roots that are excluded.
194 */
195 List<String> _analysisRootExcludes = <String>[];
196
197 /**
198 * A list containing the paths of files for which an overlay has been created. 193 * A list containing the paths of files for which an overlay has been created.
199 */ 194 */
200 List<String> filesWithOverlays = <String>[]; 195 List<String> filesWithOverlays = <String>[];
201 196
202 /** 197 /**
203 * The files that the server reported as being analyzed. 198 * The files that the server reported as being analyzed.
204 */ 199 */
205 List<String> _analyzedFiles = <String>[]; 200 List<String> _analyzedFiles = <String>[];
206 201
207 /** 202 /**
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 436
442 void sendAnalysisReanalyze({List<String> roots}) { 437 void sendAnalysisReanalyze({List<String> roots}) {
443 var params = new AnalysisReanalyzeParams(roots: roots).toJson(); 438 var params = new AnalysisReanalyzeParams(roots: roots).toJson();
444 _send("analysis.reanalyze", params); 439 _send("analysis.reanalyze", params);
445 } 440 }
446 441
447 void sendAnalysisSetAnalysisRoots( 442 void sendAnalysisSetAnalysisRoots(
448 List<String> included, List<String> excluded, 443 List<String> included, List<String> excluded,
449 {Map<String, String> packageRoots}) { 444 {Map<String, String> packageRoots}) {
450 _analysisRootIncludes = included; 445 _analysisRootIncludes = included;
451 _analysisRootExcludes = excluded; 446 //_analysisRootExcludes = excluded;
scheglov 2017/02/10 21:06:53 Remove it.
devoncarew 2017/02/10 21:12:35 Done.
452 var params = new AnalysisSetAnalysisRootsParams(included, excluded, 447 var params = new AnalysisSetAnalysisRootsParams(included, excluded,
453 packageRoots: packageRoots) 448 packageRoots: packageRoots)
454 .toJson(); 449 .toJson();
455 _send("analysis.setAnalysisRoots", params); 450 _send("analysis.setAnalysisRoots", params);
456 } 451 }
457 452
458 void sendAnalysisSetGeneralSubscriptions( 453 void sendAnalysisSetGeneralSubscriptions(
459 List<GeneralAnalysisService> subscriptions) { 454 List<GeneralAnalysisService> subscriptions) {
460 var params = 455 var params =
461 new AnalysisSetGeneralSubscriptionsParams(subscriptions).toJson(); 456 new AnalysisSetGeneralSubscriptionsParams(subscriptions).toJson();
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 if (buffer.length > 0) { 1085 if (buffer.length > 0) {
1091 buffer.writeln(); 1086 buffer.writeln();
1092 buffer.writeln(); 1087 buffer.writeln();
1093 } 1088 }
1094 buffer.writeln(filePath); 1089 buffer.writeln(filePath);
1095 _writeErrors(' Expected ', expectedErrors); 1090 _writeErrors(' Expected ', expectedErrors);
1096 buffer.writeln(); 1091 buffer.writeln();
1097 _writeErrors(' Found ', actualErrors); 1092 _writeErrors(' Found ', actualErrors);
1098 } 1093 }
1099 } 1094 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698