File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -304,9 +304,8 @@ class Class extends Container
304304 }
305305
306306 var inheritance = definingLibrary.inheritanceManager;
307- var classType = element.thisType;
308- var cmap = inheritance.getInheritedConcreteMap (classType);
309- var imap = inheritance.getInheritedMap (classType);
307+ var cmap = inheritance.getInheritedConcreteMap2 (element);
308+ var imap = inheritance.getInheritedMap2 (element);
310309
311310 var combinedMap = < String , ExecutableElement > {};
312311 for (var nameObj in cmap.keys) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class Extension extends Container
2525 bool get alwaysApplies =>
2626 extendedType.instantiatedType.isDynamic ||
2727 extendedType.instantiatedType.isVoid ||
28- extendedType.instantiatedType.isObject ;
28+ extendedType.instantiatedType.isDartCoreObject ;
2929
3030 bool couldApplyTo <T extends ExtensionTarget >(T c) =>
3131 _couldApplyTo (c.modelType);
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ mixin GetterSetterCombo on ModelElement {
5050 if (constantInitializer is ! InstanceCreationExpression ) return original;
5151 var creationExpression = constantInitializer as InstanceCreationExpression ;
5252 var constructorName = creationExpression.constructorName.toString ();
53- Element staticElement = creationExpression.staticElement;
53+ Element staticElement = creationExpression.constructorName. staticElement;
5454 if (staticElement == null ) {
5555 warn (PackageWarning .missingConstantConstructor, message: constructorName);
5656 return original;
You can’t perform that action at this time.
0 commit comments