Enumerationswift 6.1.2_RegexParser
Kind
enum Kindenum Kindimport _RegexParserstruct Referencestruct ASTA regex abstract syntax tree.
case absolute(AST.Atom.Number)case named(String)case relative(AST.Atom.Number)init(_ kind: AST.Reference.Kind, recursionLevel: AST.Atom.Number? = nil, innerLoc: SourceLocation) var innerLoc: SourceLocationThe location of the inner numeric or textual reference, e.g the location of ‘-2’ in ‘\g{-2}’. Note this includes the recursion level for e.g ‘\k<a+2>’.
var kind: AST.Reference.Kindvar recursesWholePattern: Bool { get }Whether this is a reference that recurses the whole pattern, rather than a group.
var recursionLevel: AST.Atom.Number?An additional specifier supported by Oniguruma that specifies what recursion level the group being referenced belongs to.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
var recursesWholePattern: Bool { get }Whether this is a reference that recurses the whole pattern, rather than a group.
static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.