code: function(node) {
      var index = '';
      do {
        if (node.id) index = '[' + node.position + ']' + index;
      } while ((node = node.parent) != null);
      return index;
    }
docs: /* Construct a [i] index for a particular node