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,
|
bool _implementsWithWarning(Annotation annotation, AssetId assetId,
|
||||||
List<ClassDescriptor> interfaces) {
|
List<ClassDescriptor> interfaces) {
|
||||||
ClassDescriptor descriptor = firstMatch(annotation.name, assetId);
|
ClassDescriptor descriptor = firstMatch(annotation.name, assetId);
|
||||||
if (descriptor == null) {
|
if (descriptor == null) return false;
|
||||||
throw 'Unable to locate descriptor for ${annotation.name} in ${assetId}';
|
|
||||||
}
|
|
||||||
return implements(descriptor, interfaces,
|
return implements(descriptor, interfaces,
|
||||||
missingSuperClassWarning: 'Missing `custom_annotation` entry for `${descriptor.superClass}`.');
|
missingSuperClassWarning: 'Missing `custom_annotation` entry for `${descriptor.superClass}`.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue