IBase.SourceFileinclude Ppx_compare_lib.Comparable.S with type t := tval compare : t Base__Ppx_compare_lib.compareMutable hash tables and sets keyed on source files
module HashSet : IStdlib.HashSet.S with type elt = tval is_invalid : t -> boolIs the source file the invalid source file?
return the list of changed files as read from Config.changed_files_index. NOTE: it may include extra source_files if --changed-files-index contains paths to header files.
return the list of files as read from Config.files_to_analyze_index. NOTE: it may include extra source_files if --changed-files-index contains paths to header files.
val invalid : string -> tInvalid source file
val from_abs_path : ?warn_on_error:bool -> string -> tcreate source file from absolute path. WARNING: If warn_on_error is false, no warning will be shown whenever an error occurs for the given path (e.g. if it does not exist).
val create : ?check_abs_path:bool -> ?check_rel_path:bool -> string -> tCreate a SourceFile from a given path. If relative, it assumes it is w.r.t. project root. WARNING: if check_abs_path (check_rel_path) is true then a warning message is shown if the provided path is absolute (relative) and an error occurs when resolving (e.g. if it does not exist).
val is_under_project_root : t -> boolReturns true if the file is under the project root or the workspace directory if it exists
Return approximate source file corresponding to the parameter if it's header file and file exists. returns None otherwise. WARNING: If warn_on_error is false, no warning will be shown whenever an error occurs for the given SourceFile (e.g. if it does not exist).
val pp : Stdlib.Format.formatter -> t -> unitpretty print t
val to_abs_path : t -> stringget the full path of a source file
val to_rel_path : t -> stringget the relative path of a source file
val to_string : ?force_relative:bool -> t -> stringconvert a source file to a string WARNING: result may not be valid file path, do not use this function to perform operations on filenames
val has_extension : ext:string -> t -> boolreturns whether the source file has provided extension
val is_matching : IStdlib.IStd.Str.regexp list -> t -> boolCheck if the source file path is matching with a regexp of the given regexp list.
module SQLite : SqliteUtils.Data with type t = t