Structure_RegexParser5.9.0
Location
The location in the input of a parsed entity, presented as a region over the input
struct Location
Citizens in _RegexParser
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Members
init(Range
<Source.Position>) init<R>(R, in: Source
) init(from: Source.Input.SubSequence
) static var fake: Source.Location
NOTE: This is a temporary measure to unblock DSL efforts and incremental source location tracking. This shouldn’t be called from within the parser’s module…
var end: Source.Position
The open end
var isEmpty: Bool
Whether this location covers an empty range. This includes
isFake
.var isFake: Bool
var isReal: Bool
var range: Range<Source.Position>
var start: Source.Position
func union(with: Source.Location
) -> SourceLocation Returns the smallest location that contains both this location and another.