addRange abstract method

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

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

Implementation

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