fix(transformer): Don't throw on annotations that don't match a descriptor.
Closes #3280
This commit is contained in:
parent
5b5de6662f
commit
f575ba60fb
|
@ -84,9 +84,7 @@ class AnnotationMatcher extends ClassMatcherBase {
|
|||
bool _implementsWithWarning(Annotation annotation, AssetId assetId,
|
||||
List<ClassDescriptor> interfaces) {
|
||||
ClassDescriptor descriptor = firstMatch(annotation.name, assetId);
|
||||
if (descriptor == null) {
|
||||
throw 'Unable to locate descriptor for ${annotation.name} in ${assetId}';
|
||||
}
|
||||
if (descriptor == null) return false;
|
||||
return implements(descriptor, interfaces,
|
||||
missingSuperClassWarning: 'Missing `custom_annotation` entry for `${descriptor.superClass}`.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue