lib/utils/indent-common.js
function processIgnores (visitor) {
    for (const ignorePattern of options.ignores) {
      const key = `${ignorePattern}:exit`

      if (visitor.hasOwnProperty(key)) {
        const handler = visitor[key]
        visitor[key] = function (node) {
          const ret = handler.apply(this, arguments)
          ignore(node)
          return ret
        }
      } else {
        visitor[key] = ignore
      }
    }

    return visitor
  }
function processIgnores (visitor) {
    for (const ignorePattern of options.ignores) {
      const key = `${ignorePattern}:exit`

      if (visitor.hasOwnProperty(key)) {
        const handler = visitor[key]
        visitor[key] = function (node) {
          const ret = handler.apply(this, arguments)
          ignore(node)
          return ret
        }
      } else {
        visitor[key] = ignore
      }
    }

    return visitor
  }
function processIgnores ( visitor ) { for ( const ignorePattern of options . ignores ) { const key = ` ${ ignorePattern } ` if ( visitor . hasOwnProperty ( key ) ) { const handler = visitor [ key ] visitor [ key ] = function ( node ) { const ret = handler . apply ( this , arguments ) ignore ( node ) return ret } } else { visitor [ key ] = ignore } } return visitor }
Define functions to ignore nodes into the given visitor.
@param {Object} visitor The visitor to define functions to ignore nodes.
@returns {Object} The visitor.
Define functions to ignore nodes into the given visitor .