hasElement method

bool hasElement(
  1. String name
)

Checks if the library has an element with the given name.

Implementation

bool hasElement(String name) {
  return resolvedElements.any((Element e) => e.name == name);
}