toDisplayString method
Implementation
String toDisplayString() {
switch (type) {
case ReferenceType.Hash:
return '$name $hash';
case ReferenceType.Symbolic:
return '$name $symbolicRefPrefix$target';
default:
assert(false, 'Reference has an invalid type');
}
return '';
}