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 3b41c2f commit e56dfe7Copy full SHA for e56dfe7
python/ql/src/semmle/python/dataflow/new/internal/Attributes.qll
@@ -18,12 +18,10 @@ abstract class AttrRef extends Node {
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.
+ * Holds if this data flow node accesses attribute named `attrName` on object `object`.
23
*/
24
- Node getObject(string attrName) {
25
- result = this.getObject() and
26
- attrName = this.getAttributeName()
+ predicate accesses(Node object, string attrName) {
+ this.getObject() = object and getAttributeName() = attrName
27
}
28
29
0 commit comments