Merge pull request #12534 from hvitved/swift/summary-call-encl-callable

Swift: Fix `SummaryCall::getEnclosingCallable`
This commit is contained in:
Tom Hvitved
2023-03-15 14:35:00 +01:00
committed by GitHub

View File

@@ -219,9 +219,7 @@ class SummaryCall extends DataFlowCall, TSummaryCall {
/** Gets the data flow node that this call targets. */
Node getReceiver() { result = receiver }
override DataFlowCallable getEnclosingCallable() {
result = TDataFlowFunc(c.getEnclosingFunction())
}
override DataFlowCallable getEnclosingCallable() { result = TSummarizedCallable(c) }
override string toString() { result = "[summary] call to " + receiver + " in " + c }