Enumeration_RegexParser5.9.0
Node
A node in the regex AST.
indirect enum Node
Citizens in _RegexParser
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
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
case absentFunction(AST.AbsentFunction)
case alternation(AST.Alternation)
… | … | …
case atom(AST.Atom)
case concatenation(AST.Concatenation)
… …
case conditional(AST.Conditional)
(?(cond) true-branch | false-branch)
case customCharacterClass(AST.CustomCharacterClass)
case empty(AST.Empty)
case group(AST.Group)
(…)
case interpolation(AST.Interpolation)
Intepolation
<{...}>
, currently reserved for future use.case quantification(AST.Quantification)
case quote(AST.Quote)
\Q…\E
case trivia(AST.Trivia)
Comments, non-semantic whitespace, etc
var children: [AST.Node]?
The child nodes of this node.
var hasCapture: Bool
Whether this node contains at least one capture nested inside of it.
var isQuantifiable: Bool
Whether this node may be used as the operand of a quantifier such as
?
,+
or*
.var isTrivia: Bool
Whether this node is trivia or non-semantic, like comments.
var literalStringValue: String?
var location: SourceLocation
func `as`<T>(T
.Type) -> T? func renderAsCanonical(showDelimiters: Bool, terminateLine: Bool
) -> String Renders using Swift’s preferred regex literal syntax.