ImportDirectiveImpl constructor

ImportDirectiveImpl({
  1. required CommentImpl? comment,
  2. required List<AnnotationImpl>? metadata,
  3. required Token importKeyword,
  4. required StringLiteralImpl uri,
  5. required List<ConfigurationImpl>? configurations,
  6. required Token? deferredKeyword,
  7. required Token? asKeyword,
  8. required SimpleIdentifierImpl? prefix,
  9. required List<CombinatorImpl>? combinators,
  10. required Token semicolon,
})

Initialize a newly created import directive. Either or both of the comment and metadata can be null if the function does not have the corresponding attribute. The deferredKeyword can be null if the import is not deferred. The asKeyword and prefix can be null if the import does not specify a prefix. The list of combinators can be null if there are no combinators.

Implementation

ImportDirectiveImpl({
  required super.comment,
  required super.metadata,
  required this.importKeyword,
  required super.uri,
  required super.configurations,
  required this.deferredKeyword,
  required this.asKeyword,
  required SimpleIdentifierImpl? prefix,
  required super.combinators,
  required super.semicolon,
}) : _prefix = prefix {
  _becomeParentOf(_prefix);
}