addRegion abstract method
void
addRegion(
- int offset,
- int length,
- ElementKind targetKind,
- Location targetNameLocation, {
- Fragment? targetFragment,
Record a new navigation region with the given offset and length that
should navigate to the given targetNameLocation.
In the most cases the targetNameLocation is already based on the
analyzer.Fragment, but in a few cases this method is invoked without an
element. The element is provided to associate it with the target, and
later update the target.
Implementation
void addRegion(
int offset,
int length,
ElementKind targetKind,
Location targetNameLocation, {
analyzer.Fragment? targetFragment,
});