File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
swift/ql/lib/codeql/swift/dataflow/internal Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ private import DataFlowPrivate
33private import DataFlowPublic
44private import codeql.swift.controlflow.ControlFlowGraph
55private import codeql.swift.controlflow.CfgNodes
6+ private import codeql.swift.controlflow.internal.Scope
67private import FlowSummaryImpl as FlowSummaryImpl
78private import FlowSummaryImplSpecific as FlowSummaryImplSpecific
89private import codeql.swift.dataflow.FlowSummary as FlowSummary
@@ -52,17 +53,17 @@ class ParamReturnKind extends ReturnKind, TParamReturnKind {
5253 * defined in library code.
5354 */
5455class 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
6869cached
You can’t perform that action at this time.
0 commit comments