Skip to content

Commit

Permalink
Elements. Migrate DemotionVisitor.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
scheglov authored and Commit Queue committed Jan 24, 2025
1 parent 1ed1e83 commit e075d92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/analyzer/lib/src/dart/element/type_demotion.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// ignore_for_file: analyzer_use_new_elements

import 'package:analyzer/dart/element/type.dart';
import 'package:analyzer/src/dart/element/replacement_visitor.dart';
import 'package:analyzer/src/dart/element/type.dart';
Expand All @@ -22,8 +20,8 @@ class DemotionVisitor extends ReplacementVisitor {
return null;
}

return TypeParameterTypeImpl(
element: type.element,
return TypeParameterTypeImpl.v2(
element: type.element3,
nullabilitySuffix: type.nullabilitySuffix,
alias: type.alias,
);
Expand Down

0 comments on commit e075d92

Please sign in to comment.