Skip to content

Commit eff046e

Browse files
committed
Swift: Respond to review comments.
1 parent 693575a commit eff046e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowDispatch.qll

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ private import DataFlowPrivate
33
private import DataFlowPublic
44
private import codeql.swift.controlflow.ControlFlowGraph
55
private import codeql.swift.controlflow.CfgNodes
6+
private import codeql.swift.controlflow.internal.Scope
67
private import FlowSummaryImpl as FlowSummaryImpl
78
private import FlowSummaryImplSpecific as FlowSummaryImplSpecific
89
private import codeql.swift.dataflow.FlowSummary as FlowSummary
@@ -52,17 +53,17 @@ class ParamReturnKind extends ReturnKind, TParamReturnKind {
5253
* defined in library code.
5354
*/
5455
class DataFlowCallable extends TDataFlowCallable {
55-
AbstractFunctionDecl func;
56+
CfgScope scope;
5657

57-
DataFlowCallable() { this = TDataFlowFunc(func) }
58+
DataFlowCallable() { this = TDataFlowFunc(scope) }
5859

5960
/** Gets a textual representation of this callable. */
60-
string toString() { result = func.toString() }
61+
string toString() { result = scope.toString() }
6162

6263
/** Gets the location of this callable. */
63-
Location getLocation() { result = func.getLocation() }
64+
Location getLocation() { result = scope.getLocation() }
6465

65-
AbstractFunctionDecl getUnderlyingCallable() { result = func }
66+
Callable::TypeRange getUnderlyingCallable() { result = scope }
6667
}
6768

6869
cached

0 commit comments

Comments
 (0)