computeSuggestionsWithEntryPoint method
Future<void>
computeSuggestionsWithEntryPoint(
- DartCompletionRequest request,
- CompletionCollector collector,
- AstNode entryPoint
Clients should not overload this function.
Implementation
Future<void> computeSuggestionsWithEntryPoint(DartCompletionRequest request,
CompletionCollector collector, AstNode entryPoint) async {
var containingLibrary = request.result.libraryElement;
// Recompute the target since resolution may have changed it
var expression = _computeDotTarget(entryPoint, request.offset);
if (expression == null || expression.isSynthetic) {
return;
}
_computeSuggestions(request, collector, containingLibrary, expression);
}