File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 22* Add ` DartObject.constructorInvocation ` with the constructor and arguments.
33* Make ` PropertyAccessorElement.variable ` non-nullable.
44* Add ` documentationComment ` to ` Element ` and ` Fragment ` .
5- * Add ` metadata ` to ` Element ` and ` Fragment ` .`
5+ * Add ` metadata ` to ` Element ` and ` Fragment ` .
6+ * Add ` metadata ` to ` ElementDirective ` .
67* Fix draining analysis events when used by ` package:build ` .
78* Deprecate ` LibraryElementResult.element2 ` , use ` element ` instead.
89* Deprecate ` ResolvedLibraryResult.element2 ` , use ` element ` instead.
Original file line number Diff line number Diff line change @@ -3459,6 +3459,7 @@ package:analyzer/dart/element/element.dart:
34593459 ElementDirective (class extends Object implements Annotatable):
34603460 new (constructor: ElementDirective Function())
34613461 libraryFragment (getter: LibraryFragment)
3462+ metadata (getter: Metadata)
34623463 uri (getter: DirectiveUri)
34633464 ElementKind (class extends Object implements Comparable<ElementKind>):
34643465 AUGMENTATION_IMPORT (static getter: ElementKind)
Original file line number Diff line number Diff line change @@ -1047,6 +1047,16 @@ abstract class ElementDirective
10471047 /// The library fragment that contains this object.
10481048 LibraryFragment get libraryFragment;
10491049
1050+ /// The metadata associated with the element or fragment.
1051+ ///
1052+ /// If the receiver is an element that has fragments, the list will include
1053+ /// all of the metadata from all of the fragments.
1054+ ///
1055+ /// The list will be empty if the receiver does not have any metadata or if
1056+ /// the library containing this element has not yet been fully resolved.
1057+ @override
1058+ Metadata get metadata;
1059+
10501060 /// The interpretation of the URI specified in the directive.
10511061 DirectiveUri get uri;
10521062}
You can’t perform that action at this time.
0 commit comments