NamedCompilationUnitMemberImpl constructor

NamedCompilationUnitMemberImpl({
  1. required CommentImpl? comment,
  2. required List<AnnotationImpl>? metadata,
  3. required Token name,
})

Initialize a newly created compilation unit member with the given name. Either or both of the comment and metadata can be null if the member does not have the corresponding attribute.

Implementation

NamedCompilationUnitMemberImpl({
  required super.comment,
  required super.metadata,
  required this.name,
});