getStructureMetadataSourceArray function

String getStructureMetadataSourceArray(
  1. Element element
)

Implementation

String getStructureMetadataSourceArray(Element element) {
  var conditionChecker = TypeChecker.fromRuntime(StructureMetadata);
  var annotations = <String>[];
  for (var value in element.metadata.whereTypeChecker(conditionChecker)) {
    annotations.add(value.toSource().substring(1));
  }
  return "[${annotations.join(", ")}]";
}