getClassCandidates method

Set<Element> getClassCandidates(
  1. LibraryElement library
)

Implementation

Set<Element> getClassCandidates(LibraryElement library) {
  var reader = LibraryReader(library);
  var possibleTypes = [
    ...reader.classes,
    ...reader.enums,
    ...(library.exportedLibraries.expand((e) => getClassCandidates(e)))]
      .where((element) {
        return element.isPublic;
      })
      .where((element) => filterElement(element))
      .toSet();

  return possibleTypes;
}