Merge pull request #577 from markshannon/python-fix-performance-regression-dependencies

Python: Fix performance regression in dependency analysis
This commit is contained in:
Taus
2018-11-29 16:41:58 +01:00
committed by GitHub

View File

@@ -193,6 +193,7 @@ private predicate defn_of_class_attribute(Assign asgn, Class c, string name) {
/* Holds if `value` is a value assigned to the `name`d attribute of module `m`. */
private predicate defn_of_module_attribute(ControlFlowNode value, Module m, string name) {
exists(DefinitionNode def |
def.getScope() = m and
def.getValue() = value and
def.(NameNode).getId() = name
)