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

	return (
		!parent.computed &&
		parent.type === "Property" &&
		parent.parent.type === "ObjectPattern" &&
		parent.key === node
	);
}
Checks whether the given node is an ObjectPattern destructuring.

Examples:
const { a : b } = foo;
@param {ASTNode} node `Identifier` node to check.
@returns {boolean} `true` if the node is in an ObjectPattern destructuring.