function checkFunction(node){if(!node.generator){return;}var starToken=getStarToken(node);// Only check before when preceded by `function`|`static` keyword
var prevToken=sourceCode.getTokenBefore(starToken);if(prevToken.value==="function"||prevToken.value==="static"){checkSpacing("before",prevToken,starToken);}var nextToken=sourceCode.getTokenAfter(starToken);checkSpacing("after",starToken,nextToken);}
Enforces the spacing around the star if node is a generator function.
@param {ASTNode} node A function expression or declaration node.
@returns {void}