function getAllowedBodyDescription(node) {
	let { parent } = node;

	while (parent) {
		if (parent.type === "StaticBlock") {
			return "class static block body";
		}

		if (astUtils.isFunction(parent)) {
			return "function body";
		}

		({ parent } = parent);
	}

	return "program";
}
Finds the nearest enclosing context where this rule allows declarations and returns its description.
@param {ASTNode} node Node to search from.
@returns {string} Description. One of "program", "function body", "class static block body".