code: function() {
        var scope = context.getScope();
        while (scope) {
          var node = scope.block;
          var isClass = node.type === 'ClassExpression';
          var isFunction = /Function/.test(node.type); // Functions
          var isMethod = node.parent && node.parent.type === 'MethodDefinition'; // Classes methods
          var isArgument = node.parent && node.parent.type === 'CallExpression'; // Arguments (callback, etc.)
          // Stop moving up if we reach a class or an argument (like a callback)
          if (isClass || isArgument) {
            return null;
          }
          // Return the node if it is a function that is not a class method
          if (isFunction && !isMethod) {
            return node;
          }
          scope = scope.upper;
        }
        return null;
      }
docs: Get the parent stateless component node from the current scope
  
  @returns {ASTNode} component node, null if we are not in a component