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

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

Issue 1004343002: Completion should not show overridden inherited methods (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 9 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.toplevel; 5 library test.services.completion.toplevel;
6 6
7 import 'package:analysis_server/src/protocol.dart' as protocol 7 import 'package:analysis_server/src/protocol.dart' as protocol
8 show Element, ElementKind; 8 show Element, ElementKind;
9 import 'package:analysis_server/src/protocol.dart' hide Element, ElementKind; 9 import 'package:analysis_server/src/protocol.dart' hide Element, ElementKind;
10 import 'package:analysis_server/src/services/completion/completion_manager.dart' ; 10 import 'package:analysis_server/src/services/completion/completion_manager.dart' ;
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 expect(suggestion.parameterNames[0], 'x'); 586 expect(suggestion.parameterNames[0], 'x');
587 expect(suggestion.parameterTypes[0], 'dynamic'); 587 expect(suggestion.parameterTypes[0], 'dynamic');
588 expect(suggestion.parameterNames[1], 'y'); 588 expect(suggestion.parameterNames[1], 'y');
589 expect(suggestion.parameterTypes[1], 'int'); 589 expect(suggestion.parameterTypes[1], 'int');
590 expect(suggestion.requiredParameterCount, 2); 590 expect(suggestion.requiredParameterCount, 2);
591 expect(suggestion.hasNamedParameters, false); 591 expect(suggestion.hasNamedParameters, false);
592 }); 592 });
593 } 593 }
594 594
595 test_mixin_ordering() { 595 test_mixin_ordering() {
596 // TODO(paulberry): The mixins are visited in the correct order, so we see
597 // M2.m() before M1.m(), as we should. But the second (shadowed) result
598 // isn't being thrown out as it should.
599 addSource('/libA.dart', ''' 596 addSource('/libA.dart', '''
600 class B {} 597 class B {}
601 class M1 { 598 class M1 {
602 void m() {} 599 void m() {}
603 } 600 }
604 class M2 { 601 class M2 {
605 void m() {} 602 void m() {}
606 } 603 }
607 '''); 604 ''');
608 addTestSource(''' 605 addTestSource('''
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 } 724 }
728 725
729 @override 726 @override
730 test_partFile_TypeName2() { 727 test_partFile_TypeName2() {
731 return super.test_partFile_TypeName2().then((_) { 728 return super.test_partFile_TypeName2().then((_) {
732 expect(request.cache.importKey, 729 expect(request.cache.importKey,
733 'library libA;import "/testB.dart";part "/testA.dart";'); 730 'library libA;import "/testB.dart";part "/testA.dart";');
734 }); 731 });
735 } 732 }
736 } 733 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698