computeSuggestionsWithEntryPoint method

Future<void> computeSuggestionsWithEntryPoint(
  1. DartCompletionRequest request,
  2. CompletionCollector collector,
  3. 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);
}