generateStream method
Generates a stream of objects of type T
. Each value of T
is
calculated by calling generateStreamItemForAnnotatedElement
.
Implementation
Stream<T> generateStream(
LibraryReader library,
BuildStep buildStep,
) async* {
for (final annotatedElement in library.annotatedWith(typeChecker)) {
yield generateStreamItemForAnnotatedElement(
annotatedElement.element,
annotatedElement.annotation,
buildStep,
);
}
}