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
3
3
private import DataFlowPublic
4
4
private import codeql.swift.controlflow.ControlFlowGraph
5
5
private import codeql.swift.controlflow.CfgNodes
6
+ private import codeql.swift.controlflow.internal.Scope
6
7
private import FlowSummaryImpl as FlowSummaryImpl
7
8
private import FlowSummaryImplSpecific as FlowSummaryImplSpecific
8
9
private import codeql.swift.dataflow.FlowSummary as FlowSummary
@@ -52,17 +53,17 @@ class ParamReturnKind extends ReturnKind, TParamReturnKind {
52
53
* defined in library code.
53
54
*/
54
55
class DataFlowCallable extends TDataFlowCallable {
55
- AbstractFunctionDecl func ;
56
+ CfgScope scope ;
56
57
57
- DataFlowCallable ( ) { this = TDataFlowFunc ( func ) }
58
+ DataFlowCallable ( ) { this = TDataFlowFunc ( scope ) }
58
59
59
60
/** Gets a textual representation of this callable. */
60
- string toString ( ) { result = func .toString ( ) }
61
+ string toString ( ) { result = scope .toString ( ) }
61
62
62
63
/** Gets the location of this callable. */
63
- Location getLocation ( ) { result = func .getLocation ( ) }
64
+ Location getLocation ( ) { result = scope .getLocation ( ) }
64
65
65
- AbstractFunctionDecl getUnderlyingCallable ( ) { result = func }
66
+ Callable :: TypeRange getUnderlyingCallable ( ) { result = scope }
66
67
}
67
68
68
69
cached
You can’t perform that action at this time.
0 commit comments