Location

public struct Location : Codable, Equatable

The numeric location of the identified element in the document, represented with two integers labeled begin and end.

  • The element’s begin index.

    Declaration

    Swift

    public var begin: Int
  • end

    The element’s end index.

    Declaration

    Swift

    public var end: Int
  • Initialize a Location with member variables.

    Declaration

    Swift

    public init(
        begin: Int,
        end: Int
    )

    Parameters

    begin

    The element’s begin index.

    end

    The element’s end index.

    Return Value

    An initialized Location.