lib/jsdoc/transform-apijson-for-sdk.js
function (sSince, sDescription, sEntityType) {
			var aResult;

			// Build deprecation message
			// Note: there may be no since or no description text available
			aResult = ["Deprecated"];
			if (sSince) {
				aResult.push(" as of version " + sSince);
			}
			if (sDescription) {
				// Evaluate code blocks - Handle <code>...</code> pattern
				sDescription = sDescription.replace(/<code>(\S+)<\/code>/gi, function (sMatch, sCodeEntity) {
						return ['<em>', sCodeEntity, '</em>'].join("");
					}
				);

				// Evaluate links in the deprecation description
				aResult.push(". " + this._preProcessLinksInTextBlock(sDescription, true));
			}

			return aResult.join("");
		}
function (sSince, sDescription, sEntityType) {
			var aResult;

			// Build deprecation message
			// Note: there may be no since or no description text available
			aResult = ["Deprecated"];
			if (sSince) {
				aResult.push(" as of version " + sSince);
			}
			if (sDescription) {
				// Evaluate code blocks - Handle <code>...</code> pattern
				sDescription = sDescription.replace(/<code>(\S+)<\/code>/gi, function (sMatch, sCodeEntity) {
						return ['<em>', sCodeEntity, '</em>'].join("");
					}
				);

				// Evaluate links in the deprecation description
				aResult.push(". " + this._preProcessLinksInTextBlock(sDescription, true));
			}

			return aResult.join("");
		}
function ( sSince , sDescription , sEntityType ) { var aResult ; // Build deprecation message // Note: there may be no since or no description text available aResult = [ "Deprecated" ] ; if ( sSince ) { aResult . push ( " as of version " + sSince ) ; } if ( sDescription ) { // Evaluate code blocks - Handle <code>...</code> pattern sDescription = sDescription . replace ( / <code>(\S+)<\/code> / gi , function ( sMatch , sCodeEntity ) { return [ '<em>' , sCodeEntity , '</em>' ] . join ( "" ) ; } ) ; // Evaluate links in the deprecation description aResult . push ( ". " + this . _preProcessLinksInTextBlock ( sDescription , true ) ) ; } return aResult . join ( "" ) ; }
Formats the entity deprecation message and pre-process jsDoc link and code blocks
@param {string} sSince since text
@param {string} sDescription deprecation description text
@param {string} sEntityType string representation of entity type
@returns {string} formatted deprecation message
Formats the entity deprecation message and pre - process jsDoc link and code blocks