addDeclaration method
Adds A declaration to the asset graph.
Implementation
@override
void addDeclaration(
String identifier,
Asset declaringFile,
ReferenceType type,
) {
if (!assets.containsKey(declaringFile.id)) {
throw Exception('Asset not found: $declaringFile');
}
final List<dynamic>? entry = lookupIdentifier(identifier, declaringFile.id);
if (entry == null) {
identifiers.add(<dynamic>[identifier, declaringFile.id, type.value]);
}
}