function getNodeIndent(node, byLastLine, excludeCommas) {
      let src = getText(context, node, node.loc.start.column + extraColumnStart);
      const lines = src.split('\n');
      if (byLastLine) {
        src = lines[lines.length - 1];
      } else {
        src = lines[0];
      }

      const skip = excludeCommas ? ',' : '';

      let regExp;
      if (indentType === 'space') {
        regExp = new RegExp(`^[ ${skip}]+`);
      } else {
        regExp = new RegExp(`^[\t${skip}]+`);
      }

      const indent = regExp.exec(src);
      return indent ? indent[0].length : 0;
    }
Get node indent
@param {ASTNode} node Node to examine
@param {boolean} [byLastLine] get indent of node's last line
@param {boolean} [excludeCommas] skip comma on start of line
@return {number} Indent