declaredFragment property
The fragment declared by this declaration.
Returns null
if the AST structure hasn't been resolved.
Returns null
for FieldDeclaration and TopLevelVariableDeclaration
because these nodes don't declare any fragments, but individual
VariableDeclarations inside them do. They are Declarations mostly to
fit into ClassDeclaration.members and CompilationUnit.declarations.
Implementation
@override
ClassFragment? get declaredFragment;