lib/rules/space-unary-ops.js
function checkForSpacesAfterYield(node) {
            const tokens = sourceCode.getFirstTokens(node, 3),
                word = "yield";

            if (!node.argument || node.delegate) {
                return;
            }

            checkUnaryWordOperatorForSpaces(node, tokens[0], tokens[1], word);
        }
function checkForSpacesAfterYield(node) {
            const tokens = sourceCode.getFirstTokens(node, 3),
                word = "yield";

            if (!node.argument || node.delegate) {
                return;
            }

            checkUnaryWordOperatorForSpaces(node, tokens[0], tokens[1], word);
        }
function checkForSpacesAfterYield ( node ) { const tokens = sourceCode . getFirstTokens ( node , 3 ) , word = "yield" ; if ( ! node . argument || node . delegate ) { return ; } checkUnaryWordOperatorForSpaces ( node , tokens [ 0 ] , tokens [ 1 ] , word ) ; }
Verifies YieldExpressions satisfy spacing requirements
@param {ASTnode} node AST node
@returns {void}
Verifies YieldExpressions satisfy spacing requirements