function hasInferredName(node) {
			const parent = node.parent;

			return (
				isObjectOrClassMethod(node) ||
				(parent.type === "VariableDeclarator" &&
					parent.id.type === "Identifier" &&
					parent.init === node) ||
				(parent.type === "Property" && parent.value === node) ||
				(parent.type === "PropertyDefinition" &&
					parent.value === node) ||
				(parent.type === "AssignmentExpression" &&
					parent.left.type === "Identifier" &&
					parent.right === node) ||
				(parent.type === "AssignmentPattern" &&
					parent.left.type === "Identifier" &&
					parent.right === node)
			);
		}
Determines whether the current FunctionExpression node has a name that would be
inferred from context in a conforming ES6 environment.
@param {ASTNode} node A node to check.
@returns {boolean} True if the node would have a name assigned automatically.