File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Sources/SwiftDriver/Utilities Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,27 @@ extension VirtualPath: CustomStringConvertible {
304304 }
305305}
306306
307+ extension VirtualPath : CustomDebugStringConvertible {
308+ public var debugDescription : String {
309+ switch self {
310+ case . relative( let path) :
311+ return " .relative( \( path. pathString) ) "
312+ case . absolute( let path) :
313+ return " .absolute( \( path. pathString) ) "
314+ case . standardInput:
315+ return " .standardInput "
316+ case . standardOutput:
317+ return " .standardOutput "
318+ case . temporary( let path) :
319+ return " .temporary( \( path. pathString) ) "
320+ case . temporaryWithKnownContents( let path, _) :
321+ return " .temporaryWithKnownContents( \( path. pathString) ) "
322+ case . fileList( let path, _) :
323+ return " .fileList( \( path. pathString) ) "
324+ }
325+ }
326+ }
327+
307328extension VirtualPath {
308329 /// Replace the extension of the given path with a new one based on the
309330 /// specified file type.
You can’t perform that action at this time.
0 commit comments