function checkIndentInVariableDeclarations(node){var elements=filterOutSameLineVars(node);var nodeIndent=getNodeIndent(node).goodChar;var lastElement=elements[elements.length-1];var elementsIndent=nodeIndent+indentSize*options.VariableDeclarator[node.kind];checkNodesIndent(elements,elementsIndent);// Only check the last line if there is any token after the last item
if(sourceCode.getLastToken(node).loc.end.line<=lastElement.loc.end.line){return;}var tokenBeforeLastElement=sourceCode.getTokenBefore(lastElement);if(tokenBeforeLastElement.value===","){// Special case for comma-first syntax where the semicolon is indented
checkLastNodeLineIndent(node,getNodeIndent(tokenBeforeLastElement).goodChar);}else{checkLastNodeLineIndent(node,elementsIndent-indentSize);}}
Check indentation for variable declarations
@param {ASTNode} node node to examine
@returns {void}