Structure
ErrorSource
A source-code location.
struct ErrorSource
Topics
Initializers
init(file: String, function: String, line: UInt, column: UInt, range: Range<UInt>?)Creates a newSourceLocation
Instance Properties
var column: UIntNumber of characters into the line this location starts at.var file: StringFile in which this location exists.var function: StringFunction in which this location exists.var line: UIntLine number this location belongs to.var range: Range<UInt>?Optional start/end range of the source.
Type Methods
static func capture(file: String, function: String, line: UInt, column: UInt, range: Range<UInt>?) -> ErrorSourceCreates a newErrorSourcefor the current call site.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype