@@ -13,8 +13,8 @@ module RecursionGuard {
1313 private class RecursionGuard extends SummarizedCallable {
1414 RecursionGuard ( ) { this = "RecursionGuard" }
1515
16- override CallNode getACall ( ) {
17- result .getFunction ( ) .( NameNode ) .getId ( ) = this and
16+ override DataFlow :: CallCfgNode getACall ( ) {
17+ result .getFunction ( ) .asCfgNode ( ) . ( NameNode ) .getId ( ) = this and
1818 ( TT:: callStep ( _, _) implies any ( ) )
1919 }
2020
@@ -25,7 +25,9 @@ module RecursionGuard {
2525private class SummarizedCallableIdentity extends SummarizedCallable {
2626 SummarizedCallableIdentity ( ) { this = "identity" }
2727
28- override CallNode getACall ( ) { result .getFunction ( ) .( NameNode ) .getId ( ) = this }
28+ override DataFlow:: CallCfgNode getACall ( ) {
29+ result .getFunction ( ) .asCfgNode ( ) .( NameNode ) .getId ( ) = this
30+ }
2931
3032 override DataFlow:: ArgumentNode getACallback ( ) { result .asExpr ( ) .( Name ) .getId ( ) = this }
3133
@@ -40,7 +42,9 @@ private class SummarizedCallableIdentity extends SummarizedCallable {
4042private class SummarizedCallableApplyLambda extends SummarizedCallable {
4143 SummarizedCallableApplyLambda ( ) { this = "apply_lambda" }
4244
43- override CallNode getACall ( ) { result .getFunction ( ) .( NameNode ) .getId ( ) = this }
45+ override DataFlow:: CallCfgNode getACall ( ) {
46+ result .getFunction ( ) .asCfgNode ( ) .( NameNode ) .getId ( ) = this
47+ }
4448
4549 override DataFlow:: ArgumentNode getACallback ( ) { result .asExpr ( ) .( Name ) .getId ( ) = this }
4650
@@ -58,7 +62,9 @@ private class SummarizedCallableApplyLambda extends SummarizedCallable {
5862private class SummarizedCallableReversed extends SummarizedCallable {
5963 SummarizedCallableReversed ( ) { this = "reversed" }
6064
61- override CallNode getACall ( ) { result .getFunction ( ) .( NameNode ) .getId ( ) = this }
65+ override DataFlow:: CallCfgNode getACall ( ) {
66+ result .getFunction ( ) .asCfgNode ( ) .( NameNode ) .getId ( ) = this
67+ }
6268
6369 override DataFlow:: ArgumentNode getACallback ( ) { result .asExpr ( ) .( Name ) .getId ( ) = this }
6470
@@ -72,7 +78,9 @@ private class SummarizedCallableReversed extends SummarizedCallable {
7278private class SummarizedCallableMap extends SummarizedCallable {
7379 SummarizedCallableMap ( ) { this = "list_map" }
7480
75- override CallNode getACall ( ) { result .getFunction ( ) .( NameNode ) .getId ( ) = this }
81+ override DataFlow:: CallCfgNode getACall ( ) {
82+ result .getFunction ( ) .asCfgNode ( ) .( NameNode ) .getId ( ) = this
83+ }
7684
7785 override DataFlow:: ArgumentNode getACallback ( ) { result .asExpr ( ) .( Name ) .getId ( ) = this }
7886
@@ -90,7 +98,9 @@ private class SummarizedCallableMap extends SummarizedCallable {
9098private class SummarizedCallableAppend extends SummarizedCallable {
9199 SummarizedCallableAppend ( ) { this = "append_to_list" }
92100
93- override CallNode getACall ( ) { result .getFunction ( ) .( NameNode ) .getId ( ) = this }
101+ override DataFlow:: CallCfgNode getACall ( ) {
102+ result .getFunction ( ) .asCfgNode ( ) .( NameNode ) .getId ( ) = this
103+ }
94104
95105 override DataFlow:: ArgumentNode getACallback ( ) { result .asExpr ( ) .( Name ) .getId ( ) = this }
96106
@@ -108,8 +118,8 @@ private class SummarizedCallableAppend extends SummarizedCallable {
108118private class SummarizedCallableJsonLoads extends SummarizedCallable {
109119 SummarizedCallableJsonLoads ( ) { this = "json.loads" }
110120
111- override CallNode getACall ( ) {
112- result = API:: moduleImport ( "json" ) .getMember ( "loads" ) .getACall ( ) . getNode ( )
121+ override DataFlow :: CallCfgNode getACall ( ) {
122+ result = API:: moduleImport ( "json" ) .getMember ( "loads" ) .getACall ( )
113123 }
114124
115125 override DataFlow:: ArgumentNode getACallback ( ) {
0 commit comments