Skip to content

Commit 0f618fc

Browse files
pqCommit Queue
authored andcommitted
[element model] migrate type_system_test
Change-Id: I3abe316d9e821b651513e8beeeacda6b64dccffe Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405623 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 0ddaa63 commit 0f618fc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pkg/analyzer/test/generated/type_system_test.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
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-
7-
import 'package:analyzer/dart/element/element.dart';
5+
import 'package:analyzer/dart/element/element2.dart';
86
import 'package:analyzer/dart/element/nullability_suffix.dart';
97
import 'package:analyzer/dart/element/type.dart';
108
import 'package:analyzer/src/dart/element/type.dart';
@@ -69,17 +67,17 @@ class TryPromoteToTest extends AbstractTypeSystemTest {
6967

7068
void check(
7169
TypeParameterTypeImpl type,
72-
TypeParameterElement element,
70+
TypeParameterElement2 element,
7371
NullabilitySuffix nullability,
7472
DartType promotedBound,
7573
) {
76-
expect(type.element, element);
74+
expect(type.element3, element);
7775
expect(type.nullabilitySuffix, nullability);
7876
expect(type.promotedBound, promotedBound);
7977
}
8078

81-
var T = typeParameter('T');
82-
var T_none = typeParameterTypeNone(T);
79+
var T = typeParameter2('T');
80+
var T_none = typeParameterTypeNone2(T);
8381

8482
var T1 = tryPromote(numNone, T_none);
8583
check(T1, T, NullabilitySuffix.none, numNone);

0 commit comments

Comments
 (0)