function returnStatementForAttributeDescriptions()

in src/plugins/description.ts [290:313]


function returnStatementForAttributeDescriptions(
  attributeDescriptions: ComputedAttributeDescription[],
  name?: string,
): string {
  const nameString: string = name ? ' ' + name : '';
  const attributesBeginning: string =
    attributeDescriptions.length > 0 ? ' \\n\\t ' : '';
  const attributesFormatString: string = attributeDescriptions
    .map(selectToken)
    .join(' \\n\\t ');
  const attributesValueString: string =
    attributeDescriptions.length > 0
      ? ', ' + attributeDescriptions.map(selectValue).join(', ')
      : '';
  return (
    'return [NSString stringWithFormat:@"%@ -' +
    nameString +
    attributesBeginning +
    attributesFormatString +
    ' \\n", [super description]' +
    attributesValueString +
    '];'
  );
}