AnnotatedNodeImpl constructor

AnnotatedNodeImpl({
  1. required CommentImpl? comment,
  2. required List<AnnotationImpl>? metadata,
})

Initialize a newly created annotated node. Either or both of the comment and metadata can be null if the node does not have the corresponding attribute.

Implementation

AnnotatedNodeImpl({
  required CommentImpl? comment,
  required List<AnnotationImpl>? metadata,
}) : _comment = comment {
  _becomeParentOf(_comment);
  _metadata._initialize(this, metadata);
}