elementName method

SourceRange elementName(
  1. Element element
)

Return a source range that covers the name of the given element.

Implementation

SourceRange elementName(Element element) {
  return SourceRange(element.nameOffset, element.nameLength);
}