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