Module Unit_info.Artifact
Build artifacts
Metadata for a single compilation artifact:
- the module name associated to the artifact
- the filesystem path
- the input source file if it exists
val original_source_file :
Ocaml_typing.Unit_info.Artifact.t ->
Ocaml_typing.Unit_info.filename optionoriginal_source_file a is the original source file of a if it exists. See Unit_info.original_source_file for a description of the distinction of "original" vs "raw" source file
val raw_source_file :
Ocaml_typing.Unit_info.Artifact.t ->
Ocaml_typing.Unit_info.filename optionraw_source_file a is the raw source file of a if it exists. See Unit_info.raw_source_file for a description of the distinction of "original" vs "raw" source file
val prefix :
Ocaml_typing.Unit_info.Artifact.t ->
Ocaml_typing.Unit_info.file_prefixprefix a is the filename prefix of the compilation artifact.
val filename :
Ocaml_typing.Unit_info.Artifact.t ->
Ocaml_typing.Unit_info.filenamefilename u is the filesystem path for a compilation artifact.
val modname :
Ocaml_typing.Unit_info.Artifact.t ->
Ocaml_typing.Compilation_unit.tmodname a is the module name of the compilation artifact.
val from_filename :
for_pack_prefix:Ocaml_typing.Compilation_unit.Prefix.t ->
Ocaml_typing.Unit_info.filename ->
Ocaml_typing.Unit_info.Artifact.tfrom_filename ~for_pack_prefix filename reconstructs the module name modname_from_source filename associated to the artifact filename, assuming the pack prefix is for_pack_prefix.