JS: Do not include type in path explanation

This commit is contained in:
Asger F
2024-08-02 14:17:56 +02:00
parent 1a532dac29
commit 0a143a5f52

View File

@@ -301,7 +301,7 @@ newtype TDataFlowType =
TAnyType()
class DataFlowType extends TDataFlowType {
string toString() {
string toDebugString() {
this instanceof TFunctionType and
result =
"TFunctionType(" + this.asFunction().toString() + ") at line " +
@@ -310,6 +310,10 @@ class DataFlowType extends TDataFlowType {
this instanceof TAnyType and result = "TAnyType"
}
string toString() {
result = "" // Must be the empty string to prevent this from showing up in path explanations
}
Function asFunction() { this = TFunctionType(result) }
}