partOfOf method
Returns a the first part-of directive of a file.
Implementation
@override
List<dynamic>? partOfOf(String fileId) {
final List<List<dynamic>>? fileDirectives = directives[fileId];
if (fileDirectives == null) return null;
return fileDirectives
.where(
(List<dynamic> e) =>
e[GraphIndex.directiveType] == DirectiveStatement.partOf ||
e[GraphIndex.directiveType] == DirectiveStatement.partOfLibrary,
)
.firstOrNull;
}