We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b5de66 commit f575ba6Copy full SHA for f575ba6
modules/angular2/src/transform/common/annotation_matcher.dart
@@ -84,9 +84,7 @@ class AnnotationMatcher extends ClassMatcherBase {
84
bool _implementsWithWarning(Annotation annotation, AssetId assetId,
85
List<ClassDescriptor> interfaces) {
86
ClassDescriptor descriptor = firstMatch(annotation.name, assetId);
87
- if (descriptor == null) {
88
- throw 'Unable to locate descriptor for ${annotation.name} in ${assetId}';
89
- }
+ if (descriptor == null) return false;
90
return implements(descriptor, interfaces,
91
missingSuperClassWarning: 'Missing `custom_annotation` entry for `${descriptor.superClass}`.');
92
}
0 commit comments