Python: Add 'attr' predicate as a synomnym for 'getAttribute' to help readability.

This commit is contained in:
Mark Shannon
2019-02-20 11:06:40 +00:00
parent 35fa5d8f60
commit 98be27a73e
47 changed files with 87 additions and 86 deletions

View File

@@ -109,7 +109,7 @@ private Object attribute_in_scope(Object obj, string name) {
or
exists(ModuleObject mod |
mod = obj |
mod.getAttribute(name) = result and result.(ControlFlowNode).getScope() = mod.getModule()
mod.attr(name) = result and result.(ControlFlowNode).getScope() = mod.getModule()
and not result.(ControlFlowNode).isEntryNode()
)
}