| OLD | NEW |
| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:core'; | 7 import 'dart:core'; |
| 8 import 'dart:io' as io; | 8 import 'dart:io' as io; |
| 9 import 'dart:math' show max; | 9 import 'dart:math' show max; |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 import 'package:analyzer/src/generated/engine.dart'; | 61 import 'package:analyzer/src/generated/engine.dart'; |
| 62 import 'package:analyzer/src/generated/sdk.dart'; | 62 import 'package:analyzer/src/generated/sdk.dart'; |
| 63 import 'package:analyzer/src/generated/source.dart'; | 63 import 'package:analyzer/src/generated/source.dart'; |
| 64 import 'package:analyzer/src/generated/source_io.dart'; | 64 import 'package:analyzer/src/generated/source_io.dart'; |
| 65 import 'package:analyzer/src/generated/utilities_general.dart'; | 65 import 'package:analyzer/src/generated/utilities_general.dart'; |
| 66 import 'package:analyzer/src/util/glob.dart'; | 66 import 'package:analyzer/src/util/glob.dart'; |
| 67 import 'package:analyzer_plugin/protocol/protocol_common.dart' hide Element; | 67 import 'package:analyzer_plugin/protocol/protocol_common.dart' hide Element; |
| 68 import 'package:front_end/src/base/performace_logger.dart'; | 68 import 'package:front_end/src/base/performace_logger.dart'; |
| 69 import 'package:front_end/src/byte_store/byte_store.dart'; | 69 import 'package:front_end/src/byte_store/byte_store.dart'; |
| 70 import 'package:front_end/src/byte_store/file_byte_store.dart'; | 70 import 'package:front_end/src/byte_store/file_byte_store.dart'; |
| 71 import 'package:plugin/plugin.dart'; | |
| 72 import 'package:telemetry/crash_reporting.dart'; | 71 import 'package:telemetry/crash_reporting.dart'; |
| 73 import 'package:telemetry/telemetry.dart' as telemetry; | 72 import 'package:telemetry/telemetry.dart' as telemetry; |
| 74 import 'package:watcher/watcher.dart'; | 73 import 'package:watcher/watcher.dart'; |
| 75 | 74 |
| 76 typedef void OptionUpdater(AnalysisOptionsImpl options); | 75 typedef void OptionUpdater(AnalysisOptionsImpl options); |
| 77 | 76 |
| 78 /** | 77 /** |
| 79 * Enum representing reasons why analysis might be done for a given file. | 78 * Enum representing reasons why analysis might be done for a given file. |
| 80 */ | 79 */ |
| 81 class AnalysisDoneReason { | 80 class AnalysisDoneReason { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 */ | 245 */ |
| 247 final nd.FileContentOverlay fileContentOverlay = new nd.FileContentOverlay(); | 246 final nd.FileContentOverlay fileContentOverlay = new nd.FileContentOverlay(); |
| 248 | 247 |
| 249 /** | 248 /** |
| 250 * The current state of overlays from the client. This is used as the | 249 * The current state of overlays from the client. This is used as the |
| 251 * content cache for all contexts. | 250 * content cache for all contexts. |
| 252 */ | 251 */ |
| 253 final ContentCache overlayState = new ContentCache(); | 252 final ContentCache overlayState = new ContentCache(); |
| 254 | 253 |
| 255 /** | 254 /** |
| 256 * The plugins that are defined outside the analysis_server package. | |
| 257 */ | |
| 258 List<Plugin> userDefinedPlugins; | |
| 259 | |
| 260 /** | |
| 261 * If the "analysis.analyzedFiles" notification is currently being subscribed | 255 * If the "analysis.analyzedFiles" notification is currently being subscribed |
| 262 * to (see [generalAnalysisServices]), and at least one such notification has | 256 * to (see [generalAnalysisServices]), and at least one such notification has |
| 263 * been sent since the subscription was enabled, the set of analyzed files | 257 * been sent since the subscription was enabled, the set of analyzed files |
| 264 * that was delivered in the most recently sent notification. Otherwise | 258 * that was delivered in the most recently sent notification. Otherwise |
| 265 * `null`. | 259 * `null`. |
| 266 */ | 260 */ |
| 267 Set<String> prevAnalyzedFiles; | 261 Set<String> prevAnalyzedFiles; |
| 268 | 262 |
| 269 /** | 263 /** |
| 270 * The default options used to create new analysis contexts. This object is | 264 * The default options used to create new analysis contexts. This object is |
| (...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 /** | 1516 /** |
| 1523 * The [PerformanceTag] for time spent in server request handlers. | 1517 * The [PerformanceTag] for time spent in server request handlers. |
| 1524 */ | 1518 */ |
| 1525 static PerformanceTag serverRequests = server.createChild('requests'); | 1519 static PerformanceTag serverRequests = server.createChild('requests'); |
| 1526 | 1520 |
| 1527 /** | 1521 /** |
| 1528 * The [PerformanceTag] for time spent in split store microtasks. | 1522 * The [PerformanceTag] for time spent in split store microtasks. |
| 1529 */ | 1523 */ |
| 1530 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 1524 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 1531 } | 1525 } |
| OLD | NEW |