@@ -61,7 +61,7 @@ module PEP249 {
61
61
}
62
62
63
63
/** Gets a reference to a database connection (following PEP 249). */
64
- private DataFlow:: LocalSourceNode instance ( DataFlow:: TypeTracker t ) {
64
+ private DataFlow:: TypeTrackingNode instance ( DataFlow:: TypeTracker t ) {
65
65
t .start ( ) and
66
66
result instanceof InstanceSource
67
67
or
@@ -94,7 +94,7 @@ module PEP249 {
94
94
abstract class InstanceSource extends DataFlow:: LocalSourceNode { }
95
95
96
96
/** Gets a reference to a database cursor. */
97
- private DataFlow:: LocalSourceNode instance ( DataFlow:: TypeTracker t ) {
97
+ private DataFlow:: TypeTrackingNode instance ( DataFlow:: TypeTracker t ) {
98
98
t .start ( ) and
99
99
result instanceof InstanceSource
100
100
or
@@ -105,7 +105,7 @@ module PEP249 {
105
105
DataFlow:: Node instance ( ) { instance ( DataFlow:: TypeTracker:: end ( ) ) .flowsTo ( result ) }
106
106
107
107
/** Gets a reference to the `cursor` method on a database connection. */
108
- private DataFlow:: LocalSourceNode methodRef ( DataFlow:: TypeTracker t ) {
108
+ private DataFlow:: TypeTrackingNode methodRef ( DataFlow:: TypeTracker t ) {
109
109
t .startInAttr ( "cursor" ) and
110
110
result = Connection:: instance ( )
111
111
or
@@ -121,7 +121,7 @@ module PEP249 {
121
121
}
122
122
123
123
/** Gets a reference to a result of calling the `cursor` method on a database connection. */
124
- private DataFlow:: LocalSourceNode methodResult ( DataFlow:: TypeTracker t ) {
124
+ private DataFlow:: TypeTrackingNode methodResult ( DataFlow:: TypeTracker t ) {
125
125
t .start ( ) and
126
126
result .asCfgNode ( ) .( CallNode ) .getFunction ( ) = methodRef ( ) .asCfgNode ( )
127
127
or
@@ -146,7 +146,7 @@ module PEP249 {
146
146
*
147
147
* See https://www.python.org/dev/peps/pep-0249/#id15.
148
148
*/
149
- private DataFlow:: LocalSourceNode execute ( DataFlow:: TypeTracker t ) {
149
+ private DataFlow:: TypeTrackingNode execute ( DataFlow:: TypeTracker t ) {
150
150
t .startInAttr ( "execute" ) and
151
151
result in [ Cursor:: instance ( ) , Connection:: instance ( ) ]
152
152
or
0 commit comments