visitDirective method

void visitDirective(
  1. ClassElement element
)

Visits an @Directive-annotated class element.

For class members that are annotated, calls, in kind:

NOTE: There is no verification element has the annotation.

Implementation

void visitDirective(ClassElement element) {
  for (final superType in element.allSupertypes.reversed) {
    _visitDirectiveOrSupertype(superType.element);
  }
  _visitDirectiveOrSupertype(element);
}