File tree Expand file tree Collapse file tree
swift/ql/lib/codeql/swift/regex Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,14 +84,20 @@ private class NSRegularExpressionRegexCreation extends RegexCreation {
8484 }
8585}
8686
87- newtype TRegexParseMode =
87+ private newtype TRegexParseMode =
8888 MkIgnoreCase ( ) or // case insensitive
8989 MkVerbose ( ) or // ignores whitespace and `#` comments within patterns
9090 MkDotAll ( ) or // dot matches all characters, including line terminators
9191 MkMultiLine ( ) or // `^` and `$` also match beginning and end of lines
9292 MkUnicode ( ) // Unicode UAX 29 word boundary mode
9393
94+ /**
95+ * A regular expression parse mode flag.
96+ */
9497class RegexParseMode extends TRegexParseMode {
98+ /**
99+ * Gets the name of this parse mode flag.
100+ */
95101 string getName ( ) {
96102 this = MkIgnoreCase ( ) and result = "IGNORECASE"
97103 or
@@ -120,7 +126,7 @@ class RegexAdditionalFlowStep extends Unit {
120126 /**
121127 * Holds if a regular expression parse mode is either set (`isSet` = true)
122128 * or unset (`isSet` = false) at `node`. Parse modes propagate through
123- * array construction and regex constuction .
129+ * array construction and regex construction .
124130 */
125131 abstract predicate setsParseMode ( DataFlow:: Node node , RegexParseMode mode , boolean isSet ) ;
126132}
You can’t perform that action at this time.
0 commit comments