function isPropertyDescriptor(node){// Object.defineProperty(obj, "foo", {set: ...})
if(isArgumentOfMethodCall(node,2,"Object","defineProperty")||isArgumentOfMethodCall(node,2,"Reflect","defineProperty")){return true;}/*
     * Object.defineProperties(obj, {foo: {set: ...}})
     * Object.create(proto, {foo: {set: ...}})
     */node=node.parent.parent;return node.type==="ObjectExpression"&&(isArgumentOfMethodCall(node,1,"Object","create")||isArgumentOfMethodCall(node,1,"Object","defineProperties"));}//------------------------------------------------------------------------------
Checks whether or not a given node is a property descriptor.
@param {ASTNode} node - A node to check.
@returns {boolean} `true` if the node is a property descriptor.