function getParent(node) {
  let parent = node.parent
  while (parent.type === 'TSAsExpression') {
    parent = parent.parent
  }
  return parent
}
Gets the parent node of the given node. This method returns a value ignoring `X as F`.
@param {Expression} node
@returns {ASTNode}