function getIndentation(tokens,expectedLocation,correctColumn){var indentation,spaces=[];switch(expectedLocation){case'props-aligned':indentation=/^\s*/.exec(sourceCode.lines[tokens.lastProp.firstLine-1])[0];break;case'tag-aligned':case'line-aligned':indentation=/^\s*/.exec(sourceCode.lines[tokens.opening.line-1])[0];break;default:indentation='';}if(indentation.length+1<correctColumn){// Non-whitespace characters were included in the column offset
spaces=new Array(+correctColumn+1-indentation.length);}return indentation+spaces.join(' ');}
Get the characters used for indentation on the line to be matched
@param {Object} tokens Locations of the opening bracket, closing bracket and last prop
@param {String} expectedLocation Expected location for the closing bracket
@param {Number} correctColumn Expected column for the closing bracket
@return {String} The characters used for indentation