lib/jsdoc/ui5/plugin.js
function preprocessComment(e) {

	var src = e.comment;

	// add a default visibility
	if ( !/@private|@public|@protected|@sap-restricted|@ui5-restricted/.test(src) ) {
		src = unwrap(src);
		src = src + "\n@private";
		src = wrap(src);
		// console.log("added default visibility to '" + src + "'");
	}

	if ( /@class/.test(src) && /@static/.test(src) ) {
		warning("combination of @class and @static is no longer supported with jsdoc3, converting it to @namespace and @classdesc: (line " + e.lineno + ")");
		src = unwrap(src);
		src = src.replace(/@class/, "@classdesc").replace(/@static/, "@namespace");
		src = wrap(src);
		//console.log(src);
	}

	return src;

}
function preprocessComment(e) {

	var src = e.comment;

	// add a default visibility
	if ( !/@private|@public|@protected|@sap-restricted|@ui5-restricted/.test(src) ) {
		src = unwrap(src);
		src = src + "\n@private";
		src = wrap(src);
		// console.log("added default visibility to '" + src + "'");
	}

	if ( /@class/.test(src) && /@static/.test(src) ) {
		warning("combination of @class and @static is no longer supported with jsdoc3, converting it to @namespace and @classdesc: (line " + e.lineno + ")");
		src = unwrap(src);
		src = src.replace(/@class/, "@classdesc").replace(/@static/, "@namespace");
		src = wrap(src);
		//console.log(src);
	}

	return src;

}
function preprocessComment ( e ) { var src = e . comment ; // add a default visibility if ( ! / @private|@public|@protected|@sap-restricted|@ui5-restricted / . test ( src ) ) { src = unwrap ( src ) ; src = src + "\n@private" ; src = wrap ( src ) ; // console.log("added default visibility to '" + src + "'"); } if ( / @class / . test ( src ) && / @static / . test ( src ) ) { warning ( "combination of @class and @static is no longer supported with jsdoc3, converting it to @namespace and @classdesc: (line " + e . lineno + ")" ) ; src = unwrap ( src ) ; src = src . replace ( / @class / , "@classdesc" ) . replace ( / @static / , "@namespace" ) ; src = wrap ( src ) ; //console.log(src); } return src ; }
Pre-processes a JSDoc comment string to ensure some UI5 standards.

@param {event} e Event for the new comment
@returns {event} Returns the modified event
Pre - processes a JSDoc comment string to ensure some UI5 standards .