Skip to content

Commit f24a9a4

Browse files
authored
Python: add getAnAttributeWrite
1 parent c78ba47 commit f24a9a4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

python/ql/src/semmle/python/dataflow/new/internal/LocalSources.qll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class LocalSourceNode extends Node {
5959
*/
6060
AttrRead getAnAttributeRead(string attrName) { result = getAnAttributeReference(attrName) }
6161

62+
/**
63+
* Gets a write of attribute `attrName` on this node.
64+
*/
65+
AttrWrite getAnAttributeWrite(string attrName) { result = getAnAttributeReference(attrName) }
66+
6267
/**
6368
* Gets a reference (read or write) of any attribute on this node.
6469
*/
@@ -73,6 +78,11 @@ class LocalSourceNode extends Node {
7378
*/
7479
AttrRead getAnAttributeRead() { result = getAnAttributeReference() }
7580

81+
/**
82+
* Gets a write of any attribute on this node.
83+
*/
84+
AttrWrite getAnAttributeWrite() { result = getAnAttributeReference() }
85+
7686
/**
7787
* Gets a call to this node.
7888
*/

0 commit comments

Comments
 (0)