lib/jsdoc/transform-apijson-for-sdk.js
function (name, params) {
			var result = '<pre class="prettyprint">new ';

			if (name) {
				result += name + '(';
			}

			if (params) {
				params.forEach(function (element, index, array) {
					result += element.name;

					if (element.optional) {
						result += '?';
					}

					if (index < array.length - 1) {
						result += ', ';
					}
				});
			}

			if (name) {
				result += ')</pre>';
			}

			return result;
		}
function (name, params) {
			var result = '<pre class="prettyprint">new ';

			if (name) {
				result += name + '(';
			}

			if (params) {
				params.forEach(function (element, index, array) {
					result += element.name;

					if (element.optional) {
						result += '?';
					}

					if (index < array.length - 1) {
						result += ', ';
					}
				});
			}

			if (name) {
				result += ')</pre>';
			}

			return result;
		}
function ( name , params ) { var result = '<pre class="prettyprint">new ' ; if ( name ) { result += name + '(' ; } if ( params ) { params . forEach ( function ( element , index , array ) { result += element . name ; if ( element . optional ) { result += '?' ; } if ( index < array . length - 1 ) { result += ', ' ; } } ) ; } if ( name ) { result += ')</pre>' ; } return result ; }
Formats the constructor of the class
@param name
@param params
@returns string - The code needed to create an object of that class
Formats the constructor of the class