Skip to content

Commit ef9c001

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Use ElementImpl in ElementFactory.
Change-Id: I321664b15fa651c486d295ad69ead6be00a906ad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415382 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent fd0db18 commit ef9c001

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pkg/analyzer/lib/src/generated/testing/element_factory.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
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-
75
import 'package:_fe_analyzer_shared/src/type_inference/type_analyzer_operations.dart';
86
import 'package:analyzer/dart/analysis/features.dart';
9-
import 'package:analyzer/dart/element/element.dart';
107
import 'package:analyzer/dart/element/nullability_suffix.dart';
118
import 'package:analyzer/dart/element/type.dart';
129
import '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

Comments
 (0)