function endChecking(node) {
			if (!node.generator) {
				return;
			}

			const countYield = stack.pop();

			if (countYield === 0 && node.body.body.length > 0) {
				context.report({ node, messageId: "missingYield" });
			}
		}
If the node is a generator function, end counting `yield` keywords, then
reports result.
@param {Node} node A function node to check.
@returns {void}