@@ -162,7 +162,7 @@ class DeclarationHelper {
162162
163163 /// Add suggestions for all constructors of [element] .
164164 void addConstructorNamesForElement ({required InterfaceElement element}) {
165- var constructors = element.constructors2 ;
165+ var constructors = element.constructors ;
166166 for (var constructor in constructors) {
167167 _suggestConstructor (
168168 constructor,
@@ -610,7 +610,7 @@ class DeclarationHelper {
610610 var typeSystem = library.typeSystem;
611611 for (var classElement in library.classes) {
612612 if (typeSystem.isSubtypeOf (classElement.thisType, classType)) {
613- for (var constructor in classElement.constructors2 ) {
613+ for (var constructor in classElement.constructors ) {
614614 if (constructor != redirectingConstructor &&
615615 constructor.isAccessibleIn2 (library)) {
616616 _suggestConstructor (
@@ -638,7 +638,7 @@ class DeclarationHelper {
638638 _addStaticMembers (
639639 getters: element.getters,
640640 setters: element.setters,
641- constructors: element.constructors2 ,
641+ constructors: element.constructors ,
642642 containingElement: element,
643643 fields: element.fields,
644644 methods: element.methods,
@@ -656,7 +656,7 @@ class DeclarationHelper {
656656 _addStaticMembers (
657657 getters: element.getters,
658658 setters: element.setters,
659- constructors: element.constructors2 ,
659+ constructors: element.constructors ,
660660 containingElement: element,
661661 fields: element.fields,
662662 methods: element.methods,
@@ -669,16 +669,16 @@ class DeclarationHelper {
669669 void _addConstructors (LibraryElement library, ImportData importData) {
670670 for (var element in library.classes) {
671671 _suggestConstructors (
672- element.constructors2 ,
672+ element.constructors ,
673673 importData,
674674 allowNonFactory: ! element.isAbstract,
675675 );
676676 }
677677 for (var element in library.enums) {
678- _suggestConstructors (element.constructors2 , importData);
678+ _suggestConstructors (element.constructors , importData);
679679 }
680680 for (var element in library.extensionTypes) {
681- _suggestConstructors (element.constructors2 , importData);
681+ _suggestConstructors (element.constructors , importData);
682682 }
683683 for (var element in library.typeAliases) {
684684 _addConstructorsForAliasedElement (element, importData);
@@ -694,14 +694,14 @@ class DeclarationHelper {
694694 var aliasedElement = alias.aliasedElement2;
695695 if (aliasedElement is ClassElement ) {
696696 _suggestConstructors (
697- aliasedElement.constructors2 ,
697+ aliasedElement.constructors ,
698698 importData,
699699 allowNonFactory: ! aliasedElement.isAbstract,
700700 );
701701 } else if (aliasedElement is ExtensionTypeElement ) {
702- _suggestConstructors (aliasedElement.constructors2 , importData);
702+ _suggestConstructors (aliasedElement.constructors , importData);
703703 } else if (aliasedElement is MixinElement ) {
704- _suggestConstructors (aliasedElement.constructors2 , importData);
704+ _suggestConstructors (aliasedElement.constructors , importData);
705705 }
706706 }
707707
@@ -721,12 +721,12 @@ class DeclarationHelper {
721721 switch (element) {
722722 case ClassElement ():
723723 _suggestConstructors (
724- element.constructors2 ,
724+ element.constructors ,
725725 importData,
726726 allowNonFactory: ! element.isAbstract,
727727 );
728728 case ExtensionTypeElement ():
729- _suggestConstructors (element.constructors2 , importData);
729+ _suggestConstructors (element.constructors , importData);
730730 case TypeAliasElement ():
731731 _addConstructorsForAliasedElement (element, importData);
732732 }
@@ -1694,7 +1694,7 @@ class DeclarationHelper {
16941694 if (! mustBeType) {
16951695 _suggestStaticFields (element.fields, importData);
16961696 _suggestConstructors (
1697- element.constructors2 ,
1697+ element.constructors ,
16981698 importData,
16991699 allowNonFactory: ! element.isAbstract,
17001700 );
@@ -1799,7 +1799,7 @@ class DeclarationHelper {
17991799 if (! mustBeType) {
18001800 _suggestStaticFields (element.fields, importData);
18011801 _suggestConstructors (
1802- element.constructors2 ,
1802+ element.constructors ,
18031803 importData,
18041804 allowNonFactory: false ,
18051805 );
@@ -1852,7 +1852,7 @@ class DeclarationHelper {
18521852 }
18531853 if (! mustBeType) {
18541854 _suggestStaticFields (element.fields, importData);
1855- _suggestConstructors (element.constructors2 , importData);
1855+ _suggestConstructors (element.constructors , importData);
18561856 }
18571857 }
18581858 }
0 commit comments