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

Side by Side Diff: pkg/analysis_server/lib/src/services/completion/dart/inherited_contributor.dart

Issue 1470863003: Rework contribution sorter to use futures (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 services.completion.computer.dart.invocation; 5 library services.completion.dart.invocation;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol_server.dart' 9 import 'package:analysis_server/src/protocol_server.dart'
10 show CompletionSuggestion, CompletionSuggestionKind, SourceChange; 10 show CompletionSuggestion, CompletionSuggestionKind, SourceChange;
11 import 'package:analysis_server/src/protocol_server.dart' as protocol 11 import 'package:analysis_server/src/protocol_server.dart' as protocol
12 hide CompletionSuggestion, CompletionSuggestionKind; 12 hide CompletionSuggestion, CompletionSuggestionKind;
13 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ; 13 import 'package:analysis_server/src/provisional/completion/completion_core.dart' ;
14 import 'package:analysis_server/src/provisional/completion/completion_dart.dart' ; 14 import 'package:analysis_server/src/provisional/completion/completion_dart.dart' ;
15 import 'package:analysis_server/src/provisional/completion/dart/completion_targe t.dart'; 15 import 'package:analysis_server/src/provisional/completion/dart/completion_targe t.dart';
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 * Return `true` if the given [classElement] directly declares a member with 166 * Return `true` if the given [classElement] directly declares a member with
167 * the given [memberName]. 167 * the given [memberName].
168 */ 168 */
169 bool _hasMember(ClassElement classElement, String memberName) { 169 bool _hasMember(ClassElement classElement, String memberName) {
170 return classElement.getField(memberName) != null || 170 return classElement.getField(memberName) != null ||
171 classElement.getGetter(memberName) != null || 171 classElement.getGetter(memberName) != null ||
172 classElement.getMethod(memberName) != null || 172 classElement.getMethod(memberName) != null ||
173 classElement.getSetter(memberName) != null; 173 classElement.getSetter(memberName) != null;
174 } 174 }
175 } 175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698