зеркало из https://github.com/github/codeql.git
Merge pull request #12534 from hvitved/swift/summary-call-encl-callable
Swift: Fix `SummaryCall::getEnclosingCallable`
This commit is contained in:
Коммит
a6e9d111a5
|
@ -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 }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче