Skip to content

Commit 9f47dc3

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Deprecate the remaining V1 element reference in constant/value.dart
Change-Id: I8f83f90277658cb3b4a0cb1d4320502b25b207f1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415420 Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 7aec38d commit 9f47dc3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/analyzer/lib/src/dart/constant/value.dart

Lines changed: 1 addition & 2 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, as_much_as_we_can
6-
75
/// The implementation of the class [DartObject].
86
///
97
/// @docImport 'package:analyzer/src/dart/constant/evaluation.dart';
@@ -159,6 +157,7 @@ class ConstructorInvocation {
159157
ConstructorInvocation(
160158
this.constructor2, this._argumentValues, this.namedArguments);
161159

160+
@Deprecated('Use constructor2 instead')
162161
ConstructorElement get constructor => constructor2.asElement;
163162

164163
/// The positional arguments passed to the constructor.

0 commit comments

Comments
 (0)