Location

Swift
public struct Location: CustomStringConvertible, Sendable

A single point in a stylesheet.


Topics

var offset: Int

The 0-based byte offset of this location within the stylesheet.

Declaration
Swift
public let offset: Int

var line: Int

The 1-based line number of this location within the stylesheet.

Declaration
Swift
public let line: Int

var column: Int

The 1-based column number of this location within its line.

Declaration
Swift
public let column: Int

var description: String

A short description of the location.

Declaration
Swift
public var description: String { get }