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

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

Issue 1307663007: Rename NavigationHolder to NavigationCollector. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 operation.analysis; 5 library operation.analysis;
6 6
7 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 import 'package:analysis_server/src/computer/computer_highlights.dart'; 8 import 'package:analysis_server/src/computer/computer_highlights.dart';
9 import 'package:analysis_server/src/computer/computer_highlights2.dart'; 9 import 'package:analysis_server/src/computer/computer_highlights2.dart';
10 import 'package:analysis_server/src/computer/computer_occurrences.dart'; 10 import 'package:analysis_server/src/computer/computer_occurrences.dart';
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 regions = new DartUnitHighlightsComputer(dartUnit).compute(); 162 regions = new DartUnitHighlightsComputer(dartUnit).compute();
163 } 163 }
164 var params = new protocol.AnalysisHighlightsParams(file, regions); 164 var params = new protocol.AnalysisHighlightsParams(file, regions);
165 server.sendNotification(params.toNotification()); 165 server.sendNotification(params.toNotification());
166 }); 166 });
167 } 167 }
168 168
169 void sendAnalysisNotificationNavigation( 169 void sendAnalysisNotificationNavigation(
170 AnalysisServer server, AnalysisContext context, Source source) { 170 AnalysisServer server, AnalysisContext context, Source source) {
171 _sendNotification(server, () { 171 _sendNotification(server, () {
172 NavigationHolderImpl holder = 172 NavigationCollectorImpl collector =
173 computeNavigation(server, context, source, null, null); 173 computeNavigation(server, context, source, null, null);
174 String file = source.fullName; 174 String file = source.fullName;
175 var params = new protocol.AnalysisNavigationParams( 175 var params = new protocol.AnalysisNavigationParams(
176 file, holder.regions, holder.targets, holder.files); 176 file, collector.regions, collector.targets, collector.files);
177 server.sendNotification(params.toNotification()); 177 server.sendNotification(params.toNotification());
178 }); 178 });
179 } 179 }
180 180
181 void sendAnalysisNotificationOccurrences( 181 void sendAnalysisNotificationOccurrences(
182 AnalysisServer server, String file, CompilationUnit dartUnit) { 182 AnalysisServer server, String file, CompilationUnit dartUnit) {
183 _sendNotification(server, () { 183 _sendNotification(server, () {
184 var occurrences = new DartUnitOccurrencesComputer(dartUnit).compute(); 184 var occurrences = new DartUnitOccurrencesComputer(dartUnit).compute();
185 var params = new protocol.AnalysisOccurrencesParams(file, occurrences); 185 var params = new protocol.AnalysisOccurrencesParams(file, occurrences);
186 server.sendNotification(params.toNotification()); 186 server.sendNotification(params.toNotification());
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 abstract class _SingleFileOperation extends SourceSensitiveOperation { 501 abstract class _SingleFileOperation extends SourceSensitiveOperation {
502 final String file; 502 final String file;
503 503
504 _SingleFileOperation(AnalysisContext context, this.file) : super(context); 504 _SingleFileOperation(AnalysisContext context, this.file) : super(context);
505 505
506 @override 506 @override
507 bool shouldBeDiscardedOnSourceChange(Source source) { 507 bool shouldBeDiscardedOnSourceChange(Source source) {
508 return source.fullName == file; 508 return source.fullName == file;
509 } 509 }
510 } 510 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698