We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75eeaa7 commit 97a23cfCopy full SHA for 97a23cf
pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -5620,6 +5620,11 @@ abstract final class Declaration implements AnnotatedNode {
5620
/// The fragment declared by this declaration.
5621
///
5622
/// Returns `null` if the AST structure hasn't been resolved.
5623
+ ///
5624
+ /// Returns `null` for [FieldDeclaration] and [TopLevelVariableDeclaration]
5625
+ /// because these nodes don't declare any fragments, but individual
5626
+ /// [VariableDeclaration]s inside them do. They are [Declaration]s mostly to
5627
+ /// fit into [ClassDeclaration.members] and [CompilationUnit.declarations].
5628
@experimental
5629
Fragment? get declaredFragment;
5630
}
0 commit comments