tools/jsdoc_plugins/closure.js
/**
 * Validate the <tt>@suppress</tt> tag for correct syntax and all suppressions.
 * In error case a warning is printed - but the parsing process will continue.
 *
 * @param {Object} suppressTag The <tt>@suppress</tt> tag which was parsed by JSDoc and is passed in the
 *        <tt>onTagged</tt> event.
 *
 * @private
 */
Validate the @suppress tag for correct syntax and all suppressions.
In error case a warning is printed - but the parsing process will continue.

@param {Object} suppressTag The @suppress tag which was parsed by JSDoc and is passed in the
onTagged event.

@private
Validate the @suppress tag for correct syntax and all suppressions . In error case a warning is printed - but the parsing process will continue . @param { Object } suppressTag The @suppress tag which was parsed by JSDoc and is passed in the onTagged event . @private
function validateSuppressTag (suppressTag) {
    let tagValue = suppressTag.value || '';
    if (tagValue.length === 0 || !tagValue.startsWith('{') || !tagValue.endsWith('}')) {
        logWarning(`Bad syntax for "@suppress" (${SUPPRESS_TAG_URL})`);
        return;
    }
    for (let suppression of getSuppressions(tagValue, JSDOC_SUPPRESS_SEPARATORS)) {
        if (JSDOC_SUPPRESIONS.indexOf(suppression) === -1) {
            logWarning(`Unknown suppression (${suppression}) for "@suppress" (${SUPPRESSIONS_URL})`);
        }
    }
}
function validateSuppressTag ( suppressTag ) { let tagValue = suppressTag . value || '' ; if ( tagValue . length === 0 || ! tagValue . startsWith ( '{' ) || ! tagValue . endsWith ( '}' ) ) { logWarning ( ` ${ SUPPRESS_TAG_URL } ` ) ; return ; } for ( let suppression of getSuppressions ( tagValue , JSDOC_SUPPRESS_SEPARATORS ) ) { if ( JSDOC_SUPPRESIONS . indexOf ( suppression ) === - 1 ) { logWarning ( ` ${ suppression } ${ SUPPRESSIONS_URL } ` ) ; } } }
Validate the <tt>@suppress</tt> tag for correct syntax and all suppressions.
Validate the <tt > @suppress< / tt > tag for correct syntax and all suppressions .