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