Skip to content

Commit 77b9f7d

Browse files
scheglovCommit Bot
authored and
Commit Bot
committed
Update deprecation messages for exports/imports.
Change-Id: Ie9ab59d12946de7281d45c18731d6ed7cd192487 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252000 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent ed028cd commit 77b9f7d

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ abstract class LibraryOrAugmentationElement implements Element {
16261626
CompilationUnitElement get definingCompilationUnit;
16271627

16281628
/// Return a list containing all of the exports defined in this library.
1629-
@Deprecated('Use exports2 instead')
1629+
@Deprecated('Use libraryExports instead')
16301630
List<ExportElement> get exports;
16311631

16321632
/// The set of features available to this library.
@@ -1637,7 +1637,7 @@ abstract class LibraryOrAugmentationElement implements Element {
16371637
FeatureSet get featureSet;
16381638

16391639
/// Return a list containing all of the imports defined in this library.
1640-
@Deprecated('Use imports2 instead')
1640+
@Deprecated('Use libraryImports instead')
16411641
List<ImportElement> get imports;
16421642

16431643
bool get isNonNullableByDefault;

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

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4022,14 +4022,6 @@ class LibraryElementImpl extends LibraryOrAugmentationElementImpl
40224022
_exportNamespace = exportNamespace;
40234023
}
40244024

4025-
@Deprecated('Use exports2 instead')
4026-
@override
4027-
List<ExportElement> get exports {
4028-
return libraryExports
4029-
.map((e) => ExportElementImpl(e as LibraryExportElementImpl))
4030-
.toList();
4031-
}
4032-
40334025
bool get hasPartOfDirective {
40344026
return hasModifier(Modifier.HAS_PART_OF_DIRECTIVE);
40354027
}
@@ -4050,14 +4042,6 @@ class LibraryElementImpl extends LibraryOrAugmentationElementImpl
40504042
.toList();
40514043
}
40524044

4053-
@Deprecated('Use imports2 instead')
4054-
@override
4055-
List<ImportElement> get imports {
4056-
return libraryImports
4057-
.map((e) => ImportElementImpl(e as LibraryImportElementImpl))
4058-
.toList();
4059-
}
4060-
40614045
@override
40624046
bool get isBrowserApplication =>
40634047
entryPoint != null && isOrImportsBrowserLibrary;
@@ -4573,7 +4557,7 @@ abstract class LibraryOrAugmentationElementImpl extends ElementImpl
45734557
return _definingCompilationUnit;
45744558
}
45754559

4576-
@Deprecated('Use exports2 instead')
4560+
@Deprecated('Use libraryExports instead')
45774561
@override
45784562
List<ExportElement> get exports {
45794563
return libraryExports
@@ -4588,7 +4572,7 @@ abstract class LibraryOrAugmentationElementImpl extends ElementImpl
45884572
@override
45894573
String get identifier => '${_definingCompilationUnit.source.uri}';
45904574

4591-
@Deprecated('Use imports2 instead')
4575+
@Deprecated('Use libraryImports instead')
45924576
@override
45934577
List<ImportElement> get imports {
45944578
return libraryImports

0 commit comments

Comments
 (0)