isComponent function

bool isComponent(
  1. ElementAnnotation annotation
)

Checks if an ElementAnnotation node implements Component.

Implementation

bool isComponent(ElementAnnotation annotation) =>
    matchAnnotation($Component, annotation);