Source

Swift
public struct Source: Hashable, Sendable

The location and content of an original source referred to from the source map.

Use getSourceURL(...) to interpret source URLs incorporating sourceRoot.


Topics

Initializers

init(url: String, content: String?)

Initialize a new Source.

Declaration
Swift
public init(url: String, content: String? = nil)

Properties

var content: String?

The content, if any, recorded in the source map for this source.

Declaration
Swift
public let content: String?

var url: String

The URL recorded in the source map for this source.

See: SourceMap.getSourceURL(...).

Declaration
Swift
public let url: String