code: 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 === "AssignmentExpression" && parent.left.type === "Identifier" && parent.right === node) ||
                  (parent.type === "ExportDefaultDeclaration" && parent.declaration === node) ||
                  (parent.type === "AssignmentPattern" && parent.right === node);
          }
docs: 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.