code: function validate(ast) {
      if (!ast.tokens) {
          throw new Error("AST is missing the tokens array.");
      }
  
      if (!ast.comments) {
          throw new Error("AST is missing the comments array.");
      }
  
      if (!ast.loc) {
          throw new Error("AST is missing location information.");
      }
  
      if (!ast.range) {
          throw new Error("AST is missing range information");
      }
  }
docs: ------------------------------------------------------------------------------ Private ------------------------------------------------------------------------------ 
  Validates that the given AST has the required information.
  @param {ASTNode} ast The Program node of the AST to check.
  @throws {Error} If the AST doesn't contain the correct information.
  @returns {void}
  @private