findComponentsAndDirectives function

AngularArtifacts findComponentsAndDirectives(
  1. LibraryReader library,
  2. ComponentVisitorExceptionHandler exceptionHandler
)

Given the target library, returns relevant metadata.

Implementation

AngularArtifacts findComponentsAndDirectives(
  LibraryReader library,
  ComponentVisitorExceptionHandler exceptionHandler,
) {
  final visitor = _NormalizedComponentVisitor(library, exceptionHandler);
  library.element.accept(visitor);
  return AngularArtifacts(
    components: visitor.components,
    directives: visitor.directives,
  );
}