findComponentsAndDirectives function
AngularArtifacts
findComponentsAndDirectives(
- LibraryReader library,
- 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,
);
}