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

Side by Side Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 2665263002: Streamline AnalysisDriver status tracking. (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) 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 analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:core'; 9 import 'dart:core';
10 import 'dart:io' as io; 10 import 'dart:io' as io;
(...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after
1813 * The [ResourceProvider] by which paths are converted into [Resource]s. 1813 * The [ResourceProvider] by which paths are converted into [Resource]s.
1814 */ 1814 */
1815 final ResourceProvider resourceProvider; 1815 final ResourceProvider resourceProvider;
1816 1816
1817 ServerContextManagerCallbacks(this.analysisServer, this.resourceProvider); 1817 ServerContextManagerCallbacks(this.analysisServer, this.resourceProvider);
1818 1818
1819 @override 1819 @override
1820 nd.AnalysisDriver addAnalysisDriver(Folder folder, AnalysisOptions options) { 1820 nd.AnalysisDriver addAnalysisDriver(Folder folder, AnalysisOptions options) {
1821 ContextBuilder builder = createContextBuilder(folder, options); 1821 ContextBuilder builder = createContextBuilder(folder, options);
1822 nd.AnalysisDriver analysisDriver = builder.buildDriver(folder.path); 1822 nd.AnalysisDriver analysisDriver = builder.buildDriver(folder.path);
1823 analysisDriver.status.listen((status) {
1824 // TODO(scheglov) send server status
1825 });
1826 analysisDriver.results.listen((result) { 1823 analysisDriver.results.listen((result) {
1827 new_sendErrorNotification(analysisServer, result); 1824 new_sendErrorNotification(analysisServer, result);
1828 String path = result.path; 1825 String path = result.path;
1829 CompilationUnit unit = result.unit; 1826 CompilationUnit unit = result.unit;
1830 if (unit != null) { 1827 if (unit != null) {
1831 if (analysisServer._hasAnalysisServiceSubscription( 1828 if (analysisServer._hasAnalysisServiceSubscription(
1832 AnalysisService.HIGHLIGHTS, path)) { 1829 AnalysisService.HIGHLIGHTS, path)) {
1833 _runDelayed(() { 1830 _runDelayed(() {
1834 sendAnalysisNotificationHighlights(analysisServer, path, unit); 1831 sendAnalysisNotificationHighlights(analysisServer, path, unit);
1835 }); 1832 });
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
2114 /** 2111 /**
2115 * The [PerformanceTag] for time spent in server request handlers. 2112 * The [PerformanceTag] for time spent in server request handlers.
2116 */ 2113 */
2117 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 2114 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
2118 2115
2119 /** 2116 /**
2120 * The [PerformanceTag] for time spent in split store microtasks. 2117 * The [PerformanceTag] for time spent in split store microtasks.
2121 */ 2118 */
2122 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 2119 static PerformanceTag splitStore = new PerformanceTag('splitStore');
2123 } 2120 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | pkg/analyzer/lib/src/dart/analysis/status.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698