sortedCommentAndAnnotations property

  1. @override
List<AstNode> sortedCommentAndAnnotations
override

Return a list containing the comment and annotations associated with this parameter, sorted in lexical order.

Implementation

@override
List<AstNode> get sortedCommentAndAnnotations {
  var comment = _comment;
  return <AstNode>[
    if (comment != null) comment,
    ..._metadata,
  ]..sort(AstNode.LEXICAL_ORDER);
}