Function getDisplayName [src]
Returns a string that can be shown to represent the file source.
Either returns the path, "generated", or "dependency".
Prototype
pub fn getDisplayName(lazy_path: LazyPath) []const u8
Parameters
lazy_path: LazyPath
Source
pub fn getDisplayName(lazy_path: LazyPath) []const u8 {
return switch (lazy_path) {
.src_path => |sp| sp.sub_path,
.cwd_relative => |p| p,
.generated => "generated",
.dependency => "dependency",
};
}