Add documentation comments for DirectiveUri getters.

Change-Id: Ia7003c8de1fb1e4e3ca03f4d2896d070bab04cdc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251582
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2022-07-15 15:58:31 +00:00 committed by Commit Bot
parent a5b598afa6
commit eb210a4c6f

View file

@ -525,6 +525,7 @@ abstract class DirectiveUri {}
///
/// Clients may not extend, implement or mix-in this class.
abstract class DirectiveUriWithAugmentation extends DirectiveUriWithSource {
/// The library augmentation referenced by the [source].
LibraryAugmentationElement get augmentation;
}
@ -532,6 +533,7 @@ abstract class DirectiveUriWithAugmentation extends DirectiveUriWithSource {
///
/// Clients may not extend, implement or mix-in this class.
abstract class DirectiveUriWithLibrary extends DirectiveUriWithSource {
/// The library referenced by the [source].
LibraryElement get library;
}
@ -540,6 +542,7 @@ abstract class DirectiveUriWithLibrary extends DirectiveUriWithSource {
/// Clients may not extend, implement or mix-in this class.
abstract class DirectiveUriWithRelativeUri
extends DirectiveUriWithRelativeUriString {
/// The relative URI, parsed from [relativeUriString].
Uri get relativeUri;
}
@ -547,6 +550,7 @@ abstract class DirectiveUriWithRelativeUri
///
/// Clients may not extend, implement or mix-in this class.
abstract class DirectiveUriWithRelativeUriString extends DirectiveUri {
/// The relative URI string specified in code.
String get relativeUriString;
}
@ -554,6 +558,7 @@ abstract class DirectiveUriWithRelativeUriString extends DirectiveUri {
///
/// Clients may not extend, implement or mix-in this class.
abstract class DirectiveUriWithSource extends DirectiveUriWithRelativeUri {
/// The result of resolving [relativeUri] against the enclosing URI.
Source get source;
}
@ -561,6 +566,7 @@ abstract class DirectiveUriWithSource extends DirectiveUriWithRelativeUri {
///
/// Clients may not extend, implement or mix-in this class.
abstract class DirectiveUriWithUnit extends DirectiveUriWithSource {
/// The unit referenced by the [source].
CompilationUnitElement get unit;
}