v1/src/source_gen/common/annotation_matcher
library
Functions
-
isComponent(ElementAnnotation annotation)
→ bool
-
Checks if an
ElementAnnotation node implements Component.
-
isDirective(ElementAnnotation annotation)
→ bool
-
Checks if an
ElementAnnotation node implements Directive.
-
isPipe(ElementAnnotation annotation)
→ bool
-
Checks if an
ElementAnnotation node implements Pipe.
-
matchAnnotation(TypeChecker typeChecker, ElementAnnotation annotation)
→ bool
-
Checks if an
ElementAnnotation node is exactly the type specified by
url.
-
safeMatcher(AnnotationMatcher matcher)
→ AnnotationMatcher
-
Wraps an annotation
matcher so that an error is not thrown.
Typedefs
-
AnnotationMatcher
= bool Function(ElementAnnotation annotation)
-
Checks if an
ElementAnnotation node matches specific Types.