123456789101112131415161718192021222324252627282930313233343536373839404142434445(* Yoann Padioleau
*
* Copyright (C) 2019 Yoann Padioleau
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation, with the
* special exception on linking described in file license.txt.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file
* license.txt for more details.
*)moduleV=Visitor_skip(*****************************************************************************)(* Filemames *)(*****************************************************************************)letfind_source_files_of_dir_or_filesxs=Common.files_of_dir_or_files_no_vcs_nofilterxs|>List.filter(funfilename->matchFile_type.file_type_of_filefilenamewith|File_type.PL(File_type.Skip)->true|_->false)|>Common.sort(*****************************************************************************)(* Extract infos *)(*****************************************************************************)letextract_info_visitorrecursor=letglobals=ref[]inlethooks={(* V.default_visitor with *)V.kinfo=(fun(_k,_)i->Common.pushiglobals)}inbeginletvout=V.mk_visitorhooksinrecursorvout;List.rev!globalsendletii_of_anyany=extract_info_visitor(funvisitor->visitorany)