3737library ;
3838
3939import 'package:_fe_analyzer_shared/src/base/analyzer_public_api.dart' ;
40- import 'package:analyzer/dart/analysis/features.dart' ;
4140import 'package:analyzer/dart/analysis/session.dart' ;
4241import 'package:analyzer/dart/constant/value.dart' ;
4342import 'package:analyzer/dart/element/element2.dart' ;
4443import 'package:analyzer/dart/element/nullability_suffix.dart' ;
45- import 'package:analyzer/dart/element/type_provider.dart' ;
46- import 'package:analyzer/dart/element/type_system.dart' ;
4744import 'package:analyzer/error/error.dart' ;
4845import 'package:analyzer/source/source.dart' ;
4946import 'package:analyzer/src/dart/constant/evaluation.dart' ;
5047import 'package:analyzer/src/dart/element/element.dart'
5148 show elementModelDeprecationMsg;
52- import 'package:analyzer/src/dart/resolver/scope.dart' show Namespace;
5349import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
5450// ignore: deprecated_member_use_from_same_package
5551import 'package:analyzer/src/task/api/model.dart' show AnalysisTarget;
@@ -65,10 +61,6 @@ abstract class DirectiveUri {}
6561///
6662/// Clients may not extend, implement or mix-in this class.
6763abstract class DirectiveUriWithLibrary extends DirectiveUriWithSource {
68- /// The library referenced by the [source] .
69- @Deprecated (elementModelDeprecationMsg)
70- LibraryElement get library;
71-
7264 /// The library referenced by the [source] .
7365 LibraryElement2 get library2;
7466}
@@ -277,14 +269,6 @@ abstract class Element implements AnalysisTarget {
277269 /// The kind of element that this is.
278270 ElementKind get kind;
279271
280- /// Library that contains this element.
281- ///
282- /// This will be the element itself if it is a library element. This will be
283- /// `null` if this element is [MultiplyDefinedElement2] that is not contained
284- /// in a library.
285- @Deprecated (elementModelDeprecationMsg)
286- LibraryElement ? get library;
287-
288272 /// The location of this element in the element model.
289273 ///
290274 /// The object can be used to locate this element at a later time.
@@ -371,17 +355,6 @@ abstract class Element implements AnalysisTarget {
371355 // TODO(brianwilkerson): Make the parameter optional.
372356 String getExtendedDisplayName (String ? shortName);
373357
374- /// Whether the element, assuming that it is within scope, is accessible to
375- /// code in the given [library] .
376- ///
377- /// This is defined by the Dart Language Specification in section 6.2:
378- /// <blockquote>
379- /// A declaration <i>m</i> is accessible to a library <i>L</i> if <i>m</i> is
380- /// declared in <i>L</i> or if <i>m</i> is public.
381- /// </blockquote>
382- @Deprecated (elementModelDeprecationMsg)
383- bool isAccessibleIn (LibraryElement library);
384-
385358 /// Returns either this element or the most immediate ancestor of this element
386359 /// for which the [predicate] returns `true` , or `null` if there is no such
387360 /// element.
@@ -726,73 +699,6 @@ abstract class HideElementCombinator implements NamespaceCombinator {
726699 List <String > get hiddenNames;
727700}
728701
729- /// A library.
730- ///
731- /// Clients may not extend, implement or mix-in this class.
732- @Deprecated ('Use LibraryElement2 instead' )
733- abstract class LibraryElement implements _ExistingElement {
734- /// Returns `null` , because libraries are the top-level elements in the model.
735- @override
736- Null get enclosingElement3;
737-
738- /// The export [Namespace] of this library.
739- Namespace get exportNamespace;
740-
741- /// The set of features available to this library.
742- ///
743- /// Determined by the combination of the language version for the enclosing
744- /// package, enabled experiments, and the presence of a `// @dart` language
745- /// version override comment at the top of the file.
746- FeatureSet get featureSet;
747-
748- /// The identifier that uniquely identifies this element among the children
749- /// of this element's parent.
750- String get identifier;
751-
752- /// The libraries that are imported into this library.
753- ///
754- /// This includes all of the libraries that are imported using a prefix, and
755- /// those that are imported without a prefix.
756- List <LibraryElement > get importedLibraries;
757-
758- /// Whether the library is the `dart:async` library.
759- bool get isDartAsync;
760-
761- /// Whether the library is the `dart:core` library.
762- bool get isDartCore;
763-
764- /// Whether the library is part of the SDK.
765- bool get isInSdk;
766-
767- /// The language version for this library.
768- LibraryLanguageVersion get languageVersion;
769-
770- @override
771- LibraryElement get library;
772-
773- /// The name of this library, possibly the empty string if this library does
774- /// not have an explicit name.
775- @override
776- String get name;
777-
778- /// The public [Namespace] of this library.
779- Namespace get publicNamespace;
780-
781- @override
782- AnalysisSession get session;
783-
784- /// The top-level elements defined in each of the compilation units that are
785- /// included in this library. This includes both public and private elements,
786- /// but does not include imports, exports, or synthetic elements.
787- Iterable <Element > get topLevelElements;
788-
789- /// The [TypeProvider] that is used in this library.
790- TypeProvider get typeProvider;
791-
792- /// The [TypeSystem] that is used in this library.
793- TypeSystem get typeSystem;
794- }
795-
796702class LibraryLanguageVersion {
797703 /// The version for the whole package that contains this library.
798704 final Version package;
@@ -869,10 +775,6 @@ abstract class _ExistingElement implements Element {
869775 @override
870776 Element get declaration;
871777
872- @Deprecated (elementModelDeprecationMsg)
873- @override
874- LibraryElement get library;
875-
876778 @override
877779 Source get librarySource;
878780
0 commit comments