UNPKG

foxx_generator

Version:

Generate Foxx APIs using Statecharts and Domain Driven Design

20 lines (15 loc) 448 B
(function () { 'use strict'; var Documentation = function (applicationContext) { this.summary = ''; this.notes = ''; if (applicationContext.comments.length > 0) { do { this.summary = applicationContext.comments.shift(); } while (this.summary === ''); this.notes = applicationContext.comments.join('\n'); } applicationContext.clearComments(); }; exports.Documentation = Documentation; }());