File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
swift/ql/lib/codeql/swift/regex Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,20 @@ private class NSRegularExpressionRegexCreation extends RegexCreation {
84
84
}
85
85
}
86
86
87
- newtype TRegexParseMode =
87
+ private newtype TRegexParseMode =
88
88
MkIgnoreCase ( ) or // case insensitive
89
89
MkVerbose ( ) or // ignores whitespace and `#` comments within patterns
90
90
MkDotAll ( ) or // dot matches all characters, including line terminators
91
91
MkMultiLine ( ) or // `^` and `$` also match beginning and end of lines
92
92
MkUnicode ( ) // Unicode UAX 29 word boundary mode
93
93
94
+ /**
95
+ * A regular expression parse mode flag.
96
+ */
94
97
class RegexParseMode extends TRegexParseMode {
98
+ /**
99
+ * Gets the name of this parse mode flag.
100
+ */
95
101
string getName ( ) {
96
102
this = MkIgnoreCase ( ) and result = "IGNORECASE"
97
103
or
@@ -120,7 +126,7 @@ class RegexAdditionalFlowStep extends Unit {
120
126
/**
121
127
* Holds if a regular expression parse mode is either set (`isSet` = true)
122
128
* or unset (`isSet` = false) at `node`. Parse modes propagate through
123
- * array construction and regex constuction .
129
+ * array construction and regex construction .
124
130
*/
125
131
abstract predicate setsParseMode ( DataFlow:: Node node , RegexParseMode mode , boolean isSet ) ;
126
132
}
You can’t perform that action at this time.
0 commit comments