InheritedReferenceContributor class

A contributor for calculating suggestions for inherited references.

Plugin developers should extend this function and primarily overload computeSuggestions (if needed).

Implemented types

Properties

containingLibrary ↔ LibraryElement?
Return the library in which the completion is requested.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kind CompletionSuggestionKind?
Return the kind of suggestions that should be built.
getter/setter pair
resourceProvider ↔ ResourceProvider?
Return the resource provider used to access the file system.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestions List<CompletionSuggestion>
A collection of completion suggestions.
finalinherited

Methods

addSuggestion(Element element, {String? prefix, int relevance = DART_RELEVANCE_DEFAULT}) → void
Add a suggestion based upon the given element.
inherited
computeSuggestions(covariant DartCompletionRequest request, CompletionCollector collector) Future<void>
Plugin contributors should primarily overload this function. Should more parameters be needed for autocompletion needs, the overloaded function should define those parameters and call on computeSuggestionsForClass.
override
computeSuggestionsForClass(DartCompletionRequest request, CompletionCollector collector, ClassElement? classElement, {AstNode? entryPoint, bool skipChildClass = true, CompletionTarget? target, OpType? optype}) Future<void>
Clients should not overload this function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited