@@ -256,24 +256,63 @@ var flatteners = {
256256
257257function todo ( ) { }
258258
259+ /**
260+ * Generate a function that curries a destination key for a flattener
261+ * @private
262+ * @param {string } key the eventual destination key
263+ * @returns {Function } a flattener that remembers that key
264+ */
259265function synonym ( key ) {
260266 return function ( result , tag ) {
261267 return flatteners [ key ] ( result , tag , key ) ;
262268 } ;
263269}
264270
271+ /**
272+ * Treat the existence of a tag as a sign to mark `key` as true in the result
273+ * @private
274+ * @param {Object } result the documentation object
275+ * @param {Object } tag the tag object, with a name property
276+ * @param {string } key destination on the result
277+ * @returns {undefined } operates with side-effects
278+ */
265279function flattenBoolean ( result , tag , key ) {
266280 result [ key ] = true ;
267281}
268282
283+ /**
284+ * Flatten a usable-once name tag into a key
285+ * @private
286+ * @param {Object } result the documentation object
287+ * @param {Object } tag the tag object, with a name property
288+ * @param {string } key destination on the result
289+ * @returns {undefined } operates with side-effects
290+ */
269291function flattenName ( result , tag , key ) {
270292 result [ key ] = tag . name ;
271293}
272294
295+
296+ /**
297+ * Flatten a usable-once description tag into a key
298+ * @private
299+ * @param {Object } result the documentation object
300+ * @param {Object } tag the tag object, with a description property
301+ * @param {string } key destination on the result
302+ * @returns {undefined } operates with side-effects
303+ */
273304function flattenDescription ( result , tag , key ) {
274305 result [ key ] = tag . description ;
275306}
276307
308+ /**
309+ * Flatten a usable-once description tag into a key and parse it as Markdown
310+ * @private
311+ * @param {Object } result the documentation object
312+ * @param {Object } tag the tag object, with a description property
313+ * @param {string } key destination on the result
314+ * @returns {undefined } operates with side-effects
315+ */
277316function flattenMarkdownDescription ( result , tag , key ) {
278317 result [ key ] = parseMarkdown ( tag . description ) ;
279318}
0 commit comments