anchor.diff:      } else {
         relevance = functionTypeAlias.hasDeprecated
             ? DART_RELEVANCE_LOW
  -          : DART_RELEVANCE_DEFAULT;
  +          : (functionTypeAlias.library == request.libraryElement
  +              ? DART_RELEVANCE_LOCAL_FUNCTION
  +              : DART_RELEVANCE_DEFAULT);
       }
       suggestions.add(createSuggestion(request, functionTypeAlias,
           kind: kind, relevance: relevance));
  
positive.code:       {CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION}) {
      int relevance;
      if (request.useNewRelevance) {
        relevance = _computeTopLevelRelevance(extension);
      } else {
        relevance =
            extension.hasDeprecated ? DART_RELEVANCE_LOW : DART_RELEVANCE_DEFAULT;
  
negative.code:   /// A collection of completion suggestions.
    final List<CompletionSuggestion> suggestions = <CompletionSuggestion>[];
  
    /// A flag indicating whether the [_cachedContextType] has been computed.
    bool _hasContextType = false;
  
    /// The context type associated with the completion location, or `null` if
    /// either the location does not have a context type, or if the context type
    /// has not yet been computed. In the latter case, [_hasContextType] will be
    /// `false`.
    DartType _cachedContextType;
  
    /// Initialize a newly created suggestion builder to build suggestions for the
    /// given [request].
    SuggestionBuilder(this.request);
  
    DartType get _contextType {
      if (!_hasContextType) {
        _hasContextType = true;
        _cachedContextType = request.featureComputer
            .computeContextType(request.target.containingNode);
      }
      return _cachedContextType;
    }
  
    /// Add a suggestion for the [classElement].
    void suggestClass(ClassElement classElement,
        {CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION}) {
      int relevance;
      if (request.useNewRelevance) {
        relevance = _computeTopLevelRelevance(classElement,
            elementType: _instantiateClassElement(classElement));
      } else if (classElement.hasDeprecated) {
        relevance = DART_RELEVANCE_LOW;
      } else {
        relevance = request.opType.typeNameSuggestionsFilter(
            _instantiateClassElement(classElement), DART_RELEVANCE_DEFAULT);
      }
  
      suggestions.add(createSuggestion(request, classElement,
  