Python: comment out temporarily unused predicate

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-06-30 15:04:37 +02:00
parent c306cee04e
commit 45e30b0c06

View File

@@ -479,18 +479,18 @@ class RegExpEscape extends RegExpNormalChar {
// )
none()
}
/**
* Gets int value for the `index`th char in the hex number of the unicode escape.
* E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
*/
private int getHexValueFromUnicode(int index) {
isUnicode() and
exists(string hex, string char | hex = getText().suffix(2) |
char = hex.charAt(index) and
result = 16.pow(hex.length() - index - 1) * toHex(char)
)
}
// TODO: Enable this once a supporting CLI is released.
// /**
// * Gets int value for the `index`th char in the hex number of the unicode escape.
// * E.g. for `\u0061` and `index = 2` this returns 96 (the number `6` interpreted as hex).
// */
// private int getHexValueFromUnicode(int index) {
// isUnicode() and
// exists(string hex, string char | hex = getText().suffix(2) |
// char = hex.charAt(index) and
// result = 16.pow(hex.length() - index - 1) * toHex(char)
// )
// }
}
/**