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 db5fe1c commit e17e724Copy full SHA for e17e724
lib/src/model/getter_setter_combo.dart
@@ -52,6 +52,8 @@ mixin GetterSetterCombo on ModelElement {
52
.toString();
53
Element staticElement =
54
(constantInitializer as InstanceCreationExpression).staticElement;
55
+ if (staticElement == null)
56
+ return original;
57
Constructor target = ModelElement.fromElement(staticElement, packageGraph);
58
Class targetClass = target.enclosingElement;
59
// TODO(jcollins-g): this logic really should be integrated into Constructor,
0 commit comments