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 e028609 commit 1cd44e6Copy full SHA for 1cd44e6
lib/src/model/getter_setter_combo.dart
@@ -52,6 +52,9 @@ mixin GetterSetterCombo on ModelElement {
52
.toString();
53
Element staticElement =
54
(constantInitializer as InstanceCreationExpression).staticElement;
55
+ assert(staticElement != null,
56
+ '${original} should be able to be resolved but an analysis error prevents this');
57
+ if (staticElement == null) return original;
58
Constructor target = ModelElement.fromElement(staticElement, packageGraph);
59
Class targetClass = target.enclosingElement;
60
// TODO(jcollins-g): this logic really should be integrated into Constructor,
0 commit comments