lib/rules/generator-star-spacing.js
function getStarToken(node) {
            return sourceCode.getFirstToken(
                (node.parent.method || node.parent.type === "MethodDefinition") ? node.parent : node,
                isStarToken
            );
        }
function getStarToken(node) {
            return sourceCode.getFirstToken(
                (node.parent.method || node.parent.type === "MethodDefinition") ? node.parent : node,
                isStarToken
            );
        }
function getStarToken ( node ) { return sourceCode . getFirstToken ( ( node . parent . method || node . parent . type === "MethodDefinition" ) ? node . parent : node , isStarToken ) ; }
Gets the generator star token of the given function node.

@param {ASTNode} node - The function node to get.
@returns {Token} Found star token.
Gets the generator star token of the given function node .