SourcePos
Swift
public struct SourcePos: Hashable, Sendable
extension SourcePos: CustomStringConvertible
A position in an original source file. Only has meaning in the context of a SourceMap
.
Topics
Initializers
init(source: Int32, line: Int32, column: Int32, name: Int32?)
init(source: Int32, line: Int32, column: Int32, name: Int32?)
Properties
var column: Int32
var column: Int32
var description: String
var description: String
A short human-readable description of the position.
Declaration
Swift
public var description: String { get }
var line: Int32
var line: Int32
var name: Int32?
var name: Int32?
0-based index into SourceMap.names
of any name associated with
the mapping segment, or nil
if there is none.
Declaration
Swift
public let name: Int32?
var source: Int32
var source: Int32
0-based index into SourceMap.sources
of the original source.
Declaration
Swift
public let source: Int32