RenamedDecodeLike to Decode and updated propagatesFlow

This commit is contained in:
Napalys
2025-04-11 10:04:09 +02:00
parent 0c52b5ad95
commit e3f1720f9c

View File

@@ -13,16 +13,16 @@ private class TextDecoderEntryPoint extends API::EntryPoint {
pragma[nomagic]
API::Node textDecoderConstructorRef() { result = any(TextDecoderEntryPoint e).getANode() }
class DecodeLike extends SummarizedCallable {
DecodeLike() { this = "TextDecoder#decode" }
class Decode extends SummarizedCallable {
Decode() { this = "TextDecoder#decode" }
override InstanceCall getACall() {
result = textDecoderConstructorRef().getInstance().getMember("decode").getACall()
}
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
preservesValue = true and
input = "Argument[0]" and
preservesValue = false and
input = "Argument[0].ArrayElement" and
output = "ReturnValue"
}
}