Data flow: Assign empty locations to summary nodes

This commit is contained in:
Tom Hvitved
2021-10-22 14:48:33 +02:00
parent d4cee73720
commit 61d7cdeec0

View File

@@ -398,7 +398,7 @@ private module ParameterNodes {
override DataFlowCallable getEnclosingCallable() { result = sc }
override Location getLocationImpl() { none() }
override EmptyLocation getLocationImpl() { any() }
override string toStringImpl() { result = "parameter " + pos + " of " + sc }
}
@@ -417,7 +417,7 @@ private class SummaryNode extends NodeImpl, TSummaryNode {
override DataFlowCallable getEnclosingCallable() { result = c }
override Location getLocationImpl() { none() }
override EmptyLocation getLocationImpl() { any() }
override string toStringImpl() { result = "[summary] " + state + " in " + c }
}