annotatedWith method
All of the resolved declarations in this library annotated with checker
.
Implementation
@override
Iterable<AnnotatedElement> annotatedWith(TypeChecker checker) sync* {
for (final Element element in resolvedElements) {
final ElementAnnotation? annotation = checker.firstAnnotationOf(element);
if (annotation != null) {
yield AnnotatedElement(element, annotation);
}
}
}