addRange abstract method

void addRange(
  1. SourceRange range,
  2. ElementKind targetKind,
  3. Location targetLocation, {
  4. Element? targetElement,
})

Record a new navigation region corresponding to the given range that should navigate to the given targetNameLocation.

Implementation

void addRange(
    SourceRange range, ElementKind targetKind, Location targetLocation,
    {analyzer.Element? targetElement});