We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9137f04 commit b02fb90Copy full SHA for b02fb90
python/ql/src/semmle/python/dataflow/new/internal/Attributes.qll
@@ -17,6 +17,15 @@ abstract class AttrRef extends Node {
17
*/
18
abstract Node getObject();
19
20
+ /**
21
+ * Gets the data flow node corresponding to the object whose attribute named
22
+ * `attrName` is being read or written.
23
+ */
24
+ Node getObject(string attrName) {
25
+ result = this.getObject() and
26
+ attrName = this.getAttributeName()
27
+ }
28
+
29
/**
30
* Gets the expression node that defines the attribute being accessed, if any. This is
31
* usually an identifier or literal.
0 commit comments