22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44
5- // ignore_for_file: analyzer_use_new_elements
6-
75import 'package:_fe_analyzer_shared/src/type_inference/type_analyzer_operations.dart' ;
86import 'package:analyzer/dart/analysis/features.dart' ;
9- import 'package:analyzer/dart/element/element.dart' ;
107import 'package:analyzer/dart/element/nullability_suffix.dart' ;
118import 'package:analyzer/dart/element/type.dart' ;
129import 'package:analyzer/source/line_info.dart' ;
@@ -116,7 +113,7 @@ class ElementFactory {
116113 ConstLocalVariableElementImpl (name, 0 );
117114
118115 static ConstructorElementImpl constructorElement (
119- ClassElement definingClass, String ? name, bool isConst,
116+ ClassElementImpl definingClass, String ? name, bool isConst,
120117 [List <TypeImpl > argumentTypes = const []]) {
121118 var offset = name == null ? - 1 : 0 ;
122119 // A constructor declared as `C.new` is unnamed, and is modeled as such.
@@ -143,7 +140,7 @@ class ElementFactory {
143140 }
144141
145142 static ConstructorElementImpl constructorElement2 (
146- ClassElement definingClass, String ? name,
143+ ClassElementImpl definingClass, String ? name,
147144 [List <TypeImpl > argumentTypes = const []]) =>
148145 constructorElement (definingClass, name, false , argumentTypes);
149146
@@ -234,7 +231,7 @@ class ElementFactory {
234231 }
235232
236233 static MethodElementImpl methodElementWithParameters (
237- ClassElement enclosingElement,
234+ ClassElementImpl enclosingElement,
238235 String methodName,
239236 DartType returnType,
240237 List <ParameterElementImpl > parameters) {
0 commit comments