deprecate RegExpFlags::getFlags instead of deleting it

This commit is contained in:
erik-krogh
2022-09-22 13:43:42 +02:00
parent b61bd56d70
commit a8929b6400

View File

@@ -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.
*/