mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Data flow: Assign empty locations to summary nodes
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user