mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
deprecate RegExpFlags::getFlags instead of deleting it
This commit is contained in:
@@ -58,6 +58,14 @@ module RegExpFlags {
|
||||
root.getLiteral().isIgnoreCase()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the flags for `root`, or the empty string if `root` has no flags.
|
||||
*/
|
||||
deprecated string getFlags(RegExpTerm root) {
|
||||
root.isRootTerm() and
|
||||
result = root.getLiteral().getFlags()
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `root` has the `s` flag for multi-line matching.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user