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 2
2
* Add ` DartObject.constructorInvocation ` with the constructor and arguments.
3
3
* Make ` PropertyAccessorElement.variable ` non-nullable.
4
4
* 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 ` .
6
7
* Fix draining analysis events when used by ` package:build ` .
7
8
* Deprecate ` LibraryElementResult.element2 ` , use ` element ` instead.
8
9
* 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:
3459
3459
ElementDirective (class extends Object implements Annotatable):
3460
3460
new (constructor: ElementDirective Function())
3461
3461
libraryFragment (getter: LibraryFragment)
3462
+ metadata (getter: Metadata)
3462
3463
uri (getter: DirectiveUri)
3463
3464
ElementKind (class extends Object implements Comparable<ElementKind>):
3464
3465
AUGMENTATION_IMPORT (static getter: ElementKind)
Original file line number Diff line number Diff line change @@ -1047,6 +1047,16 @@ abstract class ElementDirective
1047
1047
/// The library fragment that contains this object.
1048
1048
LibraryFragment get libraryFragment;
1049
1049
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
+
1050
1060
/// The interpretation of the URI specified in the directive.
1051
1061
DirectiveUri get uri;
1052
1062
}
You can’t perform that action at this time.
0 commit comments