IBase.SourceFile
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
module HashSet : IStdlib.HashSet.S with type elt = t
val is_invalid : t -> bool
Is 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 -> t
Invalid source file
val from_abs_path : ?warn_on_error:bool -> string -> t
create 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 -> t
Create 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 -> bool
Returns 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 -> unit
pretty print t
val to_abs_path : t -> string
get the full path of a source file
val to_rel_path : t -> string
get the relative path of a source file
val to_string : ?force_relative:bool -> t -> string
convert 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 -> bool
returns whether the source file has provided extension
val is_matching : IStdlib.IStd.Str.regexp list -> t -> bool
Check if the source file path is matching with a regexp of the given regexp list.
module SQLite : SqliteUtils.Data with type t = t