Structure_RegexParser5.9.0
Located
A value wrapped with a source range.
struct Located<T>
Note: Source location is part of value identity so that, for example, the same Character
value appearing twice can be stored in a data structure distinctly. To ignore source locations, use .value
directly.
Citizens in _RegexParser
Members
init(T, SourceLocation
) init(T, Range
<Source.Position>) init(faking: T
) 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 location: SourceLocation
var value: T
func map<U>((T) throws -> U
) rethrows -> Source.Located<U>
Citizens in _RegexParser
where T:Hashable
Conformances
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Citizens in _RegexParser
where T:Equatable
Conformances
protocol Equatable
A type that can be compared for value equality.