| 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' hide Resource; | 9 import 'dart:core' hide Resource; |
| 10 import 'dart:math' show max; | 10 import 'dart:math' show max; |
| (...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1576 } | 1576 } |
| 1577 sendAnalysisNotificationFlushResults(analysisServer, flushedFiles); | 1577 sendAnalysisNotificationFlushResults(analysisServer, flushedFiles); |
| 1578 } | 1578 } |
| 1579 } | 1579 } |
| 1580 | 1580 |
| 1581 @override | 1581 @override |
| 1582 void computingPackageMap(bool computing) => | 1582 void computingPackageMap(bool computing) => |
| 1583 analysisServer._computingPackageMap(computing); | 1583 analysisServer._computingPackageMap(computing); |
| 1584 | 1584 |
| 1585 @override | 1585 @override |
| 1586 void moveContext(Folder from, Folder to) { |
| 1587 // There is nothing to do. |
| 1588 // This method is mostly for tests. |
| 1589 // Context managers manage folders and contexts themselves. |
| 1590 } |
| 1591 |
| 1592 @override |
| 1586 void removeContext(Folder folder, List<String> flushedFiles) { | 1593 void removeContext(Folder folder, List<String> flushedFiles) { |
| 1587 AnalysisContext context = analysisServer.folderMap.remove(folder); | 1594 AnalysisContext context = analysisServer.folderMap.remove(folder); |
| 1588 sendAnalysisNotificationFlushResults(analysisServer, flushedFiles); | 1595 sendAnalysisNotificationFlushResults(analysisServer, flushedFiles); |
| 1589 | 1596 |
| 1590 analysisServer.operationQueue.contextRemoved(context); | 1597 analysisServer.operationQueue.contextRemoved(context); |
| 1591 analysisServer._onContextsChangedController | 1598 analysisServer._onContextsChangedController |
| 1592 .add(new ContextsChangedEvent(removed: [context])); | 1599 .add(new ContextsChangedEvent(removed: [context])); |
| 1593 analysisServer.sendContextAnalysisDoneNotifications( | 1600 analysisServer.sendContextAnalysisDoneNotifications( |
| 1594 context, AnalysisDoneReason.CONTEXT_REMOVED); | 1601 context, AnalysisDoneReason.CONTEXT_REMOVED); |
| 1595 context.dispose(); | 1602 context.dispose(); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1751 /** | 1758 /** |
| 1752 * The [PerformanceTag] for time spent in server request handlers. | 1759 * The [PerformanceTag] for time spent in server request handlers. |
| 1753 */ | 1760 */ |
| 1754 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); | 1761 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); |
| 1755 | 1762 |
| 1756 /** | 1763 /** |
| 1757 * The [PerformanceTag] for time spent in split store microtasks. | 1764 * The [PerformanceTag] for time spent in split store microtasks. |
| 1758 */ | 1765 */ |
| 1759 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 1766 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 1760 } | 1767 } |
| OLD | NEW |