CommentImpl constructor

CommentImpl({
  1. required List<Token> tokens,
  2. required CommentType type,
  3. required List<CommentReferenceImpl> references,
})

Initialize a newly created comment. The list of tokens must contain at least one token. The _type is the type of the comment. The list of references can be empty if the comment does not contain any embedded references.

Implementation

CommentImpl({
  required this.tokens,
  required CommentType type,
  required List<CommentReferenceImpl> references,
}) : _type = type {
  _references._initialize(this, references);
}