Skip to content

Commit 2dec4fe

Browse files
keertipCommit Queue
authored andcommitted
Elements. Migrate lib/src/dart/ast/utilities.dart
Change-Id: I4db055c461a31b88b52dadb736738a203fe3ec1c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404221 Commit-Queue: Keerti Parthasarathy <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Phil Quitslund <[email protected]>
1 parent e1ba3ea commit 2dec4fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/analyzer/lib/src/dart/ast/utilities.dart

Lines changed: 1 addition & 3 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
/// @docImport 'package:analyzer/src/lint/linter.dart';
86
/// @docImport 'package:analyzer/src/lint/linter_visitor.dart';
97
library;
@@ -2349,7 +2347,7 @@ class NodeReplacer extends ThrowingAstVisitor<bool> {
23492347
return true;
23502348
} else if (identical(node.defaultValue, _oldNode)) {
23512349
node.defaultValue = _newNode as ExpressionImpl;
2352-
var parameterElement = node.declaredElement;
2350+
var parameterElement = node.declaredFragment;
23532351
if (parameterElement is DefaultParameterElementImpl) {
23542352
parameterElement.constantInitializer = _newNode;
23552353
} else if (parameterElement is DefaultFieldFormalParameterElementImpl) {

0 commit comments

Comments
 (0)