sortedCommentAndAnnotations property
Return a list containing the comment and annotations associated with this node, sorted in lexical order.
Implementation
@override
List<AstNode> get sortedCommentAndAnnotations {
var comment = _comment;
return <AstNode>[
if (comment != null) comment,
..._metadata,
]..sort(AstNode.LEXICAL_ORDER);
}