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 e17e724 commit 7d87348Copy full SHA for 7d87348
lib/src/model/getter_setter_combo.dart
@@ -52,8 +52,9 @@ mixin GetterSetterCombo on ModelElement {
52
.toString();
53
Element staticElement =
54
(constantInitializer as InstanceCreationExpression).staticElement;
55
- if (staticElement == null)
56
- return original;
+ assert(staticElement != null,
+ '${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