code: function checkASTandNode(ast, node) {
    typeCheckObject(ast, 'ast');
    typeCheckObject(node, 'node');
    runValidator(ast, 'ast');
    runValidator(node, 'node');
  }
docs: /*
  Function to check for errors between ast and node variables