description property

String description

Implementation

String get description {
  Object node = this;
  if (node is NodeNaming) {
    final name = node.name;
    final location = node.location;
    if (location != null && location.isNotEmpty) {
      if (name != null && name.isNotEmpty) return '${location} ${name}';
      return location;
    } else {
      if (name != null && name.isNotEmpty) return name;
    }
  }
  return '$runtimeType $id';
}