annotatedWith method

  1. @override
Iterable<AnnotatedElement> annotatedWith(
  1. TypeChecker checker
)
override

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);
    }
  }
}