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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/move_file_test.dart

Issue 1359113002: Use IndexContributor(s) in LocalIndex. (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 test.services.refactoring.move_files; 5 library test.services.refactoring.move_files;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 void _performAnalysis() { 286 void _performAnalysis() {
287 while (true) { 287 while (true) {
288 AnalysisResult result = context.performAnalysisTask(); 288 AnalysisResult result = context.performAnalysisTask();
289 if (!result.hasMoreWork) { 289 if (!result.hasMoreWork) {
290 break; 290 break;
291 } 291 }
292 for (ChangeNotice notice in result.changeNotices) { 292 for (ChangeNotice notice in result.changeNotices) {
293 if (notice.source.fullName.startsWith('/project/')) { 293 if (notice.source.fullName.startsWith('/project/')) {
294 index.indexUnit(context, notice.resolvedDartUnit); 294 index.index(context, notice.resolvedDartUnit);
295 } 295 }
296 } 296 }
297 } 297 }
298 } 298 }
299 } 299 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698