LibraryDirectiveImpl constructor

LibraryDirectiveImpl({
  1. required CommentImpl? comment,
  2. required List<AnnotationImpl>? metadata,
  3. required Token libraryKeyword,
  4. required LibraryIdentifierImpl? name,
  5. required Token semicolon,
})

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

Implementation

LibraryDirectiveImpl({
  required super.comment,
  required super.metadata,
  required this.libraryKeyword,
  required LibraryIdentifierImpl? name,
  required this.semicolon,
}) : _name = name {
  _becomeParentOf(_name);
}