@@ -3445,9 +3445,11 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
34453445
34463446 AccessPathApproxConsNil ( ) { this = TConsNil ( c , t ) }
34473447
3448+ private string ppTyp ( ) { result = t .toString ( ) and result != "" }
3449+
34483450 override string toString ( ) {
3449- // The `concat` becomes "" if `ppReprType ` has no result.
3450- result = "[" + c .toString ( ) + "]" + concat ( " : " + ppReprType ( t ) )
3451+ // The `concat` becomes "" if `ppTyp ` has no result.
3452+ result = "[" + c .toString ( ) + "]" + concat ( " : " + this . ppTyp ( ) )
34513453 }
34523454
34533455 override Content getHead ( ) { result = c }
@@ -3668,7 +3670,9 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
36683670
36693671 ParamNodeEx getParamNode ( ) { result = p }
36703672
3671- override string toString ( ) { result = p + concat ( " : " + ppReprType ( t ) ) + " " + ap }
3673+ private string ppTyp ( ) { result = t .toString ( ) and result != "" }
3674+
3675+ override string toString ( ) { result = p + concat ( " : " + this .ppTyp ( ) ) + " " + ap }
36723676
36733677 Location getLocation ( ) { result = p .getLocation ( ) }
36743678 }
@@ -3935,10 +3939,12 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
39353939
39363940 override int length ( ) { result = 1 + tail_ .length ( ) }
39373941
3942+ private string ppTyp ( ) { result = t .toString ( ) and result != "" }
3943+
39383944 private string toStringImpl ( boolean needsSuffix ) {
39393945 tail_ = TAccessPathNil ( ) and
39403946 needsSuffix = false and
3941- result = head_ .toString ( ) + "]" + concat ( " : " + ppReprType ( t ) )
3947+ result = head_ .toString ( ) + "]" + concat ( " : " + this . ppTyp ( ) )
39423948 or
39433949 result = head_ + ", " + tail_ .( AccessPathCons ) .toStringImpl ( needsSuffix )
39443950 or
@@ -4087,9 +4093,8 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
40874093 private string ppType ( ) {
40884094 this instanceof PathNodeSink and result = ""
40894095 or
4090- exists ( DataFlowType t | t = this .( PathNodeMid ) .getType ( ) |
4091- // The `concat` becomes "" if `ppReprType` has no result.
4092- result = concat ( " : " + ppReprType ( t ) )
4096+ exists ( string t | t = this .( PathNodeMid ) .getType ( ) .toString ( ) |
4097+ if t = "" then result = "" else result = " : " + t
40934098 )
40944099 }
40954100
@@ -5402,9 +5407,8 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
54025407 private string ppType ( ) {
54035408 this instanceof PartialPathNodeRev and result = ""
54045409 or
5405- exists ( DataFlowType t | t = this .( PartialPathNodeFwd ) .getType ( ) |
5406- // The `concat` becomes "" if `ppReprType` has no result.
5407- result = concat ( " : " + ppReprType ( t ) )
5410+ exists ( string t | t = this .( PartialPathNodeFwd ) .getType ( ) .toString ( ) |
5411+ if t = "" then result = "" else result = " : " + t
54085412 )
54095413 }
54105414
0 commit comments