Structure_RegexParser5.9.0
MatchingOptionSequence
A sequence of matching options, written in source.
struct MatchingOptionSequence
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
init(adding: [AST.MatchingOption]
) init(caretLoc: SourceLocation?, adding: [AST.MatchingOption], minusLoc: SourceLocation?, removing: [AST.MatchingOption]
) init(removing: [AST.MatchingOption]
) var adding: [AST.MatchingOption]
The options to add.
var caretLoc: SourceLocation?
If the sequence starts with a caret ‘^’, its source location, or nil otherwise. If this is set, it indicates that all the matching options are unset, except the ones in
adding
.var minusLoc: SourceLocation?
The location of the ‘-’ between the options to add and options to remove.
var removing: [AST.MatchingOption]
The options to remove.
var resetsCurrentOptions: Bool
Whether this set of matching options first resets the options before adding onto them.