function extractFromName(referenceName, nameNode, getNest) {
    return {
      hasProperty: (name) => name === referenceName,
      allProperties: () => new Map([[referenceName, { nodes: [nameNode] }]]),
      getNest: (name) =>
        name === referenceName ? (getNest ? getNest() : ANY) : NEVER,
      getNestNodes: () => []
    }
  }
Extract the property references from name.
@param {string} referenceName
@param {Expression|SpreadElement} nameNode
@param { () => IPropertyReferences } [getNest]
@returns {IPropertyReferences}