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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 _getResolvedCompilationUnitToResendNotification(context, source); | 968 _getResolvedCompilationUnitToResendNotification(context, source); |
969 if (dartUnit != null) { | 969 if (dartUnit != null) { |
970 switch (service) { | 970 switch (service) { |
971 case AnalysisService.HIGHLIGHTS: | 971 case AnalysisService.HIGHLIGHTS: |
972 sendAnalysisNotificationHighlights(this, file, dartUnit); | 972 sendAnalysisNotificationHighlights(this, file, dartUnit); |
973 break; | 973 break; |
974 case AnalysisService.NAVIGATION: | 974 case AnalysisService.NAVIGATION: |
975 sendAnalysisNotificationNavigation(this, context, source); | 975 sendAnalysisNotificationNavigation(this, context, source); |
976 break; | 976 break; |
977 case AnalysisService.OCCURRENCES: | 977 case AnalysisService.OCCURRENCES: |
978 sendAnalysisNotificationOccurrences(this, file, dartUnit); | 978 sendAnalysisNotificationOccurrences(this, context, source); |
979 break; | 979 break; |
980 case AnalysisService.OUTLINE: | 980 case AnalysisService.OUTLINE: |
981 AnalysisContext context = dartUnit.element.context; | 981 AnalysisContext context = dartUnit.element.context; |
982 LineInfo lineInfo = context.getLineInfo(source); | 982 LineInfo lineInfo = context.getLineInfo(source); |
983 sendAnalysisNotificationOutline(this, file, lineInfo, dartUnit); | 983 sendAnalysisNotificationOutline(this, file, lineInfo, dartUnit); |
984 break; | 984 break; |
985 case AnalysisService.OVERRIDES: | 985 case AnalysisService.OVERRIDES: |
986 sendAnalysisNotificationOverrides(this, file, dartUnit); | 986 sendAnalysisNotificationOverrides(this, file, dartUnit); |
987 break; | 987 break; |
988 } | 988 } |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1559 /** | 1559 /** |
1560 * The [PerformanceTag] for time spent in server request handlers. | 1560 * The [PerformanceTag] for time spent in server request handlers. |
1561 */ | 1561 */ |
1562 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); | 1562 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); |
1563 | 1563 |
1564 /** | 1564 /** |
1565 * The [PerformanceTag] for time spent in split store microtasks. | 1565 * The [PerformanceTag] for time spent in split store microtasks. |
1566 */ | 1566 */ |
1567 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 1567 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
1568 } | 1568 } |
OLD | NEW |