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

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

Issue 1127643003: suggest only superclass elements for "super." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 7 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/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/protocol.dart' as protocol 10 import 'package:analysis_server/src/protocol.dart' as protocol
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 if (contributor is PrefixedElementContributor) { 627 if (contributor is PrefixedElementContributor) {
628 return assertSuggestGetter(name, returnType, 628 return assertSuggestGetter(name, returnType,
629 relevance: relevance, isDeprecated: isDeprecated); 629 relevance: relevance, isDeprecated: isDeprecated);
630 } else { 630 } else {
631 return assertNotSuggested(name); 631 return assertNotSuggested(name);
632 } 632 }
633 } 633 }
634 634
635 CompletionSuggestion assertSuggestInvocationMethod( 635 CompletionSuggestion assertSuggestInvocationMethod(
636 String name, String declaringType, String returnType, 636 String name, String declaringType, String returnType,
637 [int relevance = DART_RELEVANCE_DEFAULT]) { 637 {int relevance: DART_RELEVANCE_DEFAULT}) {
638 if (contributor is PrefixedElementContributor) { 638 if (contributor is PrefixedElementContributor) {
639 return assertSuggestMethod(name, declaringType, returnType, 639 return assertSuggestMethod(name, declaringType, returnType,
640 relevance: relevance); 640 relevance: relevance);
641 } else { 641 } else {
642 return assertNotSuggested(name); 642 return assertNotSuggested(name);
643 } 643 }
644 } 644 }
645 645
646 CompletionSuggestion assertSuggestInvocationSetter(String name, 646 CompletionSuggestion assertSuggestInvocationSetter(String name,
647 [int relevance = DART_RELEVANCE_DEFAULT]) { 647 [int relevance = DART_RELEVANCE_DEFAULT]) {
(...skipping 3698 matching lines...) Expand 10 before | Expand all | Expand 10 after
4346 assertNotSuggested('bar2'); 4346 assertNotSuggested('bar2');
4347 assertNotSuggested('_B'); 4347 assertNotSuggested('_B');
4348 assertSuggestLocalClass('Y'); 4348 assertSuggestLocalClass('Y');
4349 assertSuggestLocalClass('C'); 4349 assertSuggestLocalClass('C');
4350 assertSuggestLocalVariable('f', null); 4350 assertSuggestLocalVariable('f', null);
4351 assertNotSuggested('x'); 4351 assertNotSuggested('x');
4352 assertNotSuggested('e'); 4352 assertNotSuggested('e');
4353 }); 4353 });
4354 } 4354 }
4355 } 4355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698