getPath () {
    let node = this
    const path = []
    while (node) {
      const field = node.getName()
      if (field !== undefined) {
        path.unshift(field)
      }
      node = node.parent
    }
    return path
  }
Get the path of this node
@return {{string|number}[]} Array containing the path to this node.
Element is a number if is the index of an array, a string otherwise.