| 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 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 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 sourceFactory = context.sourceFactory; | 1826 sourceFactory = context.sourceFactory; |
| 1827 analysisOptions = context.analysisOptions; | 1827 analysisOptions = context.analysisOptions; |
| 1828 context.dispose(); | 1828 context.dispose(); |
| 1829 } | 1829 } |
| 1830 nd.AnalysisDriver analysisDriver = new nd.AnalysisDriver( | 1830 nd.AnalysisDriver analysisDriver = new nd.AnalysisDriver( |
| 1831 analysisServer.analysisDriverScheduler, | 1831 analysisServer.analysisDriverScheduler, |
| 1832 analysisServer._analysisPerformanceLogger, | 1832 analysisServer._analysisPerformanceLogger, |
| 1833 resourceProvider, | 1833 resourceProvider, |
| 1834 analysisServer.byteStore, | 1834 analysisServer.byteStore, |
| 1835 analysisServer.fileContentOverlay, | 1835 analysisServer.fileContentOverlay, |
| 1836 folder.path, |
| 1836 sourceFactory, | 1837 sourceFactory, |
| 1837 analysisOptions); | 1838 analysisOptions); |
| 1838 analysisDriver.name = folder.path; | |
| 1839 analysisDriver.status.listen((status) { | 1839 analysisDriver.status.listen((status) { |
| 1840 // TODO(scheglov) send server status | 1840 // TODO(scheglov) send server status |
| 1841 }); | 1841 }); |
| 1842 analysisDriver.results.listen((result) { | 1842 analysisDriver.results.listen((result) { |
| 1843 new_sendErrorNotification(analysisServer, result); | 1843 new_sendErrorNotification(analysisServer, result); |
| 1844 String path = result.path; | 1844 String path = result.path; |
| 1845 CompilationUnit unit = result.unit; | 1845 CompilationUnit unit = result.unit; |
| 1846 if (unit != null) { | 1846 if (unit != null) { |
| 1847 if (analysisServer._hasAnalysisServiceSubscription( | 1847 if (analysisServer._hasAnalysisServiceSubscription( |
| 1848 AnalysisService.HIGHLIGHTS, path)) { | 1848 AnalysisService.HIGHLIGHTS, path)) { |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2123 /** | 2123 /** |
| 2124 * The [PerformanceTag] for time spent in server request handlers. | 2124 * The [PerformanceTag] for time spent in server request handlers. |
| 2125 */ | 2125 */ |
| 2126 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); | 2126 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); |
| 2127 | 2127 |
| 2128 /** | 2128 /** |
| 2129 * The [PerformanceTag] for time spent in split store microtasks. | 2129 * The [PerformanceTag] for time spent in split store microtasks. |
| 2130 */ | 2130 */ |
| 2131 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 2131 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 2132 } | 2132 } |
| OLD | NEW |