Chromium Code Reviews| 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 /** | 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 Loading... | |
| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 438 var params = new AnalysisGetReachableSourcesParams(file).toJson(); | 433 var params = new AnalysisGetReachableSourcesParams(file).toJson(); |
| 439 return _send("analysis.getReachableSources", params); | 434 return _send("analysis.getReachableSources", params); |
| 440 } | 435 } |
| 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, |
|
Brian Wilkerson
2017/02/11 22:27:36
Sigh. I was planning on using the excludes informa
| |
| 449 {Map<String, String> packageRoots}) { | 444 {Map<String, String> packageRoots}) { |
| 450 _analysisRootIncludes = included; | 445 _analysisRootIncludes = included; |
| 451 _analysisRootExcludes = excluded; | |
| 452 var params = new AnalysisSetAnalysisRootsParams(included, excluded, | 446 var params = new AnalysisSetAnalysisRootsParams(included, excluded, |
| 453 packageRoots: packageRoots) | 447 packageRoots: packageRoots) |
| 454 .toJson(); | 448 .toJson(); |
| 455 _send("analysis.setAnalysisRoots", params); | 449 _send("analysis.setAnalysisRoots", params); |
| 456 } | 450 } |
| 457 | 451 |
| 458 void sendAnalysisSetGeneralSubscriptions( | 452 void sendAnalysisSetGeneralSubscriptions( |
| 459 List<GeneralAnalysisService> subscriptions) { | 453 List<GeneralAnalysisService> subscriptions) { |
| 460 var params = | 454 var params = |
| 461 new AnalysisSetGeneralSubscriptionsParams(subscriptions).toJson(); | 455 new AnalysisSetGeneralSubscriptionsParams(subscriptions).toJson(); |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1090 if (buffer.length > 0) { | 1084 if (buffer.length > 0) { |
| 1091 buffer.writeln(); | 1085 buffer.writeln(); |
| 1092 buffer.writeln(); | 1086 buffer.writeln(); |
| 1093 } | 1087 } |
| 1094 buffer.writeln(filePath); | 1088 buffer.writeln(filePath); |
| 1095 _writeErrors(' Expected ', expectedErrors); | 1089 _writeErrors(' Expected ', expectedErrors); |
| 1096 buffer.writeln(); | 1090 buffer.writeln(); |
| 1097 _writeErrors(' Found ', actualErrors); | 1091 _writeErrors(' Found ', actualErrors); |
| 1098 } | 1092 } |
| 1099 } | 1093 } |
| OLD | NEW |