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

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

Issue 1291283002: suggest prefixed constructors - fixes #23210 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 4 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 services.completion.contributor.dart.combinator; 5 library services.completion.contributor.dart.combinator;
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 hide Element, ElementKind; 10 hide Element, ElementKind;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 /** 61 /**
62 * A `_CombinatorSuggestionBuilder` determines which imported classes 62 * A `_CombinatorSuggestionBuilder` determines which imported classes
63 * and top level variables should be suggested and builds those suggestions. 63 * and top level variables should be suggested and builds those suggestions.
64 * This operation is instantiated during `computeFast` 64 * This operation is instantiated during `computeFast`
65 * and calculates the suggestions during `computeFull`. 65 * and calculates the suggestions during `computeFull`.
66 */ 66 */
67 class _CombinatorSuggestionBuilder extends LibraryElementSuggestionBuilder { 67 class _CombinatorSuggestionBuilder extends LibraryElementSuggestionBuilder {
68 _CombinatorSuggestionBuilder( 68 _CombinatorSuggestionBuilder(
69 DartCompletionRequest request, CompletionSuggestionKind kind) 69 DartCompletionRequest request, CompletionSuggestionKind kind)
70 : super(request, kind, false); 70 : super(request, kind, false, false);
71 71
72 Future<bool> execute(AstNode node) { 72 Future<bool> execute(AstNode node) {
73 var directive = node.getAncestor((parent) => parent is NamespaceDirective); 73 var directive = node.getAncestor((parent) => parent is NamespaceDirective);
74 if (directive is NamespaceDirective) { 74 if (directive is NamespaceDirective) {
75 LibraryElement library = directive.uriElement; 75 LibraryElement library = directive.uriElement;
76 if (library != null) { 76 if (library != null) {
77 library.visitChildren(this); 77 library.visitChildren(this);
78 } 78 }
79 } 79 }
80 return new Future.value(false); 80 return new Future.value(false);
81 } 81 }
82 } 82 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698