code: function getNodePath(node) {
      var nodePaths = [];
      var nodeParent = node;
      while (nodeParent) {
          switch (nodeParent.nodeType) {
              case NodeType.ELEM:
                  nodePaths.unshift(nodeParent.tagName);
                  break;
  
              case NodeType.IF:
                  nodePaths.unshift('if');
                  break;
  
              case NodeType.FOR:
                  nodePaths.unshift('for[' + nodeParent.anode.directives['for'].raw + ']'); // eslint-disable-line dot-notation
                  break;
  
              case NodeType.SLOT:
                  nodePaths.unshift('slot[' + (nodeParent.name || 'default') + ']');
                  break;
  
              case NodeType.TPL:
                  nodePaths.unshift('template');
                  break;
  
              case NodeType.CMPT:
                  nodePaths.unshift('component[' + (nodeParent.subTag || 'root') + ']');
                  break;
  
              case NodeType.TEXT:
                  nodePaths.unshift('text');
                  break;
          }
  
          nodeParent = nodeParent.parent;
      }
  
      return nodePaths;
  }
docs: #[begin] reverse 
  获取节点在组件树中的路径
  
  @param {Node} node 节点对象
  @return {Array}
   /* istanbul ignore next