Skip to content

Commit 0de0695

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove V1 PartElement.
Change-Id: Id78a06bcebb84c343e79111d1bad0ebe92680bca Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423442 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 07d5349 commit 0de0695

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

pkg/analyzer/api.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,9 +3152,6 @@ package:analyzer/dart/element/element.dart:
31523152
NamespaceCombinator (class extends Object, sealed (immediate subtypes: HideElementCombinator, ShowElementCombinator)):
31533153
end (getter: int)
31543154
offset (getter: int)
3155-
PartElement (class extends Object implements _ExistingElement, deprecated):
3156-
new (constructor: PartElement Function())
3157-
uri (getter: DirectiveUri)
31583155
ShowElementCombinator (class extends Object implements NamespaceCombinator):
31593156
new (constructor: ShowElementCombinator Function())
31603157
shownNames (getter: List<String>)

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -823,15 +823,6 @@ sealed class NamespaceCombinator {
823823
int get offset;
824824
}
825825

826-
/// A 'part' directive within a library.
827-
///
828-
/// Clients may not extend, implement or mix-in this class.
829-
@Deprecated('Use PartInclude instead')
830-
abstract class PartElement implements _ExistingElement {
831-
/// The interpretation of the URI specified in the directive.
832-
DirectiveUri get uri;
833-
}
834-
835826
/// A combinator that cause some of the names in a namespace to be visible (and
836827
/// the rest hidden) when being imported.
837828
///

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8838,11 +8838,7 @@ mixin ParameterElementMixin implements VariableElementOrMember {
88388838
}
88398839
}
88408840

8841-
class PartElementImpl extends _ExistingElementImpl
8842-
implements
8843-
// ignore:deprecated_member_use_from_same_package,analyzer_use_new_elements
8844-
PartElement,
8845-
PartInclude {
8841+
class PartElementImpl extends _ExistingElementImpl implements PartInclude {
88468842
@override
88478843
final DirectiveUriImpl uri;
88488844

0 commit comments

Comments
 (0)