function getTypeArguments(node) {
  if ('typeArguments' in node) {
    return node.typeArguments;
  }
  return node.typeParameters;
}
Returns the type arguments of a node or type parameters if type arguments are not available.
@param {ASTNode} node The node to get the type arguments from.
@returns {ASTNode} The type arguments or type parameters of the node.