Skip to content

Commit 920af11

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Deprecate LibraryElement.
Change-Id: Idec043d76296c3ebaa52229f426311bb47395a99 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/418924 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Paul Berry <[email protected]>
1 parent 6740561 commit 920af11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/analyzer/lib/dart/element/element.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ abstract class DirectiveUri {}
344344
/// Clients may not extend, implement or mix-in this class.
345345
abstract class DirectiveUriWithLibrary extends DirectiveUriWithSource {
346346
/// The library referenced by the [source].
347-
@Deprecated('Use library2 instead')
347+
@Deprecated(elementModelDeprecationMsg)
348348
LibraryElement get library;
349349

350350
/// The library referenced by the [source].
@@ -569,7 +569,7 @@ abstract class Element implements AnalysisTarget {
569569
/// This will be the element itself if it is a library element. This will be
570570
/// `null` if this element is [MultiplyDefinedElement2] that is not contained
571571
/// in a library.
572-
@Deprecated('Use Element2 instead')
572+
@Deprecated(elementModelDeprecationMsg)
573573
LibraryElement? get library;
574574

575575
/// The location of this element in the element model.
@@ -672,7 +672,7 @@ abstract class Element implements AnalysisTarget {
672672
/// A declaration <i>m</i> is accessible to a library <i>L</i> if <i>m</i> is
673673
/// declared in <i>L</i> or if <i>m</i> is public.
674674
/// </blockquote>
675-
@Deprecated('Use Element2 instead')
675+
@Deprecated(elementModelDeprecationMsg)
676676
bool isAccessibleIn(LibraryElement library);
677677

678678
/// Returns either this element or the most immediate ancestor of this element
@@ -2389,7 +2389,7 @@ abstract class _ExistingElement implements Element {
23892389
@override
23902390
Element get declaration;
23912391

2392-
@Deprecated('Use Element2 instead')
2392+
@Deprecated(elementModelDeprecationMsg)
23932393
@override
23942394
LibraryElement get library;
23952395

0 commit comments

Comments
 (0)