Dataflow: Add type to PathNode.toString

This commit is contained in:
Anders Schack-Mulligen
2023-04-20 14:33:00 +02:00
parent 5a027b95bd
commit fd36304da2

View File

@@ -3077,9 +3077,7 @@ module Impl<FullStateConfigSig Config> {
private string ppType() {
this instanceof PathNodeSink and result = ""
or
this.(PathNodeMid).getAp() instanceof AccessPathNil and result = ""
or
exists(DataFlowType t | t = this.(PathNodeMid).getAp().getHead().getContainerType() |
exists(DataFlowType t | t = this.(PathNodeMid).getType() |
// The `concat` becomes "" if `ppReprType` has no result.
result = concat(" : " + ppReprType(t))
)