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

Side by Side Diff: pkg/analysis_server/test/services/completion/completion_test_util.dart

Issue 881463004: Rename ChangeNotice resolved Dart/Html unit fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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.completion.util; 5 library test.services.completion.util;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol.dart' as protocol show Element, 9 import 'package:analysis_server/src/protocol.dart' as protocol show Element,
10 ElementKind; 10 ElementKind;
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 index.indexUnit(context, unit); 507 index.indexUnit(context, unit);
508 } 508 }
509 } 509 }
510 510
511 var result = context.performAnalysisTask(); 511 var result = context.performAnalysisTask();
512 bool resolved = false; 512 bool resolved = false;
513 while (result.hasMoreWork) { 513 while (result.hasMoreWork) {
514 514
515 // Update the index 515 // Update the index
516 result.changeNotices.forEach((ChangeNotice notice) { 516 result.changeNotices.forEach((ChangeNotice notice) {
517 CompilationUnit unit = notice.compilationUnit; 517 CompilationUnit unit = notice.resolvedDartUnit;
518 if (unit != null) { 518 if (unit != null) {
519 index.indexUnit(context, unit); 519 index.indexUnit(context, unit);
520 } 520 }
521 }); 521 });
522 522
523 // If the unit has been resolved, then finish the completion 523 // If the unit has been resolved, then finish the completion
524 List<Source> libSourceList = context.getLibrariesContaining(testSource); 524 List<Source> libSourceList = context.getLibrariesContaining(testSource);
525 if (libSourceList.length > 0) { 525 if (libSourceList.length > 0) {
526 LibraryElement library = context.getLibraryElement(libSourceList[0]); 526 LibraryElement library = context.getLibraryElement(libSourceList[0]);
527 if (library != null) { 527 if (library != null) {
(...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after
2620 assertNotSuggested('bar2'); 2620 assertNotSuggested('bar2');
2621 assertNotSuggested('_B'); 2621 assertNotSuggested('_B');
2622 assertSuggestLocalClass('Y'); 2622 assertSuggestLocalClass('Y');
2623 assertSuggestLocalClass('C'); 2623 assertSuggestLocalClass('C');
2624 assertSuggestLocalVariable('f', null); 2624 assertSuggestLocalVariable('f', null);
2625 assertNotSuggested('x'); 2625 assertNotSuggested('x');
2626 assertNotSuggested('e'); 2626 assertNotSuggested('e');
2627 }); 2627 });
2628 } 2628 }
2629 } 2629 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698