lib/utils/indent-common.js
function processTopLevelNode (node, expectedIndent) {
    const token = tokenStore.getFirstToken(node)
    const offsetInfo = offsets.get(token)
    if (offsetInfo != null) {
      offsetInfo.expectedIndent = expectedIndent
    } else {
      offsets.set(token, { baseToken: null, offset: 0, baseline: false, expectedIndent })
    }
  }
function processTopLevelNode (node, expectedIndent) {
    const token = tokenStore.getFirstToken(node)
    const offsetInfo = offsets.get(token)
    if (offsetInfo != null) {
      offsetInfo.expectedIndent = expectedIndent
    } else {
      offsets.set(token, { baseToken: null, offset: 0, baseline: false, expectedIndent })
    }
  }
function processTopLevelNode ( node , expectedIndent ) { const token = tokenStore . getFirstToken ( node ) const offsetInfo = offsets . get ( token ) if ( offsetInfo != null ) { offsetInfo . expectedIndent = expectedIndent } else { offsets . set ( token , { baseToken : null , offset : 0 , baseline : false , expectedIndent } ) } }
Set the base indentation to a given top-level AST node.
@param {Node} node The node to set.
@param {number} expectedIndent The number of expected indent.
@returns {void}
Set the base indentation to a given top - level AST node .