Skip to content

Commit e075d92

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Migrate DemotionVisitor.
Change-Id: I4a869708a1e73897ecf0fc568363e5fca1986169 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405605 Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 1ed1e83 commit e075d92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/analyzer/lib/src/dart/element/type_demotion.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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:analyzer/dart/element/type.dart';
86
import 'package:analyzer/src/dart/element/replacement_visitor.dart';
97
import 'package:analyzer/src/dart/element/type.dart';
@@ -22,8 +20,8 @@ class DemotionVisitor extends ReplacementVisitor {
2220
return null;
2321
}
2422

25-
return TypeParameterTypeImpl(
26-
element: type.element,
23+
return TypeParameterTypeImpl.v2(
24+
element: type.element3,
2725
nullabilitySuffix: type.nullabilitySuffix,
2826
alias: type.alias,
2927
);

0 commit comments

Comments
 (0)