analyzer: Fix FieldDeclaration doc comment.

See the current busted docs that interpret angle brackets as HTML:
https://pub.dev/documentation/analyzer/latest/dart_ast_ast/FieldDeclaration-class.html

Also the comment at the end is outdated; removing it is the most clear
path, I think.

Change-Id: I7ce165801add5f1d6936ec242d0f2ddb2bfbf525
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/331320
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Sam Rawlins 2023-10-20 14:57:25 +00:00 committed by Commit Queue
parent 0234a8f17f
commit 1dc0eb05ea

View file

@ -6877,13 +6877,9 @@ final class ExtensionTypeDeclarationImpl extends NamedCompilationUnitMemberImpl
/// | 'abstract' (<finalVarOrType> | 'covariant' <varOrType>)
/// <identifierList>
///
/// (Note: there is no <fieldDeclaration> production in the grammar; this is a
/// subset of the grammar production <declaration>, which encompasses everything
/// that can appear inside a class declaration except methods).
///
/// Prior to the 'extension-methods' experiment, these nodes were always
/// children of a class declaration. When the experiment is enabled, these nodes
/// can also be children of an extension declaration.
/// (Note: there is no `<fieldDeclaration>` production in the grammar; this is a
/// subset of the grammar production `<declaration>`, which encompasses
/// everything that can appear inside a class declaration except methods).
abstract final class FieldDeclaration implements ClassMember {
/// The `abstract` keyword, or `null` if the keyword was not used.
Token? get abstractKeyword;