File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,9 @@ private struct SortedArray<Element>: RandomAccessCollection {
477477extension SortedArray : Sendable where Element: Sendable { }
478478
479479/// Represent a virtual file region in the source file.
480+ ///
481+ /// This type corresponds to `swift::SourceManager::VirtualFile` in the compiler,
482+ /// and is used for populating the virtual file information in it.
480483@_spi ( Compiler)
481484public struct VirtualFile : Sendable {
482485 /// Start position of the virtual file region
@@ -487,7 +490,8 @@ public struct VirtualFile: Sendable {
487490 public var fileName : String
488491 /// Line number offset from the physical line number.
489492 public var lineOffset : Int
490- /// The position of the filename literal.
493+ /// The position of the file name string literal in the `#sourceLocation` directive.
494+ /// This can be used to diagnose the file name in the compiler.
491495 public var fileNamePosition : AbsolutePosition
492496}
493497
You can’t perform that action at this time.
0 commit comments