File tree 1 file changed +5
-1
lines changed
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 {
477
477
extension SortedArray : Sendable where Element: Sendable { }
478
478
479
479
/// 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.
480
483
@_spi ( Compiler)
481
484
public struct VirtualFile : Sendable {
482
485
/// Start position of the virtual file region
@@ -487,7 +490,8 @@ public struct VirtualFile: Sendable {
487
490
public var fileName : String
488
491
/// Line number offset from the physical line number.
489
492
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.
491
495
public var fileNamePosition : AbsolutePosition
492
496
}
493
497
You can’t perform that action at this time.
0 commit comments