function isRootNode(node) {
  return node.type === 'Program' || node.type === 'Module' || node.type === 'Script';
}
Is the node is the root of the ast?
in Babel, this is the equivalent of Program
@param {SwcNode} node
@returns {boolean}